{"openapi":"3.1.0","info":{"title":"Veylar Record API — check operation availability","version":"1.0.0"},"security":[{"bearerAuth":[]}],"paths":{"/v1/ledgers":{"post":{"operationId":"ledgers.create","summary":"Create a ledger with an immutable initial contract and creator control.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["context.create"],"x-retry":"no_automatic_retry","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":256},"metadata":{"type":"object"},"contract":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"version":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"}},"required":["contract_id","version","payload_schema"]}},"required":[]}}}}},"get":{"operationId":"ledgers.list","summary":"List ledgers visible to the selected principal.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["context.list"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"in":"query","name":"continuation","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/search":{"post":{"operationId":"ledgers.search","summary":"Search authorized ledgers. Omit scope for all accessible ledgers, or narrow by ledger IDs or a collection. Exact filters require no model. Relevance-ranked text/file queries require the provisioned search runtime. Managed ranked searches return usage metadata; paid executions require a stable operation_id. Reuse that identity and the same arguments to recover the first page. Follow next_cursor for included pagination within the original indexed content boundary.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["per_ledger_ledger.read"],"x-retry":"read_only_exact_or_cursor; managed_ranked_reuse_operation_id","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerSearchPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/LedgerFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"cursor":{"type":"string","minLength":1,"maxLength":8192},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"query":{"$ref":"#/components/schemas/SearchQuery"},"operation_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Stable caller identity for one managed ranked search. Required for paid searches. Reuse with the same arguments to recover its first page; a changed request conflicts. Expired or canceled identities cannot start another execution."},"service_class":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Published managed search class. Omission selects the accepted rate card default for the query kind. Classes are never upgraded automatically."},"maximum_charge_minor":{"type":"string","pattern":"^(0|[1-9][0-9]{0,49})$","description":"Maximum charge for this execution in integer minor units of the organization billing currency. Applies to managed ranked searches; does not change the organization spending limit."}},"required":[],"not":{"required":["ledger_ids","collection_id"]},"allOf":[{"if":{"anyOf":[{"required":["operation_id"]},{"required":["service_class"]},{"required":["maximum_charge_minor"]}]},"then":{"anyOf":[{"required":["query"]},{"required":["cursor"]}]}}]}},"multipart/form-data":{"schema":{"type":"object","required":["files"],"properties":{"request":{"type":"string","description":"JSON search arguments; optional query text, scope, filters and page size."},"files":{"type":"array","maxItems":8,"items":{"type":"string","format":"binary"}}}}}}}}},"/v1/ledgers/{ledger_id}":{"get":{"operationId":"ledgers.get","summary":"Read ledger identity, metadata, revision and admitted contracts.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}},"patch":{"operationId":"ledgers.update","summary":"Configure ledger metadata, search preferences, permissions, contract admission and immutable state rules at an expected revision.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["requested_change_permissions"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, state_transition_invalid, state_rule_invalid, state_payload_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found, state_rule_not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, state_conflict, state_rule_conflict, state_history_limit","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_history_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"changes":{"$ref":"#/components/schemas/ChangeSet"}},"required":["expected_revision","changes"]}}}}}},"/v1/ledgers/{ledger_id}/inspection":{"get":{"operationId":"ledgers.inspect","summary":"Inspect the ledger and independently authorized rules and permissions.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Inspection"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/archive":{"post":{"operationId":"ledgers.archive","summary":"Ledgers archive.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.archive"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-06","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/ledgers/{ledger_id}/reopen":{"post":{"operationId":"ledgers.reopen","summary":"Ledgers reopen.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.archive"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-06","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/ledgers/{ledger_id}/delete":{"post":{"operationId":"ledgers.delete","summary":"Ledgers delete.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.delete"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-06","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, legal_hold","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/contracts/validate":{"post":{"operationId":"contracts.validate","summary":"Check a proposed payload schema, file rules and examples without publishing, admitting or recording anything.","x-availability":{"implemented":true,"enabled":true},"x-permissions":[],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractValidation"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"},"examples":{"type":"array","items":{},"maxItems":16}},"required":["payload_schema"]}}}}}},"/v1/ledgers/{ledger_id}/contracts":{"post":{"operationId":"contracts.publish","summary":"Publish an immutable contract version without admitting it.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["contracts.manage"],"x-retry":"immutable_identity","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"version":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"}},"required":["contract_id","version","payload_schema"]}}}}},"get":{"operationId":"contracts.list","summary":"List published contracts, including retired versions.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["contracts.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"in":"query","name":"continuation","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/contracts/{contract_id}/{version}":{"get":{"operationId":"contracts.get","summary":"Read a published contract version.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["contracts.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"contract_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"version","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/records/limits":{"get":{"operationId":"records.limits","summary":"Inspect protocol and current service write-size bounds at the authority using contribution permission. No prices, account metadata or hidden contract schemas are disclosed.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.append"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordWriteLimits"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/records/validate":{"post":{"operationId":"records.validate","summary":"Check a proposed contribution against current contract, payload, available attachment and service write-size rules without uploading, preparing indexes, accepting, reserving, billing or consuming an operation identity. Inspect valid and issues; passing checks do not guarantee later acceptance.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.append"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordWriteValidation"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"payload":{},"contract":{"$ref":"#/components/schemas/ContractRef"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"maxItems":16},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["payload"]}}}}}},"/v1/ledgers/{ledger_id}/records":{"post":{"operationId":"records.append","summary":"Submit a payload for authoritative validation and acceptance under a stable operation identity. Attachments additionally require files.read and completed, verified files in this ledger.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.append","files.read_if_attached"],"x-retry":"same_operation","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, state_transition_invalid, state_rule_invalid, state_payload_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found, state_rule_not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, state_conflict, state_rule_conflict, state_history_limit","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_history_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"payload":{},"contract":{"$ref":"#/components/schemas/ContractRef"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"maxItems":16},"operation_id":{"type":"string","minLength":1,"maxLength":128},"confirmation":{"type":"string","enum":["authoritative","allow_pending"]},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"context_id":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."},"resolved_contract":{"$ref":"#/components/schemas/ContractRef","description":"Previously resolved default contract, retained by an offline client. The original omitted selector stays unchanged. Authorities validate admission and reject a resolution that differs from an existing operation."}},"required":["payload","operation_id"]}}}}},"get":{"operationId":"records.list","summary":"Read a bounded consistent snapshot with permitted definition context and its matching changes_from checkpoint. Resume with next until null.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"in":"query","name":"continuation","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/outcomes/{operation_id}":{"get":{"operationId":"records.outcome","summary":"Check a prior append outcome without submitting or retrying.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.outcome.own_or_any"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"operation_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"context_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outcome"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/records/{record_id}":{"get":{"operationId":"records.get","summary":"Retrieve an authorized record and its original acceptance.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"record_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_erased","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}},"delete":{"operationId":"records.erase","summary":"Records erase.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.erase"],"x-retry":"immutable_identity","x-implementation-patch":"LC-06","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"record_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reference"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, legal_hold","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/ledgers/{ledger_id}/access":{"get":{"operationId":"access.get","summary":"Read the ledger access policy.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["access.read"],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}},"put":{"operationId":"access.update","summary":"Replace the access policy atomically at an expected ledger revision.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["access.manage"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/Grant"},"maxItems":1000},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["grants","expected_revision"]}}}}}},"/v1/ledgers/{ledger_id}/access/revoke":{"post":{"operationId":"access.revoke","summary":"Remove specified direct permissions for one issuer-qualified principal, preserving all other grants. Group-derived permissions remain effective. Requires the current ledger revision.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["access.manage"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"principal":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23,"minItems":1,"uniqueItems":true}},"required":["expected_revision","principal","permissions"]}}}}}},"/v1/ledgers/{ledger_id}/access/grant":{"post":{"operationId":"access.grant","summary":"Add direct permissions for a principal at the current ledger revision. Restrict new append access with append_contract_ids. Applicable grants are additive.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["access.manage"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"principal":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23,"minItems":1,"uniqueItems":true},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."}},"required":["expected_revision","principal","permissions"]}}}}}},"/v1/ledgers/{ledger_id}/files/{file_id}/content":{"put":{"operationId":"files.upload","summary":"Upload immutable ledger-scoped bytes; supplied helpers resume bounded transfers.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["files.upload"],"x-retry":"immutable_identity","x-implementation-patch":"LC-05","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"integer","minimum":0,"maximum":1073741824},"media_type":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*$"},"offset":{"type":"integer","minimum":0,"maximum":1073741824,"default":0},"bytes_base64":{"type":"string","maxLength":1398104},"complete":{"type":"boolean","default":true},"context_id":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."}},"required":["sha256","size","media_type","bytes_base64"]}}}}},"get":{"operationId":"files.download","summary":"Read a bounded verified file chunk without inferring availability from a record.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["files.read"],"x-retry":"read_only","x-implementation-patch":"LC-05","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"offset","required":false,"schema":{"type":"integer","minimum":0,"maximum":1073741824,"default":0}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/files/{file_id}":{"get":{"operationId":"files.get","summary":"Inspect authorized file metadata and current byte availability.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["files.read"],"x-retry":"read_only","x-implementation-patch":"LC-05","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}},"delete":{"operationId":"files.erase","summary":"Files erase.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["files.erase"],"x-retry":"immutable_identity","x-implementation-patch":"LC-06","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, legal_hold","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/references/resolve":{"post":{"operationId":"references.resolve","summary":"Resolve a stable record reference using current target-ledger read permission.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["target.records.read"],"x-retry":"read_only","x-implementation-patch":"LC-05","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_erased","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reference":{"$ref":"#/components/schemas/Reference"}},"required":["reference"]}}}}}},"/v1/ledgers/{ledger_id}/changes":{"get":{"operationId":"changes.feed","summary":"Poll permission-filtered ledger changes using a checkpoint, or explicitly start at now. Save checkpoint only after processing; caught_up describes the observed head.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["changes.read"],"x-retry":"read_only","x-implementation-patch":"LC-07","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"in":"query","name":"start","required":false,"schema":{"type":"string","enum":["now"]}},{"in":"query","name":"freshness","required":false,"schema":{"type":"string","enum":["retained","current"]}},{"in":"query","name":"checkpoint","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/export":{"get":{"operationId":"ledgers.export","summary":"Export bounded, integrity-linked pages of authorized retained ledger history.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["ledger.export","ledger.read","records.read","contracts.read"],"x-retry":"read_only","x-implementation-patch":"LC-12","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"continuation","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Export"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledger-imports":{"post":{"operationId":"ledgers.import","summary":"Import integrity-linked pages as an explicitly unverified replica, never an active authority.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["context.import","ledger.import_if_existing"],"x-retry":"same_operation","x-implementation-patch":"LC-12","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"bundle":{"$ref":"#/components/schemas/Export"},"operation_id":{"type":"string","minLength":1,"maxLength":128},"restart":{"type":"boolean","default":false}},"required":["bundle","operation_id"]}}}}}},"/v1/capabilities":{"get":{"operationId":"capabilities.list","summary":"List a bounded page of concise operation summaries in the selected context. Follow next with after; use capabilities.get for one operation's schemas, limits and errors.","x-availability":{"implemented":true,"enabled":true},"x-permissions":[],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"query","name":"prefix","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Optional literal operation-name prefix; guidance and the schema profile remain available."}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25,"description":"Maximum concise operation summaries in this page."}},{"in":"query","name":"after","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Resume after the operation name returned as next; preserve the prefix."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilityPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/capabilities/{name}":{"get":{"operationId":"capabilities.get","summary":"Describe one operation, its schemas, limits and availability.","x-availability":{"implemented":true,"enabled":true},"x-permissions":[],"x-retry":"read_only","x-implementation-patch":"LC-04","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"name","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Capability"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/authority/transfers/{transfer_id}":{"post":{"operationId":"authority.transfer","summary":"Authority transfer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authority.transfer","destination.context_create"],"x-retry":"same_operation","x-implementation-patch":"LC-10","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"transfer_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"destination":{"type":"string","minLength":1,"maxLength":128},"destination_admin":{"$ref":"#/components/schemas/Principal"},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"offer":{"$ref":"#/components/schemas/TransferOffer"},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"max_items":{"type":"integer","minimum":1,"maximum":100}},"required":["destination","destination_admin","expected_revision"]}}}}},"get":{"operationId":"authority.status","summary":"Authority status.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authority.transfer","destination.context_create"],"x-retry":"read_only","x-implementation-patch":"LC-10","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"transfer_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/authority/transfers/{transfer_id}/resume":{"post":{"operationId":"authority.resume","summary":"Authority resume.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authority.transfer","destination.context_create"],"x-retry":"same_operation","x-implementation-patch":"LC-10","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"path","name":"transfer_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"barrier":{"$ref":"#/components/schemas/TransferBarrier"},"chunk":{"$ref":"#/components/schemas/TransferChunk"},"max_items":{"type":"integer","minimum":1,"maximum":100},"activate":{"type":"boolean"},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}}},"required":[]}}}}}},"/v1/ledgers/{ledger_id}/synchronization":{"post":{"operationId":"ledgers.receive","summary":"Receive a bounded page of previously accepted history into a replica. Receiving never creates authority or re-admits historical records.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["replica.publisher"],"x-retry":"resume","x-implementation-patch":"LC-08","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplicaExchangeResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"checkpoint":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"restart":{"type":"boolean"},"mode":{"type":"string","enum":["snapshot","changes","file"]},"snapshot":{"$ref":"#/components/schemas/RecordPage"},"changes":{"$ref":"#/components/schemas/ChangePage"},"file":{"$ref":"#/components/schemas/FilesUploadInput"}},"required":["checkpoint","mode"],"oneOf":[{"properties":{"mode":{"const":"snapshot"}},"required":["snapshot"],"not":{"anyOf":[{"required":["changes"]},{"required":["file"]}]}},{"properties":{"mode":{"const":"changes"}},"required":["changes"],"not":{"anyOf":[{"required":["snapshot"]},{"required":["file"]}]}},{"properties":{"mode":{"const":"file"}},"required":["file"],"not":{"anyOf":[{"required":["snapshot"]},{"required":["changes"]}]}}]}}}}},"get":{"operationId":"ledgers.checkpoint","summary":"Inspect the receiving replica checkpoint as its original publisher. Does not inspect any other client device.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["replica.publisher"],"x-retry":"read_only","x-implementation-patch":"LC-08","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplicaExchangeResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/ledgers/{ledger_id}/state":{"get":{"operationId":"records.state","summary":"Read the current state and version for a contract-governed key from authoritative accepted history.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["records.read"],"x-retry":"read_only","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"key","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"in":"query","name":"contract","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractRef"}}}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordState"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, state_transition_invalid, state_rule_invalid, state_payload_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found, state_rule_not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, state_conflict, state_rule_conflict, state_history_limit","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_history_unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/groups/{group_id}":{"post":{"operationId":"groups.create","summary":"Create a new group with a caller-selected stable ID. Identical retries return the same resource. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"group_id","required":true,"schema":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsResource"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"members":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}}},"required":["name","admins","members"]}}}}},"put":{"operationId":"groups.update","summary":"Replace an existing group at its expected revision. Never creates a missing resource. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"group_id","required":true,"schema":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsResource"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1},"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"members":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}}},"required":["expected_revision","name","admins","members"]}}}}},"get":{"operationId":"groups.get","summary":"Get a group using current resource permissions. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin"],"x-retry":"read_only","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"group_id","required":true,"schema":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsResource"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/collections/{collection_id}":{"post":{"operationId":"collections.create","summary":"Create a new collection with a caller-selected stable ID. Identical retries return the same resource. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin","per_ledger_records.read"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"collection_id","required":true,"schema":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionsResource"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"read":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}}},"required":["name","admins","ledger_ids","read"]}}}}},"put":{"operationId":"collections.update","summary":"Replace an existing collection at its expected revision. Never creates a missing resource. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin","per_ledger_records.read"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"collection_id","required":true,"schema":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionsResource"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1},"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"read":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}}},"required":["expected_revision","name","admins","ledger_ids","read"]}}}}},"get":{"operationId":"collections.get","summary":"Get a collection using current resource and ledger permissions. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.read","per_ledger_records.read"],"x-retry":"read_only","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"collection_id","required":true,"schema":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionsSelection"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}},"delete":{"operationId":"collections.delete","summary":"Delete a collection at its expected revision without deleting ledgers or records. Deleted IDs cannot be reused; identical authorized retries return the deletion result. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.admin"],"x-retry":"same_operation","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"path","name":"collection_id","required":true,"schema":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDeletion"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expected_revision"]}}}}}},"/v1/collections":{"get":{"operationId":"collections.list","summary":"List accessible collections in a bounded, live directory. Recheck authorization on every page; collections grant no ledger access. Resources belong to the selected local store or service and identity issuer.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["resource.read"],"x-retry":"read_only","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"in":"query","name":"continuation","required":false,"schema":{"type":"string","minLength":1,"maxLength":8192}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}},"/v1/records/search":{"post":{"operationId":"records.search","summary":"Search authorized records. Omit scope for all accessible ledgers, or narrow by ledger IDs or a collection. Exact filters require no model. Relevance-ranked text/file queries require the provisioned search runtime. Managed ranked searches return usage metadata; paid executions require a stable operation_id. Reuse that identity and the same arguments to recover the first page. Follow next_cursor for included pagination within the original indexed content boundary.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["per_ledger_records.read","collection.read_when_selected"],"x-retry":"read_only_exact_or_cursor; managed_ranked_reuse_operation_id","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordSearchPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/RecordFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"cursor":{"type":"string","minLength":1,"maxLength":8192},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"query":{"$ref":"#/components/schemas/SearchQuery"},"operation_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Stable caller identity for one managed ranked search. Required for paid searches. Reuse with the same arguments to recover its first page; a changed request conflicts. Expired or canceled identities cannot start another execution."},"service_class":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Published managed search class. Omission selects the accepted rate card default for the query kind. Classes are never upgraded automatically."},"maximum_charge_minor":{"type":"string","pattern":"^(0|[1-9][0-9]{0,49})$","description":"Maximum charge for this execution in integer minor units of the organization billing currency. Applies to managed ranked searches; does not change the organization spending limit."}},"required":[],"not":{"required":["ledger_ids","collection_id"]},"allOf":[{"if":{"anyOf":[{"required":["operation_id"]},{"required":["service_class"]},{"required":["maximum_charge_minor"]}]},"then":{"anyOf":[{"required":["query"]},{"required":["cursor"]}]}}]}},"multipart/form-data":{"schema":{"type":"object","required":["files"],"properties":{"request":{"type":"string","description":"JSON search arguments; optional query text, scope, filters and page size."},"files":{"type":"array","maxItems":8,"items":{"type":"string","format":"binary"}}}}}}}}},"/v1/records/feed":{"post":{"operationId":"records.feed","summary":"Follow accepted record activity across explicit ledger IDs or a saved ledger collection. Recheck authorization and report coverage on every page. Optional filters combine exact metadata and typed payload-field equality with AND; missing fields never equal null. Available locally or through a service; retained replica reads report their observation coverage.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["per_ledger_records.read","collection.read_when_selected"],"x-retry":"read_only","x-implementation-patch":"LC-11","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Selected tenant context. Required for sessions; tenant-bound keys can omit it. Supplied clients configure this once per connection.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant; never a ledger grant or account-membership claim.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordFeedPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported, record_cursor_invalid","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, record_resource_conflict, record_selection_changed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted, record_cursor_expired","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/RecordFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"checkpoint":{"type":"string","minLength":1,"maxLength":8192},"start":{"enum":["beginning","now"]},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":[],"oneOf":[{"required":["ledger_ids"]},{"required":["collection_id"]}]}}}}}},"/v1/workspaces":{"get":{"operationId":"workspaces.list","summary":"List workspaces available to the signed-in account and its provisioning requests.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authenticated_account"],"x-retry":"read_only","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacesListResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"post":{"operationId":"workspaces.create","summary":"Create a workspace with a stable request ID. Hosted workspace creation requires reviewed terms and pricing.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authenticated_account"],"x-retry":"same_operation","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreation"}}}},"202":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreation"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"request_id":{"type":"string","minLength":1,"maxLength":128},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name","request_id"],"additionalProperties":false}}}}}},"/v1/control-plane/organizations":{"get":{"operationId":"organizations.list","summary":"Compatibility capability. Use workspaces.list for new work. List organizations available to the signed-in account and provisioning requests.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authenticated_account"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"deprecated":true},"post":{"operationId":"organizations.create","summary":"Compatibility capability. Use workspaces.create for new work. Create an organization with a stable retry identity. Hosted cloud creation requires the reviewed Terms and usage-pricing fingerprints. Review workspace_setup_url from organizations.list before submitting; customer-hosted creation does not require cloud billing.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authenticated_account"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"202":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"request_id":{"type":"string","minLength":1,"maxLength":128},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name","request_id"],"additionalProperties":false}}}}}},"/v1/workspaces/{workspace_id}/memberships":{"get":{"operationId":"memberships.list","summary":"List workspace memberships. Ledger access is granted separately.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["authenticated_member"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},{"in":"query","name":"after","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/workspaces/{workspace_id}/memberships/{member_id}":{"patch":{"operationId":"memberships.update","summary":"Change a member role using its current revision. Owner constraints remain enforced.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.owner"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"path","name":"member_id","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"in":"path","name":"workspace_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"role":{"type":"string","enum":["owner","admin","member"]}},"required":["expected_revision","role"],"additionalProperties":false}}}}},"delete":{"operationId":"memberships.remove","summary":"Remove a membership using its current revision. Ledger grants remain separate.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.owner_or_self"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"path","name":"member_id","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"in":"path","name":"workspace_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1}},"required":["expected_revision"],"additionalProperties":false}}}}}},"/v1/access/api-keys":{"get":{"operationId":"api_keys.list","summary":"List stored and configured API-key metadata without secrets.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"post":{"operationId":"api_keys.create","summary":"Create a scoped credential and save its one-time secret to a new private file. Creation is not automatically retried.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_before_retry","x-implementation-patch":"LC-03","parameters":[],"responses":{"201":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"name":{"type":"string","minLength":1,"maxLength":256},"scope":{"type":"string","enum":["connection","read","ingest","admin"]},"restrictions":{"type":"object","properties":{"source_scope_mode":{"enum":["all","allowlist"]},"source_ids":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"namespace_scope_mode":{"enum":["all","allowlist"]},"namespaces":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"allow_raw_payload":{"type":"boolean"},"max_query_limit":{"type":"integer","minimum":1,"maximum":500},"policy_version":{"const":"key-policy-v1"}},"required":[],"additionalProperties":false}},"required":["name","scope"],"additionalProperties":false}}}}}},"/v1/access/api-keys/{key_id}":{"delete":{"operationId":"api_keys.revoke","summary":"Revoke a stored API key. Static deployment keys require operator configuration.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"path","name":"key_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"204":{"description":"Key revoked; no response body."},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/billing":{"get":{"operationId":"billing.get","summary":"Inspect organization usage, estimated charges and monthly invoices.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/billing/payment-session":{"post":{"operationId":"billing.manage","summary":"Open a private hosted billing session. Requires a signed-in organization owner or admin. Provide billing_email when first adding payment details; update the saved billing contact in the hosted portal. Cloud setup completes after payment verification and an owner workspace agreement. The returned private link expires; request another session when needed.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingManageSession"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"billing_email":{"type":"string","format":"email","maxLength":254}},"required":[],"additionalProperties":false}}}}}},"/v1/billing/setup":{"post":{"operationId":"billing.setup","summary":"Record the signed-in workspace owner’s agreement to the displayed Terms of Service and published usage pricing. Billing setup completes automatically after payment verification. Usage does not constitute agreement to later material changes.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.owner_session"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSetup"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":256},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["terms_version","terms_fingerprint","pricing_fingerprint"],"additionalProperties":false}}}}}},"/v1/usage":{"get":{"operationId":"usage.get","summary":"Retrieve organization usage within the authenticated caller’s authorization.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.read"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/lifecycle":{"get":{"operationId":"deletion.status","summary":"Inspect organization deletion, retention and legal-hold status.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.admin"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/lifecycle/delete_request":{"post":{"operationId":"deletion.request","summary":"Request organization deletion with an owner session and exact organization confirmation. Keys are revoked; purge follows the grace period and holds.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.owner_session"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"202":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"confirm_tenant":{"type":"string","minLength":1,"maxLength":128}},"required":["tenant_id","confirm_tenant"],"additionalProperties":false}}}}}},"/v1/lifecycle/delete_cancel":{"post":{"operationId":"deletion.cancel","summary":"Cancel an eligible deletion using its current request ID and generation. Previously revoked keys stay revoked.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.owner_session"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"202":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"deletion_id":{"type":"string","minLength":1,"maxLength":256},"generation":{"type":"string","minLength":1,"maxLength":256}},"required":["tenant_id","deletion_id","generation"],"additionalProperties":false}}}}}},"/healthz":{"get":{"operationId":"service.health","summary":"Check selected service liveness. This does not establish authentication or account access.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["none"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"security":[]}},"/v1/metrics":{"get":{"operationId":"service.metrics","summary":"Inspect authorized organization service counters.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.read"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/diagnostics":{"get":{"operationId":"service.inspect","summary":"Inspect service posture, usage and counters under the caller’s authorization.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["organization.read"],"x-retry":"inspect_and_revise","x-implementation-patch":"LC-03","parameters":[{"in":"query","name":"tenant_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResult"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/v1/invitations":{"post":{"operationId":"invitations.create","summary":"Create an invitation for an explicit workspace or ledger. A workspace offer is addressed to one email. A ledger offer can publish local history, specify permissions and contribution contracts, or allow open enrollment.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["workspace.owner (workspace)","access.manage (ledger)"],"x-retry":"same_operation","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreatedHttp"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"token_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"Lowercase SHA-256 hex digest of the UTF-8 encoding of the 64-character lowercase hex token; do not hash the decoded bytes."},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":[],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168}},"required":["workspace_id","invitation_id","email","token"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"token_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"Lowercase SHA-256 hex digest of the UTF-8 encoding of the 64-character lowercase hex token; do not hash the decoded bytes."},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":["ledger_id","operation_id","permissions","token_hash"]}]}}}}},"get":{"operationId":"invitations.list","summary":"List invitations for exactly one workspace or ledger. Responses omit private invitation proofs. Reuse the returned cursor for the same target.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["workspace.owner (workspace)","access.manage (ledger)"],"x-retry":"read_only","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}},{"in":"query","name":"workspace_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."}},{"in":"query","name":"after","required":false,"schema":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]}},{"in":"query","name":"ledger_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPage"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"x-input-schema":{"$ref":"#/components/schemas/InvitationListInput"}}},"/v1/invitations/inspect":{"post":{"operationId":"invitations.inspect","summary":"Preview the offered workspace membership or ledger access using the private invitation link. Inspection leaves the invitation unredeemed. HTTP callers may authenticate to see their own acceptance and current access.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["invitation.bearer"],"x-retry":"read_only","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"security":[{},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."},"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["invitation_id","token"],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."}},"required":["workspace_id","invitation_id","token"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."}},"required":["ledger_id","invitation_id","token"]}]}}}}}},"/v1/invitations/accept":{"post":{"operationId":"invitations.accept","summary":"Accept the access offered by a private invitation link. The service verifies the invited email for workspace membership or the ledger permission rules for ledger access. Retry with the same account and link.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["invitation.bearer","authenticated_identity"],"x-retry":"same_operation","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAcceptedHttp"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied, workspace_invitation_email_mismatch","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."},"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["invitation_id","token"],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."}},"required":["workspace_id","invitation_id","token"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."}},"required":["ledger_id","invitation_id","token"]}]}}}}}},"/v1/invitations/revoke":{"post":{"operationId":"invitations.revoke","summary":"Revoke an invitation for exactly one workspace or ledger. Manage existing memberships and ledger grants through their respective access operations.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["workspace.owner (workspace)","access.manage (ledger)"],"x-retry":"same_operation","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationRevoked"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["invitation_id"],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["invitation_id","workspace_id"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}},"required":["ledger_id","invitation_id"]}]}}}}}},"/v1/invitations/{invitation_id}":{"get":{"operationId":"invitations.get","summary":"Get invitation metadata as a ledger administrator using its ledger ID and invitation ID.","x-availability":{"implemented":true,"enabled":true},"x-permissions":["access.manage"],"x-retry":"read_only","x-implementation-patch":"LC-13","parameters":[{"in":"header","name":"X-Veylar-Tenant","required":false,"description":"Hosting tenant for a ledger invitation. Workspace invitations use their explicit workspace_id.","schema":{"type":"string"}},{"in":"query","name":"tenant_id","required":false,"description":"Alternative to X-Veylar-Tenant for ledger invitations.","schema":{"type":"string"}},{"in":"path","name":"invitation_id","required":true,"schema":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}},{"in":"query","name":"ledger_id","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Domain result; see availability before calling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationDetails"}}}},"400":{"description":"invalid_input, contract_invalid, unsupported","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"402":{"description":"payment_required","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"403":{"description":"permission_denied","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"409":{"description":"contract_not_admitted, revision_conflict, operation_conflict, validation_context_unavailable, file_unavailable, ledger_archived, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"410":{"description":"outcome_expired, ledger_deleted","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"413":{"description":"limit_exceeded","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"422":{"description":"payload_invalid, integrity_failure","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"503":{"description":"authority_unavailable, outcome_uncertain","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}},"default":{"description":"Structured domain failure.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/Error"}},"additionalProperties":false}}}}}}}},"components":{"schemas":{"Principal":{"type":"object","additionalProperties":false,"properties":{"issuer":{"type":"string","minLength":1,"maxLength":2048},"subject":{"type":"string","minLength":1,"maxLength":256}},"required":["issuer","subject"]},"ContractRef":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","minLength":1,"maxLength":128},"version":{"type":"string","minLength":1,"maxLength":128},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["contract_id","version","digest"]},"Authority":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":128},"epoch":{"type":"integer","minimum":1,"maximum":9007199254740991},"state":{"type":"string","enum":["active","fenced","deleted"]}},"required":["id","epoch","state"]},"FileRules":{"type":"object","additionalProperties":false,"properties":{"media_types":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^(\\*/\\*|[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*)$"},"maxItems":64,"uniqueItems":true},"max_bytes":{"type":"integer","minimum":0,"maximum":1073741824},"max_items":{"type":"integer","minimum":0,"maximum":16}},"required":["media_types","max_bytes","max_items"]},"Contract":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"contract_id":{"type":"string","minLength":1,"maxLength":128},"version":{"type":"string","minLength":1,"maxLength":128},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"validator":{"type":"string","enum":["op-sys.schema-subset.v1"]},"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"}},"required":["ledger_id","contract_id","version","digest","validator","payload_schema","file_rules"]},"Grant":{"type":"object","additionalProperties":false,"properties":{"principal":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."}},"required":["principal","permissions"]},"Policy":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"grants":{"type":"array","items":{"$ref":"#/components/schemas/Grant"},"maxItems":1000}},"required":["revision","grants"]},"Ledger":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"metadata":{"type":"object"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"lifecycle":{"type":"string","enum":["active","archived","deleted"]},"authority":{"$ref":"#/components/schemas/Authority"},"admitted_contracts":{"type":"array","items":{"$ref":"#/components/schemas/ContractRef"},"maxItems":64},"default_contract":{"anyOf":[{"$ref":"#/components/schemas/ContractRef"},{"type":"null"}]},"state_rules":{"type":"array","maxItems":32,"items":{"$ref":"#/components/schemas/StateRule"}},"search":{"$ref":"#/components/schemas/SearchConfiguration"}},"required":["ledger_id","name","metadata","revision","lifecycle","authority","admitted_contracts","default_contract"],"allOf":[{"if":{"properties":{"lifecycle":{"enum":["active","archived"]}}},"then":{"properties":{"default_contract":{"$ref":"#/components/schemas/ContractRef"}}}}]},"Acceptance":{"type":"object","additionalProperties":false,"properties":{"record_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"contract":{"$ref":"#/components/schemas/ContractRef"},"authority_id":{"type":"string","minLength":1,"maxLength":128},"authority_epoch":{"type":"integer","minimum":1,"maximum":9007199254740991},"position":{"type":"integer","minimum":1,"maximum":9007199254740991},"accepted_at":{"type":"string","minLength":1,"maxLength":64},"principal":{"$ref":"#/components/schemas/Principal"},"trust":{"type":"string","enum":["local","authenticated"]}},"required":["record_id","operation_id","contract","authority_id","authority_epoch","position","accepted_at","principal","trust"]},"Attachment":{"type":"object","additionalProperties":false,"properties":{"file_id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":256}},"required":["file_id"]},"Record":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"record_id":{"type":"string","minLength":1,"maxLength":128},"payload":{},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"maxItems":16},"acceptance":{"$ref":"#/components/schemas/Acceptance"},"provenance":{"const":"imported-unverified"}},"required":["ledger_id","record_id","payload","attachments","acceptance"]},"File":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"file_id":{"type":"string","minLength":1,"maxLength":128},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"integer","minimum":0,"maximum":1073741824},"media_type":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*$"},"availability":{"type":"string","enum":["available","partial","missing","erased","unavailable"]},"uploaded_bytes":{"type":"integer","minimum":0,"maximum":1073741824}},"required":["ledger_id","file_id","availability"],"anyOf":[{"properties":{"availability":{"enum":["available","partial"]}},"required":["sha256","size","media_type","uploaded_bytes"]},{"properties":{"availability":{"enum":["missing","erased","unavailable"]}}}]},"Observation":{"type":"object","additionalProperties":false,"properties":{"source":{"type":"string","enum":["authority","replica"]},"authority_epoch":{"type":"integer","minimum":1,"maximum":9007199254740991},"observed_at":{"type":"string","minLength":1,"maxLength":64},"coverage":{"type":"string","minLength":1,"maxLength":4096},"complete":{"type":"boolean"},"provenance":{"const":"imported-unverified"}},"required":["source","authority_epoch","observed_at","coverage","complete"]},"Error":{"type":"object","additionalProperties":false,"properties":{"operation":{"type":"string","minLength":1,"maxLength":128},"code":{"type":"string","enum":["invalid_input","contract_invalid","payload_invalid","contract_not_admitted","permission_denied","not_found","revision_conflict","operation_conflict","unsupported","authority_unavailable","outcome_uncertain","outcome_expired","validation_context_unavailable","file_unavailable","integrity_failure","ledger_archived","ledger_deleted","resnapshot_required","identity_changed","authority_fenced","withdrawal_requires_resolution","limit_exceeded","rate_limited","record_erased","legal_hold","state_conflict","state_transition_invalid","state_rule_invalid","state_rule_conflict","state_payload_invalid","state_rule_not_found","state_history_limit","record_history_unavailable","record_resource_conflict","record_selection_changed","record_cursor_invalid","record_cursor_expired","payment_required","workspace_invitation_email_mismatch"]},"message":{"type":"string","minLength":1,"maxLength":512},"retry":{"type":"string","enum":["never","same_operation","inspect_and_revise","resolve_outcome","resnapshot","reauthenticate"]},"recovery":{"type":"string","minLength":1,"maxLength":1024},"field":{"type":"string","minLength":1,"maxLength":512},"request_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"$ref":"#/components/schemas/LimitDetail"}},"required":["operation","code","message","retry","recovery"]},"Accepted":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["accepted"]},"acceptance":{"$ref":"#/components/schemas/Acceptance"},"replayed":{"type":"boolean"},"local_availability":{"type":"string","enum":["retained","not_retained","not_applicable"]}},"required":["state","acceptance","replayed","local_availability"]},"Pending":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["pending"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"contract":{"$ref":"#/components/schemas/ContractRef"}},"required":["state","operation_id","context_id","contract"]},"Uncertain":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["uncertain"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"recovery":{"type":"string","enum":["check_outcome"]}},"required":["state","operation_id","recovery"]},"AppendResult":{"anyOf":[{"$ref":"#/components/schemas/Accepted"},{"$ref":"#/components/schemas/Pending"},{"$ref":"#/components/schemas/Uncertain"}]},"Outcome":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["accepted"]},"acceptance":{"$ref":"#/components/schemas/Acceptance"}},"required":["state","acceptance"]},{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["absent","unavailable","expired","erased"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"cancellation_confirmed":{"const":false}},"required":["state","operation_id","cancellation_confirmed"]}]},"RecordResult":{"type":"object","additionalProperties":false,"properties":{"record":{"$ref":"#/components/schemas/Record"},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["record","observation"]},"RecordPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Record"},"maxItems":1000},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"changes_from":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"observation":{"$ref":"#/components/schemas/Observation"},"context":{"$ref":"#/components/schemas/ReadContext"}},"required":["items","next","changes_from","observation","context"]},"LedgerPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Ledger"},"maxItems":1000},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"changes_from":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["items","next","changes_from","observation"]},"ContractPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Contract"},"maxItems":1000},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"changes_from":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["items","next","changes_from","observation"]},"Reference":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"record_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","record_id"]},"Change":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"change_id":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","enum":["record"]},"record":{"$ref":"#/components/schemas/Record"}},"required":["change_id","kind","record"]},{"type":"object","additionalProperties":false,"properties":{"change_id":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","enum":["definition"]},"context":{"$ref":"#/components/schemas/ReadContext"}},"required":["change_id","kind","context"]},{"type":"object","additionalProperties":false,"properties":{"change_id":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","enum":["removal"]},"target":{"type":"string","enum":["record","file","ledger"]},"target_id":{"type":"string","minLength":1,"maxLength":128}},"required":["change_id","kind","target","target_id"]}]},"ChangePage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Change"},"maxItems":1000},"has_more":{"type":"boolean"},"observation":{"$ref":"#/components/schemas/Observation"},"checkpoint":{"type":"string","minLength":1,"maxLength":4096},"caught_up":{"type":"boolean"}},"required":["items","has_more","observation","checkpoint","caught_up"]},"Inspection":{"type":"object","additionalProperties":false,"properties":{"ledger":{"$ref":"#/components/schemas/Ledger"},"effective_permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"},"maxItems":64},"policy":{"$ref":"#/components/schemas/Policy"},"observation":{"$ref":"#/components/schemas/Observation"},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"maxItems":64,"uniqueItems":true,"description":"Currently admitted contract IDs this principal can append under when its append permission is restricted."}},"required":["ledger","effective_permissions","observation"]},"FileResult":{"type":"object","additionalProperties":false,"properties":{"file":{"$ref":"#/components/schemas/File"},"bytes_base64":{"type":"string","maxLength":1398104},"offset":{"type":"integer","minimum":0,"maximum":1073741824},"next_offset":{"anyOf":[{"type":"integer","minimum":0,"maximum":1073741824},{"type":"null"}]}},"required":["file"]},"ChangeSet":{"type":"object","additionalProperties":false,"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"metadata":{"type":"object"},"admission":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["add","replace"]},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/ContractRef"},"maxItems":64},"default_contract":{"$ref":"#/components/schemas/ContractRef"}},"required":["mode","contracts"]},"default_contract":{"$ref":"#/components/schemas/ContractRef"},"policy":{"type":"array","items":{"$ref":"#/components/schemas/Grant"},"maxItems":1000},"state_rules":{"type":"array","maxItems":32,"items":{"$ref":"#/components/schemas/StateRule"}},"search":{"$ref":"#/components/schemas/SearchConfiguration"}},"required":[]},"Connection":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"principal":{"anyOf":[{"$ref":"#/components/schemas/Principal"},{"type":"null"}]},"credential_ref":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["name","endpoint","principal"]},"Remote":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"remote_ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["name","connection","remote_ledger_id"]},"Identity":{"type":"object","additionalProperties":false,"properties":{"local":{"$ref":"#/components/schemas/Principal"},"hosted":{"anyOf":[{"$ref":"#/components/schemas/Principal"},{"type":"null"}]}},"required":["local","hosted"]},"Contribution":{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":128},"state":{"type":"string","enum":["unsent","in_flight","uncertain","rejected","accepted","withdrawn"]},"recovery":{"type":"string","minLength":1,"maxLength":256},"diagnostic":{"type":"string","maxLength":128}},"required":["operation_id","state","recovery"]},"SyncStatus":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"contributions":{"type":"array","items":{"$ref":"#/components/schemas/Contribution"},"maxItems":1000},"remaining":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"files_remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"observation":{"$ref":"#/components/schemas/Observation"},"state":{"type":"string","enum":["snapshot","changes","files","caught_up","denied","resnapshot_required"]},"direction":{"type":"string","enum":["pull","push"]},"pages_processed":{"type":"integer","minimum":0},"records_retained":{"type":"integer","minimum":0},"next_action":{"type":"string","enum":["synchronize","none","reauthenticate"]}},"required":["ledger_id","context_id","contributions","remaining","files_remaining","observation","state","direction","pages_processed","records_retained","next_action"]},"Transfer":{"type":"object","additionalProperties":false,"properties":{"transfer_id":{"type":"string","minLength":1,"maxLength":128},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"phase":{"type":"string","enum":["prepared","fenced","ready","activated","completed"]},"source":{"$ref":"#/components/schemas/Authority"},"destination":{"$ref":"#/components/schemas/Authority"},"unresolved_grants":{"type":"array","items":{"$ref":"#/components/schemas/Principal"},"maxItems":1000},"request_digest":{"type":"string"},"progress":{"type":"object","additionalProperties":false,"properties":{"received":{"type":"integer","minimum":0},"total":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["received","total"]},"barrier":{"$ref":"#/components/schemas/TransferBarrier"},"next_action":{"enum":["resolve_grants","resume","none"]},"ledger":{"$ref":"#/components/schemas/Ledger"}},"required":["transfer_id","ledger_id","phase","source","destination","unresolved_grants"]},"Export":{"type":"object","additionalProperties":false,"properties":{"format":{"const":"veylar.ledger-export.v1"},"export_id":{"type":"string","minLength":1,"maxLength":128},"ledger":{"$ref":"#/components/schemas/Ledger"},"policy":{"$ref":"#/components/schemas/Policy"},"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/PortableItem"}},"offset":{"type":"integer","minimum":0,"maximum":1000000},"previous_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"complete":{"type":"boolean"},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"observation":{"$ref":"#/components/schemas/Observation"},"omitted":{"type":"array","items":{"enum":["file_bytes","source_policy"]},"maxItems":2},"total_items":{"type":"integer","minimum":0,"maximum":1000000},"archive_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["format","export_id","ledger","items","offset","previous_digest","digest","complete","next","observation","omitted","total_items","archive_digest"]},"ImportResult":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"role":{"type":"string","enum":["replica"]},"complete":{"type":"boolean"},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"provenance":{"const":"imported-unverified"}},"required":["ledger_id","role","complete","next","provenance"]},"Capability":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"supported":{"type":"boolean"},"enabled":{"type":"boolean"},"authorized":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"version":{"type":"string","minLength":1,"maxLength":128},"limits":{"type":"object"},"input_schema":{"type":"object"},"result_schema":{"type":"object"},"error_schema":{"type":"object"},"effect":{"enum":["read","write"],"type":"string"},"permissions":{"type":"array","items":{"type":"string"},"maxItems":64},"retry":{"type":"string","maxLength":256},"concurrency":{"type":"string","maxLength":256},"description":{"type":"string","minLength":1,"maxLength":1024},"bindings":{"$ref":"#/components/schemas/OperationBindings"},"scope":{"type":"string","enum":["account","client","context","ledger","invitation"]},"errors":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":128},"http_input_schema":{"type":"object"}},"required":["name","supported","enabled","authorized","version","limits","input_schema","result_schema","error_schema","effect","retry","concurrency","description","bindings","scope","errors","permissions"]},"LedgersCreateInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":256},"metadata":{"type":"object"},"contract":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"version":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"}},"required":["contract_id","version","payload_schema"]}},"required":[]},"LedgersListInput":{"type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":1000},"continuation":{"type":"string","minLength":1,"maxLength":4096},"freshness":{"type":"string","enum":["retained","current"]}},"required":[]},"LedgersGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"freshness":{"type":"string","enum":["retained","current"]}},"required":["ledger_id"]},"LedgersInspectInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"LedgersUpdateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"changes":{"$ref":"#/components/schemas/ChangeSet"}},"required":["ledger_id","expected_revision","changes"]},"LedgersArchiveInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","expected_revision"]},"LedgersReopenInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","expected_revision"]},"LedgersDeleteInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","expected_revision"]},"ContractsPublishInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"contract_id":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"version":{"type":"string","minLength":1,"maxLength":128,"description":"Use ASCII letters or digits followed by letters, digits, dot, underscore or hyphen; at most 128 characters."},"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"}},"required":["ledger_id","contract_id","version","payload_schema"]},"ContractsGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"contract_id":{"type":"string","minLength":1,"maxLength":128},"version":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","contract_id","version"]},"ContractsListInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":1000},"continuation":{"type":"string","minLength":1,"maxLength":4096},"freshness":{"type":"string","enum":["retained","current"]}},"required":["ledger_id"]},"RecordsAppendInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"payload":{},"contract":{"$ref":"#/components/schemas/ContractRef"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"maxItems":16},"operation_id":{"type":"string","minLength":1,"maxLength":128},"confirmation":{"type":"string","enum":["authoritative","allow_pending"]},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"context_id":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."},"resolved_contract":{"$ref":"#/components/schemas/ContractRef","description":"Previously resolved default contract, retained by an offline client. The original omitted selector stays unchanged. Authorities validate admission and reject a resolution that differs from an existing operation."}},"required":["ledger_id","payload"]},"RecordsOutcomeInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."}},"required":["ledger_id","operation_id"]},"RecordsGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"record_id":{"type":"string","minLength":1,"maxLength":128},"freshness":{"type":"string","enum":["retained","current"]}},"required":["ledger_id","record_id"]},"RecordsListInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":1000},"continuation":{"type":"string","minLength":1,"maxLength":4096},"freshness":{"type":"string","enum":["retained","current"]}},"required":["ledger_id"]},"RecordsEraseInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"record_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","record_id","expected_revision"]},"AccessGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"AccessUpdateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"grants":{"type":"array","items":{"$ref":"#/components/schemas/Grant"},"maxItems":1000},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","grants","expected_revision"]},"FilesUploadInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"file_id":{"type":"string","minLength":1,"maxLength":128},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"integer","minimum":0,"maximum":1073741824},"media_type":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*$"},"offset":{"type":"integer","minimum":0,"maximum":1073741824,"default":0},"bytes_base64":{"type":"string","maxLength":1398104},"complete":{"type":"boolean","default":true},"context_id":{"type":"string","minLength":1,"maxLength":128,"description":"Supplied-client context for retained delivery state; not part of authoritative record intent."}},"required":["ledger_id","file_id","sha256","size","media_type","bytes_base64"]},"FilesDownloadInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"file_id":{"type":"string","minLength":1,"maxLength":128},"offset":{"type":"integer","minimum":0,"maximum":1073741824,"default":0}},"required":["ledger_id","file_id"]},"FilesGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"file_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","file_id"]},"FilesEraseInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"file_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","file_id","expected_revision"]},"ReferencesResolveInput":{"type":"object","additionalProperties":false,"properties":{"reference":{"$ref":"#/components/schemas/Reference"}},"required":["reference"]},"ChangesFeedInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":1000},"start":{"type":"string","enum":["now"]},"freshness":{"type":"string","enum":["retained","current"]},"checkpoint":{"type":"string","minLength":1,"maxLength":4096}},"required":["ledger_id"],"oneOf":[{"required":["checkpoint"],"not":{"required":["start"]}},{"required":["start"],"not":{"required":["checkpoint"]}}]},"LedgersExportInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"continuation":{"type":"string","minLength":1,"maxLength":4096},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["ledger_id"]},"LedgersImportInput":{"type":"object","additionalProperties":false,"properties":{"bundle":{"$ref":"#/components/schemas/Export"},"operation_id":{"type":"string","minLength":1,"maxLength":128},"restart":{"type":"boolean","default":false}},"required":["bundle","operation_id"]},"CapabilitiesListInput":{"type":"object","additionalProperties":false,"properties":{"prefix":{"type":"string","minLength":1,"maxLength":128,"description":"Optional literal operation-name prefix; guidance and the schema profile remain available."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25,"description":"Maximum concise operation summaries in this page."},"after":{"type":"string","minLength":1,"maxLength":128,"description":"Resume after the operation name returned as next; preserve the prefix."}},"required":[]},"CapabilitiesGetInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128}},"required":["name"]},"CapabilityPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CapabilitySummary"},"maxItems":100},"guidance":{"$ref":"#/components/schemas/CapabilityGuidance"},"schema_profile":{"$ref":"#/components/schemas/ContractSchemaProfile"},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}],"description":"Operation-name continuation, or null when this selection is complete."}},"required":["items","guidance","schema_profile","next"]},"ConnectionsCreateInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"credential_ref":{"type":"string","minLength":1,"maxLength":128}},"required":["name","endpoint"]},"ConnectionsListInput":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"ConnectionsGetInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128}},"required":["name"]},"ConnectionsUpdateInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"credential_ref":{"type":"string","minLength":1,"maxLength":128}},"required":["name","endpoint"]},"ConnectionsRemoveInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128}},"required":["name"]},"ConnectionsSelectInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128}},"required":["name"]},"ConnectionPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Connection"},"maxItems":1000}},"required":["items"]},"RemotesCreateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"remote_ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","name","connection","remote_ledger_id"]},"RemotesListInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"RemotesUpdateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"remote_ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","name","connection","remote_ledger_id"]},"RemotesRemoveInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","name"]},"RemotesSelectInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","name"]},"RemotePage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Remote"},"maxItems":1000}},"required":["items"]},"IdentityGetInput":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"IdentityAssociateInput":{"type":"object","additionalProperties":false,"properties":{"connection":{"type":"string","minLength":1,"maxLength":128}},"required":["connection"]},"ReplicasCloneInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"files":{"type":"string","enum":["referenced","none"]},"url":{"type":"string","minLength":1,"maxLength":2048},"no_browser":{"type":"boolean"}},"required":[],"oneOf":[{"required":["url"],"not":{"required":["ledger_id"]}},{"required":["ledger_id","connection"],"not":{"required":["url"]}}]},"ReplicasSynchronizeInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"remote":{"type":"string","minLength":1,"maxLength":128},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"files":{"type":"string","enum":["referenced","none"]}},"required":["ledger_id"]},"ReplicasStatusInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"ContributionsWithdrawInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"context_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","context_id","operation_id"]},"AuthorityTransferInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"transfer_id":{"type":"string","minLength":1,"maxLength":128},"destination":{"type":"string","minLength":1,"maxLength":128},"destination_admin":{"$ref":"#/components/schemas/Principal"},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"offer":{"$ref":"#/components/schemas/TransferOffer"},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"max_items":{"type":"integer","minimum":1,"maximum":100}},"required":["ledger_id","transfer_id","destination","destination_admin","expected_revision"]},"AuthorityStatusInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"transfer_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","transfer_id"]},"AuthorityResumeInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"transfer_id":{"type":"string","minLength":1,"maxLength":128},"barrier":{"$ref":"#/components/schemas/TransferBarrier"},"chunk":{"$ref":"#/components/schemas/TransferChunk"},"max_items":{"type":"integer","minimum":1,"maximum":100},"activate":{"type":"boolean"},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}}},"required":["ledger_id","transfer_id"]},"Selection":{"type":"object","additionalProperties":false,"properties":{"connection":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}],"description":"Selected hosted connection; null means local use."},"endpoint":{"anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}]},"ledger_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"remote":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"principal":{"anyOf":[{"$ref":"#/components/schemas/Principal"},{"type":"null"}],"description":"Verified hosted principal, or null for local use or an unassociated hosted identity. Inspect identity.get for the local principal."},"organization":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["connection","endpoint","ledger_id","remote","principal"]},"SelectionGetInput":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"SelectionUpdateInput":{"type":"object","additionalProperties":false,"properties":{"connection":{"type":"string","minLength":1,"maxLength":128},"ledger":{"type":"string","minLength":0,"maxLength":128,"description":"Explicit empty string clears this selection; omission uses configured defaults."},"remote":{"type":"string","minLength":0,"maxLength":128,"description":"Explicit empty string clears this selection; omission uses configured defaults."},"organization":{"type":"string","minLength":1,"maxLength":128,"description":"Compatibility alias for workspace."},"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":[]},"ReadContext":{"type":"object","additionalProperties":false,"properties":{"ledger":{"$ref":"#/components/schemas/Ledger"},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"},"maxItems":64},"policy":{"$ref":"#/components/schemas/Policy"}},"required":[]},"ReplicaExchangeResult":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"checkpoint":{"type":"string","minLength":1,"maxLength":4096},"complete":{"type":"boolean"},"records":{"type":"integer","minimum":0},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["ledger_id","checkpoint","complete","records","observation"]},"ReplicaReceiveInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"checkpoint":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"restart":{"type":"boolean"},"mode":{"type":"string","enum":["snapshot","changes","file"]},"snapshot":{"$ref":"#/components/schemas/RecordPage"},"changes":{"$ref":"#/components/schemas/ChangePage"},"file":{"$ref":"#/components/schemas/FilesUploadInput"}},"required":["ledger_id","checkpoint","mode"],"oneOf":[{"properties":{"mode":{"const":"snapshot"}},"required":["snapshot"],"not":{"anyOf":[{"required":["changes"]},{"required":["file"]}]}},{"properties":{"mode":{"const":"changes"}},"required":["changes"],"not":{"anyOf":[{"required":["snapshot"]},{"required":["file"]}]}},{"properties":{"mode":{"const":"file"}},"required":["file"],"not":{"anyOf":[{"required":["snapshot"]},{"required":["changes"]}]}}]},"ReplicaInspectInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"TransferGrantMapping":{"type":"object","additionalProperties":false,"properties":{"source":{"$ref":"#/components/schemas/Principal"},"target":{"anyOf":[{"$ref":"#/components/schemas/Principal"},{"type":"null"}]}},"required":["source","target"]},"TransferOffer":{"type":"object","additionalProperties":false,"properties":{"ledger":{"$ref":"#/components/schemas/Ledger"},"principal":{"$ref":"#/components/schemas/Principal"},"policy":{"$ref":"#/components/schemas/Policy"}},"required":["ledger","principal","policy"]},"TransferBarrier":{"type":"object","additionalProperties":false,"properties":{"position":{"type":"integer","minimum":0},"items":{"type":"integer","minimum":0},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["position","items","digest"]},"TransferItem":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"contract"},"value":{"$ref":"#/components/schemas/Contract"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"definition"},"value":{"$ref":"#/components/schemas/TransferDefinition"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"file"},"value":{"$ref":"#/components/schemas/TransferFile"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"record"},"value":{"$ref":"#/components/schemas/TransferRecord"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"reservation"},"value":{"$ref":"#/components/schemas/TransferOperation"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"removal"},"value":{"$ref":"#/components/schemas/TransferRemoval"}},"required":["kind","value"]}]},"TransferChunk":{"type":"object","additionalProperties":false,"properties":{"offset":{"type":"integer","minimum":0},"previous_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"items":{"type":"array","minItems":1,"maxItems":16,"items":{"$ref":"#/components/schemas/TransferItem"}}},"required":["offset","previous_digest","items"]},"TransferOperation":{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":128},"issuer":{"type":"string","minLength":1,"maxLength":2048},"subject":{"type":"string","minLength":1,"maxLength":256},"binding_version":{"const":"veylar.ledger-core.v1"},"input_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"record_id":{"type":"string","minLength":1,"maxLength":128},"minimized":{"type":"boolean"},"acceptance":{"$ref":"#/components/schemas/Acceptance"},"contract":{"$ref":"#/components/schemas/ContractRef"}},"required":["operation_id","issuer","subject","binding_version","input_digest","record_id","minimized"]},"TransferDefinition":{"type":"object","additionalProperties":false,"properties":{"ledger":{"$ref":"#/components/schemas/Ledger"},"policy":{"$ref":"#/components/schemas/Policy"}},"required":["ledger","policy"]},"TransferFile":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"file_id":{"type":"string","minLength":1,"maxLength":128},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"integer","minimum":0,"maximum":1073741824},"media_type":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*$"},"offset":{"type":"integer","minimum":0,"maximum":1073741824,"default":0},"bytes_base64":{"type":"string","maxLength":1398104},"complete":{"type":"boolean","default":true}},"required":["file_id","sha256","size","media_type","bytes_base64"]},{"type":"object","additionalProperties":false,"properties":{"file_id":{"type":"string","minLength":1,"maxLength":128},"erased":{"const":true}},"required":["file_id","erased"]}]},"TransferRecord":{"type":"object","additionalProperties":false,"properties":{"record":{"$ref":"#/components/schemas/Record"},"operation":{"$ref":"#/components/schemas/TransferOperation"}},"required":["record","operation"]},"TransferRemoval":{"type":"object","additionalProperties":false,"properties":{"position":{"type":"integer","minimum":1},"kind":{"enum":["record.erased","content.deleted","ledger.deleted"]},"subject_id":{"type":"string","minLength":1,"maxLength":256}},"required":["position","kind","subject_id"]},"GroupsGetInput":{"type":"object","additionalProperties":false,"properties":{"group_id":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}},"required":["group_id"]},"GroupsResource":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"members":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"kind":{"enum":["group","collection"]},"revision":{"type":"integer","minimum":0},"principal_issuer":{"type":"string","minLength":1,"maxLength":256},"group_id":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}},"required":["name","admins","members","group_id","kind","revision"]},"CollectionsGetInput":{"type":"object","additionalProperties":false,"properties":{"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":["collection_id"]},"CollectionsResource":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"read":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"kind":{"enum":["group","collection"]},"revision":{"type":"integer","minimum":0},"principal_issuer":{"type":"string","minLength":1,"maxLength":256},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":["name","admins","ledger_ids","read","collection_id","kind","revision"]},"CollectionsSelection":{"type":"object","additionalProperties":false,"properties":{"collection_id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","minimum":0},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"excluded_count":{"type":"integer","minimum":0}},"required":["collection_id","name","revision","ledger_ids","excluded_count"]},"PortableFile":{"type":"object","additionalProperties":false,"properties":{"file":{"$ref":"#/components/schemas/File"},"offset":{"type":"integer","minimum":0,"maximum":1073741824},"bytes_base64":{"type":"string","maxLength":1398104},"complete":{"type":"boolean"}},"required":["file"]},"PortableItem":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"contract"},"value":{"$ref":"#/components/schemas/Contract"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"record"},"value":{"$ref":"#/components/schemas/Record"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"file"},"value":{"$ref":"#/components/schemas/PortableFile"}},"required":["kind","value"]},{"type":"object","additionalProperties":false,"properties":{"kind":{"const":"removal"},"value":{"type":"object","additionalProperties":false,"properties":{"target":{"type":"string","enum":["record","file","ledger"]},"target_id":{"type":"string","minLength":1,"maxLength":128}},"required":["target","target_id"]}},"required":["kind","value"]}]},"StateRule":{"type":"object","additionalProperties":false,"properties":{"contract":{"$ref":"#/components/schemas/ContractRef"},"key_field":{"type":"string","minLength":1,"maxLength":256},"state_field":{"type":"string","minLength":1,"maxLength":256},"version_field":{"type":"string","minLength":1,"maxLength":256},"transitions":{"type":"array","maxItems":32,"items":{"type":"object","additionalProperties":false,"properties":{"field":{"type":"string","minLength":1,"maxLength":256},"initial":{"type":"array","minItems":1,"maxItems":64,"items":{"type":"string","minLength":1,"maxLength":256}},"edges":{"type":"array","maxItems":256,"items":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"string","minLength":1,"maxLength":256}}}},"required":["field","initial","edges"]}}},"required":["contract","key_field","state_field","version_field","transitions"]},"RecordsStateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"key":{"type":"string","minLength":1,"maxLength":256},"contract":{"$ref":"#/components/schemas/ContractRef"}},"required":["ledger_id","contract","key"]},"RecordState":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"contract":{"$ref":"#/components/schemas/ContractRef"},"current":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","minLength":1,"maxLength":256},"version":{"type":"integer","minimum":0,"maximum":9007199254740991},"state":{},"record_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"sequence":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["key","version","state","record_id","sequence"]},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["ledger_id","contract","current","observation"]},"RecordsSearchInput":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/RecordFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"cursor":{"type":"string","minLength":1,"maxLength":8192},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"query":{"$ref":"#/components/schemas/SearchQuery"},"operation_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Stable caller identity for one managed ranked search. Required for paid searches. Reuse with the same arguments to recover its first page; a changed request conflicts. Expired or canceled identities cannot start another execution."},"service_class":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Published managed search class. Omission selects the accepted rate card default for the query kind. Classes are never upgraded automatically."},"maximum_charge_minor":{"type":"string","pattern":"^(0|[1-9][0-9]{0,49})$","description":"Maximum charge for this execution in integer minor units of the organization billing currency. Applies to managed ranked searches; does not change the organization spending limit."}},"required":[],"not":{"required":["ledger_ids","collection_id"]},"allOf":[{"if":{"anyOf":[{"required":["operation_id"]},{"required":["service_class"]},{"required":["maximum_charge_minor"]}]},"then":{"anyOf":[{"required":["query"]},{"required":["cursor"]}]}}]},"RecordsFeedInput":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/RecordFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"checkpoint":{"type":"string","minLength":1,"maxLength":8192},"start":{"enum":["beginning","now"]},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":[],"oneOf":[{"required":["ledger_ids"]},{"required":["collection_id"]}]},"RecordSearchPage":{"type":"object","additionalProperties":false,"properties":{"protocol":{"const":"veylar.records-page.v1"},"items":{"type":"array","maxItems":25,"items":{"type":"object","additionalProperties":false,"properties":{"reference":{"$ref":"#/components/schemas/Reference"},"sequence":{"type":"integer","minimum":1},"availability":{"enum":["available","purged"]},"match":{"enum":["matched","unknown"]},"record":{"type":"object"},"receipt":{"type":"object"},"matches":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/SearchMatch"}},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["reference","sequence","availability","match","observation"],"allOf":[{"if":{"properties":{"availability":{"const":"available"}}},"then":{"required":["record","receipt"],"properties":{"match":{"const":"matched"}}},"else":{"not":{"anyOf":[{"required":["record"]},{"required":["receipt"]}]},"properties":{"match":{"const":"unknown"}}}}]}},"limit":{"type":"integer","minimum":1,"maximum":25},"order":{"enum":["store_sequence","relevance"]},"snapshot_sequence":{"type":"integer","minimum":0},"snapshot_at":{"type":"string","minLength":1,"maxLength":128},"observed_at":{"type":"string","minLength":1,"maxLength":128},"expires_at":{"type":"string","minLength":1,"maxLength":128},"coverage":{"$ref":"#/components/schemas/SearchCoverage"},"next_cursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":8192},{"type":"null"}]},"continuation":{"enum":["available","exhausted","limited"]},"limitation":{"$ref":"#/components/schemas/Error"},"usage":{"$ref":"#/components/schemas/SearchUsageReceipt"}},"required":["protocol","items","limit","order","snapshot_sequence","snapshot_at","observed_at","coverage","next_cursor","continuation"],"allOf":[{"if":{"properties":{"continuation":{"const":"limited"}}},"then":{"required":["limitation"]}}]},"GroupsCreateInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"members":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"group_id":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}},"required":["name","admins","members","group_id"]},"GroupsUpdateInput":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1},"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"members":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"group_id":{"type":"string","pattern":"^group_[a-f0-9]{32}$"}},"required":["expected_revision","name","admins","members","group_id"]},"CollectionsCreateInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"read":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":["name","admins","ledger_ids","read","collection_id"]},"CollectionsUpdateInput":{"type":"object","additionalProperties":false,"properties":{"expected_revision":{"type":"integer","minimum":1},"name":{"type":"string","minLength":1,"maxLength":128},"admins":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128},"minItems":1},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"read":{"type":"array","maxItems":256,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128}},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"}},"required":["expected_revision","name","admins","ledger_ids","read","collection_id"]},"LedgerSetupRequired":{"type":"object","additionalProperties":false,"properties":{"state":{"const":"setup_required"},"connection":{"type":"string","minLength":1,"maxLength":128},"setup":{"type":"object"},"next_action":{"const":"authenticate"}},"required":["state","setup","next_action"]},"LedgerPublishInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"tenant_id":{"type":"string","minLength":1,"maxLength":128},"remote":{"type":"string","minLength":1,"maxLength":128},"mode":{"type":"string","enum":["shared","copy"]},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"max_items":{"type":"integer","minimum":1,"maximum":100},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"no_browser":{"type":"boolean"}},"required":["ledger_id"]},"LedgerPublishProgress":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":128},"remote":{"type":"string","minLength":1,"maxLength":128},"url":{"type":"string","minLength":1,"maxLength":2048},"mode":{"type":"string","enum":["shared","copy"]},"state":{"type":"string","enum":["synchronizing","transferring","resolve_grants","published"]},"next_action":{"type":"string","enum":["publish","resolve_grants","none"]},"sync":{"$ref":"#/components/schemas/SyncStatus"},"transfer":{"$ref":"#/components/schemas/Transfer"}},"required":["ledger_id","connection","remote","url","mode","state","next_action"]},"LedgerPublishResult":{"anyOf":[{"$ref":"#/components/schemas/LedgerSetupRequired"},{"$ref":"#/components/schemas/LedgerPublishProgress"}]},"LedgerCloneResult":{"anyOf":[{"$ref":"#/components/schemas/LedgerSetupRequired"},{"$ref":"#/components/schemas/SyncStatus"}]},"AuthLoginInput":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2048},"organization":{"type":"string","minLength":1,"maxLength":128,"description":"Compatibility alias for workspace."},"name":{"type":"string","minLength":1,"maxLength":256},"no_browser":{"type":"boolean"},"credential_env":{"type":"string","minLength":1,"maxLength":256},"credential_file":{"type":"string","minLength":1,"maxLength":4096},"credential_scope":{"type":"string","enum":["connection","read","ingest","admin"]},"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"sign_in_only":{"type":"boolean","description":"Authenticate without creating or selecting a workspace."}},"required":[],"additionalProperties":false,"not":{"required":["credential_env","credential_file"]}},"AuthStatusInput":{"type":"object","properties":{},"required":[],"additionalProperties":false},"AuthLogoutInput":{"type":"object","properties":{"local_only":{"type":"boolean"}},"required":[],"additionalProperties":false},"OrganizationsListInput":{"type":"object","properties":{},"required":[],"additionalProperties":false},"OrganizationsCreateInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"request_id":{"type":"string","minLength":1,"maxLength":128},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name"],"additionalProperties":false},"AccountResult":{"type":"object","description":"Structured authenticated account operation result. Never contains credentials. Login can return sign_in_pending, organization_selection_required, provisioning or ready with next_step; status is a saved authentication observation."},"MembershipsListInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Compatibility alias for workspace_id."},"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":[],"additionalProperties":false},"MembershipsUpdateInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Compatibility alias for workspace_id."},"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expected_revision":{"type":"integer","minimum":1},"role":{"type":"string","enum":["owner","admin","member"]},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["member_id","expected_revision","role"],"additionalProperties":false},"MembershipsRemoveInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Compatibility alias for workspace_id."},"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expected_revision":{"type":"integer","minimum":1},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["member_id","expected_revision"],"additionalProperties":false},"InvitationsListInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":[],"additionalProperties":false},"InvitationsCreateInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168,"default":24}},"required":[],"additionalProperties":false},"InvitationsCreateHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168,"default":24},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","writeOnly":true}},"required":["tenant_id","invitation_id","token"],"additionalProperties":false},"InvitationsAcceptInput":{"type":"object","properties":{"invitation_file":{"type":"string","minLength":1,"maxLength":256}},"required":["invitation_file"],"additionalProperties":false},"InvitationsAcceptHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","writeOnly":true}},"required":["tenant_id","invitation_id","token"],"additionalProperties":false},"InvitationsRevokeInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["invitation_id"],"additionalProperties":false},"ApiKeysListInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"ApiKeysCreateInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"name":{"type":"string","minLength":1,"maxLength":256},"scope":{"type":"string","enum":["connection","read","ingest","admin"]},"restrictions":{"type":"object","properties":{"source_scope_mode":{"enum":["all","allowlist"]},"source_ids":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"namespace_scope_mode":{"enum":["all","allowlist"]},"namespaces":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"allow_raw_payload":{"type":"boolean"},"max_query_limit":{"type":"integer","minimum":1,"maximum":500},"policy_version":{"const":"key-policy-v1"}},"required":[],"additionalProperties":false},"output_file":{"type":"string","minLength":1,"maxLength":256,"description":"New private file for the generated key; existing paths are rejected."}},"required":["name","scope","output_file"],"additionalProperties":false},"ApiKeysCreateHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"name":{"type":"string","minLength":1,"maxLength":256},"scope":{"type":"string","enum":["connection","read","ingest","admin"]},"restrictions":{"type":"object","properties":{"source_scope_mode":{"enum":["all","allowlist"]},"source_ids":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"namespace_scope_mode":{"enum":["all","allowlist"]},"namespaces":{"type":"array","maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"allow_raw_payload":{"type":"boolean"},"max_query_limit":{"type":"integer","minimum":1,"maximum":500},"policy_version":{"const":"key-policy-v1"}},"required":[],"additionalProperties":false}},"required":["name","scope"],"additionalProperties":false},"ApiKeysRevokeInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"key_id":{"type":"string","minLength":1,"maxLength":256}},"required":["key_id"],"additionalProperties":false},"BillingGetInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"UsageGetInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"DeletionStatusInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"session_token_env":{"type":"string","minLength":1,"maxLength":256},"session_token_file":{"type":"string","minLength":1,"maxLength":256}},"required":[],"additionalProperties":false,"not":{"required":["session_token_env","session_token_file"]}},"DeletionStatusHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"DeletionRequestInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"session_token_env":{"type":"string","minLength":1,"maxLength":256},"session_token_file":{"type":"string","minLength":1,"maxLength":256},"confirm_tenant":{"type":"string","minLength":1,"maxLength":128}},"required":["confirm_tenant"],"additionalProperties":false,"not":{"required":["session_token_env","session_token_file"]}},"DeletionRequestHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"confirm_tenant":{"type":"string","minLength":1,"maxLength":128}},"required":["tenant_id","confirm_tenant"],"additionalProperties":false},"DeletionCancelInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"session_token_env":{"type":"string","minLength":1,"maxLength":256},"session_token_file":{"type":"string","minLength":1,"maxLength":256},"deletion_id":{"type":"string","minLength":1,"maxLength":256},"generation":{"type":"string","minLength":1,"maxLength":256}},"required":["deletion_id","generation"],"additionalProperties":false,"not":{"required":["session_token_env","session_token_file"]}},"DeletionCancelHttpInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"deletion_id":{"type":"string","minLength":1,"maxLength":256},"generation":{"type":"string","minLength":1,"maxLength":256}},"required":["tenant_id","deletion_id","generation"],"additionalProperties":false},"ServiceHealthInput":{"type":"object","properties":{},"required":[],"additionalProperties":false},"ServiceMetricsInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"ServiceInspectInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."}},"required":[],"additionalProperties":false},"ConnectionsCheckInput":{"type":"object","properties":{},"required":[],"additionalProperties":false},"CollectionsListInput":{"type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"continuation":{"type":"string","minLength":1,"maxLength":8192}},"required":[]},"CollectionSummary":{"type":"object","additionalProperties":false,"properties":{"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"name":{"type":"string","minLength":1,"maxLength":128},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["collection_id","name","revision"]},"CollectionPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/CollectionSummary"}},"next":{"anyOf":[{"type":"string","minLength":1,"maxLength":8192},{"type":"null"}]}},"required":["items","next"]},"CollectionsDeleteInput":{"type":"object","additionalProperties":false,"properties":{"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["collection_id","expected_revision"]},"CollectionDeletion":{"type":"object","additionalProperties":false,"properties":{"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"deleted":{"const":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["collection_id","deleted","revision"]},"AccessGrantInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"principal":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23,"minItems":1,"uniqueItems":true},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."}},"required":["ledger_id","expected_revision","principal","permissions"]},"AccessRevokeInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"principal":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","ledger.configure","ledger.archive","ledger.delete","contracts.read","contracts.manage","records.append","records.read","records.outcome.own","records.outcome.any","records.erase","files.upload","files.read","files.erase","access.read","access.manage","changes.read","ledger.export","ledger.import","replication.receive","replication.publish","authority.transfer","records.prepare"]},"maxItems":23,"minItems":1,"uniqueItems":true}},"required":["ledger_id","expected_revision","principal","permissions"]},"ScalarEquality":{"type":"object","additionalProperties":false,"properties":{"path":{"type":"array","maxItems":16,"items":{"anyOf":[{"type":"string","maxLength":256},{"type":"integer","minimum":0,"maximum":9999}]}},"eq":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string","maxLength":4096}]}},"required":["path","eq"]},"RecordFilter":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","minLength":1,"maxLength":128},"contract_version":{"type":"string","minLength":1,"maxLength":128},"producer_id":{"type":"string","pattern":"^producer_[a-f0-9]{32}$"},"payload":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/ScalarEquality"}}},"required":[]},"LedgerFilter":{"type":"object","additionalProperties":false,"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"metadata":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/ScalarEquality"}}},"required":[]},"LedgersSearchInput":{"type":"object","additionalProperties":false,"properties":{"filter":{"$ref":"#/components/schemas/LedgerFilter"},"limit":{"type":"integer","minimum":1,"maximum":25},"cursor":{"type":"string","minLength":1,"maxLength":8192},"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"query":{"$ref":"#/components/schemas/SearchQuery"},"operation_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Stable caller identity for one managed ranked search. Required for paid searches. Reuse with the same arguments to recover its first page; a changed request conflicts. Expired or canceled identities cannot start another execution."},"service_class":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$","description":"Published managed search class. Omission selects the accepted rate card default for the query kind. Classes are never upgraded automatically."},"maximum_charge_minor":{"type":"string","pattern":"^(0|[1-9][0-9]{0,49})$","description":"Maximum charge for this execution in integer minor units of the organization billing currency. Applies to managed ranked searches; does not change the organization spending limit."}},"required":[],"not":{"required":["ledger_ids","collection_id"]},"allOf":[{"if":{"anyOf":[{"required":["operation_id"]},{"required":["service_class"]},{"required":["maximum_charge_minor"]}]},"then":{"anyOf":[{"required":["query"]},{"required":["cursor"]}]}}]},"LedgerSearchPage":{"type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":25},"snapshot_at":{"type":"string","minLength":1,"maxLength":128},"observed_at":{"type":"string","minLength":1,"maxLength":128},"expires_at":{"type":"string","minLength":1,"maxLength":128},"next_cursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":8192},{"type":"null"}]},"protocol":{"const":"veylar.ledgers-page.v1"},"order":{"enum":["ledger_id","relevance"]},"items":{"type":"array","maxItems":25,"items":{"type":"object","additionalProperties":false,"properties":{"ledger":{"$ref":"#/components/schemas/Ledger"},"observation":{"$ref":"#/components/schemas/Observation"},"matches":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/SearchMatch"}}},"required":["ledger","observation"]}},"coverage":{"$ref":"#/components/schemas/SearchCoverage"},"continuation":{"enum":["available","exhausted","limited"]},"limitation":{"$ref":"#/components/schemas/Error"},"usage":{"$ref":"#/components/schemas/SearchUsageReceipt"}},"required":["limit","snapshot_at","observed_at","next_cursor","protocol","order","items","coverage","continuation"],"allOf":[{"if":{"properties":{"continuation":{"const":"limited"}}},"then":{"required":["limitation"]}}]},"RecordFeedPage":{"type":"object","additionalProperties":false,"properties":{"protocol":{"const":"veylar.records-page.v1"},"items":{"type":"array","maxItems":25,"items":{"type":"object","additionalProperties":false,"properties":{"reference":{"$ref":"#/components/schemas/Reference"},"sequence":{"type":"integer","minimum":1},"availability":{"enum":["available","purged"]},"match":{"enum":["matched","unknown"]},"record":{"type":"object"},"receipt":{"type":"object"}},"required":["reference","sequence","availability","match"],"allOf":[{"if":{"properties":{"availability":{"const":"available"}}},"then":{"required":["record","receipt"],"properties":{"match":{"const":"matched"}}},"else":{"not":{"anyOf":[{"required":["record"]},{"required":["receipt"]}]},"properties":{"match":{"const":"unknown"}}}}]}},"limit":{"type":"integer","minimum":1,"maximum":25},"has_more":{"type":"boolean"},"truncated":{"type":"boolean"},"scanned":{"type":"integer","minimum":0,"maximum":250},"order":{"const":"store_sequence"},"snapshot_sequence":{"type":"integer","minimum":0},"snapshot_at":{"type":"string","minLength":1,"maxLength":128},"observed_at":{"type":"string","minLength":1,"maxLength":128},"expires_at":{"type":"string","minLength":1,"maxLength":128},"coverage":{"type":"object","additionalProperties":false,"properties":{"included_ledger_ids":{"type":"array","maxItems":4096,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"}},"excluded_count":{"type":"integer","minimum":0},"unavailable_records":{"type":"integer","minimum":0},"complete_history":{"type":"boolean"},"scope":{"const":"accepted_records"},"local_pending_included":{"const":false},"observations":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"observation":{"$ref":"#/components/schemas/Observation"}},"required":["ledger_id","observation"]}}},"required":["included_ledger_ids","excluded_count","unavailable_records","complete_history","scope","local_pending_included","observations"]},"next_cursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":8192},{"type":"null"}]},"checkpoint":{"type":"string","minLength":1,"maxLength":8192},"caught_up":{"type":"boolean"},"scope":{"type":"object","additionalProperties":false,"properties":{"ledger_ids":{"type":"array","maxItems":4096,"uniqueItems":true,"items":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"minItems":1},"collection_id":{"type":"string","pattern":"^collection_[a-f0-9]{32}$"},"collection_revision":{"type":"integer","minimum":1}},"oneOf":[{"required":["ledger_ids"],"not":{"anyOf":[{"required":["collection_id"]},{"required":["collection_revision"]}]}},{"required":["collection_id","collection_revision"],"not":{"required":["ledger_ids"]}}]},"filter":{"$ref":"#/components/schemas/RecordFilter"}},"required":["protocol","items","limit","has_more","truncated","scanned","order","snapshot_sequence","snapshot_at","observed_at","expires_at","coverage","scope","filter"],"oneOf":[{"required":["next_cursor"],"not":{"anyOf":[{"required":["checkpoint"]},{"required":["caught_up"]}]}},{"required":["checkpoint","caught_up"],"not":{"required":["next_cursor"]}}]},"SearchFileInput":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","pattern":"^ledger_[a-f0-9]{32}$"},"file_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id","file_id"]},{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":255},"media_type":{"type":"string","minLength":1,"maxLength":255},"bytes_base64":{"type":"string","minLength":1,"maxLength":13981016}},"required":["name","media_type","bytes_base64"]}]},"SearchQuery":{"type":"object","additionalProperties":false,"properties":{"text":{"type":"string","minLength":1,"maxLength":65536},"files":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/SearchFileInput"}}},"required":[],"anyOf":[{"required":["text"]},{"required":["files"]}]},"SearchCoverage":{"type":"object","additionalProperties":false,"properties":{"status":{"enum":["complete","partial","unknown"]},"observed_at":{"type":"string"},"reasons":{"type":"array","maxItems":8,"uniqueItems":true,"items":{"enum":["retained_history_unavailable","replica_incomplete","index_pending","unsupported_content","processing_unavailable"]}}},"required":["status","observed_at"]},"SearchMatch":{"type":"object","additionalProperties":false,"properties":{"excerpt":{"type":"string","maxLength":2048},"file_id":{"type":"string","minLength":1,"maxLength":128},"location":{"type":"object","additionalProperties":false,"properties":{"path":{"type":"array","maxItems":64,"items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":0}]}},"page":{"type":"integer","minimum":1},"section":{"type":"string","maxLength":256},"line":{"type":"integer","minimum":1},"row":{"type":"integer","minimum":1},"slide":{"type":"integer","minimum":1},"paragraph":{"type":"integer","minimum":1},"sheet":{"type":"string","maxLength":256},"cell":{"type":"string","maxLength":256}},"required":[]}},"required":["excerpt","location"]},"SearchConfiguration":{"type":"object","additionalProperties":false,"properties":{"enabled":{"type":"boolean","default":true},"excluded_paths":{"type":"array","maxItems":64,"uniqueItems":true,"items":{"type":"string","maxLength":1024,"pattern":"^(|/.*)$"},"description":"JSON Pointer paths excluded with their descendants. Payload paths for records; /name and /metadata for ledger discovery. Does not change admission or read permissions."}}},"SearchUsageReceipt":{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$"},"service_class":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,255}$"},"billable":{"type":"boolean"}},"required":["operation_id","service_class","billable"]},"BillingManageSession":{"type":"object","additionalProperties":false,"properties":{"provider":{"const":"stripe"},"url":{"type":"string","pattern":"^https://billing\\.stripe\\.com/p/session","maxLength":8192}},"required":["provider","url"]},"OperationBindings":{"type":"object","additionalProperties":false,"properties":{"sdk":{"type":"string","minLength":1,"maxLength":128},"cli":{"type":"string","minLength":1,"maxLength":128},"mcp":{"type":"string","minLength":1,"maxLength":128},"http":{"type":"object","additionalProperties":false,"properties":{"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"]},"path":{"type":"string","minLength":1,"maxLength":512},"input":{"type":"object"},"result":{"type":"object"}},"required":["method","path"]}},"required":["sdk","cli","mcp"]},"ContractSchemaProfile":{"type":"object","additionalProperties":false,"properties":{"validator":{"type":"string","minLength":1,"maxLength":128},"keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":64},"annotation_keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":64},"types":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":16},"unsupported_behavior":{"type":"string","minLength":1,"maxLength":1024}},"required":["validator","keywords","annotation_keywords","types","unsupported_behavior"]},"CapabilityGuidance":{"type":"object","additionalProperties":false,"properties":{"principles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1024},"maxItems":16},"steps":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"purpose":{"type":"string","minLength":1,"maxLength":1024},"operations":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":16}},"required":["purpose","operations"]},"maxItems":16}},"required":["principles","steps"]},"ContractsValidateInput":{"type":"object","additionalProperties":false,"properties":{"payload_schema":{"type":"object"},"file_rules":{"$ref":"#/components/schemas/FileRules"},"examples":{"type":"array","items":{},"maxItems":16}},"required":["payload_schema"]},"ContractValidationIssue":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["contract_invalid","payload_invalid","limit_exceeded"]},"field":{"type":"string","minLength":1,"maxLength":512},"message":{"type":"string","minLength":1,"maxLength":512}},"required":["code","field","message"]},"ContractExampleValidation":{"type":"object","additionalProperties":false,"properties":{"index":{"type":"integer","minimum":0},"valid":{"type":"boolean"},"issue":{"$ref":"#/components/schemas/ContractValidationIssue"}},"required":["index","valid"]},"ContractValidation":{"type":"object","additionalProperties":false,"properties":{"validator":{"type":"string","minLength":1,"maxLength":128},"validation_only":{"const":true},"valid":{"type":"boolean","description":"True only when the proposed schema and every supplied example pass validation. A successful operation can return false; callers must inspect this field."},"schema_valid":{"type":"boolean","description":"Whether the proposed schema is supported and well formed, independently of example validity."},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ContractValidationIssue"},"maxItems":1},"examples":{"type":"array","items":{"$ref":"#/components/schemas/ContractExampleValidation"},"maxItems":16}},"required":["validator","validation_only","valid","schema_valid","issues","examples"]},"LedgerInvitationPreview":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":160},"purpose":{"type":"string","minLength":1,"maxLength":2000},"acceptance_meaning":{"type":"string","minLength":1,"maxLength":1000},"contributions":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/LedgerInvitationContribution"}}},"required":["title","purpose"]},"LedgerInvitationContribution":{"type":"object","additionalProperties":false,"properties":{"contract_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"version":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","minLength":1,"maxLength":1000},"example":{}},"required":["contract_id","version","description"]},"LedgerInvitation":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"operation_id":{"type":"string","minLength":1,"maxLength":128},"issuer":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"created_at":{"type":"string","minLength":1,"maxLength":64},"expires_at":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"recipient":{"$ref":"#/components/schemas/Principal"},"accepted_at":{"type":"string","minLength":1,"maxLength":64},"grant_revision":{"type":"integer","minimum":1},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"},"joins":{"type":"integer","minimum":0,"maximum":1000},"joinable":{"type":"boolean","description":"Whether this link is currently open to a new authenticated recipient."},"current_access":{"$ref":"#/components/schemas/LedgerInvitationCurrentAccess"}},"required":["ledger_id","invitation_id","operation_id","issuer","permissions","created_at","expires_at","status"]},"LedgerInvitationCreateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128,"description":"Generated and saved by supplied clients when omitted. Reuse the returned ID to resume; provide a stable ID when automation tracks its own retries."},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true,"description":"Explicit rights for a new invitation. May be omitted only to resume an already saved operation ID for this ledger."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"connection":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"tenant_id":{"type":"string","minLength":1,"maxLength":128},"max_items":{"type":"integer","minimum":1,"maximum":100},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"no_browser":{"type":"boolean"},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":["ledger_id"]},"LedgerInvitationCreateHttpInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"token_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"Lowercase SHA-256 hex digest of the UTF-8 encoding of the 64-character lowercase hex token; do not hash the decoded bytes."},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":["ledger_id","operation_id","permissions","token_hash"]},"LedgerInvitationGetInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}},"required":["ledger_id","invitation_id"]},"LedgerInvitationListInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"after":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["ledger_id"]},"LedgerInvitationLinkInput":{"type":"object","additionalProperties":false,"properties":{"invitation":{"type":"string","minLength":1,"maxLength":8192,"description":"Private invitation URL with bearer secret in its fragment. Never log or include it in ordinary inspection."}},"required":["invitation"]},"LedgerInvitationProofInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."}},"required":["ledger_id","invitation_id","token"]},"LedgerInvitationPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LedgerInvitation"},"maxItems":100},"next":{"anyOf":[{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},{"type":"null"}]}},"required":["items","next"]},"LedgerInvitationSetup":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"hosting_required"},"next_step":{"type":"string","minLength":1,"maxLength":2048}},"required":["status","next_step"]},"LedgerInvitationCreation":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["ready","setup_required","publishing","resolve_grants","accepted","expired","revoked"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"url":{"type":"string","minLength":1,"maxLength":8192,"description":"Private bearer URL returned only by issuing clients; handle as a secret."},"setup":{"$ref":"#/components/schemas/AccountResult"},"link_base":{"type":"string","minLength":1,"maxLength":2048,"description":"Credential-free landing page base. Issuing clients add the service and private bearer fragment."},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","complete_workspace_setup","resolve_grants","none"]},"sharing":{"$ref":"#/components/schemas/LedgerInvitationSharing"},"publication":{"$ref":"#/components/schemas/LedgerPublishResult"}},"required":["state","operation_id"]},"LedgerInvitationAcceptance":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["accepted","setup_required","expired","revoked"]},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"setup":{"$ref":"#/components/schemas/AccountResult"},"operation_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","resolve_grants","none"]}},"required":["state"]},"LedgerInvitationAcceptInput":{"type":"object","additionalProperties":false,"properties":{"invitation":{"type":"string","minLength":1,"maxLength":8192,"description":"Private invitation URL with bearer secret in its fragment. Never log or include it in ordinary inspection."},"operation_id":{"type":"string","minLength":1,"maxLength":128},"no_browser":{"type":"boolean"},"connection":{"type":"string","minLength":1,"maxLength":256}},"required":[],"anyOf":[{"required":["invitation"]},{"required":["operation_id"]}]},"LedgerInvitationDestination":{"type":"object","additionalProperties":false,"properties":{"connection":{"type":"string","minLength":1,"maxLength":256},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"tenant_id":{"type":"string","minLength":1,"maxLength":128},"principal":{"$ref":"#/components/schemas/Principal"}},"required":["connection","endpoint"]},"LedgerInvitationSharing":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"includes":{"const":"retained_records_and_files"}},"required":["ledger_id","includes"]},"LedgerInvitationResume":{"type":"object","additionalProperties":false,"properties":{"operation":{"type":"string","enum":["ledger_invitations.create","ledger_invitations.accept","invitations.create","invitations.accept"]},"arguments":{"type":"object"}},"required":["operation","arguments"]},"LedgerInvitationProgress":{"type":"object","additionalProperties":false,"properties":{"action":{"type":"string","enum":["create","accept"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"state":{"type":"string","minLength":1,"maxLength":64},"observed_at":{"type":"string","minLength":1,"maxLength":64},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"sharing":{"$ref":"#/components/schemas/LedgerInvitationSharing"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true,"description":"Explicit rights for a new invitation. May be omitted only to resume an already saved operation ID for this ledger."},"resume":{"$ref":"#/components/schemas/LedgerInvitationResume"}},"required":["action","operation_id","ledger_id","state","observed_at","resume"]},"LedgerInvitationStatusInput":{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":128},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64}},"required":[]},"LedgerInvitationProgressPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/LedgerInvitationProgress"}},"next":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64},{"type":"null"}]}},"required":["items","next"]},"WorkspaceTermsInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":256},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["terms_version","terms_fingerprint","pricing_fingerprint"],"additionalProperties":false},"WorkspaceSetup":{"type":"object","properties":{"state":{"enum":["unavailable","terms_required","payment_required","verification_required","completing","ready"]},"terms":{"anyOf":[{"type":"object"},{"type":"null"}]},"offer":{"anyOf":[{"type":"object"},{"type":"null"}]},"terms_accepted":{"type":"boolean"},"ready_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updates":{"type":"array","items":{"type":"object"}}},"required":["state","terms","offer","terms_accepted","ready_at","updates"],"additionalProperties":false},"CapabilitySummary":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","minLength":1,"maxLength":1024},"bindings":{"$ref":"#/components/schemas/OperationBindings"},"scope":{"type":"string","enum":["account","client","context","ledger","invitation"]},"effect":{"enum":["read","write"],"type":"string"},"permissions":{"type":"array","items":{"type":"string"},"maxItems":64},"retry":{"type":"string","maxLength":256},"concurrency":{"type":"string","maxLength":256},"supported":{"type":"boolean"},"enabled":{"type":"boolean"},"authorized":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"version":{"type":"string","minLength":1,"maxLength":128}},"required":["name","description","bindings","scope","effect","permissions","retry","concurrency","supported","enabled","authorized","version"]},"BillingManageInput":{"type":"object","properties":{"tenant_id":{"type":"string","minLength":1,"maxLength":128,"description":"Organization ID; defaults to the selected organization in supplied clients."},"billing_email":{"type":"string","format":"email","maxLength":254}},"required":[],"additionalProperties":false},"LimitDetail":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","enum":["payload_bytes","indexed_bytes"]},"maximum":{"type":"string","pattern":"^(0|[1-9][0-9]{0,59})$"},"actual":{"type":"string","pattern":"^(0|[1-9][0-9]{0,59})$"},"source":{"type":"string","enum":["protocol","service"]}},"required":["name","maximum","actual","source"]},"WriteSizeBound":{"type":"object","additionalProperties":false,"properties":{"payload_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"indexed_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["payload_bytes","indexed_bytes"]},"WriteServiceBounds":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["not_applicable","configured","unavailable"]},"choices":{"type":"array","maxItems":64,"items":{"$ref":"#/components/schemas/WriteSizeBound"},"description":"A contribution must fit BOTH dimensions of at least one choice. These are size bounds, not prices or account billing metadata."}},"required":["state","choices"]},"WriteProtocolLimits":{"type":"object","additionalProperties":false,"properties":{"payload_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"json_depth":{"type":"integer","minimum":0,"maximum":9007199254740991},"json_nodes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_chunk_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"attachments":{"type":"integer","minimum":0,"maximum":9007199254740991},"record_request_bytes":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["payload_bytes","json_depth","json_nodes","file_bytes","file_chunk_bytes","attachments","record_request_bytes"]},"RecordsLimitsInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["ledger_id"]},"RecordWriteLimits":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"revision":{"type":"integer","minimum":1},"protocol":{"$ref":"#/components/schemas/WriteProtocolLimits"},"service":{"$ref":"#/components/schemas/WriteServiceBounds"}},"required":["ledger_id","revision","protocol","service"]},"RecordsValidateInput":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"payload":{},"contract":{"$ref":"#/components/schemas/ContractRef"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"maxItems":16},"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["ledger_id","payload"]},"RecordWriteIssue":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["invalid_input","contract_invalid","payload_invalid","contract_not_admitted","permission_denied","not_found","revision_conflict","operation_conflict","unsupported","authority_unavailable","outcome_uncertain","outcome_expired","validation_context_unavailable","file_unavailable","integrity_failure","ledger_archived","ledger_deleted","resnapshot_required","identity_changed","authority_fenced","withdrawal_requires_resolution","limit_exceeded","rate_limited","record_erased","legal_hold","state_conflict","state_transition_invalid","state_rule_invalid","state_rule_conflict","state_payload_invalid","state_rule_not_found","state_history_limit","record_history_unavailable","record_resource_conflict","record_selection_changed","record_cursor_invalid","record_cursor_expired","payment_required"]},"message":{"type":"string","minLength":1,"maxLength":512},"field":{"type":"string","minLength":1,"maxLength":512},"limit":{"$ref":"#/components/schemas/LimitDetail"}},"required":["code","message"]},"RecordWriteValidation":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"revision":{"type":"integer","minimum":1},"validation_only":{"const":true},"acceptance_guaranteed":{"const":false},"valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True means the documented checks passed in this snapshot. Null means current service write bounds were unavailable. This operation never accepts or reserves a contribution."},"contract":{"anyOf":[{"$ref":"#/components/schemas/ContractRef"},{"type":"null"}],"description":"Selected reference when inspectable through ledger/contract read permission or explicitly supplied; otherwise null. Hidden contract metadata is not disclosed by contribution validation."},"measurements":{"type":"object","additionalProperties":false,"properties":{"payload_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"indexed_bytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["payload_bytes","indexed_bytes"]},"limits":{"$ref":"#/components/schemas/RecordWriteLimits"},"issues":{"type":"array","maxItems":1,"items":{"$ref":"#/components/schemas/RecordWriteIssue"}},"not_checked":{"type":"array","uniqueItems":true,"maxItems":8,"items":{"type":"string","enum":["operation_identity","state_rules","payment_and_spend","future_access_and_capacity","content_policy"]}}},"required":["ledger_id","revision","validation_only","acceptance_guaranteed","valid","contract","measurements","limits","issues","not_checked"]},"WorkspaceMembership":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"workspace_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["workspace_id","workspace_name","user_id","role","created_at"],"additionalProperties":true},"WorkspaceCreation":{"type":"object","properties":{"request_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"name":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","minLength":1,"maxLength":64},"is_default":{"type":"boolean","description":"Identifies the account's private default workspace provisioning request."},"error":{"anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}]}},"required":["request_id","workspace_id","name","status","error"],"additionalProperties":false},"WorkspacesListResult":{"type":"object","properties":{"workspace_setup_url":{"anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}]},"workspaces":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceMembership"}},"requests":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceCreation"}},"creation_enabled":{"type":"boolean"}},"required":["workspace_setup_url","workspaces","requests","creation_enabled"],"additionalProperties":false},"WorkspacesCreateInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"request_id":{"type":"string","minLength":1,"maxLength":128},"terms_version":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"terms_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"pricing_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["name"],"additionalProperties":false},"WorkspacesListInput":{"type":"object","properties":{},"required":[],"additionalProperties":false},"WorkspaceInvitationLinkInput":{"type":"object","properties":{"invitation":{"type":"string","minLength":1,"maxLength":8192,"description":"Complete invitation URL, including its private fragment."}},"required":["invitation"],"additionalProperties":false},"WorkspaceInvitationProofInput":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."}},"required":["workspace_id","invitation_id","token"],"additionalProperties":false},"WorkspaceInvitationsCreateInput":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168}},"required":["email"],"additionalProperties":false},"WorkspaceInvitationsCreateHttpInput":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168}},"required":["workspace_id","invitation_id","email","token"],"additionalProperties":false},"WorkspaceInvitationsListInput":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":[],"additionalProperties":false},"WorkspaceInvitationsRevokeInput":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["invitation_id"],"additionalProperties":false},"WorkspaceInvitationPreview":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"workspace_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"role":{"const":"member"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"membership":{"type":"string","enum":["active","unavailable"],"description":"Current membership for the authenticated account that previously accepted this invitation."}},"required":["workspace_id","invitation_id","workspace_name","role","expires_at","status"],"additionalProperties":false},"WorkspaceInvitationDetails":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role"],"additionalProperties":false},"WorkspaceInvitationCreated":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"},"invitation_url":{"type":"string","minLength":1,"maxLength":8192,"description":"Complete invitation URL, including its private fragment."}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role","invitation_url"],"additionalProperties":false},"WorkspaceInvitationCreatedHttp":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"},"link_base":{"type":"string","minLength":1,"maxLength":2048,"description":"Add a URL-encoded fragment containing service, workspace_id, invitation_id and token to this base."}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role","link_base"],"additionalProperties":false},"WorkspaceInvitationList":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"items":{"type":"array","items":{"type":"object","properties":{"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"}},"required":["invitation_id","email","created_by","created_at","expires_at","status","role"],"additionalProperties":false},"maxItems":100},"next_after":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]}},"required":["workspace_id","items","next_after"],"additionalProperties":false},"WorkspaceInvitationAccepted":{"type":"object","properties":{"status":{"const":"accepted"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0}},"required":["status","workspace_id","member","records_uploaded"],"additionalProperties":false},"WorkspaceInvitationAcceptance":{"type":"object","properties":{"status":{"type":"string","enum":["sign_in_required","accepted"]},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0},"service":{"type":"string","minLength":1,"maxLength":2048},"next_action":{"anyOf":[{"type":"object","properties":{"operation":{"const":"auth.login"},"arguments":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2048},"sign_in_only":{"const":true}},"required":["endpoint","sign_in_only"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false},{"type":"object","properties":{"operation":{"const":"selection.update"},"arguments":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["workspace"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false}]}},"required":["status"],"additionalProperties":false,"anyOf":[{"type":"object","properties":{"status":{"const":"accepted"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0},"next_action":{"type":"object","properties":{"operation":{"const":"selection.update"},"arguments":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["workspace"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false}},"required":["status","workspace_id","member","records_uploaded","next_action"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"sign_in_required"},"service":{"type":"string","minLength":1,"maxLength":2048},"next_action":{"type":"object","properties":{"operation":{"const":"auth.login"},"arguments":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2048},"sign_in_only":{"const":true}},"required":["endpoint","sign_in_only"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false}},"required":["status","service","next_action"],"additionalProperties":false}]},"MembershipsListHttpInput":{"type":"object","properties":{"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["workspace_id"],"additionalProperties":false},"MembershipsUpdateHttpInput":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expected_revision":{"type":"integer","minimum":1},"role":{"type":"string","enum":["owner","admin","member"]},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["member_id","expected_revision","role","workspace_id"],"additionalProperties":false},"MembershipsRemoveHttpInput":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"expected_revision":{"type":"integer","minimum":1},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Workspace ID. Supplied clients default to the selected workspace."}},"required":["member_id","expected_revision","workspace_id"],"additionalProperties":false},"InvitationProofRequest":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."},"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["invitation_id","token"],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."}},"required":["workspace_id","invitation_id","token"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"The original 256-bit bearer secret represented as 64 lowercase hex characters. Never log it."}},"required":["ledger_id","invitation_id","token"]}]},"InvitationCreateInput":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace target."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"connection":{"type":"string","minLength":1,"maxLength":128},"ledger_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit ledger target."},"operation_id":{"type":"string","minLength":1,"maxLength":128,"description":"Generated and saved by supplied clients when omitted. Reuse the returned ID to resume; provide a stable ID when automation tracks its own retries."},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true,"description":"Explicit rights for a new invitation. May be omitted only to resume an already saved operation ID for this ledger."},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"tenant_id":{"type":"string","minLength":1,"maxLength":128},"max_items":{"type":"integer","minimum":1,"maximum":100},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"no_browser":{"type":"boolean"},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":[],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace target."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"connection":{"type":"string","minLength":1,"maxLength":128}},"required":["email","workspace_id"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit ledger target."},"operation_id":{"type":"string","minLength":1,"maxLength":128,"description":"Generated and saved by supplied clients when omitted. Reuse the returned ID to resume; provide a stable ID when automation tracks its own retries."},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true,"description":"Explicit rights for a new invitation. May be omitted only to resume an already saved operation ID for this ledger."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"connection":{"type":"string","minLength":1,"maxLength":128},"endpoint":{"type":"string","minLength":1,"maxLength":2048},"tenant_id":{"type":"string","minLength":1,"maxLength":128},"max_items":{"type":"integer","minimum":1,"maximum":100},"max_pages":{"type":"integer","minimum":1,"maximum":100},"max_file_chunks":{"type":"integer","minimum":0,"maximum":1024},"grant_mappings":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/TransferGrantMapping"}},"no_browser":{"type":"boolean"},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":["ledger_id"]}]},"InvitationCreateRequest":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"token_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"Lowercase SHA-256 hex digest of the UTF-8 encoding of the 64-character lowercase hex token; do not hash the decoded bytes."},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":[],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Generate 32 random bytes and encode them as lowercase hexadecimal. Keep this proof private."},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168}},"required":["workspace_id","invitation_id","email","token"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"operation_id":{"type":"string","minLength":1,"maxLength":128},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"expires_in_hours":{"type":"integer","minimum":1,"maximum":168},"token_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64,"description":"Lowercase SHA-256 hex digest of the UTF-8 encoding of the 64-character lowercase hex token; do not hash the decoded bytes."},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"}},"required":["ledger_id","operation_id","permissions","token_hash"]}]},"InvitationListInput":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"after":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"ledger_id":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":[],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["workspace_id"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"after":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["ledger_id"]}]},"InvitationRevokeInput":{"type":"object","additionalProperties":false,"properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}]},"ledger_id":{"type":"string","minLength":1,"maxLength":128}},"required":["invitation_id"],"oneOf":[{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["invitation_id","workspace_id"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43}},"required":["ledger_id","invitation_id"]}]},"InvitationAcceptInput":{"type":"object","additionalProperties":false,"properties":{"invitation":{"type":"string","minLength":1,"maxLength":8192,"description":"Private invitation URL with bearer secret in its fragment. Never log or include it in ordinary inspection."},"operation_id":{"type":"string","minLength":1,"maxLength":128,"description":"Resume a saved ledger acceptance. Workspace acceptance retries use the same link."},"no_browser":{"type":"boolean"},"connection":{"type":"string","minLength":1,"maxLength":256}},"required":[],"anyOf":[{"required":["invitation"]},{"required":["operation_id"]}]},"InvitationCreatedWorkspace":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"},"target_type":{"const":"workspace"},"url":{"type":"string","minLength":1,"maxLength":8192,"description":"Complete invitation URL, including its private fragment."}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role","url","target_type"],"additionalProperties":false},"InvitationCreatedLedger":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["ready","setup_required","publishing","resolve_grants","accepted","expired","revoked"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"url":{"type":"string","minLength":1,"maxLength":8192,"description":"Private bearer URL returned only by issuing clients; handle as a secret."},"setup":{"$ref":"#/components/schemas/AccountResult"},"link_base":{"type":"string","minLength":1,"maxLength":2048,"description":"Credential-free landing page base. Issuing clients add the service and private bearer fragment."},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","complete_workspace_setup","resolve_grants","none"]},"sharing":{"$ref":"#/components/schemas/LedgerInvitationSharing"},"publication":{"$ref":"#/components/schemas/LedgerPublishResult"},"target_type":{"const":"ledger"}},"required":["state","operation_id","target_type"]},"InvitationCreated":{"anyOf":[{"$ref":"#/components/schemas/InvitationCreatedWorkspace"},{"$ref":"#/components/schemas/InvitationCreatedLedger"}]},"InvitationCreatedHttpWorkspace":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"},"link_base":{"type":"string","minLength":1,"maxLength":2048,"description":"Add a URL-encoded fragment containing service, workspace_id, invitation_id and token to this base."},"target_type":{"const":"workspace"}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role","link_base","target_type"],"additionalProperties":false},"InvitationCreatedHttpLedger":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["ready","setup_required","publishing","resolve_grants","accepted","expired","revoked"]},"operation_id":{"type":"string","minLength":1,"maxLength":128},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"url":{"type":"string","minLength":1,"maxLength":8192,"description":"Private bearer URL returned only by issuing clients; handle as a secret."},"setup":{"$ref":"#/components/schemas/AccountResult"},"link_base":{"type":"string","minLength":1,"maxLength":2048,"description":"Credential-free landing page base. Issuing clients add the service and private bearer fragment."},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","complete_workspace_setup","resolve_grants","none"]},"sharing":{"$ref":"#/components/schemas/LedgerInvitationSharing"},"publication":{"$ref":"#/components/schemas/LedgerPublishResult"},"target_type":{"const":"ledger"}},"required":["state","operation_id","target_type"]},"InvitationCreatedHttp":{"anyOf":[{"$ref":"#/components/schemas/InvitationCreatedHttpWorkspace"},{"$ref":"#/components/schemas/InvitationCreatedHttpLedger"}]},"InvitationPreviewWorkspace":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"workspace_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"role":{"const":"member"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"target_type":{"const":"workspace"},"membership":{"type":"string","enum":["active","unavailable"],"description":"Current membership for the authenticated account that previously accepted this invitation."}},"required":["workspace_id","invitation_id","workspace_name","role","expires_at","status","target_type"],"additionalProperties":false},"InvitationPreviewLedger":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"operation_id":{"type":"string","minLength":1,"maxLength":128},"issuer":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"created_at":{"type":"string","minLength":1,"maxLength":64},"expires_at":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"recipient":{"$ref":"#/components/schemas/Principal"},"accepted_at":{"type":"string","minLength":1,"maxLength":64},"grant_revision":{"type":"integer","minimum":1},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"},"joins":{"type":"integer","minimum":0,"maximum":1000},"joinable":{"type":"boolean","description":"Whether this link is currently open to a new authenticated recipient."},"target_type":{"const":"ledger"},"current_access":{"$ref":"#/components/schemas/LedgerInvitationCurrentAccess"}},"required":["ledger_id","invitation_id","operation_id","issuer","permissions","created_at","expires_at","status","target_type"]},"InvitationPreview":{"anyOf":[{"$ref":"#/components/schemas/InvitationPreviewWorkspace"},{"$ref":"#/components/schemas/InvitationPreviewLedger"}]},"InvitationAcceptedWorkspace":{"type":"object","properties":{"status":{"type":"string","enum":["sign_in_required","accepted"]},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0},"service":{"type":"string","minLength":1,"maxLength":2048},"next_action":{"anyOf":[{"type":"object","properties":{"operation":{"const":"auth.login"},"arguments":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2048},"sign_in_only":{"const":true}},"required":["endpoint","sign_in_only"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false},{"type":"object","properties":{"operation":{"const":"selection.update"},"arguments":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."}},"required":["workspace"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false}]},"target_type":{"const":"workspace"}},"required":["status","target_type"],"additionalProperties":false,"anyOf":[{"type":"object","properties":{"status":{"const":"accepted"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0},"next_action":{"type":"object","properties":{"operation":{"const":"selection.update"},"arguments":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."}},"required":["workspace"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false},"target_type":{"const":"workspace"}},"required":["status","workspace_id","member","records_uploaded","next_action","target_type"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"sign_in_required"},"service":{"type":"string","minLength":1,"maxLength":2048},"next_action":{"type":"object","properties":{"operation":{"const":"auth.login"},"arguments":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1,"maxLength":2048},"sign_in_only":{"const":true}},"required":["endpoint","sign_in_only"],"additionalProperties":false}},"required":["operation","arguments"],"additionalProperties":false},"target_type":{"const":"workspace"}},"required":["status","service","next_action","target_type"],"additionalProperties":false}]},"InvitationAcceptedLedger":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["accepted","setup_required","expired","revoked"]},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"setup":{"$ref":"#/components/schemas/AccountResult"},"operation_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","resolve_grants","none"]},"target_type":{"const":"ledger"}},"required":["state","target_type"]},"InvitationAccepted":{"anyOf":[{"$ref":"#/components/schemas/InvitationAcceptedWorkspace"},{"$ref":"#/components/schemas/InvitationAcceptedLedger"}]},"InvitationAcceptedHttpWorkspace":{"type":"object","properties":{"status":{"const":"accepted"},"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"member":{"type":"object","properties":{"member_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"user_id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["owner","admin","member"]},"revision":{"type":"integer","minimum":1},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"}},"required":["member_id","user_id","role","revision","created_at"],"additionalProperties":false},"records_uploaded":{"const":0},"target_type":{"const":"workspace"}},"required":["status","workspace_id","member","records_uploaded","target_type"],"additionalProperties":false},"InvitationAcceptedHttpLedger":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","enum":["accepted","setup_required","expired","revoked"]},"invitation":{"$ref":"#/components/schemas/LedgerInvitation"},"setup":{"$ref":"#/components/schemas/AccountResult"},"operation_id":{"type":"string","minLength":1,"maxLength":128},"connection":{"type":"string","minLength":1,"maxLength":256},"destination":{"$ref":"#/components/schemas/LedgerInvitationDestination"},"next_action":{"type":"string","enum":["create","accept","authenticate","resolve_grants","none"]},"target_type":{"const":"ledger"}},"required":["state","target_type"]},"InvitationAcceptedHttp":{"anyOf":[{"$ref":"#/components/schemas/InvitationAcceptedHttpWorkspace"},{"$ref":"#/components/schemas/InvitationAcceptedHttpLedger"}]},"InvitationPageWorkspace":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"items":{"type":"array","items":{"type":"object","properties":{"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"}},"required":["invitation_id","email","created_by","created_at","expires_at","status","role"],"additionalProperties":false},"maxItems":100},"target_type":{"const":"workspace"},"next":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]}},"required":["workspace_id","items","next","target_type"],"additionalProperties":false},"InvitationPageLedger":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LedgerInvitation"},"maxItems":100},"next":{"anyOf":[{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},{"type":"null"}]},"target_type":{"const":"ledger"}},"required":["items","next","target_type"]},"InvitationPage":{"anyOf":[{"$ref":"#/components/schemas/InvitationPageWorkspace"},{"$ref":"#/components/schemas/InvitationPageLedger"}]},"InvitationRevokedWorkspace":{"type":"object","properties":{"workspace_id":{"type":"string","minLength":1,"maxLength":128,"description":"Explicit workspace ID."},"invitation_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string","minLength":1,"maxLength":254,"format":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"created_by":{"type":"string","minLength":1,"maxLength":256},"created_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"expires_at":{"type":"string","minLength":1,"maxLength":256,"format":"date-time"},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"role":{"const":"member"},"target_type":{"const":"workspace"}},"required":["workspace_id","invitation_id","email","created_by","created_at","expires_at","status","role","target_type"],"additionalProperties":false},"InvitationRevokedLedger":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"operation_id":{"type":"string","minLength":1,"maxLength":128},"issuer":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"created_at":{"type":"string","minLength":1,"maxLength":64},"expires_at":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"recipient":{"$ref":"#/components/schemas/Principal"},"accepted_at":{"type":"string","minLength":1,"maxLength":64},"grant_revision":{"type":"integer","minimum":1},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"},"joins":{"type":"integer","minimum":0,"maximum":1000},"joinable":{"type":"boolean","description":"Whether this link is currently open to a new authenticated recipient."},"target_type":{"const":"ledger"}},"required":["ledger_id","invitation_id","operation_id","issuer","permissions","created_at","expires_at","status","target_type"]},"InvitationRevoked":{"anyOf":[{"$ref":"#/components/schemas/InvitationRevokedWorkspace"},{"$ref":"#/components/schemas/InvitationRevokedLedger"}]},"InvitationDetailsLedger":{"type":"object","additionalProperties":false,"properties":{"ledger_id":{"type":"string","minLength":1,"maxLength":128},"invitation_id":{"type":"string","pattern":"^invitation_[a-f0-9]{32}$","maxLength":43},"operation_id":{"type":"string","minLength":1,"maxLength":128},"issuer":{"$ref":"#/components/schemas/Principal"},"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"minItems":1,"maxItems":9,"uniqueItems":true},"created_at":{"type":"string","minLength":1,"maxLength":64},"expires_at":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","enum":["pending","accepted","expired","revoked"]},"recipient":{"$ref":"#/components/schemas/Principal"},"accepted_at":{"type":"string","minLength":1,"maxLength":64},"grant_revision":{"type":"integer","minimum":1},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Restrict append permission to these contract IDs, across their admitted versions. Omit to grant append access to every admitted contract."},"max_joins":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum distinct authenticated recipients. Omit for a one-time invitation."},"preview":{"$ref":"#/components/schemas/LedgerInvitationPreview"},"joins":{"type":"integer","minimum":0,"maximum":1000},"joinable":{"type":"boolean","description":"Whether this link is currently open to a new authenticated recipient."},"target_type":{"const":"ledger"}},"required":["ledger_id","invitation_id","operation_id","issuer","permissions","created_at","expires_at","status","target_type"]},"InvitationDetails":{"anyOf":[{"$ref":"#/components/schemas/InvitationDetailsLedger"}]},"InvitationProgressPage":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/LedgerInvitationProgress"}},"next":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$","maxLength":64},{"type":"null"}]},"target_type":{"const":"ledger"}},"required":["items","next","target_type"]},"LedgerInvitationCurrentAccess":{"type":"object","description":"Current usable permissions from the invitation offer for the authenticated recipient who accepted it. An empty list means the recipient can no longer use any offered permission.","properties":{"permissions":{"type":"array","items":{"type":"string","enum":["ledger.read","contracts.read","records.append","records.prepare","records.read","records.outcome.own","files.upload","files.read","changes.read"]},"maxItems":9,"uniqueItems":true},"append_contract_ids":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$","maxLength":128},"minItems":1,"maxItems":64,"uniqueItems":true,"description":"Admitted contract IDs currently available to this recipient when append access is scoped."}},"required":["permissions"],"additionalProperties":false}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}}}