sew-proto 0.11.6

Sew wire contracts: ids, addresses, errors, HTTP and gateway bodies, permissions, policies, audit.
Documentation
{
  "$defs": {
    "MessageVersion": {
      "description": "One row of a message's edit history.",
      "properties": {
        "body": {
          "description": "The body of this version.",
          "type": "string"
        },
        "created_at": {
          "description": "When this version was written.",
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "The revision id (optional on the wire so frozen v1 payloads still parse).",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": [
            "string",
            "null"
          ]
        },
        "message_id": {
          "description": "The message.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "replaced_at": {
          "description": "When the next version replaced it.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "default": 0,
          "description": "The version this body was: 0 at create, +1 per edit.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "message_id",
        "body",
        "created_at"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A page of an id-keyed list: `{\"items\": [...], \"has_more\": bool}`.",
  "properties": {
    "has_more": {
      "description": "Whether more items exist past this page.",
      "type": "boolean"
    },
    "items": {
      "description": "The items.",
      "items": {
        "$ref": "#/$defs/MessageVersion"
      },
      "type": "array"
    }
  },
  "required": [
    "items",
    "has_more"
  ],
  "title": "Page",
  "type": "object"
}