sew-proto 0.11.6

Sew wire contracts: ids, addresses, errors, HTTP and gateway bodies, permissions, policies, audit.
Documentation
{
  "$defs": {
    "OwnerApproval": {
      "description": "The current owner's inline approval of an owner transfer. `Debug` redacts the\nsecret.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "K2 mode: a chat pass whose `sub` is the current owner.",
          "properties": {
            "kind": {
              "const": "owner_pass",
              "type": "string"
            },
            "pass": {
              "description": "The pass.",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "pass"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "Standalone: the current owner's password.",
          "properties": {
            "kind": {
              "const": "owner_password",
              "type": "string"
            },
            "password": {
              "description": "The password.",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "password"
          ],
          "type": "object"
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Body of `POST /mgmt/v1/owner/set`.",
  "properties": {
    "approval": {
      "anyOf": [
        {
          "$ref": "#/$defs/OwnerApproval"
        },
        {
          "type": "null"
        }
      ],
      "description": "The current owner's approval; not needed while no owner exists (additive)."
    },
    "external_id": {
      "description": "The new install owner.",
      "maxLength": 128,
      "pattern": "^(k2:(principal|workspace|connect):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|k2:owner|k2:server|local:[a-z0-9_-]{2,64}|link:[1-9][0-9]{0,18}:[A-Z2-7]{16}|app:[a-z0-9][a-z0-9._-]{0,63}|erased:[1-9][0-9]{0,18})$",
      "type": "string"
    },
    "force": {
      "default": false,
      "description": "Break-glass transfer: standalone only, and only for peer uid 0 (additive).",
      "type": "boolean"
    }
  },
  "required": [
    "external_id"
  ],
  "title": "OwnerSetRequest",
  "type": "object"
}