{
  "openapi": "3.1.0",
  "info": {
    "title": "centerbox workspace",
    "version": "2.0.0",
    "description": "Seven areas: clipboard, plans/Todo, Timeline, files, name/K/V credentials, memories and settings. Existing HTTP capability plus raw /skill text is sufficient; CLI/MCP/client installation is optional. Paths resolve against the serving origin, including direct and reverse-proxy entries. Agents initiate public device authorization, show the confirmation URL/user code, then poll with a private device_code. Owner website confirmation permits one-time access_token issuance; Bearer business access lasts a fixed 90 days without refresh. Owner account/authorization management requires browser Cookie/Origin/CSRF. Account changes invalidate sessions and Agent authorizations; logout ends only the current browser session. Cloud Unix UTC seconds; website displays Asia/Shanghai. Memories/Todo/Timeline persist until deleted; null file retention is permanent."
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "Session": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Web-confirmed Agent access_token; fixed 90 days from issuance, no refresh/automatic extension. All business modules/default settings, including credential detail; cannot manage owner account, browser session or other authorizations. HTTPS only; no auth redirects."
      },
      "Session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "relaybox_session",
        "description": "Owner website-maintained HttpOnly cookie. Owner account/authorization management uses only this scheme. Browser mutations require X-CSRF-Token and same Origin; direct Bearer business calls need neither."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "ok",
          "error"
        ],
        "additionalProperties": false
      },
      "DeviceError": {
        "type": "object",
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "enum": [
                  "authorization_pending",
                  "slow_down",
                  "access_denied",
                  "expired_token",
                  "invalid_grant"
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          },
          "interval": {
            "type": "integer",
            "minimum": 1
          },
          "expires_at": {
            "type": "integer",
            "description": "Unix seconds"
          }
        },
        "required": [
          "ok",
          "error"
        ],
        "additionalProperties": false
      },
      "DeviceCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "x-maxUtf16CodeUnits": 120,
            "description": "Required trimmed nonblank label, at most 120 UTF-16 code units; control characters forbidden",
            "minLength": 1
          },
          "device": {
            "type": "string",
            "maxLength": 120,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "x-maxUtf16CodeUnits": 120,
            "description": "At most 120 UTF-16 code units; control characters forbidden. Device/harness kept as submitted.",
            "default": ""
          },
          "harness": {
            "type": "string",
            "maxLength": 120,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "x-maxUtf16CodeUnits": 120,
            "description": "At most 120 UTF-16 code units; control characters forbidden. Device/harness kept as submitted.",
            "default": ""
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "DeviceCreated": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "device_code": {
            "type": "string",
            "pattern": "^rbd_[a-f0-9]{64}$",
            "description": "Secret caller-only poll code; never URL/chat/log/config shared memory"
          },
          "user_code": {
            "type": "string",
            "pattern": "^[A-Z0-9]{4}-[A-Z0-9]{4}$",
            "description": "Public short code to show the owner"
          },
          "verification_uri": {
            "type": "string",
            "format": "uri",
            "description": "Selected service origin + /#authorize"
          },
          "verification_uri_complete": {
            "type": "string",
            "format": "uri",
            "description": "Clickable selected-origin confirmation URL containing only public user_code"
          },
          "expires_in": {
            "const": 600
          },
          "expires_at": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "interval": {
            "const": 5
          },
          "scope": {
            "const": "workspace"
          }
        },
        "required": [
          "ok",
          "device_code",
          "user_code",
          "verification_uri",
          "verification_uri_complete",
          "expires_in",
          "expires_at",
          "interval",
          "scope"
        ],
        "additionalProperties": false
      },
      "DevicePoll": {
        "type": "object",
        "properties": {
          "device_code": {
            "type": "string",
            "pattern": "^rbd_[a-f0-9]{64}$",
            "description": "Private code from the initiating request"
          }
        },
        "required": [
          "device_code"
        ],
        "additionalProperties": false
      },
      "AccessToken": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "access_token": {
            "type": "string",
            "pattern": "^rba_[a-f0-9]{64}$",
            "description": "Returned once; store privately outside repositories, never display in chat/logs"
          },
          "token_type": {
            "const": "Bearer"
          },
          "expires_in": {
            "const": 7776000
          },
          "expires_at": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "scope": {
            "const": "workspace"
          }
        },
        "required": [
          "ok",
          "access_token",
          "token_type",
          "expires_in",
          "expires_at",
          "scope"
        ],
        "additionalProperties": false
      },
      "AuthorizationRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "device": {
            "type": "string"
          },
          "harness": {
            "type": "string"
          },
          "userCode": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "approved",
              "denied",
              "consumed",
              "expired"
            ]
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "expiresAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "approvedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "deniedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "consumedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "scope": {
            "const": "workspace"
          },
          "tokenLifetimeDays": {
            "const": 90
          }
        },
        "required": [
          "id",
          "name",
          "device",
          "harness",
          "userCode",
          "status",
          "createdAt",
          "expiresAt",
          "approvedAt",
          "deniedAt",
          "consumedAt",
          "scope",
          "tokenLifetimeDays"
        ],
        "additionalProperties": false
      },
      "AuthorizationRequestResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/AuthorizationRequest"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "AuthorizationDecision": {
        "type": "object",
        "properties": {
          "user_code": {
            "type": "string",
            "pattern": "^\\s*[A-HJ-NP-Za-hj-np-z2-9]{4}-?[A-HJ-NP-Za-hj-np-z2-9]{4}\\s*$",
            "description": "Normalized to uppercase XXXX-XXXX; lowercase/omitted hyphen accepted"
          }
        },
        "required": [
          "user_code"
        ],
        "additionalProperties": false
      },
      "Authorization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "device": {
            "type": "string"
          },
          "harness": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "expiresAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "lastUsedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "revokedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "enum": [
              "active",
              "expired",
              "revoked"
            ]
          },
          "scope": {
            "const": "workspace"
          }
        },
        "required": [
          "id",
          "name",
          "device",
          "harness",
          "createdAt",
          "expiresAt",
          "lastUsedAt",
          "revokedAt",
          "status",
          "scope"
        ],
        "additionalProperties": false
      },
      "AuthorizationResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/Authorization"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "AuthorizationsResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "default": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Authorization"
            }
          },
          "activeCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Global count of valid authorizations, independent of current page"
          }
        },
        "required": [
          "ok",
          "total",
          "limit",
          "offset",
          "items",
          "activeCount"
        ],
        "additionalProperties": false
      },
      "Success": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          }
        },
        "required": [
          "ok"
        ],
        "additionalProperties": true
      },
      "Username": {
        "type": "string",
        "minLength": 3,
        "maxLength": 64,
        "pattern": "^[^\\u0000-\\u001f\\u007f:]+$",
        "description": "Trimmed; Unicode allowed; excludes colon/control characters"
      },
      "NewPassword": {
        "type": "string",
        "minLength": 12,
        "maxLength": 1024,
        "format": "password",
        "description": "Exact, untrimmed password; never persist/output plaintext"
      },
      "RetentionDays": {
        "type": [
          "integer",
          "null"
        ],
        "minimum": 1,
        "maximum": 365,
        "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
      },
      "Settings": {
        "type": "object",
        "properties": {
          "fileRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "clipboardRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "textRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "version": {
            "type": "integer"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          }
        },
        "required": [
          "fileRetentionDays",
          "clipboardRetentionDays",
          "textRetentionDays",
          "version",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "SettingsResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "settings": {
            "$ref": "#/components/schemas/Settings"
          }
        },
        "required": [
          "ok",
          "settings"
        ],
        "additionalProperties": false
      },
      "SettingsPatch": {
        "type": "object",
        "properties": {
          "fileRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "clipboardRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "textRetentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          }
        },
        "additionalProperties": false,
        "minProperties": 1
      },
      "MediaInfo": {
        "type": "object",
        "properties": {
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "image",
              "video",
              null
            ],
            "description": "Ordinary non-media: null with unsupported/not_media; initial identification may be null with processing/null"
          },
          "status": {
            "enum": [
              "processing",
              "ready",
              "unsupported",
              "failed"
            ],
            "description": "Derived thumbnail/cover state only; does not limit safe original previewUrl. Original save and derived processing are separate; processing is not upload failure. Query file/clipboard detail with finite backoff."
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri-reference",
            "description": "Ready image only: relative protected static WebP thumbnail, within 480x320, no upscaling, <=2MiB. Share metadata rewrites to its share path; locked shares null."
          },
          "coverUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri-reference",
            "description": "Ready video only: relative protected JPEG first frame at 0s, within 480x320, no upscaling, <=2MiB. Share metadata rewrites to its share path; locked shares null."
          },
          "previewUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri-reference",
            "description": "Relative protected safe original-media preview; read revalidates signature, no transcode, browser codec support independent of derived status. Locked shares null; unlocked shares use share-only paths."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stable non-secret terminal reason code; processing/ready null. No R2 keys/source digests/access credentials."
          }
        },
        "required": [
          "kind",
          "status",
          "thumbnailUrl",
          "coverUrl",
          "previewUrl",
          "reason"
        ],
        "additionalProperties": false
      },
      "File": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size": {
            "type": "integer",
            "minimum": 0
          },
          "mimeType": {
            "type": "string"
          },
          "collection": {
            "enum": [
              "files",
              "clipboard"
            ]
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "expiresAt": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Unix seconds; null is permanent/no expiry"
          },
          "permanent": {
            "type": "boolean"
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "version": {
            "type": "integer"
          },
          "media": {
            "$ref": "#/components/schemas/MediaInfo"
          }
        },
        "required": [
          "id",
          "name",
          "size",
          "mimeType",
          "createdAt",
          "expiresAt",
          "media"
        ],
        "additionalProperties": false
      },
      "FileResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "file": {
            "$ref": "#/components/schemas/File"
          }
        },
        "required": [
          "ok",
          "file"
        ],
        "additionalProperties": false
      },
      "FilesResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/File"
            }
          },
          "total": {
            "type": "integer"
          },
          "quota": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "minimum": 0,
                "description": "Bytes of ready originals plus generated thumbnails/covers, including expired bytes awaiting cleanup"
              },
              "reserved": {
                "type": "integer",
                "minimum": 0,
                "description": "Other file reservations/deleting data plus pending original/derived objects; each reservation counted once, including cleanup retries"
              },
              "limit": {
                "type": "integer",
                "minimum": 0,
                "description": "Shared originals/derivatives/reservations byte limit; default 20GiB (21474836480)"
              }
            },
            "additionalProperties": false,
            "description": "All file-space and clipboard storage; underlying files and each reservation counted once. Association moves a reservation into stored usage; failed physical deletion keeps quota occupied."
          }
        },
        "required": [
          "ok",
          "files",
          "total",
          "quota"
        ],
        "additionalProperties": false
      },
      "FileRetentionPatch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "expiresAt": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Future Unix seconds within 365 days; null is permanent"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional version from metadata; stale changes return 409"
          }
        },
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "name"
            ]
          },
          {
            "required": [
              "retentionDays"
            ]
          },
          {
            "required": [
              "expiresAt"
            ]
          }
        ],
        "not": {
          "required": [
            "retentionDays",
            "expiresAt"
          ]
        }
      },
      "UploadCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483648
          },
          "mimeType": {
            "type": "string",
            "default": "application/octet-stream"
          },
          "collection": {
            "enum": [
              "files",
              "clipboard"
            ],
            "default": "files"
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          }
        },
        "required": [
          "name",
          "size"
        ],
        "additionalProperties": false
      },
      "UploadCreated": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "uploadId": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "partSize": {
            "type": "integer"
          },
          "totalParts": {
            "type": "integer"
          },
          "expiresAt": {
            "type": "integer",
            "description": "24-hour upload session deadline; NOT saved-file expiry"
          },
          "collection": {
            "enum": [
              "files",
              "clipboard"
            ]
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          }
        },
        "required": [
          "ok",
          "uploadId",
          "fileId",
          "partSize",
          "totalParts",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "UploadStatus": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "uploadId": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "partSize": {
            "type": "integer"
          },
          "totalParts": {
            "type": "integer"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "partNumber": {
                  "type": "integer"
                },
                "size": {
                  "type": "integer"
                }
              },
              "required": [
                "partNumber",
                "size"
              ],
              "additionalProperties": false
            }
          },
          "expiresAt": {
            "type": "integer",
            "description": "Unix seconds"
          }
        },
        "required": [
          "ok",
          "uploadId",
          "fileId",
          "parts"
        ],
        "additionalProperties": false
      },
      "ClipboardItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "text",
              "image",
              "file"
            ]
          },
          "title": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "expiresAt": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Unix seconds; null is permanent/no expiry"
          },
          "permanent": {
            "type": "boolean"
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "version": {
            "type": "integer"
          },
          "file": {
            "$ref": "#/components/schemas/File"
          }
        },
        "required": [
          "id",
          "fileId",
          "kind",
          "title",
          "createdAt",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "ClipboardResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/ClipboardItem"
          },
          "text": {
            "type": "string",
            "description": "Exact full text for text entries only"
          },
          "alreadySaved": {
            "type": "boolean"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "ClipboardList": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClipboardItem"
            }
          },
          "total": {
            "type": "integer"
          },
          "textMaxBytes": {
            "const": 65536
          }
        },
        "required": [
          "ok",
          "items",
          "total"
        ],
        "additionalProperties": false
      },
      "ClipboardTextCreate": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "description": "At most 65536 UTF-8 bytes; exact Unicode/newlines preserved"
          },
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "ClipboardAttach": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          }
        },
        "required": [
          "fileId"
        ],
        "additionalProperties": false
      },
      "ClipboardPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "description": "Text entries only; at most 65536 UTF-8 bytes"
          },
          "retentionDays": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 365,
            "description": "Days from successful save/change; null is permanent. Omitted create fields use saved defaults."
          },
          "expiresAt": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Unix seconds; null is permanent/no expiry"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional version from item metadata"
          }
        },
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "title"
            ]
          },
          {
            "required": [
              "text"
            ]
          },
          {
            "required": [
              "retentionDays"
            ]
          },
          {
            "required": [
              "expiresAt"
            ]
          }
        ],
        "not": {
          "required": [
            "retentionDays",
            "expiresAt"
          ]
        }
      },
      "CredentialMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "deletedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "version": {
            "type": "integer"
          },
          "hasKey": {
            "type": "boolean"
          },
          "hasValue": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "version",
          "hasKey",
          "hasValue"
        ],
        "additionalProperties": false
      },
      "CredentialDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "deletedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "version": {
            "type": "integer"
          },
          "hasKey": {
            "type": "boolean"
          },
          "hasValue": {
            "type": "boolean"
          },
          "key": {
            "type": "string",
            "description": "Literal optional K; empty/multiline/Unicode allowed, no identifier/uniqueness constraint"
          },
          "value": {
            "type": "string",
            "description": "Literal optional V; empty/multiline/Unicode allowed"
          }
        },
        "required": [
          "id",
          "name",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "version",
          "hasKey",
          "hasValue",
          "key",
          "value"
        ],
        "additionalProperties": false
      },
      "CredentialCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Required, trimmed nonblank display name"
          },
          "key": {
            "type": "string",
            "default": "",
            "description": "At most 8192 UTF-8 bytes"
          },
          "value": {
            "type": "string",
            "default": "",
            "description": "At most 8192 UTF-8 bytes"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "CredentialPatch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "key": {
            "type": "string",
            "description": "At most 8192 UTF-8 bytes; omitted retains, explicit empty string clears"
          },
          "value": {
            "type": "string",
            "description": "At most 8192 UTF-8 bytes; omitted retains, explicit empty string clears"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional version from metadata; stale changes return 409"
          }
        },
        "additionalProperties": false,
        "minProperties": 1
      },
      "CredentialMetadataResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/CredentialMetadata"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "CredentialDetailResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/CredentialDetail"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "CredentialsResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Matches under q and selected deleted filter, before pagination"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 200
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "default": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CredentialMetadata"
            },
            "description": "Active metadata from the selected page; empty when deleted=true. Never K/V."
          },
          "deletedItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CredentialMetadata"
            },
            "description": "Recycled metadata from the selected page; empty when deleted=false. Never K/V."
          },
          "activeTotal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Global active matches under q, independent of deleted/limit/offset"
          },
          "deletedTotal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Global recycled matches under q, independent of deleted/limit/offset"
          }
        },
        "required": [
          "ok",
          "items",
          "deletedItems",
          "total",
          "activeTotal",
          "deletedTotal",
          "limit",
          "offset"
        ],
        "additionalProperties": false
      },
      "DeletedResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "deleted": {
            "const": true
          }
        },
        "required": [
          "ok",
          "deleted"
        ],
        "additionalProperties": false
      },
      "MemoryMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Starts at 0; optional last-read version in PATCH detects stale changes (409)"
          },
          "preview": {
            "type": "string",
            "maxLength": 240,
            "description": "First 240 Unicode characters of body; list never contains full body"
          }
        },
        "required": [
          "id",
          "title",
          "createdAt",
          "updatedAt",
          "version",
          "preview"
        ],
        "additionalProperties": false
      },
      "Memory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Starts at 0; optional last-read version in PATCH detects stale changes (409)"
          },
          "body": {
            "type": "string",
            "minLength": 0,
            "maxLength": 65536,
            "description": "At most 65536 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; required on create, omission retains on PATCH"
          }
        },
        "required": [
          "id",
          "title",
          "createdAt",
          "updatedAt",
          "version",
          "body"
        ],
        "additionalProperties": false
      },
      "MemoryCreate": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "body": {
            "type": "string",
            "minLength": 0,
            "maxLength": 65536,
            "description": "At most 65536 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; required on create, omission retains on PATCH"
          }
        },
        "required": [
          "title",
          "body"
        ],
        "additionalProperties": false
      },
      "MemoryPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "body": {
            "type": "string",
            "minLength": 0,
            "maxLength": 65536,
            "description": "At most 65536 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; required on create, omission retains on PATCH"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Starts at 0; optional last-read version in PATCH detects stale changes (409)"
          }
        },
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "title"
            ]
          },
          {
            "required": [
              "body"
            ]
          }
        ]
      },
      "MemoryResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/Memory"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "MemoriesResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "default": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemoryMetadata"
            }
          }
        },
        "required": [
          "ok",
          "total",
          "limit",
          "offset",
          "items"
        ],
        "additionalProperties": false
      },
      "Todo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Starts at 0; optional last-read version in PATCH detects stale changes (409)"
          },
          "notes": {
            "type": "string",
            "minLength": 0,
            "maxLength": 16384,
            "description": "At most 16384 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; omission defaults empty on create and retains on PATCH"
          },
          "completed": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "title",
          "createdAt",
          "updatedAt",
          "version",
          "notes",
          "completed"
        ],
        "additionalProperties": false
      },
      "TodoCreate": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "notes": {
            "type": "string",
            "minLength": 0,
            "maxLength": 16384,
            "description": "At most 16384 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; omission defaults empty on create and retains on PATCH",
            "default": ""
          },
          "completed": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "TodoPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "notes": {
            "type": "string",
            "minLength": 0,
            "maxLength": 16384,
            "description": "At most 16384 UTF-8 bytes. Literal text, including empty string/whitespace/newlines; omission defaults empty on create and retains on PATCH"
          },
          "completed": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Starts at 0; optional last-read version in PATCH detects stale changes (409)"
          }
        },
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "title"
            ]
          },
          {
            "required": [
              "notes"
            ]
          },
          {
            "required": [
              "completed"
            ]
          }
        ]
      },
      "TodoResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/Todo"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "TodosResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "default": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Todo"
            }
          }
        },
        "required": [
          "ok",
          "total",
          "limit",
          "offset",
          "items"
        ],
        "additionalProperties": false
      },
      "TimelineItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "device": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "harness": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "environment": {
            "type": "string",
            "maxLength": 120,
            "default": "",
            "description": "Literal Unicode characters; omission defaults to empty on create"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192,
            "description": "At most 8192 UTF-8 bytes. Required literal description; full text appears in the list"
          },
          "createdAt": {
            "type": "integer",
            "description": "Cloud-generated Unix UTC seconds; website displays Asia/Shanghai through seconds"
          }
        },
        "required": [
          "id",
          "device",
          "harness",
          "environment",
          "description",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "TimelineCreate": {
        "type": "object",
        "properties": {
          "device": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "harness": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Literal Unicode characters; whitespace and newlines preserved, no trimming"
          },
          "environment": {
            "type": "string",
            "maxLength": 120,
            "default": "",
            "description": "Literal Unicode characters; omission defaults to empty on create"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192,
            "description": "At most 8192 UTF-8 bytes. Required literal description; full text appears in the list"
          }
        },
        "required": [
          "device",
          "harness",
          "description"
        ],
        "additionalProperties": false
      },
      "TimelineResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "item": {
            "$ref": "#/components/schemas/TimelineItem"
          }
        },
        "required": [
          "ok",
          "item"
        ],
        "additionalProperties": false
      },
      "TimelineFacets": {
        "type": "object",
        "properties": {
          "devices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "description": "All existing rows, independent of filters/pagination; environments includes empty string when unset"
          },
          "harnesses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "description": "All existing rows, independent of filters/pagination; environments includes empty string when unset"
          },
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "description": "All existing rows, independent of filters/pagination; environments includes empty string when unset"
          }
        },
        "required": [
          "devices",
          "harnesses",
          "environments"
        ],
        "additionalProperties": false
      },
      "TimelineList": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "default": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelineItem"
            }
          },
          "facets": {
            "$ref": "#/components/schemas/TimelineFacets"
          }
        },
        "required": [
          "ok",
          "total",
          "limit",
          "offset",
          "items",
          "facets"
        ],
        "additionalProperties": false
      },
      "ShareCreate": {
        "type": "object",
        "properties": {
          "expiresInHours": {
            "type": "number",
            "minimum": 0.25,
            "maximum": 720,
            "default": 24
          },
          "password": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "format": "password"
          }
        },
        "additionalProperties": false
      },
      "Share": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "passwordProtected": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "expiresAt": {
            "type": "integer",
            "description": "Unix seconds"
          },
          "revokedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Secret URL returned only by creation; disclose only as authorized"
          }
        },
        "required": [
          "id",
          "fileId",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "ShareResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "share": {
            "$ref": "#/components/schemas/Share"
          }
        },
        "required": [
          "ok",
          "share"
        ],
        "additionalProperties": false
      },
      "SharesResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "shares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Share"
            }
          }
        },
        "required": [
          "ok",
          "shares"
        ],
        "additionalProperties": false
      },
      "SharePublicResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "share": {
            "$ref": "#/components/schemas/Share"
          },
          "file": {
            "$ref": "#/components/schemas/File"
          },
          "requiresPassword": {
            "type": "boolean"
          }
        },
        "required": [
          "ok",
          "share",
          "file",
          "requiresPassword"
        ],
        "additionalProperties": false
      },
      "AccountPatch": {
        "type": "object",
        "properties": {
          "currentPassword": {
            "type": "string",
            "format": "password"
          },
          "username": {
            "$ref": "#/components/schemas/Username"
          },
          "password": {
            "$ref": "#/components/schemas/NewPassword"
          },
          "confirmPassword": {
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "currentPassword"
        ],
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "username"
            ]
          },
          {
            "required": [
              "password",
              "confirmPassword"
            ]
          }
        ],
        "dependentRequired": {
          "password": [
            "confirmPassword"
          ],
          "confirmPassword": [
            "password"
          ]
        }
      },
      "AccountResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "username": {
            "type": "string"
          },
          "authenticated": {
            "const": false
          },
          "reauthenticationRequired": {
            "const": true
          }
        },
        "required": [
          "ok",
          "username",
          "authenticated",
          "reauthenticationRequired"
        ],
        "additionalProperties": false
      },
      "Session": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "configured": {
            "type": "boolean"
          },
          "authenticated": {
            "type": "boolean"
          },
          "setupAvailable": {
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "csrfToken": {
            "type": [
              "string",
              "null"
            ]
          },
          "limits": {
            "type": "object"
          }
        },
        "required": [
          "ok",
          "configured",
          "authenticated",
          "limits"
        ]
      },
      "Setup": {
        "type": "object",
        "properties": {
          "username": {
            "$ref": "#/components/schemas/Username"
          },
          "password": {
            "$ref": "#/components/schemas/NewPassword"
          },
          "confirmPassword": {
            "type": "string",
            "format": "password"
          },
          "setupToken": {
            "type": "string",
            "format": "password",
            "description": "Short-lived, single-use deployment link capability; owner-operated only"
          }
        },
        "required": [
          "username",
          "password",
          "confirmPassword",
          "setupToken"
        ],
        "additionalProperties": false
      },
      "Login": {
        "type": "object",
        "properties": {
          "username": {
            "$ref": "#/components/schemas/Username"
          },
          "password": {
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "additionalProperties": false
      },
      "CommunicationMember": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "owner",
              "secretary"
            ]
          },
          "name": {
            "type": "string"
          },
          "device": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "harnesses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastSeenAt": {
            "type": "integer"
          },
          "connected": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "kind",
          "name",
          "device",
          "platform",
          "harnesses",
          "lastSeenAt",
          "connected"
        ],
        "additionalProperties": false
      },
      "CommunicationRegister": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "device": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "platform": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "harnesses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20
          }
        },
        "required": [
          "name",
          "device",
          "platform"
        ],
        "additionalProperties": false
      },
      "CommunicationGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer"
          },
          "updatedAt": {
            "type": "integer"
          },
          "archived": {
            "type": "boolean"
          },
          "lastMessage": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "authorName": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "integer"
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "createdBy",
          "createdAt",
          "updatedAt",
          "archived"
        ],
        "additionalProperties": false
      },
      "CommunicationGroupCreate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "memberIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "uniqueItems": true
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "CommunicationGroupPatch": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "archived": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CommunicationInvite": {
        "type": "object",
        "properties": {
          "memberIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "uniqueItems": true
          }
        },
        "required": [
          "memberIds"
        ],
        "additionalProperties": false
      },
      "CommunicationWorkCreate": {
        "type": "object",
        "properties": {
          "harness": {
            "enum": [
              "codex",
              "claude",
              "opencode"
            ]
          },
          "sessionId": {
            "type": "string",
            "maxLength": 120
          },
          "turnId": {
            "type": "string",
            "maxLength": 120
          },
          "status": {
            "enum": [
              "inProgress",
              "completed",
              "failed",
              "interrupted"
            ]
          },
          "requestSeq": {
            "type": "integer",
            "minimum": 1
          },
          "observedAt": {
            "type": "integer",
            "description": "Unix milliseconds; observation time, not a guarantee of current status"
          }
        },
        "required": [
          "harness",
          "sessionId",
          "turnId",
          "status",
          "requestSeq",
          "observedAt"
        ],
        "additionalProperties": false
      },
      "CommunicationWork": {
        "type": "object",
        "properties": {
          "harness": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "turnId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "requestSeq": {
            "type": "integer"
          },
          "requestText": {
            "type": "string"
          },
          "device": {
            "type": "string"
          },
          "observedAt": {
            "type": "integer"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CommunicationMessageCreate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "uniqueItems": true
          },
          "replyToSeq": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "work": {
            "$ref": "#/components/schemas/CommunicationWorkCreate"
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "CommunicationDelivery": {
        "type": "object",
        "properties": {
          "messageSeq": {
            "type": "integer"
          },
          "memberId": {
            "type": "string"
          },
          "mode": {
            "enum": [
              "think",
              "context"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "status": {
            "enum": [
              "pending",
              "processing",
              "done",
              "ignored",
              "failed"
            ]
          },
          "leaseUntil": {
            "type": "integer"
          },
          "attempts": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "updatedAt": {
            "type": "integer"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CommunicationMessage": {
        "type": "object",
        "properties": {
          "seq": {
            "type": "integer"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "authorId": {
            "type": "string"
          },
          "authorName": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "user",
              "member"
            ]
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "replyToSeq": {
            "type": [
              "integer",
              "null"
            ]
          },
          "rootSeq": {
            "type": "integer"
          },
          "depth": {
            "type": "integer"
          },
          "createdAt": {
            "type": "integer"
          },
          "work": {
            "$ref": "#/components/schemas/CommunicationWork"
          },
          "deliveries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunicationDelivery"
            }
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CommunicationClaim": {
        "type": "object",
        "properties": {
          "claimId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "claimId"
        ],
        "additionalProperties": false
      },
      "CommunicationAcknowledge": {
        "type": "object",
        "properties": {
          "claimId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "processing",
              "done",
              "ignored",
              "failed"
            ]
          },
          "detail": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "claimId",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "responses": {
      "Error400": {
        "description": "Invalid input",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error401": {
        "description": "Missing/invalid/expired/revoked access token, or invalid owner login",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error403": {
        "description": "Owner session required or Origin/CSRF denied",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error404": {
        "description": "Missing/expired/deleted",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error409": {
        "description": "Conflict/quota/setup already complete/upload busy",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error410": {
        "description": "Authorization request expired",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error413": {
        "description": "Body/preview too large",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error415": {
        "description": "Unsupported preview",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error416": {
        "description": "Invalid byte range",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error421": {
        "description": "Incorrect service origin",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error429": {
        "description": "Rate limited; observe Retry-After",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error503": {
        "description": "Owner setup required, maintenance, or temporary storage failure",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/auth/session": {
      "get": {
        "summary": "Public readiness/session state",
        "operationId": "get_api_auth_session",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": []
      }
    },
    "/api/auth/setup": {
      "post": {
        "summary": "Owner personally initializes once through deployment setup link",
        "operationId": "post_api_auth_setup",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Setup"
              }
            }
          }
        }
      }
    },
    "/api/auth/login": {
      "post": {
        "summary": "Website login with username AND password",
        "operationId": "post_api_auth_login",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            }
          }
        }
      }
    },
    "/api/auth/logout": {
      "post": {
        "summary": "Owner only: clear this website session, keep Agent authorizations",
        "operationId": "post_api_auth_logout",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/account": {
      "patch": {
        "summary": "Owner only: verify current password, revoke sessions/Agent authorizations/pending requests",
        "operationId": "patch_api_account",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountPatch"
              }
            }
          }
        }
      }
    },
    "/api/auth/device": {
      "post": {
        "summary": "Public: initiate authorization; show URL/user code, keep device_code secret; first poll waits 5 seconds",
        "operationId": "post_api_auth_device",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceCreated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceCreate"
              }
            }
          }
        }
      }
    },
    "/api/auth/device/token": {
      "post": {
        "summary": "Public: poll with initiating secret; only confirmed request can issue one fixed 90-day Bearer token",
        "operationId": "post_api_auth_device_token",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessToken"
                }
              }
            }
          },
          "400": {
            "description": "Pending: wait interval; denied/expired/invalid or consumed grant: stop; ordinary validation uses uppercase error codes",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DeviceError"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "description": "slow_down: increase interval by 5 seconds and obey Retry-After; general RATE_LIMITED may also apply",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DeviceError"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DevicePoll"
              }
            }
          }
        }
      }
    },
    "/api/authorizations/requests": {
      "get": {
        "summary": "Owner only: read requested authorization from public user code; link alone does not approve",
        "operationId": "get_api_authorizations_requests",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationRequestResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "user_code",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^\\s*[A-HJ-NP-Za-hj-np-z2-9]{4}-?[A-HJ-NP-Za-hj-np-z2-9]{4}\\s*$",
              "description": "Normalized to uppercase XXXX-XXXX; lowercase/omitted hyphen accepted"
            },
            "required": true
          }
        ]
      }
    },
    "/api/authorizations/requests/{id}/approve": {
      "post": {
        "summary": "Owner only: explicitly approve the matching request after reviewing name/device/harness/code and full workspace scope",
        "operationId": "post_api_authorizations_requests_id_approve",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationRequestResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorizationDecision"
              }
            }
          }
        }
      }
    },
    "/api/authorizations/requests/{id}/deny": {
      "post": {
        "summary": "Owner only: explicitly deny the matching request after reviewing name/device/harness/code and full workspace scope",
        "operationId": "post_api_authorizations_requests_id_deny",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationRequestResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorizationDecision"
              }
            }
          }
        }
      }
    },
    "/api/authorizations": {
      "get": {
        "summary": "Owner only: authorization metadata, never access tokens; global active count for collapsed settings",
        "operationId": "get_api_authorizations",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationsResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          }
        ]
      }
    },
    "/api/authorizations/{id}": {
      "get": {
        "summary": "Owner only: read one authorization metadata record",
        "operationId": "get_api_authorizations_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "summary": "Owner only: immediately revoke one authorization; idempotent, others unaffected",
        "operationId": "delete_api_authorizations_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/settings": {
      "get": {
        "summary": "Read persistent file/clipboard/text retention defaults",
        "operationId": "get_api_settings",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingsResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      },
      "patch": {
        "summary": "Change defaults for NEW content only",
        "operationId": "patch_api_settings",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingsResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SettingsPatch"
              }
            }
          }
        }
      }
    },
    "/api/files": {
      "get": {
        "summary": "List/search file-space by default",
        "operationId": "get_api_files",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilesResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "collection",
            "in": "query",
            "schema": {
              "enum": [
                "files",
                "clipboard",
                "all"
              ],
              "default": "files"
            }
          }
        ]
      }
    },
    "/api/files/{id}": {
      "get": {
        "summary": "Read file metadata",
        "operationId": "get_api_files_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "summary": "Set item retention or future expiry; null is permanent",
        "operationId": "patch_api_files_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRetentionPatch"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Permanently delete file, clipboard references and shares",
        "operationId": "delete_api_files_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/files/{id}/download": {
      "get": {
        "summary": "Authenticated attachment download",
        "operationId": "get_api_files_id_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Authenticated attachment download",
        "operationId": "head_api_files_id_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/files/{id}/thumbnail": {
      "get": {
        "summary": "Protected thumbnail; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "get_api_files_id_thumbnail",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Protected thumbnail; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "head_api_files_id_thumbnail",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/share/{secret}/thumbnail": {
      "get": {
        "summary": "Share thumbnail; password session, share/file expiry and revocation still required",
        "operationId": "get_api_share_secret_thumbnail",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Share thumbnail; password session, share/file expiry and revocation still required",
        "operationId": "head_api_share_secret_thumbnail",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/clipboard/{id}/thumbnail": {
      "get": {
        "summary": "Protected clipboard alias for underlying file thumbnail; prefer returned item.file.media URL",
        "operationId": "get_api_clipboard_id_thumbnail",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "CLIPBOARD_NOT_FOUND on invalid clipboard entry; FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Protected clipboard alias for underlying file thumbnail; prefer returned item.file.media URL",
        "operationId": "head_api_clipboard_id_thumbnail",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "CLIPBOARD_NOT_FOUND on invalid clipboard entry; FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/files/{id}/cover": {
      "get": {
        "summary": "Protected cover; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "get_api_files_id_cover",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Protected cover; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "head_api_files_id_cover",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/share/{secret}/cover": {
      "get": {
        "summary": "Share cover; password session, share/file expiry and revocation still required",
        "operationId": "get_api_share_secret_cover",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Share cover; password session, share/file expiry and revocation still required",
        "operationId": "head_api_share_secret_cover",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/clipboard/{id}/cover": {
      "get": {
        "summary": "Protected clipboard alias for underlying file cover; prefer returned item.file.media URL",
        "operationId": "get_api_clipboard_id_cover",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "CLIPBOARD_NOT_FOUND on invalid clipboard entry; FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Protected clipboard alias for underlying file cover; prefer returned item.file.media URL",
        "operationId": "head_api_clipboard_id_cover",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "CLIPBOARD_NOT_FOUND on invalid clipboard entry; FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/files/{id}/preview": {
      "get": {
        "summary": "Protected preview; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "get_api_files_id_preview",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Protected preview; same file auth/expiry; inline no-store, original unchanged",
        "operationId": "head_api_files_id_preview",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "FILE_NOT_FOUND on invalid file; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/share/{secret}/preview": {
      "get": {
        "summary": "Share preview; password session, share/file expiry and revocation still required",
        "operationId": "get_api_share_secret_preview",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Share preview; password session, share/file expiry and revocation still required",
        "operationId": "head_api_share_secret_preview",
        "responses": {
          "200": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              }
            }
          },
          "206": {
            "description": "Same authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified inline media MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Accept-Ranges": {
                "schema": {
                  "const": "bytes"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store; URLs do not grant access"
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Content-Range": {
                "schema": {
                  "type": "string"
                },
                "description": "Returned single byte range"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "description": "SHARE_PASSWORD_REQUIRED: unlock protected share and use its recipient cookie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "description": "SHARE_NOT_FOUND on expired/revoked share; MEDIA_NOT_AVAILABLE for inapplicable/not-ready derivative",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "description": "UNSUPPORTED_PREVIEW: unsafe original media, original attachment download preserved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "description": "INVALID_RANGE: one valid byte range required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/uploads": {
      "post": {
        "summary": "Reserve quota and begin multipart upload in chosen collection",
        "operationId": "post_api_uploads",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCreated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadCreate"
              }
            }
          }
        }
      }
    },
    "/api/uploads/{id}": {
      "get": {
        "summary": "Resume: inspect committed parts and upload-session expiry",
        "operationId": "get_api_uploads_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadStatus"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "summary": "Abort unfinished upload and release confirmed reservation",
        "operationId": "delete_api_uploads_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/uploads/{id}/parts/{number}": {
      "put": {
        "summary": "Upload exact part bytes; committed parts immutable/idempotent",
        "operationId": "put_api_uploads_id_parts_number",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/api/uploads/{id}/complete": {
      "post": {
        "summary": "Save original and start retention; return without waiting for cloud thumbnail/cover generation",
        "operationId": "post_api_uploads_id_complete",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/files/{id}/shares": {
      "get": {
        "summary": "List share metadata; no secret URLs",
        "operationId": "get_api_files_id_shares",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharesResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "summary": "Create authorized share; URL returned once, expiry capped by file",
        "operationId": "post_api_files_id_shares",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareCreate"
              }
            }
          }
        }
      }
    },
    "/api/shares/{id}": {
      "delete": {
        "summary": "Revoke share and recipient sessions",
        "operationId": "delete_api_shares_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/share/{secret}": {
      "get": {
        "summary": "Public share metadata",
        "operationId": "get_api_share_secret",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharePublicResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/share/{secret}/access": {
      "post": {
        "summary": "Unlock recipient share with optional SHARE password",
        "operationId": "post_api_share_secret_access",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "format": "password"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/share/{secret}/download": {
      "get": {
        "summary": "Recipient attachment; protected shares require share cookie",
        "operationId": "get_api_share_secret_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Recipient attachment; protected shares require share cookie",
        "operationId": "head_api_share_secret_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "parameters": [
          {
            "name": "secret",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/clipboard": {
      "get": {
        "summary": "List/search clipboard newest first, metadata only",
        "operationId": "get_api_clipboard",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "enum": [
                "text",
                "image",
                "file"
              ]
            }
          }
        ]
      },
      "post": {
        "summary": "Attach ready file, assign clipboard collection; idempotent by fileId",
        "operationId": "post_api_clipboard",
        "responses": {
          "200": {
            "description": "Existing item returned by idempotent replay",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClipboardAttach"
              }
            }
          }
        }
      }
    },
    "/api/clipboard/text": {
      "post": {
        "summary": "Save exact UTF-8 text with configured/explicit retention",
        "operationId": "post_api_clipboard_text",
        "responses": {
          "200": {
            "description": "Existing item returned by idempotent replay",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "Optional stable request ID for lost-response retry. Same key requires same body; new intentional paste uses new key."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClipboardTextCreate"
              }
            }
          }
        }
      }
    },
    "/api/clipboard/{id}": {
      "get": {
        "summary": "Read clipboard metadata and exact full text when applicable",
        "operationId": "get_api_clipboard_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "summary": "Edit title/text/retention; omitted fields retained",
        "operationId": "patch_api_clipboard_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipboardResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClipboardPatch"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Permanently delete clipboard underlying file and shares",
        "operationId": "delete_api_clipboard_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/clipboard/{id}/download": {
      "get": {
        "summary": "Original attachment/text bytes",
        "operationId": "get_api_clipboard_id_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      },
      "head": {
        "summary": "Original attachment/text bytes",
        "operationId": "head_api_clipboard_id_download",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial attachment/preview bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "One bytes=start-end range"
          }
        ]
      }
    },
    "/api/clipboard/{id}/preview": {
      "get": {
        "summary": "Legacy PNG/JPEG/GIF/WebP image preview <=10MiB (10485760 bytes); no videos or byte ranges; use item.file.media.previewUrl for new media preview",
        "operationId": "get_api_clipboard_id_preview",
        "responses": {
          "200": {
            "description": "Private attachment/preview bytes",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified image MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10485760
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "description": "PREVIEW_TOO_LARGE: legacy image preview exceeds 10MiB; use canonical media.previewUrl or original download",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "UNSAFE_PREVIEW: non-image, unsupported/mismatched image MIME or invalid signature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "head": {
        "summary": "Legacy PNG/JPEG/GIF/WebP image preview <=10MiB (10485760 bytes); no videos or byte ranges; use item.file.media.previewUrl for new media preview",
        "operationId": "head_api_clipboard_id_preview",
        "responses": {
          "200": {
            "description": "Same legacy image authorization/status/headers as GET, with an empty body",
            "headers": {
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "description": "Verified image MIME type"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10485760
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "inline"
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Private, no-store"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "description": "PREVIEW_TOO_LARGE: legacy image preview exceeds 10MiB; use canonical media.previewUrl or original download",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "UNSAFE_PREVIEW: non-image, unsupported/mismatched image MIME or invalid signature",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/credentials": {
      "get": {
        "summary": "Cloud name search and combined active/recycled pagination; createdAt DESC then newest insertion; metadata ONLY, never K/V",
        "operationId": "get_api_credentials",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialsResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 256,
              "default": ""
            },
            "description": "Literal name substring only, ASCII case folding; Unicode case/whitespace preserved, %/_/backslash literal. Empty/omitted matches all. Repeated known parameters fail 400 INVALID_QUERY."
          },
          {
            "name": "deleted",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "description": "true selects recycled, false active. Omission paginates both together once, then splits into items/deletedItems. Does not narrow activeTotal/deletedTotal."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Strict unsigned decimal 1..200 without leading zeros; default 200 preserves original no-parameter list. Existing 200-record cap includes recycle."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            },
            "description": "Strict unsigned decimal nonnegative safe integer without leading zeros (except 0); offset applies once to the selected combined result. Invalid/repeated known parameters fail 400 INVALID_QUERY."
          }
        ]
      },
      "post": {
        "summary": "Create required name; K/V optional, empty/multiline allowed",
        "operationId": "post_api_credentials",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialMetadataResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialCreate"
              }
            }
          }
        }
      }
    },
    "/api/credentials/{id}": {
      "get": {
        "summary": "Read credential name/K/V with valid workspace Bearer access or owner session",
        "operationId": "get_api_credentials_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialDetailResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "summary": "Edit credential; omitted K/V retains, empty string clears",
        "operationId": "patch_api_credentials_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialMetadataResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialPatch"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Recycle credential and disable detail access",
        "operationId": "delete_api_credentials_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/credentials/{id}/restore": {
      "post": {
        "summary": "Restore recycled credential",
        "operationId": "post_api_credentials_id_restore",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialMetadataResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/memories": {
      "get": {
        "summary": "Search title OR body; updatedAt DESC then id DESC; metadata/240-character preview only",
        "operationId": "get_api_memories",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoriesResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 256,
              "default": ""
            },
            "description": "Case-sensitive literal substring in title OR body; %/_ are literal, empty matches all. Repeated known parameters fail 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Strict unsigned decimal 1..200; no duplicate parameter"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            },
            "description": "Strict unsigned decimal safe integer; preserve all filters on subsequent pages"
          }
        ]
      },
      "post": {
        "summary": "Save required title/body as literal text; body may be empty",
        "operationId": "post_api_memories",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryCreate"
              }
            }
          }
        }
      }
    },
    "/api/memories/{id}": {
      "get": {
        "summary": "Read full memory body",
        "operationId": "get_api_memories_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "summary": "Update supplied fields only; body empty clears; optional version detects stale change",
        "operationId": "patch_api_memories_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryPatch"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Permanently delete memory",
        "operationId": "delete_api_memories_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/todos": {
      "get": {
        "summary": "Search title OR notes AND completion; updatedAt DESC then id DESC; full notes included",
        "operationId": "get_api_todos",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TodosResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 256,
              "default": ""
            },
            "description": "Case-sensitive literal substring in title OR notes; %/_ are literal, empty matches all. Repeated known parameters fail 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Strict unsigned decimal 1..200; no duplicate parameter"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            },
            "description": "Strict unsigned decimal safe integer; preserve all filters on subsequent pages"
          },
          {
            "name": "completed",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "description": "Exact lowercase true/false; omission includes both states. ANDed with q."
          }
        ]
      },
      "post": {
        "summary": "Create simple plan; notes/completed omission defaults empty/false",
        "operationId": "post_api_todos",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TodoResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoCreate"
              }
            }
          }
        }
      }
    },
    "/api/todos/{id}": {
      "get": {
        "summary": "Read plan with full notes and completion",
        "operationId": "get_api_todos_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TodoResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "summary": "Update supplied fields only; notes empty clears; completion does not delete/execute",
        "operationId": "patch_api_todos_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TodoResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoPatch"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Permanently delete plan",
        "operationId": "delete_api_todos_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/timeline": {
      "get": {
        "summary": "AND filters; createdAt DESC then id DESC; full descriptions and independent global facets",
        "operationId": "get_api_timeline",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 256,
              "default": ""
            },
            "description": "Case-sensitive literal substring in description; %/_ are literal, empty matches all. Repeated known parameters fail 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Strict unsigned decimal 1..200; no duplicate parameter"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            },
            "description": "Strict unsigned decimal safe integer; preserve all filters on subsequent pages"
          },
          {
            "name": "device",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Exact case-sensitive literal match; omission includes all. Explicit environment= matches unset/empty."
          },
          {
            "name": "harness",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Exact case-sensitive literal match; omission includes all. Explicit environment= matches unset/empty."
          },
          {
            "name": "environment",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Exact case-sensitive literal match; omission includes all. Explicit environment= matches unset/empty."
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Inclusive lower bound on cloud createdAt Unix UTC seconds; from>to fails 400"
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Inclusive upper bound on cloud createdAt Unix UTC seconds"
          }
        ]
      },
      "post": {
        "summary": "Record device/harness description at cloud time; optional environment defaults empty",
        "operationId": "post_api_timeline",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimelineCreate"
              }
            }
          }
        }
      }
    },
    "/api/timeline/{id}": {
      "delete": {
        "summary": "Permanently delete Timeline record",
        "operationId": "delete_api_timeline_id",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "416": {
            "$ref": "#/components/responses/Error416"
          },
          "421": {
            "$ref": "#/components/responses/Error421"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "description": "Required for browser session auth. Direct Bearer business calls do not need it.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/communication/members/me": {
      "put": {
        "summary": "Register this Bearer grant as one device secretary; identity is server-owned",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationMember"
                    }
                  },
                  "required": [
                    "ok",
                    "item"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationRegister"
              }
            }
          }
        }
      }
    },
    "/api/communication/members": {
      "get": {
        "summary": "List registered devices and current identity",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationMember"
                      }
                    },
                    "me": {
                      "$ref": "#/components/schemas/CommunicationMember"
                    }
                  },
                  "required": [
                    "ok",
                    "items",
                    "me"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/communication/groups": {
      "get": {
        "summary": "List joined groups; owner sees all groups",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "archived",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ],
              "default": "0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationGroup"
                      }
                    },
                    "hasMore": {
                      "type": "boolean"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "items",
                    "hasMore",
                    "limit",
                    "offset"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a group including owner and creator; optional UUID provides idempotency",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationGroup"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationMember"
                      }
                    }
                  },
                  "required": [
                    "ok",
                    "item",
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationGroupCreate"
              }
            }
          }
        }
      }
    },
    "/api/communication/groups/{id}": {
      "get": {
        "summary": "Read group and members",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationGroup"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationMember"
                      }
                    }
                  },
                  "required": [
                    "ok",
                    "item",
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Owner changes title or archives group",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationGroup"
                    }
                  },
                  "required": [
                    "ok",
                    "item"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationGroupPatch"
              }
            }
          }
        }
      }
    },
    "/api/communication/groups/{id}/members": {
      "post": {
        "summary": "Invite existing active secretaries; owner cannot be removed",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationMember"
                      }
                    }
                  },
                  "required": [
                    "ok",
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationInvite"
              }
            }
          }
        }
      }
    },
    "/api/communication/groups/{id}/messages": {
      "post": {
        "summary": "Persist once and fan out atomically; mentions never narrow delivery",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationMessage"
                    }
                  },
                  "required": [
                    "ok",
                    "item"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationMessageCreate"
              }
            }
          }
        }
      },
      "get": {
        "summary": "Filtered ascending history; pin until across pages. Counts ignore before/after pagination and count commands as user messages.",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "until",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive snapshot upper sequence; reuse returned snapshotToSeq"
          },
          {
            "name": "authorId",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "enum": [
                "user",
                "member"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive Unix seconds"
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive Unix seconds"
          },
          {
            "name": "includeCounts",
            "in": "query",
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "default": "0"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Literal case-insensitive substring search across full group history"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationMessage"
                      }
                    },
                    "hasMore": {
                      "type": "boolean"
                    },
                    "oldestSeq": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "latestSeq": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "snapshotToSeq": {
                      "type": "integer"
                    },
                    "nextBefore": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "nextAfter": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "totalMatched": {
                      "type": "integer"
                    },
                    "totalUserMessages": {
                      "type": "integer"
                    },
                    "previousUserMessage": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/CommunicationMessage"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "items",
                    "hasMore",
                    "snapshotToSeq"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/communication/groups/{id}/receipts": {
      "get": {
        "summary": "Read delivery updates for selected messages without refetching message bodies",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "seqs",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated 1–100 positive message sequences",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommunicationDelivery"
                      }
                    }
                  },
                  "required": [
                    "ok",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/communication/events": {
      "get": {
        "summary": "Owner-only same-origin WebSocket invalidation stream; resume with cursor",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "Session": []
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "101": {
            "description": "WebSocket upgrade. JSON frames: ready {cursor,reset}, change {cursor,change:{type,groupId?,messageSeq?}}, caught-up {cursor}, pong. No message bodies. Send ping every 30 seconds. When reset=true, refetch HTTP state; otherwise replay ordered notifications. Session ended closes with code 4001."
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/communication/inbox": {
      "get": {
        "summary": "Secretary pending/processing deliveries; polling also heartbeats this device",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "messageSeq": {
                            "type": "integer"
                          },
                          "memberId": {
                            "type": "string"
                          },
                          "mode": {
                            "enum": [
                              "think",
                              "context"
                            ]
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "status": {
                            "enum": [
                              "pending",
                              "processing",
                              "done",
                              "ignored",
                              "failed"
                            ]
                          },
                          "leaseUntil": {
                            "type": "integer"
                          },
                          "attempts": {
                            "type": "integer"
                          },
                          "detail": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "integer"
                          },
                          "message": {
                            "$ref": "#/components/schemas/CommunicationMessage"
                          }
                        },
                        "required": [
                          "messageSeq",
                          "memberId",
                          "mode",
                          "required",
                          "status",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "serverTime": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "items",
                    "serverTime"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/communication/inbox/{seq}/claim": {
      "post": {
        "summary": "Claim delivery for 90 seconds; stable claimId recovers a lost response",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "seq",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationDelivery"
                    },
                    "claimId": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "required": [
                    "ok",
                    "item",
                    "claimId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationClaim"
              }
            }
          }
        }
      }
    },
    "/api/communication/inbox/{seq}": {
      "patch": {
        "summary": "Renew processing lease or finish; required mentions need an actual linked reply before done",
        "tags": [
          "Communication"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "seq",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "item": {
                      "$ref": "#/components/schemas/CommunicationDelivery"
                    }
                  },
                  "required": [
                    "ok",
                    "item"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Structured error; see error.code. 401 expired/revoked, 404 not a member, 409 conflicting ID/lease/required reply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationAcknowledge"
              }
            }
          }
        }
      }
    }
  }
}
