{"openapi":"3.1.0","info":{"title":"Numa Spaces Control Plane","description":"Identity, client key, device, recovery, encrypted file-tree and direct upload control-plane contract","license":{"name":""},"version":"0.5.0"},"paths":{"/api/v1/account/deletion":{"post":{"tags":["account"],"operationId":"request_deletion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"delete":{"tags":["account"],"operationId":"cancel_deletion","responses":{"200":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/email-change/complete":{"post":{"tags":["account"],"operationId":"complete_email_change","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeCompleteRequest"}}},"required":true},"responses":{"200":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/email-change/requests":{"post":{"tags":["account"],"operationId":"request_email_change","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/exports":{"post":{"tags":["account"],"operationId":"request_export","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/exports/{export_id}":{"get":{"tags":["portability"],"operationId":"account_export_status","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportStatus"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/exports/{export_id}/cancel":{"post":{"tags":["portability"],"operationId":"cancel_account_export","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportStatus"}}}}}}},"/api/v1/account/exports/{export_id}/complete":{"post":{"tags":["portability"],"operationId":"complete_account_export","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportCompleteRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportStatus"}}}}}}},"/api/v1/account/exports/{export_id}/upload":{"post":{"tags":["portability"],"operationId":"begin_account_export_upload","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportUploadRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportUpload"}}}}}}},"/api/v1/account/exports/{export_id}/upload/renew":{"post":{"tags":["portability"],"operationId":"renew_account_export_upload","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportUploadRenewRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportUpload"}}}}}}},"/api/v1/account/exports/{export_id}/url":{"post":{"tags":["portability"],"operationId":"account_export_download","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountExportDownload"}}}}}}},"/api/v1/account/mfa/passkeys/auth/begin":{"post":{"tags":["mfa"],"operationId":"begin_passkey_auth","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyAuthBeginResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/mfa/passkeys/auth/complete":{"post":{"tags":["mfa"],"operationId":"complete_passkey_auth","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyAuthCompleteRequest"}}},"required":true},"responses":{"201":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/mfa/passkeys/begin":{"post":{"tags":["mfa"],"operationId":"begin_passkey","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyBeginResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/account/mfa/passkeys/complete":{"post":{"tags":["mfa"],"operationId":"complete_passkey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyCompleteRequest"}}},"required":true},"responses":{"201":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/context":{"get":{"tags":["identity"],"operationId":"auth_context","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthContextResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/registrations":{"post":{"tags":["identity"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/registrations/{id}/complete":{"post":{"tags":["identity"],"operationId":"complete_registration","parameters":[{"name":"id","in":"path","description":"Registration identity or verification challenge identity","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRegistrationRequest"}}},"required":true},"responses":{"201":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/sessions":{"get":{"tags":["identity"],"operationId":"list_sessions","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionResponse"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"tags":["identity"],"operationId":"login","parameters":[{"name":"x-device-id","in":"header","description":"Unique device identifier for session-device binding","required":false,"schema":{"type":["string","null"],"format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/sessions/current":{"delete":{"tags":["identity"],"operationId":"logout","responses":{"204":{"description":""},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/sessions/refresh":{"post":{"tags":["identity"],"operationId":"refresh","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/auth/sessions/{id}":{"delete":{"tags":["identity"],"operationId":"revoke_session","parameters":[{"name":"id","in":"path","description":"Session identity","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/crypto/key-bundles":{"get":{"tags":["crypto"],"operationId":"get","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBundleResponse"}}}}}},"post":{"tags":["crypto"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBundleRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBundleResponse"}}}}}}},"/api/v1/crypto/key-bundles/password":{"put":{"tags":["crypto"],"operationId":"rewrap_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRewrapRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBundleResponse"}}}}}}},"/api/v1/crypto/recoveries":{"post":{"tags":["recovery"],"operationId":"begin_recovery","responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryChallengeResponse"}}}}}}},"/api/v1/crypto/recoveries/complete":{"post":{"tags":["recovery"],"operationId":"complete_recovery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCompleteRequest"}}},"required":true},"responses":{"200":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/crypto/recovery-methods":{"post":{"tags":["recovery"],"operationId":"complete_setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverySetupRequest"}}},"required":true},"responses":{"201":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/crypto/recovery-methods/challenges":{"post":{"tags":["recovery"],"operationId":"begin_setup","responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryChallengeResponse"}}}}}}},"/api/v1/crypto/recovery-status":{"get":{"tags":["recovery"],"operationId":"status","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryStatusResponse"}}}}}}},"/api/v1/devices":{"get":{"tags":["devices"],"operationId":"list","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceResponse"}}}}}}},"post":{"tags":["devices"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}}}}},"/api/v1/devices/enrollments":{"post":{"tags":["devices"],"operationId":"start_enrollment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentResponse"}}}}}}},"/api/v1/devices/enrollments/{id}/grants":{"post":{"tags":["devices"],"operationId":"complete_enrollment","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}}}}},"/api/v1/devices/{id}":{"delete":{"tags":["devices"],"operationId":"revoke","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/directory/recipients/lookup":{"post":{"tags":["directory"],"operationId":"lookup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientLookupRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientLookupResponse"}}}}}}},"/api/v1/directory/snapshot":{"get":{"tags":["directory"],"operationId":"snapshot","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedSnapshotResponse"}}}}}}},"/api/v1/directory/transparency/checkpoints":{"get":{"tags":["directory"],"operationId":"checkpoints","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TransparencyCheckpointResponse"}}}}}}}},"/api/v1/directory/transparency/status":{"get":{"tags":["directory"],"operationId":"transparency_status","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransparencyMonitorSnapshot"}}}}}}},"/api/v1/directory/verification-key":{"get":{"tags":["directory"],"operationId":"verification_key","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryVerificationKeyResponse"}}}}}}},"/api/v1/downloads/{file_version_id}/url":{"post":{"tags":["downloads"],"operationId":"issue_url","parameters":[{"name":"file_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrlRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrlResponse"}}}}}}},"/api/v1/nodes/{node_id}":{"patch":{"tags":["nodes"],"operationId":"update","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeUpdateRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeResponse"}}}}}}},"/api/v1/nodes/{node_id}/abandon-upload":{"post":{"tags":["nodes"],"operationId":"abandon_upload","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":""}}}},"/api/v1/nodes/{node_id}/public-link-setup":{"get":{"tags":["versions"],"operationId":"public_link_setup","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkSetupResponse"}}}}}}},"/api/v1/nodes/{node_id}/trash":{"post":{"tags":["trash"],"operationId":"trash","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashMutationRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashResponse"}}}}}}},"/api/v1/nodes/{node_id}/versions":{"get":{"tags":["versions"],"operationId":"list","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}},{"name":"cursor","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionPageResponse"}}}}}}},"/api/v1/nodes/{node_id}/versions/{version_id}/restore":{"post":{"tags":["versions"],"operationId":"restore","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionRestoreResponse"}}}}}}},"/api/v1/platform-admin/admin-change-requests":{"get":{"tags":["platform administration"],"operationId":"list_admin_change_requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChangeRequestsResponse"}}}}}}},"/api/v1/platform-admin/admin-change-requests/{request_id}/approve":{"post":{"tags":["platform administration"],"operationId":"approve_admin_change","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChangeInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformAdminChangeRequest"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/platform-admin/admins":{"get":{"tags":["platform administration"],"operationId":"list_admins","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminsResponse"}}}}}}},"/api/v1/platform-admin/admins/{user_id}":{"put":{"tags":["platform administration"],"operationId":"grant_admin","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChangeInput"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformAdminChangeRequest"}}}}}},"delete":{"tags":["platform administration"],"operationId":"revoke_admin","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChangeInput"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformAdminChangeRequest"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/platform-admin/audit":{"get":{"tags":["platform administration"],"operationId":"list_audit","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditResponse"}}}}}}},"/api/v1/platform-admin/contacts":{"get":{"tags":["platform administration"],"operationId":"list_contacts","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsResponse"}}}}}}},"/api/v1/platform-admin/contacts/{kind}":{"put":{"tags":["platform administration"],"operationId":"update_contact","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformContact"}}}}}}},"/api/v1/platform-admin/restrictions":{"get":{"tags":["platform administration"],"operationId":"list_restrictions","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestrictionsResponse"}}}}}},"post":{"tags":["platform administration"],"operationId":"create_restriction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestrictionInput"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRestriction"}}}}}}},"/api/v1/platform-admin/users":{"get":{"tags":["platform administration"],"operationId":"list_users","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/platform-admin/users/{user_id}/control":{"put":{"tags":["platform administration"],"operationId":"update_user_control","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserControlInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUserControl"}}}}}}},"/api/v1/platform-admin/users/{user_id}/revoke-sessions":{"post":{"tags":["platform administration"],"operationId":"revoke_user_sessions","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRevocationInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRevocation"}}}}}}},"/api/v1/providers":{"get":{"tags":["providers"],"operationId":"list_all","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderListResponse"}}}}}}},"/api/v1/providers/{provider_id}":{"get":{"tags":["providers"],"operationId":"get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSummary"}}}}}},"delete":{"tags":["providers"],"operationId":"revoke","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSummary"}}}}}}},"/api/v1/providers/{provider_id}/credentials/rotate":{"post":{"tags":["providers"],"operationId":"rotate","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialRotationRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSummary"}}}}}}},"/api/v1/providers/{provider_id}/validate":{"post":{"tags":["providers"],"operationId":"validate","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderValidationResponse"}}}}}}},"/api/v1/public-links/{capability_id}":{"get":{"tags":["public-links"],"operationId":"bootstrap","parameters":[{"name":"capability_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkBootstrapResponse"}}}}}}},"/api/v1/public-links/{capability_id}/open":{"post":{"tags":["public-links"],"operationId":"open","parameters":[{"name":"capability_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkOpenRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkOpenResponse"}}}}}}},"/api/v1/public-links/{capability_id}/reports":{"post":{"tags":["abuse"],"operationId":"report","parameters":[{"name":"capability_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbuseReportRequest"}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbuseReportResponse"}}}}}}},"/api/v1/public-links/{link_id}":{"delete":{"tags":["public-links"],"operationId":"revoke","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkSummary"}}}}}}},"/api/v1/share-invitations/{invitation_id}/claim":{"post":{"tags":["sharing"],"operationId":"claim_invitation","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInvitationRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationClaimResponse"}}}}}}},"/api/v1/shares/incoming":{"get":{"tags":["sharing"],"operationId":"incoming","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShareSummary"}}}}}}}},"/api/v1/shares/outgoing":{"get":{"tags":["sharing"],"operationId":"outgoing","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShareSummary"}}}}}}}},"/api/v1/shares/{share_id}":{"delete":{"tags":["sharing"],"operationId":"revoke","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSummary"}}}}}}},"/api/v1/shares/{share_id}/accept":{"post":{"tags":["sharing"],"operationId":"accept","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptShareRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareAcceptResponse"}}}}}}},"/api/v1/shares/{share_id}/grants/{device_id}":{"get":{"tags":["sharing"],"operationId":"grant","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantResponse"}}}}}}},"/api/v1/shares/{share_id}/invitations/{invitation_id}/bind":{"post":{"tags":["sharing"],"operationId":"bind_invitation","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindInvitationRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSummary"}}}}}}},"/api/v1/trash/{trash_id}":{"delete":{"tags":["trash"],"operationId":"delete","parameters":[{"name":"trash_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashResponse"}}}}}}},"/api/v1/trash/{trash_id}/restore":{"post":{"tags":["trash"],"operationId":"restore","parameters":[{"name":"trash_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashResponse"}}}}}}},"/api/v1/uploads":{"post":{"tags":["uploads"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCreateRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCreatedResponse"}}}}}}},"/api/v1/uploads/multipart":{"post":{"tags":["uploads"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCreateRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCreatedResponse"}}}}}}},"/api/v1/uploads/{upload_id}":{"delete":{"tags":["uploads"],"operationId":"cancel","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCanceledResponse"}}}}}}},"/api/v1/uploads/{upload_id}/complete":{"post":{"tags":["uploads"],"operationId":"complete","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteResponse"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteResponse"}}}}}}},"/api/v1/uploads/{upload_id}/multipart":{"delete":{"tags":["uploads"],"operationId":"cancel","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCanceledResponse"}}}}}}},"/api/v1/uploads/{upload_id}/multipart/complete":{"post":{"tags":["uploads"],"operationId":"complete","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCompleteRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCompleteResponse"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartCompleteResponse"}}}}}}},"/api/v1/uploads/{upload_id}/parts":{"get":{"tags":["uploads"],"operationId":"list_parts","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartPartsResponse"}}}}}}},"/api/v1/uploads/{upload_id}/parts/{part_number}/url":{"post":{"tags":["uploads"],"operationId":"refresh_part_url","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"part_number","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartPartUrlRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipartPartResponse"}}}}}}},"/api/v1/workspace-invitations/{invitation_id}/accept":{"post":{"tags":["workspaces"],"operationId":"accept","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvitationRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipResponse"}}}}}}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"operationId":"list","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}}}},"post":{"tags":["workspaces"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}":{"delete":{"tags":["workspaces"],"operationId":"delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeleteResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/activity":{"get":{"tags":["activity"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/favorites":{"get":{"tags":["favorites"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoritesResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/favorites/{node_id}":{"put":{"tags":["favorites"],"operationId":"set","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/invitations":{"post":{"tags":["workspaces"],"operationId":"invite","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/key-grants":{"post":{"tags":["workspaces"],"operationId":"key_grant","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceKeyGrantRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceKeyGrantResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/members":{"get":{"tags":["workspaces"],"operationId":"members","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipListResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/members/{user_id}":{"delete":{"tags":["workspaces"],"operationId":"remove","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRemovalResponse"}}}}}},"patch":{"tags":["workspaces"],"operationId":"change_role","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRoleRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration":{"get":{"tags":["migration"],"operationId":"status","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/canary/capability":{"get":{"tags":["migration"],"operationId":"canary_capability","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationCanaryCapabilityResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/canary/complete":{"post":{"tags":["migration"],"operationId":"complete_canary","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationCanaryCompletionRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/history":{"get":{"tags":["migration"],"operationId":"history","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationHistoryResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/import/validate":{"post":{"tags":["portability"],"operationId":"validate_manifest","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportValidationRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortableValidation"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/plan":{"post":{"tags":["migration"],"operationId":"plan","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationPlanRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/reconcile":{"post":{"tags":["migration"],"operationId":"reconcile","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/migration/{action}":{"post":{"tags":["migration"],"operationId":"action","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/nodes":{"get":{"tags":["nodes"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":["string","null"],"format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}},{"name":"cursor","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodePageResponse"}}}}}},"post":{"tags":["nodes"],"operationId":"create","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeCreateRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/nodes/bulk":{"post":{"tags":["nodes"],"operationId":"create_bulk","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFolderCreateRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkNodeCreateResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/nodes/{node_id}/copy":{"post":{"tags":["copy"],"operationId":"copy","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/placements/drain":{"post":{"tags":["placement"],"operationId":"begin_drain","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementDrainRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementRecord"}}}}}}},"/api/v1/workspaces/{workspace_id}/placements/drain/complete":{"post":{"tags":["placement"],"operationId":"complete_drain","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementDrainRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementRecord"}}}}}}},"/api/v1/workspaces/{workspace_id}/placements/retire":{"post":{"tags":["placement"],"operationId":"retire","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementDrainRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementRecord"}}}}}}},"/api/v1/workspaces/{workspace_id}/placements/rollback":{"post":{"tags":["placement"],"operationId":"rollback","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementDrainRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementRecord"}}}}}}},"/api/v1/workspaces/{workspace_id}/providers":{"get":{"tags":["providers"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderListResponse"}}}}}},"post":{"tags":["providers"],"operationId":"create","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCreateRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSummary"}}}}}}},"/api/v1/workspaces/{workspace_id}/providers/{provider_id}/placement":{"post":{"tags":["providers"],"operationId":"placement","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/providers/{provider_id}/presign":{"post":{"tags":["providers"],"operationId":"presign","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopedPresign"}}}}}}},"/api/v1/workspaces/{workspace_id}/public-links":{"get":{"tags":["public-links"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicLinkSummary"}}}}}}},"post":{"tags":["public-links"],"operationId":"create","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicLinkInput"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkCreateResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/quota":{"get":{"tags":["quota"],"operationId":"get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaSnapshot"}}}}}},"put":{"tags":["quota"],"operationId":"update","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaUpdateInput"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaSnapshot"}}}},"403":{"description":"Owner or administrator role required"},"422":{"description":"Limit is outside policy or below current usage"}}}},"/api/v1/workspaces/{workspace_id}/recents":{"get":{"tags":["recents"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentsResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recents/{node_id}":{"post":{"tags":["recents"],"operationId":"record","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentAccessResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/reconciliation":{"get":{"tags":["reconciliation"],"operationId":"status","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationStatus"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/drills":{"post":{"tags":["workspace-recovery"],"operationId":"drill","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryDrillResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/policy":{"get":{"tags":["workspace-recovery"],"operationId":"policy","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryPolicyResponse"}}}}}},"post":{"tags":["workspace-recovery"],"operationId":"enable","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableRecoveryRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryPolicyResponse"}}}}}},"delete":{"tags":["workspace-recovery"],"operationId":"revoke","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeRecoveryRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryPolicyResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/policy/rotate":{"post":{"tags":["workspace-recovery"],"operationId":"rotate","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateRecoveryRequest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryPolicyResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/requests":{"post":{"tags":["workspace-recovery"],"operationId":"begin_request","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRequestResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/requests/{request_id}/approvals":{"post":{"tags":["workspace-recovery"],"operationId":"approve","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryApprovalRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryApprovalResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/recovery/requests/{request_id}/complete":{"post":{"tags":["workspace-recovery"],"operationId":"complete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCompletionResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/shares":{"post":{"tags":["sharing"],"operationId":"create","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShareRequest"}}},"required":true},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareCreateResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/trash":{"get":{"tags":["trash"],"operationId":"list","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}},{"name":"cursor","in":"query","required":false,"schema":{"type":["integer","null"],"minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashListResponse"}}}}}}},"/api/v1/workspaces/{workspace_id}/trash/empty":{"post":{"tags":["trash"],"operationId":"empty","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashEmptyResponse"}}}}}}},"/health/live":{"get":{"tags":["health"],"operationId":"live","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthSchema"}}}}}}},"/health/ready":{"get":{"tags":["health"],"operationId":"ready","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthSchema"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthSchema"}}}}}}}},"components":{"schemas":{"AbuseReportRequest":{"type":"object","required":["reason"],"properties":{"note":{"type":["string","null"]},"reason":{"type":"string"}}},"AbuseReportResponse":{"type":"object","required":["report_id","status"],"properties":{"report_id":{"type":"string","format":"uuid"},"status":{"type":"string"}}},"AcceptInvitationRequest":{"type":"object","required":["invitation_token"],"properties":{"invitation_token":{"type":"string"}}},"AcceptShareRequest":{"type":"object","required":["device_id"],"properties":{"device_id":{"type":"string","format":"uuid"}}},"AcceptedResponse":{"type":"object","required":["status"],"properties":{"status":{"type":"string"},"test_proof":{"type":["string","null"]}}},"AccountExportCompleteRequest":{"type":"object","required":["format_version","object_count","ciphertext_bytes","manifest_digest","ciphertext_sha256","upload_lease_token"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","minimum":0},"ciphertext_sha256":{"type":"string","description":"SHA-256 of the complete opaque package, encoded as `sha256:<hex>`."},"format_version":{"type":"string"},"manifest_digest":{"type":"string"},"object_count":{"type":"integer","format":"int64","minimum":0},"upload_lease_token":{"type":"string","format":"uuid","description":"Durable upload ownership returned by the upload capability endpoint.\nMissing or stale ownership must fail closed before the export is ready."}}},"AccountExportDownload":{"type":"object","required":["export_id","storage_object_id","method","url","expires_at","required_content_length","ciphertext_bytes","ciphertext_sha256"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","minimum":0},"ciphertext_sha256":{"type":"string"},"expires_at":{"type":"integer","format":"int64"},"export_id":{"type":"string","format":"uuid"},"method":{"type":"string"},"required_content_length":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"url":{"type":"string"}}},"AccountExportStatus":{"type":"object","required":["export_id","state","object_count","ciphertext_bytes","client_verification_required","download_available","created_at","updated_at","expires_at"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","minimum":0},"ciphertext_sha256":{"type":["string","null"]},"client_verification_required":{"type":"boolean"},"created_at":{"type":"integer","format":"int64"},"download_available":{"type":"boolean"},"expires_at":{"type":"integer","format":"int64"},"export_id":{"type":"string","format":"uuid"},"manifest_digest":{"type":["string","null"]},"object_count":{"type":"integer","format":"int64","minimum":0},"state":{"type":"string"},"updated_at":{"type":"integer","format":"int64"}}},"AccountExportUpload":{"type":"object","required":["export_id","storage_object_id","upload_lease_token","method","url","expires_at","required_content_length"],"properties":{"expires_at":{"type":"integer","format":"int64"},"export_id":{"type":"string","format":"uuid"},"method":{"type":"string"},"required_checksum_sha256":{"type":["string","null"]},"required_content_length":{"type":"integer","format":"int64","minimum":0},"required_metadata_checksum_sha256":{"type":["string","null"]},"storage_object_id":{"type":"string","format":"uuid"},"upload_lease_token":{"type":"string","format":"uuid"},"url":{"type":"string"}}},"AccountExportUploadRenewRequest":{"type":"object","required":["upload_lease_token"],"properties":{"upload_lease_token":{"type":"string","format":"uuid","description":"Durable upload ownership returned by the previous upload capability.\nRenewal with a missing, stale or already-replaced token fails closed."}}},"AccountExportUploadRequest":{"type":"object","required":["ciphertext_bytes","ciphertext_sha256"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","description":"Size of the opaque client-encrypted export package.","minimum":0},"ciphertext_sha256":{"type":"string","description":"SHA-256 of the complete opaque package, encoded as `sha256:<hex>`."}}},"ActivityQuery":{"type":"object","properties":{"limit":{"type":["integer","null"],"minimum":0}}},"ActivityResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}}}},"AddressingStyle":{"type":"string","enum":["path","virtual_host"]},"AdminChangeInput":{"type":"object","required":["confirm"],"properties":{"confirm":{"type":"boolean"}}},"AdminChangeRequestsResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformAdminChangeRequest"}}}},"AdminsResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformAdminPrincipal"}}}},"AllowCredentialSchema":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"transports":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string"}}},"AuditEvent":{"type":"object","required":["id","action","user_id","outcome","correlation_id","created_at"],"properties":{"action":{"type":"string"},"correlation_id":{"type":"string","format":"uuid"},"created_at":{"type":"integer","format":"int64"},"id":{"type":"string","format":"uuid"},"outcome":{"type":"string"},"target_id":{"type":["string","null"],"format":"uuid"},"user_id":{"type":"string","format":"uuid"},"workspace_id":{"type":["string","null"],"format":"uuid"}}},"AuditQuery":{"type":"object","properties":{"limit":{"type":["integer","null"],"minimum":0}}},"AuditResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformAuditEvent"}}}},"AuthContextResponse":{"type":"object","required":["user_id","device_id","session_id","platform_admin"],"properties":{"device_id":{"type":"string","format":"uuid"},"key_generation":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/KeyGenerationInfo"}]},"platform_admin":{"type":"boolean"},"session_id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"}}},"BindInvitationRequest":{"type":"object","required":["recipient_user_id","permissions","grants"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/GrantRequest"}},"permissions":{"type":"array","items":{"type":"string"}},"recipient_user_id":{"type":"string","format":"uuid"}}},"BulkFolderCreateItemRequest":{"type":"object","required":["client_id","kind","metadata_envelope","name_token"],"properties":{"client_id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"metadata_envelope":{"type":"string"},"name_token":{"type":"string"},"node_key_envelope":{"type":["string","null"]},"parent_client_id":{"type":["string","null"],"format":"uuid"},"parent_id":{"type":["string","null"],"format":"uuid"}}},"BulkFolderCreateRequest":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BulkFolderCreateItemRequest"}}}},"BulkNodeCreateResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BulkNodeResponse"}}}},"BulkNodeResponse":{"type":"object","required":["client_id","node"],"properties":{"client_id":{"type":"string","format":"uuid"},"node":{"$ref":"#/components/schemas/NodeResponse"}}},"CapabilityReport":{"type":"object","required":["report_version","mandatory_pass","presigned_put","presigned_get","presigned_head","presigned_part","multipart","range_requests","checksums","cors","conditional_requests","server_side_copy","max_object_size","observed_at","expires_at"],"properties":{"bucket_fingerprint":{"type":"string"},"checksums":{"type":"boolean"},"conditional_requests":{"type":"boolean"},"cors":{"type":"boolean"},"endpoint_fingerprint":{"type":"string"},"expires_at":{"type":"integer","format":"int64"},"mandatory_pass":{"type":"boolean"},"max_object_size":{"type":"integer","format":"int64","minimum":0},"multipart":{"type":"boolean"},"observed_at":{"type":"integer","format":"int64"},"presigned_get":{"type":"boolean"},"presigned_head":{"type":"boolean"},"presigned_part":{"type":"boolean"},"presigned_put":{"type":"boolean"},"range_requests":{"type":"boolean"},"report_version":{"type":"integer","format":"int32","minimum":0},"server_side_copy":{"type":"boolean"}}},"ChangeRoleRequest":{"type":"object","required":["role"],"properties":{"role":{"type":"string"}}},"CiphertextEvidence":{"type":"object","required":["size","sha256"],"properties":{"sha256":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}},"size":{"type":"integer","format":"int64","minimum":0}}},"ClaimInvitationRequest":{"type":"object","required":["claim_token"],"properties":{"claim_token":{"type":"string"}}},"ContactInput":{"type":"object","required":["destination","enabled"],"properties":{"destination":{"type":"string"},"enabled":{"type":"boolean"}}},"ContactsResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformContact"}}}},"CopyRequest":{"type":"object","required":["metadata_envelope","name_token","wrapped_fvk","node_key_envelope"],"properties":{"metadata_envelope":{"type":"string"},"name_token":{"type":"string"},"node_key_envelope":{"type":"string"},"target_parent_id":{"type":["string","null"],"format":"uuid"},"wrapped_fvk":{"type":"string"}}},"CopyResponse":{"type":"object","required":["node_id","file_version_id","storage_object_id","reference_count"],"properties":{"file_version_id":{"type":"string","format":"uuid"},"node_id":{"type":"string","format":"uuid"},"reference_count":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"}}},"CreatePublicLinkInput":{"type":"object","required":["link_id","capability_id","file_version_id","wrapped_key","wrapped_fvk"],"properties":{"capability_id":{"type":"string"},"expires_at":{"type":["integer","null"],"format":"int64"},"file_version_id":{"type":"string","format":"uuid"},"link_id":{"type":"string","format":"uuid"},"max_downloads":{"type":["integer","null"],"format":"int64","minimum":0},"password_salt":{"type":["string","null"]},"password_verifier":{"type":["string","null"]},"wrapped_fvk":{"type":"string"},"wrapped_key":{"type":"string"}}},"CreateShareRequest":{"type":"object","required":["share_id","node_id","permissions"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/GrantRequest"}},"node_id":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"recipient_email":{"type":["string","null"]},"recipient_user_id":{"type":["string","null"],"format":"uuid"},"share_id":{"type":"string","format":"uuid"}}},"CreateWorkspaceRequest":{"type":"object","required":["workspace_id","metadata_envelope","node_key_envelope","name_token"],"properties":{"metadata_envelope":{"type":"string"},"name_token":{"type":"string"},"node_key_envelope":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"CredentialInput":{"type":"object","description":"This is a reference to a managed secret, never an access key or secret key.\nIt is deliberately not `Debug`/`Serialize` so it cannot cross the API boundary.","properties":{"vault_reference":{"type":"string","description":"Legacy/operator-only opaque reference. Consumer onboarding uses the\none-shot fields below and never supplies this value."},"version":{"type":"string"}}},"CredentialMetadata":{"type":"object","required":["credential_id","version","state","created_at"],"properties":{"created_at":{"type":"integer","format":"int64"},"credential_id":{"type":"string","format":"uuid"},"state":{"$ref":"#/components/schemas/CredentialState"},"version":{"type":"string"}}},"CredentialState":{"type":"string","enum":["active","revoked"]},"DeleteRequest":{"type":"object","required":["step_up_password"],"properties":{"step_up_password":{"type":"string"}}},"DeviceRequest":{"type":"object","required":["device_id","signing_public_key","hpke_public_key"],"properties":{"device_id":{"type":"string","format":"uuid"},"hpke_public_key":{"type":"string"},"signing_public_key":{"type":"string"}}},"DeviceResponse":{"type":"object","required":["device_id","status","signing_public_key","hpke_public_key","directory_revision"],"properties":{"device_id":{"type":"string","format":"uuid"},"directory_revision":{"type":"integer","format":"int64","minimum":0},"hpke_public_key":{"type":"string"},"signing_public_key":{"type":"string"},"status":{"type":"string"}}},"DirectoryDeviceResponse":{"type":"object","required":["device_id","status","directory_revision","signing_public_key","hpke_public_key"],"properties":{"device_id":{"type":"string","format":"uuid"},"directory_revision":{"type":"integer","format":"int64","minimum":0},"hpke_public_key":{"type":"string"},"signing_public_key":{"type":"string"},"status":{"type":"string"}}},"DirectoryVerificationKeyResponse":{"type":"object","required":["version","algorithm","signer_public_key"],"properties":{"algorithm":{"type":"string"},"signer_public_key":{"type":"string"},"version":{"type":"integer","format":"int32","minimum":0}}},"DownloadRange":{"type":"object","required":["start","end"],"properties":{"end":{"type":"integer","format":"int64","minimum":0},"start":{"type":"integer","format":"int64","minimum":0}}},"DownloadRequestHeader":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"}}},"DownloadUrlRequest":{"type":"object","properties":{"end":{"type":["integer","null"],"format":"int64","minimum":0},"start":{"type":["integer","null"],"format":"int64","description":"Inclusive ciphertext byte offsets. Omit both values for a full-object capability.","minimum":0}}},"DownloadUrlResponse":{"type":"object","required":["file_version_id","storage_object_id","method","url","expires_at","request_headers","required_content_length","ciphertext_size","chunk_size","chunk_count","format_version","wrapped_fvk"],"properties":{"chunk_count":{"type":"integer","format":"int64","minimum":0},"chunk_size":{"type":"integer","format":"int32","minimum":0},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"expires_at":{"type":"integer","format":"int64"},"file_version_id":{"type":"string","format":"uuid"},"format_version":{"type":"integer","format":"int32","minimum":0},"method":{"type":"string"},"range":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DownloadRange"}]},"request_headers":{"type":"array","items":{"$ref":"#/components/schemas/DownloadRequestHeader"},"description":"Headers the browser must send with the capability. Range is signed by\nreal S3 providers; omitting it would turn a scoped range capability\ninto an unbound whole-object URL."},"required_content_length":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"url":{"type":"string"},"wrapped_fvk":{"type":"string"}}},"EmailChangeCompleteRequest":{"type":"object","required":["proof"],"properties":{"proof":{"type":"string"}}},"EmailChangeRequest":{"type":"object","required":["new_email","current_password"],"properties":{"current_password":{"type":"string"},"new_email":{"type":"string"}}},"EnableRecoveryRequest":{"type":"object","required":["escrow_envelope","consent_version","disclosure_acknowledged","guardians"],"properties":{"consent_version":{"type":"string"},"disclosure_acknowledged":{"type":"boolean"},"escrow_envelope":{"type":"string"},"guardians":{"type":"array","items":{"$ref":"#/components/schemas/RecoveryGuardianInput"}}}},"EnrollmentResponse":{"type":"object","required":["enrollment_id","new_device_id","server_nonce","directory_revision","expires_at"],"properties":{"directory_revision":{"type":"integer","format":"int64","minimum":0},"enrollment_id":{"type":"string","format":"uuid"},"expires_at":{"type":"integer","format":"int64"},"new_device_id":{"type":"string","format":"uuid"},"server_nonce":{"type":"string"}}},"ExportRequest":{"type":"object","required":["client_unlocked"],"properties":{"client_unlocked":{"type":"boolean"}}},"FavoriteRequest":{"type":"object","required":["favorite"],"properties":{"favorite":{"type":"boolean"}}},"FavoriteResponse":{"type":"object","required":["node_id","favorite","revision"],"properties":{"favorite":{"type":"boolean"},"node_id":{"type":"string","format":"uuid"},"revision":{"type":"integer","format":"int64","minimum":0}}},"FavoritesResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"GrantRequest":{"type":"object","required":["grant_id","share_id","sender_device_id","recipient_device_id","workspace_id","node_id","directory_revision","key_generation","permissions","envelope","signature"],"properties":{"directory_revision":{"type":"integer","format":"int64","minimum":0},"envelope":{"type":"string"},"grant_id":{"type":"string","format":"uuid"},"key_generation":{"type":"integer","format":"int64","minimum":0},"node_id":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"recipient_device_id":{"type":"string","format":"uuid"},"sender_device_id":{"type":"string","format":"uuid"},"share_id":{"type":"string","format":"uuid"},"signature":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"GrantResponse":{"type":"object","required":["version","suite","grant_id","share_id","sender_user_id","sender_device_id","recipient_user_id","recipient_device_id","workspace_id","node_id","directory_revision","key_generation","permissions","envelope","signature"],"properties":{"directory_revision":{"type":"integer","format":"int64","minimum":0},"envelope":{"type":"string"},"grant_id":{"type":"string","format":"uuid"},"key_generation":{"type":"integer","format":"int64","minimum":0},"node_id":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"recipient_device_id":{"type":"string","format":"uuid"},"recipient_user_id":{"type":"string","format":"uuid"},"sender_device_id":{"type":"string","format":"uuid"},"sender_user_id":{"type":"string","format":"uuid"},"share_id":{"type":"string","format":"uuid"},"signature":{"type":"string"},"suite":{"type":"integer","format":"int32","minimum":0},"version":{"type":"integer","format":"int32","minimum":0},"workspace_id":{"type":"string","format":"uuid"}}},"HealthSchema":{"type":"object","required":["status","service","mode","database_configured","database_ready"],"properties":{"database_configured":{"type":"boolean"},"database_ready":{"type":"boolean"},"mode":{"type":"string"},"service":{"type":"string"},"status":{"type":"string"}}},"ImportValidationRequest":{"type":"object","required":["format_version","object_count","ciphertext_bytes","manifest_digest"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","minimum":0},"format_version":{"type":"string"},"manifest_digest":{"type":"string"},"object_count":{"type":"integer","format":"int64","minimum":0}}},"InvitationClaimResponse":{"type":"object","required":["invitation_id","share_id","state","status"],"properties":{"invitation_id":{"type":"string","format":"uuid"},"share_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"status":{"type":"string"}}},"InvitationResponse":{"type":"object","required":["invitation_id","workspace_id","recipient_user_id","role","inviter_user_id","expires_at","invitation_token"],"properties":{"expires_at":{"type":"integer","format":"int64"},"invitation_id":{"type":"string","format":"uuid"},"invitation_token":{"type":"string"},"inviter_user_id":{"type":"string","format":"uuid"},"recipient_user_id":{"type":"string","format":"uuid"},"role":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"InviteMemberRequest":{"type":"object","required":["recipient_user_id","role"],"properties":{"recipient_user_id":{"type":"string","format":"uuid"},"role":{"type":"string"}}},"JobResponse":{"type":"object","required":["job_id","kind","state","run_after"],"properties":{"job_id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"run_after":{"type":"integer","format":"int64"},"state":{"type":"string"}}},"KeyBundleRequest":{"type":"object","required":["device_id","password_salt","password_wrapped_umk","recovery_wrapped_umk","recovery_verifier","generation"],"properties":{"device_id":{"type":"string","format":"uuid"},"generation":{"type":"integer","format":"int64","minimum":0},"password_salt":{"type":"string"},"password_wrapped_umk":{"type":"string"},"recovery_verifier":{"type":"string"},"recovery_wrapped_umk":{"type":"string"},"step_up_password":{"type":"string"}}},"KeyBundleResponse":{"type":"object","required":["bundle_id","device_id","password_salt","password_wrapped_umk","recovery_wrapped_umk","generation","version"],"properties":{"bundle_id":{"type":"string","format":"uuid"},"device_id":{"type":"string","format":"uuid"},"generation":{"type":"integer","format":"int64","minimum":0},"password_salt":{"type":"string"},"password_wrapped_umk":{"type":"string"},"recovery_wrapped_umk":{"type":"string"},"version":{"type":"integer","format":"int64","minimum":0}}},"KeyGenerationInfo":{"type":"object","required":["generation","version"],"properties":{"generation":{"type":"integer","format":"int64","minimum":0},"version":{"type":"integer","format":"int64","minimum":0}}},"LoginRequest":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string"},"password":{"type":"string"}}},"LoginResponse":{"type":"object","required":["access_token","token_type","expires_in"],"properties":{"access_token":{"type":"string"},"expires_in":{"type":"integer","format":"int64"},"token_type":{"type":"string"}}},"MembershipListResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MembershipResponse"}}}},"MembershipRemovalResponse":{"type":"object","required":["workspace_id","removed_user_id","key_generation","future_access_generation","rekey_required","disclosure"],"properties":{"disclosure":{"type":"string"},"future_access_generation":{"type":"integer","format":"int64","minimum":0},"key_generation":{"type":"integer","format":"int64","minimum":0},"rekey_required":{"type":"boolean"},"removed_user_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"}}},"MembershipResponse":{"type":"object","required":["workspace_id","user_id","role","status","version","joined_at"],"properties":{"joined_at":{"type":"integer","format":"int64"},"role":{"type":"string"},"status":{"type":"string"},"user_id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int64","minimum":0},"workspace_id":{"type":"string","format":"uuid"}}},"MigrationCanaryCapabilityResponse":{"type":"object","required":["object_id","method","url","expires_at","expected_size","range_length","range_header"],"properties":{"expected_size":{"type":"integer","format":"int64","minimum":0},"expires_at":{"type":"integer","format":"int64"},"method":{"type":"string"},"object_id":{"type":"string","format":"uuid"},"range_header":{"type":"string","description":"The exact request header bound into the presigned URL. Browsers do not\ninfer signed headers from a URL, so the capability must publish it as\npart of the client contract."},"range_length":{"type":"integer","format":"int64","minimum":0},"url":{"type":"string"}}},"MigrationCanaryCompletionRequest":{"type":"object","required":["object_id"],"properties":{"object_id":{"type":"string","format":"uuid"}}},"MigrationHistoryResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MigrationStatusResponse"}}}},"MigrationObjectRequest":{"type":"object","required":["object_id","source_generation","evidence"],"properties":{"evidence":{"$ref":"#/components/schemas/CiphertextEvidence"},"object_id":{"type":"string","format":"uuid"},"source_generation":{"type":"string","format":"uuid"}}},"MigrationPlanRequest":{"type":"object","required":["destination_provider_id","retention_until"],"properties":{"destination_provider_id":{"type":"string","format":"uuid"},"objects":{"type":"array","items":{"$ref":"#/components/schemas/MigrationObjectRequest"}},"retention_until":{"type":"integer","format":"int64"},"source_provider_id":{"type":["string","null"],"format":"uuid"}}},"MigrationStatusResponse":{"type":"object","required":["id","state","objects_total","objects_copied","objects_verified","bytes_total","bytes_copied","bytes_verified","worker_state","worker_attempts","client_integrity","client_canary","verification_mode","rollback_available","cleanup_eligible","can_start_new_migration","correlation_id"],"properties":{"bytes_copied":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"bytes_verified":{"type":"integer","format":"int64","minimum":0},"can_start_new_migration":{"type":"boolean"},"cleanup_eligible":{"type":"boolean"},"client_canary":{"type":"string"},"client_integrity":{"type":"string"},"correlation_id":{"type":"string","format":"uuid"},"created_at":{"type":["string","null"]},"destination_provider_id":{"type":["string","null"],"format":"uuid"},"id":{"type":"string","format":"uuid"},"last_progress_at":{"type":["string","null"]},"objects_copied":{"type":"integer","minimum":0},"objects_total":{"type":"integer","minimum":0},"objects_verified":{"type":"integer","minimum":0},"rollback_available":{"type":"boolean"},"source_provider_id":{"type":["string","null"],"format":"uuid"},"source_retention_until":{"type":["string","null"]},"state":{"type":"string"},"verification_mode":{"type":"string"},"worker_attempts":{"type":"integer","format":"int32","minimum":0},"worker_last_error":{"type":["string","null"]},"worker_state":{"type":"string"}}},"MultipartCanceledResponse":{"type":"object","required":["upload_id","state","state_version"],"properties":{"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"upload_id":{"type":"string","format":"uuid"}}},"MultipartCompleteRequest":{"type":"object","required":["manifest","manifest_sha256","ciphertext_sha256"],"properties":{"ciphertext_sha256":{"type":"string"},"manifest":{"type":"array","items":{"$ref":"#/components/schemas/MultipartPartManifest"}},"manifest_sha256":{"type":"string"},"retry_quarantined":{"type":"boolean","description":"Set only by an explicit user retry after a previous completion was\nquarantined. Ordinary completion polling must remain read-only with\nrespect to outbox quarantine state."}}},"MultipartCompleteResponse":{"type":"object","required":["upload_id","file_version_id","storage_object_id","ciphertext_size","state","state_version"],"properties":{"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"file_version_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"upload_id":{"type":"string","format":"uuid"}}},"MultipartCreateRequest":{"type":"object","required":["workspace_id","file_node_id","wrapped_fvk","ciphertext_size","format_version","chunk_size","chunk_count","part_lengths","file_version_id","storage_object_id"],"properties":{"chunk_count":{"type":"integer","format":"int64","minimum":0},"chunk_size":{"type":"integer","format":"int32","minimum":0},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"file_node_id":{"type":"string","format":"uuid"},"file_version_id":{"type":"string","format":"uuid","description":"Client-provided file-version UUID — validated as safe UUID, used in NSPF header."},"force_provider":{"type":"boolean"},"format_version":{"type":"integer","format":"int32","minimum":0},"part_lengths":{"type":"array","items":{"type":"integer","format":"int64","minimum":0}},"provider_id":{"type":["string","null"],"format":"uuid"},"storage_object_id":{"type":"string","format":"uuid","description":"Client-provided storage-object UUID — validated as safe UUID, used in NSPF header."},"workspace_id":{"type":"string","format":"uuid"},"wrapped_fvk":{"type":"string"}}},"MultipartCreatedResponse":{"type":"object","required":["upload_id","file_version_id","storage_object_id","parts","state","state_version","expires_at"],"properties":{"expires_at":{"type":"integer","format":"int64"},"file_version_id":{"type":"string","format":"uuid"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/MultipartPartResponse"}},"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"upload_id":{"type":"string","format":"uuid"}}},"MultipartPartManifest":{"type":"object","required":["part_number","etag","checksum_sha256","ciphertext_length"],"properties":{"checksum_sha256":{"type":"string"},"ciphertext_length":{"type":"integer","format":"int64","minimum":0},"etag":{"type":"string"},"part_number":{"type":"integer","format":"int32","minimum":0}}},"MultipartPartResponse":{"type":"object","required":["part_number","ciphertext_length","presigned_url","presigned_expires_at"],"properties":{"ciphertext_length":{"type":"integer","format":"int64","minimum":0},"part_number":{"type":"integer","format":"int32","minimum":0},"presigned_expires_at":{"type":"integer","format":"int64"},"presigned_url":{"type":"string"},"required_checksum_sha256":{"type":["string","null"]}}},"MultipartPartUrlRequest":{"type":"object","required":["checksum_sha256"],"properties":{"checksum_sha256":{"type":"string"}}},"MultipartPartsResponse":{"type":"object","required":["upload_id","parts","state","state_version"],"properties":{"parts":{"type":"array","items":{"$ref":"#/components/schemas/MultipartPartManifest"}},"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"upload_id":{"type":"string","format":"uuid"}}},"NodeCreateRequest":{"type":"object","required":["kind","metadata_envelope","name_token"],"properties":{"kind":{"type":"string"},"metadata_envelope":{"type":"string"},"name_token":{"type":"string"},"node_key_envelope":{"type":["string","null"]},"parent_id":{"type":["string","null"],"format":"uuid"}}},"NodeListQuery":{"type":"object","properties":{"cursor":{"type":["string","null"]},"limit":{"type":["integer","null"],"minimum":0},"parent_id":{"type":["string","null"],"format":"uuid"}}},"NodePageResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/NodeResponse"}},"next_cursor":{"type":["string","null"]}}},"NodeResponse":{"type":"object","required":["node_id","kind","metadata_envelope","metadata_revision","version","has_children","child_count","created_at","updated_at"],"properties":{"child_count":{"type":"integer","format":"int64","minimum":0},"ciphertext_size":{"type":["integer","null"],"format":"int64","minimum":0},"created_at":{"type":"integer","format":"int64"},"has_children":{"type":"boolean"},"kind":{"type":"string"},"metadata_envelope":{"type":"string"},"metadata_revision":{"type":"integer","format":"int64","minimum":0},"name_token":{"type":["string","null"]},"node_id":{"type":"string","format":"uuid"},"node_key_envelope":{"type":["string","null"]},"parent_id":{"type":["string","null"],"format":"uuid"},"storage_health":{"type":["string","null"],"description":"`degraded` means provider absence or an integrity mismatch was\ndurably observed for the latest retained encrypted version."},"updated_at":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64","minimum":0}}},"NodeUpdateRequest":{"type":"object","required":["metadata_envelope","name_token"],"properties":{"metadata_envelope":{"type":"string"},"name_token":{"type":"string"},"node_key_envelope":{"type":["string","null"]},"parent_id":{"type":["string","null"],"format":"uuid"}}},"PasskeyAuthBeginResponse":{"type":"object","required":["challenge","rpId","timeoutMs","allowCredentials","userVerification","challengeId"],"properties":{"allowCredentials":{"type":"array","items":{"$ref":"#/components/schemas/AllowCredentialSchema"}},"challenge":{"type":"string"},"challengeId":{"type":"string"},"rpId":{"type":"string"},"timeoutMs":{"type":"integer","format":"int64","minimum":0},"userVerification":{"type":"string"}}},"PasskeyAuthCompleteRequest":{"type":"object","required":["challenge_id","assertion"],"properties":{"assertion":{},"challenge_id":{"type":"string"}}},"PasskeyBeginAuthSelection":{"type":"object","required":["authenticatorAttachment","requireResidentKey","userVerification"],"properties":{"authenticatorAttachment":{"type":"string"},"requireResidentKey":{"type":"boolean"},"userVerification":{"type":"string"}}},"PasskeyBeginCredDescriptor":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"transports":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string"}}},"PasskeyBeginCredParam":{"type":"object","required":["type","alg"],"properties":{"alg":{"type":"integer","format":"int64"},"type":{"type":"string"}}},"PasskeyBeginResponse":{"type":"object","required":["challenge","rp","user","pubKeyCredParams","timeoutMs","excludeCredentials","authenticatorSelection","attestation","challengeId"],"properties":{"attestation":{"type":"string"},"authenticatorSelection":{"$ref":"#/components/schemas/PasskeyBeginAuthSelection"},"challenge":{"type":"string"},"challengeId":{"type":"string"},"excludeCredentials":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyBeginCredDescriptor"}},"pubKeyCredParams":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyBeginCredParam"}},"rp":{"$ref":"#/components/schemas/PasskeyBeginRp"},"timeoutMs":{"type":"integer","format":"int64","minimum":0},"user":{"$ref":"#/components/schemas/PasskeyBeginUser"}}},"PasskeyBeginRp":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"PasskeyBeginUser":{"type":"object","required":["id","name","displayName"],"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}}},"PasskeyCompleteRequest":{"type":"object","required":["challenge_id","attestation"],"properties":{"attestation":{},"challenge_id":{"type":"string"},"step_up_password":{"type":"string"}}},"PasswordRewrapRequest":{"type":"object","required":["password_salt","password_wrapped_umk","expected_version"],"properties":{"expected_version":{"type":"integer","format":"int64","minimum":0},"password_salt":{"type":"string"},"password_wrapped_umk":{"type":"string"},"step_up_password":{"type":"string"}}},"PlacementDrainRequest":{"type":"object","required":["provider_id"],"properties":{"provider_id":{"type":"string","format":"uuid"}}},"PlacementInput":{"type":"object","properties":{"force":{"type":"boolean","description":"Explicitly bypass the normal core-capability gate for this placement.\nIndividual operation capabilities, credentials and the endpoint are\nstill checked before any presign is issued."}}},"PlacementRecord":{"type":"object","required":["history_id","tenant_id","provider_id","state","forced","version","outstanding_objects","last_correlation_id"],"properties":{"forced":{"type":"boolean","description":"Explicit opt-in for a provider whose capability report is degraded.\nThis is independent from the placement lifecycle state."},"history_id":{"type":"string","format":"uuid"},"last_correlation_id":{"type":"string","format":"uuid"},"outstanding_objects":{"type":"integer","format":"int64","minimum":0},"provider_id":{"type":"string","format":"uuid"},"state":{"$ref":"#/components/schemas/PlacementState"},"tenant_id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int64","minimum":0}}},"PlacementResponse":{"type":"object","required":["workspace_id","provider_id","state","accepts_new_objects","forced"],"properties":{"accepts_new_objects":{"type":"boolean"},"forced":{"type":"boolean","description":"True only when the caller explicitly opted into using a provider that\nis not fully certified. The provider remains `degraded`; this flag is\nan auditable per-placement decision, not a capability certification."},"provider_id":{"type":"string","format":"uuid"},"state":{"$ref":"#/components/schemas/ProviderState"},"workspace_id":{"type":"string","format":"uuid"}}},"PlacementState":{"type":"string","enum":["active","draining","drained","rollback_active","retired"]},"PlatformAdminChangeRequest":{"type":"object","required":["id","action","target_user_id","requested_by","status","expires_at","created_at"],"properties":{"action":{"type":"string"},"approved_by":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"integer","format":"int64"},"decided_at":{"type":["integer","null"],"format":"int64"},"expires_at":{"type":"integer","format":"int64"},"id":{"type":"string","format":"uuid"},"requested_by":{"type":"string","format":"uuid"},"status":{"type":"string"},"target_user_id":{"type":"string","format":"uuid"}}},"PlatformAdminPrincipal":{"type":"object","required":["user_id","granted_at","version"],"properties":{"granted_at":{"type":"integer","format":"int64"},"granted_by":{"type":["string","null"],"format":"uuid"},"user_id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int64"}}},"PlatformAuditEvent":{"type":"object","required":["id","action","outcome","correlation_id","created_at"],"properties":{"action":{"type":"string"},"actor_id":{"type":["string","null"],"format":"uuid"},"correlation_id":{"type":"string","format":"uuid"},"created_at":{"type":"integer","format":"int64"},"id":{"type":"string","format":"uuid"},"outcome":{"type":"string"},"reason":{"type":["string","null"]},"target_id":{"type":["string","null"],"format":"uuid"}}},"PlatformContact":{"type":"object","required":["kind","destination","enabled","version","updated_at"],"properties":{"destination":{"type":"string"},"enabled":{"type":"boolean"},"kind":{"type":"string"},"updated_at":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"}}},"PlatformRestriction":{"type":"object","required":["id","scope","kind","limit_value","reason","version","created_at"],"properties":{"created_at":{"type":"integer","format":"int64"},"expires_at":{"type":["integer","null"],"format":"int64"},"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"limit_value":{"type":"integer","format":"int64"},"reason":{"type":"string"},"scope":{"type":"string"},"user_id":{"type":["string","null"],"format":"uuid"},"version":{"type":"integer","format":"int64"}}},"PlatformUser":{"type":"object","required":["id","email","status","created_at","platform_state"],"properties":{"created_at":{"type":"integer","format":"int64"},"email":{"type":"string"},"id":{"type":"string","format":"uuid"},"platform_state":{"type":"string"},"status":{"type":"string"}}},"PlatformUserControl":{"type":"object","required":["user_id","state","reason","version","updated_at"],"properties":{"expires_at":{"type":["integer","null"],"format":"int64"},"reason":{"type":"string"},"state":{"type":"string"},"updated_at":{"type":"integer","format":"int64"},"user_id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int64"}}},"PortableValidation":{"type":"object","required":["valid","format_version","object_count","ciphertext_bytes","manifest_digest"],"properties":{"ciphertext_bytes":{"type":"integer","format":"int64","minimum":0},"format_version":{"type":"string"},"manifest_digest":{"type":"string"},"object_count":{"type":"integer","format":"int64","minimum":0},"reason":{"type":["string","null"]},"valid":{"type":"boolean"}}},"PresignInput":{"type":"object","required":["operation","opaque_object_key"],"properties":{"content_length":{"type":["integer","null"],"format":"int64","minimum":0},"force_degraded":{"type":"boolean","description":"Set only after the user has explicitly confirmed a degraded-provider\nplacement. This never turns the provider active or skips per-operation\ncapability checks."},"opaque_object_key":{"type":"string"},"operation":{"$ref":"#/components/schemas/PresignOperation"},"part_number":{"type":["integer","null"],"format":"int32","minimum":0},"range_end":{"type":["integer","null"],"format":"int64","minimum":0},"range_start":{"type":["integer","null"],"format":"int64","minimum":0},"ttl_seconds":{"type":["integer","null"],"format":"int64"}}},"PresignOperation":{"type":"string","enum":["put","get","head","part"]},"ProblemDetails":{"type":"object","required":["type","title","status","detail","code","correlation_id"],"properties":{"code":{"type":"string"},"correlation_id":{"type":"string","format":"uuid"},"detail":{"type":"string"},"status":{"type":"integer","format":"int32","minimum":0},"title":{"type":"string"},"type":{"type":"string"}}},"ProviderCreateInput":{"type":"object","required":["endpoint","region","bucket","addressing_style","credential"],"properties":{"addressing_style":{"type":"string"},"bucket":{"type":"string"},"credential":{"$ref":"#/components/schemas/CredentialInput"},"endpoint":{"type":"string"},"label":{"type":"string"},"region":{"type":"string"}}},"ProviderCreateRequest":{"allOf":[{"$ref":"#/components/schemas/ProviderCreateInput"},{"type":"object","properties":{"step_up_password":{"$ref":"#/components/schemas/StepUpPassword"}}}]},"ProviderCredentialRotationRequest":{"allOf":[{"$ref":"#/components/schemas/CredentialInput"},{"type":"object","properties":{"step_up_password":{"$ref":"#/components/schemas/StepUpPassword"}}}]},"ProviderListResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProviderSummary"}}}},"ProviderState":{"type":"string","enum":["pending_validation","active","degraded","revoked"]},"ProviderSummary":{"type":"object","required":["provider_id","workspace_id","label","endpoint","endpoint_host","endpoint_fingerprint","region","bucket","addressing_style","state","credential"],"properties":{"addressing_style":{"$ref":"#/components/schemas/AddressingStyle"},"bucket":{"type":"string"},"capability_report":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CapabilityReport"}]},"credential":{"$ref":"#/components/schemas/CredentialMetadata"},"endpoint":{"type":"string"},"endpoint_fingerprint":{"type":"string"},"endpoint_host":{"type":"string"},"label":{"type":"string"},"migration_ready":{"type":"boolean","description":"Whether this provider can receive a verified ciphertext migration.\nThis is intentionally separate from `placement_enabled` and from the\nmandatory health gate used for normal uploads: a degraded provider may\nbe a safe migration destination when its copy/read capability set is\navailable, while remaining unsuitable for ordinary placement."},"placement_enabled":{"type":"boolean","description":"Whether this location is the active placement for the workspace used\nby the listing request. A provider record can be placed in many\nworkspaces; this is deliberately separate from provider health."},"placement_forced":{"type":"boolean","description":"Durable workspace-scoped opt-in for using this provider while degraded."},"placement_workspace_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Active workspace placements for this exact location. This lets owner\nclients render workspace/storage relationships from one provider\nsnapshot instead of issuing one provider request per workspace."},"provider_id":{"type":"string","format":"uuid"},"region":{"type":"string"},"state":{"$ref":"#/components/schemas/ProviderState"},"workspace_id":{"type":"string","format":"uuid"}}},"ProviderValidationResponse":{"type":"object","required":["provider"],"properties":{"provider":{"$ref":"#/components/schemas/ProviderSummary"},"validation_code":{"type":["string","null"]}}},"PublicLinkBootstrapResponse":{"type":"object","required":["version","password_required","ciphertext_size"],"properties":{"challenge":{"type":["string","null"]},"ciphertext_size":{"type":"integer","format":"int64","description":"Ciphertext size is already part of the public-link transfer contract.\nExposing it at bootstrap lets the visitor understand what will be\ndownloaded without exposing encrypted names or any key material.","minimum":0},"expires_at":{"type":["integer","null"],"format":"int64"},"password_required":{"type":"boolean"},"password_salt":{"type":["string","null"]},"remaining_downloads":{"type":["integer","null"],"format":"int64","minimum":0},"version":{"type":"integer","format":"int32","minimum":0}}},"PublicLinkCreateResponse":{"type":"object","required":["link_id","capability_id","path","password_required"],"properties":{"capability_id":{"type":"string"},"expires_at":{"type":["integer","null"],"format":"int64"},"link_id":{"type":"string","format":"uuid"},"max_downloads":{"type":["integer","null"],"format":"int64","minimum":0},"password_required":{"type":"boolean"},"path":{"type":"string"}}},"PublicLinkOpenRequest":{"type":"object","properties":{"password_proof":{"type":["string","null"]}}},"PublicLinkOpenResponse":{"type":"object","required":["version","file_version_id","method","download_url","expires_at","ciphertext_size","chunk_size","chunk_count","format_version","wrapped_key","wrapped_fvk","generation"],"properties":{"chunk_count":{"type":"integer","format":"int64","minimum":0},"chunk_size":{"type":"integer","format":"int32","minimum":0},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"download_url":{"type":"string"},"expires_at":{"type":"integer","format":"int64"},"file_version_id":{"type":"string","format":"uuid"},"format_version":{"type":"integer","format":"int32","minimum":0},"generation":{"type":"integer","format":"int64","minimum":0},"method":{"type":"string"},"remaining_downloads":{"type":["integer","null"],"format":"int64","minimum":0},"version":{"type":"integer","format":"int32","minimum":0},"wrapped_fvk":{"type":"string"},"wrapped_key":{"type":"string"}}},"PublicLinkSetupResponse":{"type":"object","description":"Public-link setup response — exposes the `wrapped_fvk` for client-side NK wrapping.","required":["file_version_id","wrapped_fvk","ciphertext_size","chunk_size","chunk_count","format_version","generation"],"properties":{"chunk_count":{"type":"integer","format":"int64","minimum":0},"chunk_size":{"type":"integer","format":"int32","minimum":0},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"file_version_id":{"type":"string","format":"uuid"},"format_version":{"type":"integer","format":"int32","minimum":0},"generation":{"type":"integer","format":"int64","minimum":0},"wrapped_fvk":{"type":"string"}}},"PublicLinkSummary":{"type":"object","required":["link_id","capability_id","node_id","file_version_id","state","created_at","download_count","password_required"],"properties":{"capability_id":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"download_count":{"type":"integer","format":"int64","minimum":0},"expires_at":{"type":["integer","null"],"format":"int64"},"file_version_id":{"type":"string","format":"uuid"},"last_opened_at":{"type":["integer","null"],"format":"int64"},"link_id":{"type":"string","format":"uuid"},"max_downloads":{"type":["integer","null"],"format":"int64","minimum":0},"node_id":{"type":"string","format":"uuid"},"password_required":{"type":"boolean"},"state":{"type":"string"}}},"QuotaSnapshot":{"type":"object","required":["limit_bytes","used_bytes","reserved_bytes","available_bytes","trash_item_count","trash_bytes","storage_configured"],"properties":{"available_bytes":{"type":"integer","format":"int64","minimum":0},"limit_bytes":{"type":"integer","format":"int64","minimum":0},"reserved_bytes":{"type":"integer","format":"int64","minimum":0},"storage_configured":{"type":"boolean"},"trash_bytes":{"type":"integer","format":"int64","minimum":0},"trash_item_count":{"type":"integer","format":"int64","minimum":0},"used_bytes":{"type":"integer","format":"int64","minimum":0}}},"QuotaUpdateInput":{"type":"object","required":["limit_bytes"],"properties":{"limit_bytes":{"type":"integer","format":"int64","minimum":0}}},"RecentAccessResponse":{"type":"object","required":["node_id","last_accessed_at"],"properties":{"last_accessed_at":{"type":"integer","format":"int64"},"node_id":{"type":"string","format":"uuid"}}},"RecentsQuery":{"type":"object","properties":{"limit":{"type":["integer","null"],"minimum":0}}},"RecentsResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RecentAccessResponse"}}}},"RecipientLookupRequest":{"type":"object","required":["recipient_id"],"properties":{"recipient_id":{"type":"string","format":"uuid"}}},"RecipientLookupResponse":{"type":"object","required":["version","trust_state"],"properties":{"snapshot":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SignedSnapshotResponse"}]},"trust_state":{"type":"string"},"version":{"type":"integer","format":"int32","minimum":0}}},"ReconciliationStatus":{"type":"object","required":["workspace_id","nonterminal_trash_entries","provider_effects"],"properties":{"nonterminal_trash_entries":{"type":"integer","minimum":0},"provider_effects":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"RecoveryApprovalRequest":{"type":"object","required":["guardian_id","device_id","share_envelope","signature"],"properties":{"device_id":{"type":"string","format":"uuid"},"guardian_id":{"type":"string","format":"uuid"},"share_envelope":{"type":"string"},"signature":{"type":"string"}}},"RecoveryApprovalResponse":{"type":"object","required":["approval_id","request_id","accepted","approvals_received","required_approvals"],"properties":{"accepted":{"type":"boolean"},"approval_id":{"type":"string","format":"uuid"},"approvals_received":{"type":"integer","format":"int32","minimum":0},"request_id":{"type":"string","format":"uuid"},"required_approvals":{"type":"integer","format":"int32","minimum":0}}},"RecoveryChallengeResponse":{"type":"object","required":["challenge_id","challenge","expires_at","current_verifier_hash"],"properties":{"challenge":{"type":"string"},"challenge_id":{"type":"string","format":"uuid"},"current_verifier_hash":{"type":"string"},"expires_at":{"type":"integer","format":"int64"}}},"RecoveryCompleteRequest":{"type":"object","required":["challenge_id","proof"],"properties":{"challenge_id":{"type":"string","format":"uuid"},"proof":{"type":"string"}}},"RecoveryCompletionResponse":{"type":"object","required":["request_id","workspace_id","completed","policy_version","key_generation","escrow_envelope","share_envelopes","disclosure"],"properties":{"completed":{"type":"boolean"},"disclosure":{"type":"string"},"escrow_envelope":{"type":"string"},"key_generation":{"type":"integer","format":"int64","minimum":0},"policy_version":{"type":"integer","format":"int64","minimum":0},"request_id":{"type":"string","format":"uuid"},"share_envelopes":{"type":"array","items":{"type":"string"}},"workspace_id":{"type":"string","format":"uuid"}}},"RecoveryDrillResponse":{"type":"object","required":["workspace_id","passed","dual_control","personal_space_escrowed","active_guardians","disclosure"],"properties":{"active_guardians":{"type":"integer","format":"int32","minimum":0},"disclosure":{"type":"string"},"dual_control":{"type":"boolean"},"passed":{"type":"boolean"},"personal_space_escrowed":{"type":"boolean"},"workspace_id":{"type":"string","format":"uuid"}}},"RecoveryGuardianInput":{"type":"object","required":["user_id","device_id","share_envelope"],"properties":{"device_id":{"type":"string","format":"uuid"},"share_envelope":{"type":"string"},"user_id":{"type":"string","format":"uuid"}}},"RecoveryGuardianResponse":{"type":"object","required":["guardian_id","workspace_id","user_id","device_id","active","policy_version"],"properties":{"active":{"type":"boolean"},"device_id":{"type":"string","format":"uuid"},"guardian_id":{"type":"string","format":"uuid"},"policy_version":{"type":"integer","format":"int64","minimum":0},"user_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"}}},"RecoveryPolicyResponse":{"type":"object","required":["format_version","suite","workspace_id","state","version","key_generation","required_approvals","guardians","consent_version","created_at","updated_at","disclosure","personal_space_escrowed"],"properties":{"consent_version":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"disclosure":{"type":"string"},"format_version":{"type":"integer","format":"int32","minimum":0},"guardians":{"type":"array","items":{"$ref":"#/components/schemas/RecoveryGuardianResponse"}},"key_generation":{"type":"integer","format":"int64","minimum":0},"personal_space_escrowed":{"type":"boolean"},"required_approvals":{"type":"integer","format":"int32","minimum":0},"state":{"type":"string"},"suite":{"type":"integer","format":"int32","minimum":0},"updated_at":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64","minimum":0},"workspace_id":{"type":"string","format":"uuid"}}},"RecoveryRequestResponse":{"type":"object","required":["request_id","workspace_id","state","policy_version","key_generation","required_approvals","approvals_received","created_at","disclosure"],"properties":{"approvals_received":{"type":"integer","format":"int32","minimum":0},"created_at":{"type":"integer","format":"int64"},"disclosure":{"type":"string"},"key_generation":{"type":"integer","format":"int64","minimum":0},"policy_version":{"type":"integer","format":"int64","minimum":0},"request_id":{"type":"string","format":"uuid"},"required_approvals":{"type":"integer","format":"int32","minimum":0},"state":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"RecoverySetupRequest":{"type":"object","required":["challenge_id","recovery_wrapped_umk","verifier","proof","generation"],"properties":{"challenge_id":{"type":"string","format":"uuid"},"current_proof":{"type":["string","null"]},"generation":{"type":"integer","format":"int64","minimum":0},"proof":{"type":"string"},"recovery_wrapped_umk":{"type":"string"},"step_up_password":{"type":"string"},"verifier":{"type":"string"}}},"RecoveryStatusResponse":{"type":"object","required":["recovery_key_verified","authorized_device_available","encrypted_data_recoverable","message"],"properties":{"authorized_device_available":{"type":"boolean"},"encrypted_data_recoverable":{"type":"boolean"},"message":{"type":"string"},"recovery_key_verified":{"type":"boolean"}}},"RegisterRequest":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string"},"password":{"type":"string"}}},"RegisterResponse":{"type":"object","required":["registration_id","verification_id","status"],"properties":{"registration_id":{"type":"string","format":"uuid"},"status":{"type":"string"},"test_verification_code":{"type":["string","null"]},"verification_id":{"type":"string","format":"uuid"}}},"RestrictionInput":{"type":"object","required":["scope","kind","limit_value","reason","confirm"],"properties":{"confirm":{"type":"boolean"},"expires_at":{"type":["integer","null"],"format":"int64"},"kind":{"type":"string"},"limit_value":{"type":"integer","format":"int64"},"reason":{"type":"string"},"scope":{"type":"string"},"user_id":{"type":["string","null"],"format":"uuid"}}},"RestrictionsResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformRestriction"}}}},"RevokeRecoveryRequest":{"type":"object","required":["disclosure_acknowledged"],"properties":{"disclosure_acknowledged":{"type":"boolean"}}},"RotateRecoveryRequest":{"type":"object","required":["escrow_envelope","consent_version","disclosure_acknowledged","guardians"],"properties":{"consent_version":{"type":"string"},"disclosure_acknowledged":{"type":"boolean"},"escrow_envelope":{"type":"string"},"guardians":{"type":"array","items":{"$ref":"#/components/schemas/RecoveryGuardianInput"}}}},"ScopedPresign":{"type":"object","required":["provider_id","host","bucket","addressing_style","operation","opaque_object_key","expires_at"],"properties":{"addressing_style":{"$ref":"#/components/schemas/AddressingStyle"},"bucket":{"type":"string"},"content_length":{"type":["integer","null"],"format":"int64","minimum":0},"expires_at":{"type":"integer","format":"int64"},"host":{"type":"string"},"opaque_object_key":{"type":"string"},"operation":{"$ref":"#/components/schemas/PresignOperation"},"part_number":{"type":["integer","null"],"format":"int32","minimum":0},"provider_id":{"type":"string","format":"uuid"},"range_end":{"type":["integer","null"],"format":"int64","minimum":0},"range_start":{"type":["integer","null"],"format":"int64","minimum":0}}},"SessionResponse":{"type":"object","required":["id","family_id","device_id","expires_at","current"],"properties":{"current":{"type":"boolean"},"device_id":{"type":"string","format":"uuid"},"expires_at":{"type":"integer","format":"int64"},"family_id":{"type":"string","format":"uuid"},"id":{"type":"string","format":"uuid"}}},"SessionRevocation":{"type":"object","required":["user_id","sessions","devices"],"properties":{"devices":{"type":"integer","format":"int64","minimum":0},"sessions":{"type":"integer","format":"int64","minimum":0},"user_id":{"type":"string","format":"uuid"}}},"SessionRevocationInput":{"type":"object","required":["confirm"],"properties":{"confirm":{"type":"boolean"}}},"ShareAcceptResponse":{"type":"object","required":["share","status"],"properties":{"grant":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/GrantResponse"}]},"share":{"$ref":"#/components/schemas/ShareSummary"},"status":{"type":"string"}}},"ShareCreateResponse":{"type":"object","required":["share"],"properties":{"invitation":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/InvitationResponse"}]},"share":{"$ref":"#/components/schemas/ShareSummary"}}},"ShareSummary":{"type":"object","required":["share_id","workspace_id","node_id","owner_user_id","state","recipient_state","permissions","grant_count","key_generation","future_access_generation","residual_risk_disclosure"],"properties":{"future_access_generation":{"type":"integer","format":"int64","minimum":0},"grant_count":{"type":"integer","minimum":0},"invitation_id":{"type":["string","null"],"format":"uuid"},"key_generation":{"type":"integer","format":"int64","minimum":0},"node_id":{"type":"string","format":"uuid"},"owner_user_id":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"recipient_state":{"type":"string"},"recipient_user_id":{"type":["string","null"],"format":"uuid"},"residual_risk_disclosure":{"type":"string"},"share_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"workspace_id":{"type":"string","format":"uuid"}}},"SignedSnapshotResponse":{"type":"object","required":["version","account_id","epoch_id","revision","previous_digest","state_digest","signer_public_key","signature","snapshot_digest","devices","created_at"],"properties":{"account_id":{"type":"string","format":"uuid"},"created_at":{"type":"integer","format":"int64"},"devices":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryDeviceResponse"}},"epoch_id":{"type":"string","format":"uuid"},"previous_digest":{"type":"string"},"revision":{"type":"integer","format":"int64","minimum":0},"signature":{"type":"string"},"signer_public_key":{"type":"string"},"snapshot_digest":{"type":"string"},"state_digest":{"type":"string"},"version":{"type":"integer","format":"int32","minimum":0}}},"StepUpPassword":{"type":"string","description":"A password supplied for one sensitive provider mutation. It is deliberately\nseparate from the provider domain input so the service layer cannot confuse\nstep-up proof with provider configuration or persist it in an idempotency\nhash. The value is zeroized as soon as the request boundary releases it."},"TransparencyCheckpointResponse":{"type":"object","required":["revision","previous_digest","snapshot_digest","observed_at"],"properties":{"observed_at":{"type":"integer","format":"int64"},"previous_digest":{"type":"string"},"revision":{"type":"integer","format":"int64","minimum":0},"snapshot_digest":{"type":"string"}}},"TransparencyMonitorSnapshot":{"type":"object","required":["alert_count","equivocation_count","broken_predecessor_count","rollback_count","latest_revision"],"properties":{"alert_count":{"type":"integer","format":"int64","minimum":0},"broken_predecessor_count":{"type":"integer","format":"int64","minimum":0},"equivocation_count":{"type":"integer","format":"int64","minimum":0},"latest_revision":{"type":"integer","format":"int64","minimum":0},"rollback_count":{"type":"integer","format":"int64","minimum":0}}},"TrashEmptyResponse":{"type":"object","required":["queued","already_queued","skipped"],"properties":{"already_queued":{"type":"integer","format":"int64","minimum":0},"queued":{"type":"integer","format":"int64","minimum":0},"skipped":{"type":"integer","format":"int64","minimum":0}}},"TrashListQuery":{"type":"object","properties":{"cursor":{"type":["integer","null"],"minimum":0},"limit":{"type":["integer","null"],"minimum":0}}},"TrashListResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TrashResponse"}},"next_cursor":{"type":["string","null"]}}},"TrashMutationRequest":{"type":"object"},"TrashResponse":{"type":"object","required":["id","node_id","revision","state","purge_after","item_count"],"properties":{"id":{"type":"string","format":"uuid"},"item_count":{"type":"integer","format":"int64","description":"Number of descendants covered by this lifecycle entry. A folder is\nrepresented by one root entry in Trash; its descendants are not\nindependent user-visible Trash items.","minimum":0},"node":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/NodeResponse","description":"Opaque node projection for client-side name decryption.  Mutation\nresponses may omit it; list responses populate it when the node still\nexists during retention."}]},"node_id":{"type":"string","format":"uuid"},"purge_after":{"type":"integer","format":"int64"},"revision":{"type":"integer","format":"int64","minimum":0},"state":{"type":"string"}}},"UploadCanceledResponse":{"type":"object","required":["upload_id","state","state_version"],"properties":{"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"upload_id":{"type":"string","format":"uuid"}}},"UploadCompleteRequest":{"type":"object","required":["ciphertext_size","ciphertext_sha256"],"properties":{"ciphertext_sha256":{"type":"string"},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"retry_quarantined":{"type":"boolean","description":"Set only by an explicit user retry after a previous completion was\nquarantined. Ordinary completion polling must not reset quarantine."}}},"UploadCompleteResponse":{"type":"object","required":["upload_id","file_version_id","storage_object_id","ciphertext_size","state","state_version"],"properties":{"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"file_version_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"upload_id":{"type":"string","format":"uuid"}}},"UploadCreateRequest":{"type":"object","required":["workspace_id","file_node_id","wrapped_fvk","ciphertext_size","ciphertext_sha256","format_version","chunk_size","chunk_count","file_version_id","storage_object_id"],"properties":{"chunk_count":{"type":"integer","format":"int64","minimum":0},"chunk_size":{"type":"integer","format":"int32","minimum":0},"ciphertext_sha256":{"type":"string"},"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"file_node_id":{"type":"string","format":"uuid"},"file_version_id":{"type":"string","format":"uuid","description":"Client-provided file-version UUID — validated as safe UUID, used in NSPF header."},"force_provider":{"type":"boolean"},"format_version":{"type":"integer","format":"int32","minimum":0},"provider_id":{"type":["string","null"],"format":"uuid"},"storage_object_id":{"type":"string","format":"uuid","description":"Client-provided storage-object UUID — validated as safe UUID, used in NSPF header."},"workspace_id":{"type":"string","format":"uuid"},"wrapped_fvk":{"type":"string"}}},"UploadCreatedResponse":{"type":"object","required":["upload_id","file_version_id","storage_object_id","presigned_put_url","presigned_expires_at","required_content_length","state","state_version"],"properties":{"file_version_id":{"type":"string","format":"uuid"},"presigned_expires_at":{"type":"integer","format":"int64"},"presigned_put_url":{"type":"string"},"required_checksum_sha256":{"type":["string","null"]},"required_content_length":{"type":"integer","format":"int64","minimum":0},"required_metadata_checksum_sha256":{"type":["string","null"]},"state":{"type":"string"},"state_version":{"type":"integer","format":"int64","minimum":0},"storage_object_id":{"type":"string","format":"uuid"},"upload_id":{"type":"string","format":"uuid"}}},"UserControlInput":{"type":"object","required":["state","reason","confirm"],"properties":{"confirm":{"type":"boolean"},"expires_at":{"type":["integer","null"],"format":"int64"},"reason":{"type":"string"},"state":{"type":"string"}}},"UserQuery":{"type":"object","properties":{"limit":{"type":["integer","null"],"minimum":0},"query":{"type":["string","null"]}}},"UsersResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlatformUser"}}}},"VerifyRegistrationRequest":{"type":"object","required":["verification_code"],"properties":{"verification_code":{"type":"string"}}},"VersionListQuery":{"type":"object","properties":{"cursor":{"type":["integer","null"],"format":"int64","minimum":0},"limit":{"type":["integer","null"],"minimum":0}}},"VersionPageResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/VersionResponse"}},"next_cursor":{"type":["string","null"]}}},"VersionResponse":{"type":"object","required":["id","file_node_id","storage_object_id","ordinal","ciphertext_size","state","created_at","generation","wrapped_fvk"],"properties":{"ciphertext_size":{"type":"integer","format":"int64","minimum":0},"created_at":{"type":"integer","format":"int64"},"file_node_id":{"type":"string","format":"uuid"},"generation":{"type":"integer","format":"int64","minimum":0},"id":{"type":"string","format":"uuid"},"ordinal":{"type":"integer","format":"int64","minimum":0},"state":{"type":"string"},"storage_object_id":{"type":"string","format":"uuid"},"wrapped_fvk":{"type":"string"}}},"VersionRestoreResponse":{"type":"object","required":["restored_version_id","source_version_id","storage_object_id","ordinal","state"],"properties":{"ordinal":{"type":"integer","format":"int64","minimum":0},"restored_version_id":{"type":"string","format":"uuid"},"source_version_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"storage_object_id":{"type":"string","format":"uuid"}}},"WorkspaceCreateResponse":{"type":"object","required":["workspace"],"properties":{"workspace":{"$ref":"#/components/schemas/WorkspaceSummary"}}},"WorkspaceDeleteResponse":{"type":"object","required":["workspace_id","deleted"],"properties":{"deleted":{"type":"boolean"},"workspace_id":{"type":"string","format":"uuid"}}},"WorkspaceKeyGrantRequest":{"type":"object","required":["grant_id","signer_device_id","recipient_user_id","recipient_device_id","generation","envelope","signature"],"properties":{"envelope":{"type":"string"},"generation":{"type":"integer","format":"int64","minimum":0},"grant_id":{"type":"string","format":"uuid"},"recipient_device_id":{"type":"string","format":"uuid"},"recipient_user_id":{"type":"string","format":"uuid"},"signature":{"type":"string"},"signer_device_id":{"type":"string","format":"uuid"}}},"WorkspaceKeyGrantResponse":{"type":"object","required":["version","suite","grant_id","workspace_id","recipient_user_id","recipient_device_id","generation","accepted"],"properties":{"accepted":{"type":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0},"grant_id":{"type":"string","format":"uuid"},"recipient_device_id":{"type":"string","format":"uuid"},"recipient_user_id":{"type":"string","format":"uuid"},"suite":{"type":"integer","format":"int32","minimum":0},"version":{"type":"integer","format":"int32","minimum":0},"workspace_id":{"type":"string","format":"uuid"}}},"WorkspaceListResponse":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceSummary"}}}},"WorkspaceSummary":{"type":"object","required":["workspace_id","owner_user_id","kind","role","policy_version","key_generation","future_access_generation","version","metadata_envelope"],"properties":{"future_access_generation":{"type":"integer","format":"int64","minimum":0},"key_generation":{"type":"integer","format":"int64","minimum":0},"kind":{"type":"string"},"metadata_envelope":{"type":"string"},"node_key_envelope":{"type":["string","null"]},"owner_user_id":{"type":"string","format":"uuid"},"policy_version":{"type":"integer","format":"int64","minimum":0},"role":{"type":"string"},"version":{"type":"integer","format":"int64","minimum":0},"workspace_id":{"type":"string","format":"uuid"}}}}},"tags":[{"name":"health","description":"Service health and readiness"},{"name":"identity","description":"Registration and sessions"},{"name":"account","description":"Account lifecycle"},{"name":"mfa","description":"Passkey-ready authentication policy"},{"name":"crypto","description":"Client-side key envelopes and recovery"},{"name":"devices","description":"Authorized device directory and enrollment"},{"name":"directory","description":"Signed device-key directory and transparency checkpoints"},{"name":"sharing","description":"Private E2EE shares, grants, invitations and revocation"},{"name":"workspaces","description":"Workspace isolation, membership, roles and client key grants"},{"name":"workspace-recovery","description":"Opt-in disclosed dual-control workspace recovery"},{"name":"public-links","description":"Fragment-secret public E2EE links, policies and abuse reporting"},{"name":"abuse","description":"Privacy-preserving public-link abuse reports"},{"name":"recovery","description":"Verified recovery challenges"},{"name":"nodes","description":"Opaque encrypted metadata and logical file tree"},{"name":"copy","description":"Authorized logical copies with immutable ciphertext references"},{"name":"favorites","description":"User-scoped opaque favorites"},{"name":"recents","description":"User-scoped opaque recent-access projections"},{"name":"uploads","description":"Direct encrypted single-part and multipart uploads"},{"name":"downloads","description":"Authorized direct encrypted downloads"},{"name":"versions","description":"Immutable file version history"},{"name":"trash","description":"Retention-aware trash lifecycle"},{"name":"quota","description":"Atomic quota usage and reservations"},{"name":"activity","description":"Allowlisted encrypted-safe activity history"},{"name":"reconciliation","description":"Bounded provider/control-plane reconciliation visibility"},{"name":"providers","description":"Validated BYOS S3-compatible provider locations and capability reports"},{"name":"placement","description":"Tenant-authorized provider placement drain lifecycle"},{"name":"platform administration","description":"Application-wide platform-admin controls"}]}