sew-proto 0.11.6

Sew wire contracts: ids, addresses, errors, HTTP and gateway bodies, permissions, policies, audit.
Documentation
{
  "$defs": {
    "When": {
      "description": "\"At what time\": an absolute instant, a local wall-clock time in a named zone, or a delay.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "An absolute instant.",
          "properties": {
            "at": {
              "description": "RFC 3339 with `Z` or an offset.",
              "format": "date-time",
              "type": "string"
            },
            "kind": {
              "const": "at",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "at"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A local wall-clock time.",
          "properties": {
            "date_time": {
              "description": "`YYYY-MM-DDTHH:MM`, no seconds, no offset.",
              "type": "string"
            },
            "kind": {
              "const": "local",
              "type": "string"
            },
            "timezone": {
              "description": "An IANA zone name; absent means the member's profile zone, then UTC.",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "kind",
            "date_time"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A delay from the request's clock time.",
          "properties": {
            "kind": {
              "const": "in",
              "type": "string"
            },
            "ms": {
              "description": "Milliseconds from now.",
              "format": "uint64",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "kind",
            "ms"
          ],
          "type": "object"
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Body of `POST /api/v1/me/reminders`: at least one of `message_id` and `note`.",
  "properties": {
    "message_id": {
      "description": "Remind about this message.",
      "pattern": "^[1-9][0-9]{0,18}$",
      "type": [
        "string",
        "null"
      ]
    },
    "note": {
      "description": "A note, 1–2,048 bytes.",
      "type": [
        "string",
        "null"
      ]
    },
    "when": {
      "$ref": "#/$defs/When",
      "description": "When: now + 10 s … now + 366 days."
    }
  },
  "required": [
    "when"
  ],
  "title": "CreateReminderRequest",
  "type": "object"
}