{"openapi":"3.1.0","info":{"title":"ToeprintAI API","description":"Unified provenance, policy, ledger, and catalog governance API.","version":"0.1.0"},"paths":{"/metrics":{"get":{"summary":"Metrics","description":"Endpoint that serves Prometheus metrics.","operationId":"metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"tags":["ops"],"summary":"Health","description":"Platform system healthcheck.\nReturns status of all critical platform components.\nUse before demos, before prospect calls, after deployments.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["ops"],"summary":"Ready","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","parameters":[{"name":"X-Org-Slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Org-Slug"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_api_v1_auth_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}}}},"/api/v1/auth/register-org":{"post":{"tags":["auth"],"summary":"Register Org","operationId":"register_org_api_v1_auth_register_org_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterOrgRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/bulk":{"post":{"tags":["assets"],"summary":"Create Assets Bulk","operationId":"create_assets_bulk_api_v1_assets_bulk_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AssetCreate"},"type":"array","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Response Create Assets Bulk Api V1 Assets Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets":{"get":{"tags":["assets"],"summary":"List Assets","operationId":"list_assets_api_v1_assets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Response List Assets Api V1 Assets Get"}}}}}},"post":{"tags":["assets"],"summary":"Create Asset","operationId":"create_asset_api_v1_assets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/lineage":{"get":{"tags":["assets"],"summary":"Get Lineage","operationId":"get_lineage_api_v1_assets__asset_id__lineage_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineageNode"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/new-version":{"post":{"tags":["assets"],"summary":"New Version","description":"Create a derived version of an asset.\nGovernance-material meta field changes are allowed here (new version = new governance lifecycle).\nAfter creation, runs full authorization evaluation on the child asset.\nIf the child is suspended, fires Slack/Teams notification.","operationId":"new_version_api_v1_assets__asset_id__new_version_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewVersionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}":{"patch":{"tags":["assets"],"summary":"Update Asset","description":"Update asset metadata.\nGovernance-material meta fields (e.g. risk_classification, drift_status, model_type)\nare allowed through PATCH — they trigger a GOVERNANCE_MATERIAL_CHANGE event and\na full policy re-evaluation rather than being blocked.\nUse /new-version for changes that represent a new model lifecycle (retraining, etc.).\n\nMaterial change enforcement:\n- Detects which changed fields are governance-material\n- Fires GOVERNANCE_MATERIAL_CHANGE event (separate from TRANSFORM for auditability)\n- Re-runs authorization against all active policies\n- Suspends asset if any policy now fires DENY\n- Fires Slack/Teams notification on suspension","operationId":"update_asset_api_v1_assets__asset_id__patch","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["assets"],"summary":"Get Asset","operationId":"get_asset_api_v1_assets__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["assets"],"summary":"Delete Asset","operationId":"delete_asset_api_v1_assets__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deps/graph/all":{"get":{"tags":["dependencies"],"summary":"Get Full Graph","operationId":"get_full_graph_api_v1_deps_graph_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/deps/{asset_id}/dependencies":{"post":{"tags":["dependencies"],"summary":"Create Dependency","operationId":"create_dependency_api_v1_deps__asset_id__dependencies_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dependencies"],"summary":"Get Dependencies","operationId":"get_dependencies_api_v1_deps__asset_id__dependencies_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyGraphOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deps/{asset_id}/dependencies/{dependency_id}":{"delete":{"tags":["dependencies"],"summary":"Delete Dependency","operationId":"delete_dependency_api_v1_deps__asset_id__dependencies__dependency_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"dependency_id","in":"path","required":true,"schema":{"type":"integer","title":"Dependency Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dependencies/graph/all":{"get":{"tags":["graph"],"summary":"Get Full Graph","operationId":"get_full_graph_api_v1_dependencies_graph_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/dependencies/{asset_id}/dependencies":{"post":{"tags":["graph"],"summary":"Create Dependency","operationId":"create_dependency_api_v1_dependencies__asset_id__dependencies_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["graph"],"summary":"Get Dependencies","operationId":"get_dependencies_api_v1_dependencies__asset_id__dependencies_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyGraphOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dependencies/{asset_id}/dependencies/{dependency_id}":{"delete":{"tags":["graph"],"summary":"Delete Dependency","operationId":"delete_dependency_api_v1_dependencies__asset_id__dependencies__dependency_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"dependency_id","in":"path","required":true,"schema":{"type":"integer","title":"Dependency Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events":{"post":{"tags":["events"],"summary":"Append Event","operationId":"append_event_api_v1_events_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["events"],"summary":"List Events","operationId":"list_events_api_v1_events_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventOut"},"title":"Response List Events Api V1 Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/asset/{asset_id}":{"get":{"tags":["events"],"summary":"Get Asset Events","operationId":"get_asset_events_api_v1_events_asset__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventOut"},"title":"Response Get Asset Events Api V1 Events Asset  Asset Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/evaluate":{"post":{"tags":["policy"],"summary":"Evaluate","operationId":"evaluate_api_v1_policy_evaluate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/decisions":{"get":{"tags":["policy"],"summary":"List Decisions","operationId":"list_decisions_api_v1_policy_decisions_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Decisions Api V1 Policy Decisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/policies":{"get":{"tags":["policy"],"summary":"List Policies","operationId":"list_policies_api_v1_policy_policies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PolicyOut"},"type":"array","title":"Response List Policies Api V1 Policy Policies Get"}}}}}},"post":{"tags":["policy"],"summary":"Create Policy","operationId":"create_policy_api_v1_policy_policies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/policies/{policy_id}":{"patch":{"tags":["policy"],"summary":"Update Policy","operationId":"update_policy_api_v1_policy_policies__policy_id__patch","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["policy"],"summary":"Delete Policy","operationId":"delete_policy_api_v1_policy_policies__policy_id__delete","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/policies/{policy_id}/history":{"get":{"tags":["policy"],"summary":"Get Policy History","operationId":"get_policy_history_api_v1_policy_policies__policy_id__history_get","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response Get Policy History Api V1 Policy Policies  Policy Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/policies/{policy_id}/attest":{"post":{"tags":["attestation"],"summary":"Attest Policy","description":"Cryptographically sign the current state of a policy.\n\nThe signature covers: policy name, effect, conditions JSON, is_active status,\nattested_by email, attested_at timestamp, org_id, and any note.\n\nOnce signed, this record proves what the policy said at this moment.\nEven if the policy is later modified or deleted, the attestation remains\nand can be independently verified.","operationId":"attest_policy_api_v1_policy_policies__policy_id__attest_post","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/policies/{policy_id}/attestations":{"get":{"tags":["attestation"],"summary":"List Attestations","description":"List all attestations for a policy, newest first.","operationId":"list_attestations_api_v1_policy_policies__policy_id__attestations_get","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"integer","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttestationOut"},"title":"Response List Attestations Api V1 Policy Policies  Policy Id  Attestations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/attestations/{attestation_id}":{"get":{"tags":["attestation"],"summary":"Get Attestation","description":"Get a single attestation by ID.","operationId":"get_attestation_api_v1_policy_attestations__attestation_id__get","parameters":[{"name":"attestation_id","in":"path","required":true,"schema":{"type":"integer","title":"Attestation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/policy/attestations/verify":{"post":{"tags":["attestation"],"summary":"Verify Attestation","description":"Verify a policy attestation.\n\nSupply either:\n- attestation_id: the platform looks up the attestation and verifies it\n- manifest + signature_b64 + verify_key_b64: verify raw fields directly\n\nReturns valid: true/false, computed hash, stored hash, and reason if invalid.\nThe same verification can be performed offline using adpep_verifier.html.","operationId":"verify_attestation_api_v1_policy_attestations_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAttestationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAttestationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orphans/summary":{"get":{"tags":["orphans"],"summary":"Orphan Summary","description":"Counts only — for dashboard widget. Fast.","operationId":"orphan_summary_api_v1_orphans_summary_get","parameters":[{"name":"stale_days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Stale Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orphans":{"get":{"tags":["orphans"],"summary":"Run Orphan Scan","description":"Run full orphan scan. Returns all findings sorted by severity.","operationId":"run_orphan_scan_api_v1_orphans_get","parameters":[{"name":"stale_days","in":"query","required":false,"schema":{"type":"integer","description":"Days without governance event before asset is considered stale","default":90,"title":"Stale Days"},"description":"Days without governance event before asset is considered stale"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity: critical | high | medium","title":"Severity"},"description":"Filter by severity: critical | high | medium"},{"name":"orphan_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by class: UNREGISTERED_DEPENDENCY | NO_POLICY_COVERAGE | NO_SIGNED_PACKAGE | STALE_GOVERNANCE | EXPORTED_WITHOUT_PACKAGE | SUSPENDED_DEPENDENCY","title":"Orphan Class"},"description":"Filter by class: UNREGISTERED_DEPENDENCY | NO_POLICY_COVERAGE | NO_SIGNED_PACKAGE | STALE_GOVERNANCE | EXPORTED_WITHOUT_PACKAGE | SUSPENDED_DEPENDENCY"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/issue":{"post":{"tags":["tokens"],"summary":"Issue Execution Token","description":"Issue a signed execution token for a governed asset.\n\nPolicy evaluation runs before token issuance. If any active policy\nfires DENY for the requested actions, no token is issued.\n\nThe token is signed with Ed25519 and can be verified offline by the\nSDK or by adpep_verifier.html without calling ToeprintAI.","operationId":"issue_execution_token_api_v1_tokens_issue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__tokens__IssueTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/verify":{"post":{"tags":["tokens"],"summary":"Verify Execution Token","description":"Verify an execution token.\nCalled by the SDK before each governed function execution.\nReturns valid: true/false with reason.\n\nThis endpoint is designed to be fast — it does one DB lookup\nplus local cryptographic verification.","operationId":"verify_execution_token_api_v1_tokens_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/summary":{"get":{"tags":["tokens"],"summary":"Token Summary","description":"Counts for dashboard widget.","operationId":"token_summary_api_v1_tokens_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/tokens":{"get":{"tags":["tokens"],"summary":"List Tokens","description":"List execution tokens for this org.","operationId":"list_tokens_api_v1_tokens_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/sdk/counterparty":{"get":{"tags":["tokens"],"summary":"Get Counterparty Sdk","description":"Download the ADPEP Counterparty SDK.\n\nApache-2.0 open source reference implementation for counterparty\norganizations. Self-sovereign key generation and Toeprint signing.\nPrivate key never leaves counterparty infrastructure.\n\nUsage after download:\n    python3 adpep_counterparty_sdk.py generate-keys --org-slug your-org","operationId":"get_counterparty_sdk_api_v1_tokens_sdk_counterparty_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/v1/tokens/sdk/reference":{"get":{"tags":["tokens"],"summary":"Get Reference Sdk","description":"Download the reference SDK Python decorator.","operationId":"get_reference_sdk_api_v1_tokens_sdk_reference_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/v1/tokens/{token_id}":{"get":{"tags":["tokens"],"summary":"Get Token","description":"Get single token detail.","operationId":"get_token_api_v1_tokens__token_id__get","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/{token_id}/revoke":{"post":{"tags":["tokens"],"summary":"Revoke Token","description":"Manually revoke a specific token.","operationId":"revoke_token_api_v1_tokens__token_id__revoke_post","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__tokens__RevokeTokenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/revoke-asset":{"post":{"tags":["tokens"],"summary":"Revoke Asset Tokens","description":"Revoke all active tokens for an asset.","operationId":"revoke_asset_tokens_api_v1_tokens_revoke_asset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeAssetTokensRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shadow-ai/summary":{"get":{"tags":["shadow-ai"],"summary":"Shadow Ai Summary","description":"Counts for dashboard widget. Fast.","operationId":"shadow_ai_summary_api_v1_shadow_ai_summary_get","parameters":[{"name":"dormant_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Dormant Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shadow-ai":{"get":{"tags":["shadow-ai"],"summary":"Run Scan","description":"Run full shadow AI scan across all 8 detection classes.","operationId":"run_scan_api_v1_shadow_ai_get","parameters":[{"name":"dormant_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Dormant Days"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"shadow_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shadow Class"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shadow-ai/enroll":{"post":{"tags":["shadow-ai"],"summary":"Enroll Shadow Asset","description":"One-click enrollment of a detected shadow AI asset.\nTakes the enrollment_prefill from a finding and creates the asset.\nCaller provides any overrides to the prefill values.","operationId":"enroll_shadow_asset_api_v1_shadow_ai_enroll_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/shadow-ai/known-apis":{"get":{"tags":["shadow-ai"],"summary":"List Known Apis","description":"List all AI API endpoints and model patterns being monitored.","operationId":"list_known_apis_api_v1_shadow_ai_known_apis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/replay/asset/{asset_id}":{"get":{"tags":["replay"],"summary":"Replay Asset Endpoint","description":"Reconstruct the complete governance state of an asset at a specific\npoint in time, computed from the immutable signed event chain.\n\nThis is the answer to: \"Show me the governance state of this model on March 15th.\"\n\nThe response is computed from immutable event history, not from current\ndatabase state. If sign=true, the snapshot is signed with Ed25519 —\nproving it has not been modified after generation.","operationId":"replay_asset_endpoint_api_v1_replay_asset__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"as_of","in":"query","required":true,"schema":{"type":"string","description":"ISO 8601 datetime e.g. 2026-03-15T00:00:00Z","title":"As Of"},"description":"ISO 8601 datetime e.g. 2026-03-15T00:00:00Z"},{"name":"sign","in":"query","required":false,"schema":{"type":"boolean","description":"Sign the snapshot with Ed25519","default":true,"title":"Sign"},"description":"Sign the snapshot with Ed25519"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/replay/portfolio":{"get":{"tags":["replay"],"summary":"Replay Portfolio Endpoint","description":"Reconstruct the governance state of all governed assets at a point in time.\nOptionally filter to a specific tag (e.g. tag=sr11-7, tag=production).\n\nReturns a portfolio-level signed snapshot with per-asset authorization\nstatus, governance gaps, and summary counts — all as they existed at\nthe specified datetime.","operationId":"replay_portfolio_endpoint_api_v1_replay_portfolio_get","parameters":[{"name":"as_of","in":"query","required":true,"schema":{"type":"string","description":"ISO 8601 datetime e.g. 2026-03-15T00:00:00Z","title":"As Of"},"description":"ISO 8601 datetime e.g. 2026-03-15T00:00:00Z"},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to assets with this tag","title":"Tag"},"description":"Filter to assets with this tag"},{"name":"sign","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sign"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/replay/verify":{"post":{"tags":["replay"],"summary":"Verify Snapshot","description":"Verify a signed examination replay snapshot.\nWorks for both asset and portfolio snapshots.\n\nSupply the full snapshot JSON (including _proof field).\nReturns valid: true/false with reason.\n\nThe same verification can be performed offline using adpep_verifier.html\nby pasting the _proof field contents.","operationId":"verify_snapshot_api_v1_replay_verify_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/replay/timeline/{asset_id}":{"get":{"tags":["replay"],"summary":"Get Governance Timeline","description":"List all governance state changes for an asset in chronological order.\nShows every point in time where the authorization status, policy coverage,\nor signed package state changed — the complete governance history.\n\nThis is the \"what changed and when\" view. Use replay/asset to get the\nfull state snapshot at any specific point in this timeline.","operationId":"get_governance_timeline_api_v1_replay_timeline__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines":{"post":{"tags":["rag"],"summary":"Create Pipeline","description":"Register a new RAG pipeline for governance.","operationId":"create_pipeline_api_v1_rag_pipelines_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rag"],"summary":"List Pipelines","description":"List all RAG pipelines for this org.","operationId":"list_pipelines_api_v1_rag_pipelines_get","parameters":[{"name":"health","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/summary":{"get":{"tags":["rag"],"summary":"Pipeline Summary","description":"Portfolio-level RAG governance health summary.","operationId":"pipeline_summary_api_v1_rag_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}":{"get":{"tags":["rag"],"summary":"Get Pipeline","description":"Get pipeline detail with current health evaluation.","operationId":"get_pipeline_api_v1_rag_pipelines__pipeline_id__get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["rag"],"summary":"Update Pipeline","description":"Update pipeline configuration.","operationId":"update_pipeline_api_v1_rag_pipelines__pipeline_id__put","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePipelineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rag"],"summary":"Delete Pipeline","description":"Delete a RAG pipeline registration.","operationId":"delete_pipeline_api_v1_rag_pipelines__pipeline_id__delete","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}/evaluate":{"post":{"tags":["rag"],"summary":"Evaluate Pipeline","description":"Evaluate pipeline health now and update stored health status.","operationId":"evaluate_pipeline_api_v1_rag_pipelines__pipeline_id__evaluate_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}/corpus/snapshot":{"post":{"tags":["rag"],"summary":"Create Corpus Snapshot","description":"Record a corpus freshness snapshot — call this whenever the corpus is refreshed.","operationId":"create_corpus_snapshot_api_v1_rag_pipelines__pipeline_id__corpus_snapshot_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusSnapshotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}/corpus/history":{"get":{"tags":["rag"],"summary":"Get Corpus History","description":"Get corpus freshness snapshot history.","operationId":"get_corpus_history_api_v1_rag_pipelines__pipeline_id__corpus_history_get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}/prompt/version":{"post":{"tags":["rag"],"summary":"Create Prompt Version","description":"Record a new prompt version. Detects changes via content hash.","operationId":"create_prompt_version_api_v1_rag_pipelines__pipeline_id__prompt_version_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptVersionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rag/pipelines/{pipeline_id}/prompt/history":{"get":{"tags":["rag"],"summary":"Get Prompt History","description":"Get prompt version history.","operationId":"get_prompt_history_api_v1_rag_pipelines__pipeline_id__prompt_history_get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/":{"get":{"tags":["ensembles"],"summary":"List Ensembles","operationId":"list_ensembles_api_v1_ensembles__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["ensembles"],"summary":"Create Ensemble","description":"Register a multi-model ensemble for governance.","operationId":"create_ensemble_api_v1_ensembles__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEnsembleRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/summary":{"get":{"tags":["ensembles"],"summary":"Ensemble Summary","operationId":"ensemble_summary_api_v1_ensembles_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/ensembles/{ensemble_id}/decisions/{decision_id}":{"get":{"tags":["ensembles"],"summary":"Get Decision","operationId":"get_decision_api_v1_ensembles__ensemble_id__decisions__decision_id__get","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}},{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/{ensemble_id}/decisions":{"get":{"tags":["ensembles"],"summary":"List Decisions","operationId":"list_decisions_api_v1_ensembles__ensemble_id__decisions_get","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/{ensemble_id}":{"get":{"tags":["ensembles"],"summary":"Get Ensemble","description":"Get ensemble with live member state evaluation.","operationId":"get_ensemble_api_v1_ensembles__ensemble_id__get","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["ensembles"],"summary":"Update Ensemble","operationId":"update_ensemble_api_v1_ensembles__ensemble_id__put","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEnsembleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ensembles"],"summary":"Delete Ensemble","operationId":"delete_ensemble_api_v1_ensembles__ensemble_id__delete","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/{ensemble_id}/decide":{"post":{"tags":["ensembles"],"summary":"Make Decision","description":"Evaluate the ensemble and produce a signed decision package.\n\nFetches the current governance state of every member model,\napplies the most_restrictive aggregation rule, signs the result,\nand stores the decision for examination.","operationId":"make_decision_api_v1_ensembles__ensemble_id__decide_post","parameters":[{"name":"ensemble_id","in":"path","required":true,"schema":{"type":"string","title":"Ensemble Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ensembles/verify":{"post":{"tags":["ensembles"],"summary":"Verify Ensemble Decision","description":"Verify a signed ensemble decision offline.","operationId":"verify_ensemble_decision_api_v1_ensembles_verify_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/posture/score":{"get":{"tags":["posture"],"summary":"Get Posture Score","description":"Compute and return the full signed Governance Posture Score.\n\nThe score is computed from seven sub-scores derived exclusively from\nthe immutable event chain. The response includes a signed verification\npackage that any third party can verify offline without contacting\nToeprintAI — constituting proof of governance program health rather\nthan self-reported documentation of it.\n\nUse cases:\n- Regulatory examination: hand the examiner a signed score package\n- Insurance underwriting: provide standardized governance evidence\n- M&A due diligence: independent verification of governance maturity\n- Board reporting: quantified governance health with audit trail","operationId":"get_posture_score_api_v1_posture_score_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/posture/score/summary":{"get":{"tags":["posture"],"summary":"Get Posture Summary","description":"Lightweight score summary for dashboard widgets — no signature overhead.","operationId":"get_posture_summary_api_v1_posture_score_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/posture/verify":{"post":{"tags":["posture"],"summary":"Verify Score Package","description":"Verify a signed posture score package offline.\nAny third party can verify without a ToeprintAI account.","operationId":"verify_score_package_api_v1_posture_verify_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/policies":{"post":{"tags":["escalate"],"summary":"Create Policy","description":"Create a standing approval policy for an asset.\nAutomatically applied to any escalation on this asset where risk_score >= risk_threshold.\nChain modes: sequential (ordered), quorum (N of M), single (any one approver).","operationId":"create_policy_api_v1_escalate_policies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalPolicyRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/policies/{asset_id}":{"get":{"tags":["escalate"],"summary":"List Policies","operationId":"list_policies_api_v1_escalate_policies__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/policies/{policy_id}":{"delete":{"tags":["escalate"],"summary":"Deactivate Policy","operationId":"deactivate_policy_api_v1_escalate_policies__policy_id__delete","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/":{"post":{"tags":["escalate"],"summary":"Register Escalation","description":"Register a new escalation. Chain-aware.\nIf asset has a standing approval policy, that chain is loaded automatically.\nPass override_chain to supplement or replace it for this specific escalation.\nGoverned system must block until can_proceed=true.","operationId":"register_escalation_api_v1_escalate__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["escalate"],"summary":"List Escalations","operationId":"list_escalations_api_v1_escalate__get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/summary":{"get":{"tags":["escalate"],"summary":"Escalation Summary","operationId":"escalation_summary_api_v1_escalate_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/escalate/pending":{"get":{"tags":["escalate"],"summary":"List Pending","operationId":"list_pending_api_v1_escalate_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/escalate/{escalation_id}/status":{"get":{"tags":["escalate"],"summary":"Poll Status","operationId":"poll_status_api_v1_escalate__escalation_id__status_get","parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/{escalation_id}/chain":{"get":{"tags":["escalate"],"summary":"Get Chain Detail","operationId":"get_chain_detail_api_v1_escalate__escalation_id__chain_get","parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/{escalation_id}":{"get":{"tags":["escalate"],"summary":"Get Escalation","operationId":"get_escalation_api_v1_escalate__escalation_id__get","parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/{escalation_id}/approve":{"post":{"tags":["escalate"],"summary":"Approve Escalation","description":"Record approval. Chain-aware:\n- SINGLE: approves immediately\n- SEQUENTIAL: records stage, returns next_required if chain not yet satisfied\n- QUORUM: records vote, proceeds if quorum reached","operationId":"approve_escalation_api_v1_escalate__escalation_id__approve_post","parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalate/{escalation_id}/reject":{"post":{"tags":["escalate"],"summary":"Reject Escalation","description":"Reject and terminate chain immediately. Function is permanently blocked.","operationId":"reject_escalation_api_v1_escalate__escalation_id__reject_post","parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/{asset_id}":{"post":{"tags":["capsule"],"summary":"Issue Capsule","description":"Issue an AI Asset Capsule for the specified asset.\n\nThe capsule implements all five AI Asset Capsule properties:\n  1. Self-Describing    — complete governance manifest\n  2. Self-Verifying     — embedded Ed25519 verification\n  3. Self-Enforcing     — embedded Python policy engine\n  4. Autonomously Updating — signed sync anchor + delta endpoint\n  5. Cryptographically Bound — content hash in capsule identity\n\nReturns a .capsule ZIP file containing all components.","operationId":"issue_capsule_api_v1_capsule__asset_id__post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCapsuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/{asset_id}/preview":{"get":{"tags":["capsule"],"summary":"Preview Capsule","description":"Preview what a capsule would contain without generating it.","operationId":"preview_capsule_api_v1_capsule__asset_id__preview_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/delta":{"post":{"tags":["capsule"],"summary":"Serve Delta","description":"Serve delta events for autonomous capsule sync (Property 4).\n\nA capsule presents its signed sync anchor. This endpoint returns\nall governance events that occurred after the anchor's last_event_at\ntimestamp, each signed so the capsule can verify before accepting.\n\nPatent claim: a delta request protocol by which the capsule presents\nits sync anchor to an ADPEP node and receives signed governance events\nthat occurred after the sync anchor timestamp.","operationId":"serve_delta_api_v1_capsule_delta_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeltaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/verify":{"post":{"tags":["capsule"],"summary":"Verify Capsule","description":"Verify a capsule signature offline.\nAny third party can verify without a ToeprintAI account.","operationId":"verify_capsule_api_v1_capsule_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__capsule__VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/summary":{"get":{"tags":["capsule"],"summary":"Capsule Summary","description":"Portfolio summary of capsule issuances.","operationId":"capsule_summary_api_v1_capsule_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/capsule/composite/preview":{"post":{"tags":["capsule"],"summary":"Preview Composite","description":"Preview what a composite capsule would contain before issuing.","operationId":"preview_composite_api_v1_capsule_composite_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_preview_composite_api_v1_capsule_composite_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/revocation/{asset_id}":{"get":{"tags":["capsule"],"summary":"Get Revocation Status","description":"Check revocation status for a capsule by asset ID.\nReferenced in every capsule manifest revocation.revocation_url.","operationId":"get_revocation_status_api_v1_capsule_revocation__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsule/keys":{"get":{"tags":["capsule"],"summary":"Get Historical Keys","description":"Returns the current and historical signing keys for this ADPEP node.\nReferenced in every capsule manifest signing_key_policy.historical_keys_url.\nCapsule verifiers use this to look up the correct public key by key_version.","operationId":"get_historical_keys_api_v1_capsule_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/capsule/composite":{"post":{"tags":["capsule"],"summary":"Issue Composite Capsule","description":"Merge multiple capsules from different organizations into a single\ncomposite capsule with independently verifiable provenance.\nPatent claim N7: distributed AI governance trust network.","operationId":"issue_composite_capsule_api_v1_capsule_composite_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_issue_composite_capsule_api_v1_capsule_composite_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ledger/package":{"post":{"tags":["ledger"],"summary":"Package Asset","operationId":"package_asset_api_v1_ledger_package_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ledger/verify":{"post":{"tags":["ledger"],"summary":"Verify Package","operationId":"verify_package_api_v1_ledger_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ledger__VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ledger/packages":{"get":{"tags":["ledger"],"summary":"List Packages","operationId":"list_packages_api_v1_ledger_packages_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Packages Api V1 Ledger Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ledger/packages/{pkg_id}":{"get":{"tags":["ledger"],"summary":"Get Package","operationId":"get_package_api_v1_ledger_packages__pkg_id__get","parameters":[{"name":"pkg_id","in":"path","required":true,"schema":{"type":"integer","title":"Pkg Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/catalog/ingest":{"post":{"tags":["catalog"],"summary":"Ingest Asset","operationId":"ingest_asset_api_v1_catalog_ingest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/catalog/status":{"get":{"tags":["catalog"],"summary":"Catalog Status","operationId":"catalog_status_api_v1_catalog_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/vocabulary/fields":{"get":{"tags":["vocabulary"],"summary":"Get Field Vocabulary","operationId":"get_field_vocabulary_api_v1_vocabulary_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/vocabulary/tags":{"get":{"tags":["vocabulary"],"summary":"Get Tag Vocabulary","operationId":"get_tag_vocabulary_api_v1_vocabulary_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cross-org/trust":{"post":{"tags":["cross-org"],"summary":"Establish Trust","description":"Register a cross-organization trust relationship.\n\nStores the counterparty's PUBLIC verify key so we can verify\ntokens and capsules they issue. Their private key stays with them.\n\nOptionally fetches the well-known URL to confirm the provided\nverify key matches what the counterparty publishes.","operationId":"establish_trust_api_v1_cross_org_trust_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishTrustRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cross-org"],"summary":"List Trust Relationships","operationId":"list_trust_relationships_api_v1_cross_org_trust_get","parameters":[{"name":"trust_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trust Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/trust/{slug}":{"get":{"tags":["cross-org"],"summary":"Get Trust Relationship","operationId":"get_trust_relationship_api_v1_cross_org_trust__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/trust/{slug}/verify-key":{"post":{"tags":["cross-org"],"summary":"Reverify Counterparty Key","description":"Re-fetch the counterparty's well-known and confirm key still matches.","operationId":"reverify_counterparty_key_api_v1_cross_org_trust__slug__verify_key_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/trust/{slug}/suspend":{"post":{"tags":["cross-org"],"summary":"Suspend Trust","operationId":"suspend_trust_api_v1_cross_org_trust__slug__suspend_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/trust/{slug}/reinstate":{"post":{"tags":["cross-org"],"summary":"Reinstate Trust","operationId":"reinstate_trust_api_v1_cross_org_trust__slug__reinstate_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/token/issue":{"post":{"tags":["cross-org"],"summary":"Issue Cross Org Token","description":"Issue a cross-org Governed Authorization Token for a specific counterparty.\n\nThe token is signed with THIS org's private key and scoped to the\ncounterparty org as recipient. The counterparty presents this token\nwhen accessing this org's governed assets.\n\nRequirements:\n- Active trust relationship must exist for the counterparty_slug\n- Asset must be authorized\n- Requested actions must be within the trust relationship's permitted_actions\n- Ring level must not exceed the trust relationship's max_ring_level","operationId":"issue_cross_org_token_api_v1_cross_org_token_issue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCrossOrgTokenRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/token/verify":{"post":{"tags":["cross-org"],"summary":"Verify Inbound Cross Org Token","description":"Verify a cross-org token issued by a counterparty organization.\n\nUses the counterparty's public verify key stored in the trust table\nto verify the token's Ed25519 signature. Does NOT require access to\nthe issuing org's systems - verification is fully local using the\nstored public key.","operationId":"verify_inbound_cross_org_token_api_v1_cross_org_token_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyInboundTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cross-org/identity":{"get":{"tags":["cross-org"],"summary":"Get Org Identity","description":"Return this org's ADPEP identity including the public verify key.\nCounterparties call this to get the verify key for trust establishment.\nThis is the programmatic version of the .well-known/adpep-org.json endpoint.","operationId":"get_org_identity_api_v1_cross_org_identity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/dependency-toeprint/":{"post":{"tags":["dependency-toeprint"],"summary":"Create Dependency Toeprint","description":"Verify all declared upstream dependencies for an asset and seal\nthe result as a signed Dependency Toeprint.\n\nChecks each declared dependency:\n- Is it registered in the platform?\n- Does it have governance events within the staleness threshold?\n- Is it in authorized (not suspended) status?\n\nReturns a cryptographically sealed record proving the dependency\ncurrency check occurred at this specific moment.","operationId":"create_dependency_toeprint_api_v1_dependency_toeprint__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyToeprintRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dependency-toeprint/all":{"get":{"tags":["dependency-toeprint"],"summary":"List All Dependency Toeprints","operationId":"list_all_dependency_toeprints_api_v1_dependency_toeprint_all_get","parameters":[{"name":"verification_result","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Result"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dependency-toeprint/{asset_id}":{"get":{"tags":["dependency-toeprint"],"summary":"List Asset Dependency Toeprints","operationId":"list_asset_dependency_toeprints_api_v1_dependency_toeprint__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/":{"post":{"tags":["evidence-custody"],"summary":"Open Chain","description":"Open an Evidence Chain of Custody for an asset.\n\nEstablishes a sealed, independently verifiable record proving:\n- Who opened the chain, when, and for what legal matter\n- The capsule hash at chain opening (proves capsule not modified after)\n- Every subsequent transfer, hold, expert review, and submission\n\nAddresses Federal Rules of Evidence 901/902 authentication requirements,\nFRCP 34 electronically stored information production, and Daubert\nmethodology reliability for expert testimony.","operationId":"open_chain_api_v1_evidence_custody__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenChainRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["evidence-custody"],"summary":"List Chains","operationId":"list_chains_api_v1_evidence_custody__get","parameters":[{"name":"chain_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Status"}},{"name":"legal_hold_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Legal Hold Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/transfer":{"post":{"tags":["evidence-custody"],"summary":"Record Transfer","description":"Record a custody transfer - every handoff between parties is sealed.","operationId":"record_transfer_api_v1_evidence_custody__custody_id__transfer_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/legal-hold":{"post":{"tags":["evidence-custody"],"summary":"Apply Legal Hold","description":"Apply a legal hold to the chain.\nSeals the capsule hash at the moment of hold application -\nproves the record was not altered after the hold was applied.","operationId":"apply_legal_hold_api_v1_evidence_custody__custody_id__legal_hold_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalHoldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/expert-declaration":{"post":{"tags":["evidence-custody"],"summary":"Add Expert Declaration","description":"Record an expert witness declaration.\nSealed record of who reviewed the capsule, their credentials,\nand the scope of their attestation. Addresses Rule 702 and Daubert.","operationId":"add_expert_declaration_api_v1_evidence_custody__custody_id__expert_declaration_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertDeclarationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/submit":{"post":{"tags":["evidence-custody"],"summary":"Record Submission","description":"Record submission to a court or regulatory body.\nSeals the capsule hash at submission - proves capsule not modified\nafter submission. Addresses FRCP 34 and regulatory submission requirements.","operationId":"record_submission_api_v1_evidence_custody__custody_id__submit_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/preserve-output":{"post":{"tags":["evidence-custody"],"summary":"Preserve Output","description":"Seal the raw output hash before any post-processing.\nProves the output has not been modified between generation and submission.","operationId":"preserve_output_api_v1_evidence_custody__custody_id__preserve_output_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreserveOutputRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/post-processing":{"post":{"tags":["evidence-custody"],"summary":"Log Post Processing","description":"Log a post-processing transformation.\nEvery transformation from raw output to final form is sealed.\nProves the complete transformation chain is known and documented.","operationId":"log_post_processing_api_v1_evidence_custody__custody_id__post_processing_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostProcessingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}/close":{"post":{"tags":["evidence-custody"],"summary":"Close Chain","description":"Close the evidence chain. No further transfers or events permitted.","operationId":"close_chain_api_v1_evidence_custody__custody_id__close_post","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evidence-custody/{custody_id}":{"get":{"tags":["evidence-custody"],"summary":"Get Chain","operationId":"get_chain_api_v1_evidence_custody__custody_id__get","parameters":[{"name":"custody_id","in":"path","required":true,"schema":{"type":"string","title":"Custody Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalation-toeprint/":{"post":{"tags":["escalation-toeprint"],"summary":"Create Escalation Toeprint","description":"Seal an escalation event as a Governed Escalation Toeprint.\n\nProves that the escalation itself was a valid governed transition -\nnot just that escalation happened, but that escalation authority\nwas legitimate and the transition was within declared governance policy.","operationId":"create_escalation_toeprint_api_v1_escalation_toeprint__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationToeprintRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalation-toeprint/{toeprint_id}/resolve":{"patch":{"tags":["escalation-toeprint"],"summary":"Resolve Escalation Toeprint","operationId":"resolve_escalation_toeprint_api_v1_escalation_toeprint__toeprint_id__resolve_patch","parameters":[{"name":"toeprint_id","in":"path","required":true,"schema":{"type":"string","title":"Toeprint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalation-toeprint/all":{"get":{"tags":["escalation-toeprint"],"summary":"List All Escalation Toeprints","operationId":"list_all_escalation_toeprints_api_v1_escalation_toeprint_all_get","parameters":[{"name":"escalation_resolved","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Escalation Resolved"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/escalation-toeprint/{asset_id}":{"get":{"tags":["escalation-toeprint"],"summary":"List Asset Escalation Toeprints","operationId":"list_asset_escalation_toeprints_api_v1_escalation_toeprint__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/composite-capsule/":{"post":{"tags":["composite-capsule"],"summary":"Compose Capsule","description":"Compose a multi-organization Composite Capsule.\n\nEach contributing organization provides their own capsule\n(signed with their own private key - self-sovereign per\nnon-negotiable architecture rule). This assembles them into\na single verifiable artifact with the assembling party's\ncomposition signature over the complete composite.\n\nAny party can verify the composite without contacting any\ncontributing organization.","operationId":"compose_capsule_api_v1_composite_capsule__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompositeCapsuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["composite-capsule"],"summary":"List Composite Capsules","operationId":"list_composite_capsules_api_v1_composite_capsule__get","parameters":[{"name":"all_verified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Verified"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/composite-capsule/{composite_id}":{"get":{"tags":["composite-capsule"],"summary":"Get Composite Capsule","operationId":"get_composite_capsule_api_v1_composite_capsule__composite_id__get","parameters":[{"name":"composite_id","in":"path","required":true,"schema":{"type":"string","title":"Composite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/":{"post":{"tags":["license"],"summary":"Issue License","description":"Issue a signed License Condition record for an asset.\n\nLicense terms are cryptographically sealed. The license record\ncan be embedded in capsule policy conditions to enforce terms\nat the point of use without server calls - expiry, usage limits,\ngeographic restrictions, and use case boundaries self-enforce.","operationId":"issue_license_api_v1_license__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["license"],"summary":"List Licenses","operationId":"list_licenses_api_v1_license__get","parameters":[{"name":"license_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Status"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/{license_id}/check":{"post":{"tags":["license"],"summary":"Check License","description":"Check whether execution is permitted under this license.\nEvaluates all conditions: expiry, usage limits, jurisdiction,\nuse case, and org restrictions.","operationId":"check_license_api_v1_license__license_id__check_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/{license_id}/record-use":{"post":{"tags":["license"],"summary":"Record License Use","description":"Record an execution use against the license counter.","operationId":"record_license_use_api_v1_license__license_id__record_use_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/{license_id}/suspend":{"post":{"tags":["license"],"summary":"Suspend License","operationId":"suspend_license_api_v1_license__license_id__suspend_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/{license_id}/revoke":{"post":{"tags":["license"],"summary":"Revoke License","operationId":"revoke_license_api_v1_license__license_id__revoke_post","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/license/{license_id}":{"get":{"tags":["license"],"summary":"Get License","operationId":"get_license_api_v1_license__license_id__get","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/health/asset-health":{"get":{"tags":["health"],"summary":"Get Asset Health","description":"Returns health status for every asset in the current organization.\ngreen  = has events + has signed package + no unresolved DENY\namber  = missing signed package OR has unresolved DENY\nred    = no events in last 30 days OR no events at all\n\nScoped to the authenticated user's organization only.","operationId":"get_asset_health_api_v1_health_asset_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/search":{"get":{"tags":["search"],"summary":"Global Search","operationId":"global_search_api_v1_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated: assets,policies,events,packages","title":"Types"},"description":"Comma-separated: assets,policies,events,packages"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"},"title":"Response Global Search Api V1 Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report/compliance":{"post":{"tags":["report"],"summary":"Generate Compliance Report","operationId":"generate_compliance_report_api_v1_report_compliance_post","parameters":[{"name":"asset_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated asset IDs","title":"Asset Ids"},"description":"Comma-separated asset IDs"},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated tags — include assets matching ANY","title":"Tags"},"description":"Comma-separated tags — include assets matching ANY"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Lookback days for decisions/events if no from/to","default":90,"title":"Days"},"description":"Lookback days for decisions/events if no from/to"},{"name":"framework","in":"query","required":false,"schema":{"type":"string","default":"SR 26-2 / EU AI Act / OCC Model Risk","title":"Framework"}},{"name":"org_label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Override org name in header","title":"Org Label"},"description":"Override org name in header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["report"],"summary":"Generate Compliance Report","operationId":"generate_compliance_report_api_v1_report_compliance_get","parameters":[{"name":"asset_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated asset IDs","title":"Asset Ids"},"description":"Comma-separated asset IDs"},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated tags — include assets matching ANY","title":"Tags"},"description":"Comma-separated tags — include assets matching ANY"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Lookback days for decisions/events if no from/to","default":90,"title":"Days"},"description":"Lookback days for decisions/events if no from/to"},{"name":"framework","in":"query","required":false,"schema":{"type":"string","default":"SR 26-2 / EU AI Act / OCC Model Risk","title":"Framework"}},{"name":"org_label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Override org name in header","title":"Org Label"},"description":"Override org name in header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/roles":{"get":{"tags":["users"],"summary":"List Roles","operationId":"list_roles_api_v1_users_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/users":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_api_v1_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserOut"},"type":"array","title":"Response List Users Api V1 Users Get"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_v1_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}":{"patch":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_v1_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","operationId":"delete_user_api_v1_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/authorization/{asset_id}":{"get":{"tags":["authorization"],"summary":"Get Authorization Status","operationId":"get_authorization_status_api_v1_authorization__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/authorization/{asset_id}/evaluate":{"post":{"tags":["authorization"],"summary":"Trigger Evaluation","operationId":"trigger_evaluation_api_v1_authorization__asset_id__evaluate_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/authorization/{asset_id}/override":{"post":{"tags":["authorization"],"summary":"Override Authorization","operationId":"override_authorization_api_v1_authorization__asset_id__override_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/authorization":{"get":{"tags":["authorization"],"summary":"List Authorization Status","operationId":"list_authorization_status_api_v1_authorization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response List Authorization Status Api V1 Authorization Get"}}}}}}},"/api/v1/orgs/me":{"get":{"tags":["organizations"],"summary":"Get My Org","operationId":"get_my_org_api_v1_orgs_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgOut"}}}}}},"patch":{"tags":["organizations"],"summary":"Update My Org","operationId":"update_my_org_api_v1_orgs_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs":{"get":{"tags":["organizations"],"summary":"List Orgs","operationId":"list_orgs_api_v1_orgs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrgOut"},"type":"array","title":"Response List Orgs Api V1 Orgs Get"}}}}}}},"/api/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_api_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"create_webhook_api_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{webhook_id}":{"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"update_webhook_api_v1_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Webhook","operationId":"delete_webhook_api_v1_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","operationId":"list_deliveries_api_v1_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{webhook_id}/test":{"post":{"tags":["webhooks"],"summary":"Test Webhook","operationId":"test_webhook_api_v1_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-cards":{"get":{"tags":["model-cards"],"summary":"List Model Cards","operationId":"list_model_cards_api_v1_model_cards_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelCardOut"},"type":"array","title":"Response List Model Cards Api V1 Model Cards Get"}}}}}},"post":{"tags":["model-cards"],"summary":"Create Model Card","operationId":"create_model_card_api_v1_model_cards_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-cards/asset/{asset_id}":{"get":{"tags":["model-cards"],"summary":"Get Asset Model Cards","operationId":"get_asset_model_cards_api_v1_model_cards_asset__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelCardOut"},"title":"Response Get Asset Model Cards Api V1 Model Cards Asset  Asset Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-cards/{card_id}":{"get":{"tags":["model-cards"],"summary":"Get Model Card","operationId":"get_model_card_api_v1_model_cards__card_id__get","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"integer","title":"Card Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["model-cards"],"summary":"Update Model Card","operationId":"update_model_card_api_v1_model_cards__card_id__patch","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"integer","title":"Card Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-cards"],"summary":"Delete Model Card","operationId":"delete_model_card_api_v1_model_cards__card_id__delete","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"integer","title":"Card Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-cards/{card_id}/sign":{"post":{"tags":["model-cards"],"summary":"Sign Model Card","operationId":"sign_model_card_api_v1_model_cards__card_id__sign_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"integer","title":"Card Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-cards/{card_id}/new-version":{"post":{"tags":["model-cards"],"summary":"New Version Model Card","operationId":"new_version_model_card_api_v1_model_cards__card_id__new_version_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"integer","title":"Card Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/records":{"post":{"tags":["consent"],"summary":"Record Consent","operationId":"record_consent_api_v1_consent_records_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["consent"],"summary":"List Consent Records","operationId":"list_consent_records_api_v1_consent_records_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"subject_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConsentOut"},"title":"Response List Consent Records Api V1 Consent Records Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/records/{record_id}":{"get":{"tags":["consent"],"summary":"Get Consent Record","operationId":"get_consent_record_api_v1_consent_records__record_id__get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/records/{record_id}/withdraw":{"post":{"tags":["consent"],"summary":"Withdraw Consent","description":"Withdraw a consent record and propagate CONSENT_REVOKE events\nto all downstream assets in the dependency chain.\n\nReturns the consent record plus the full revocation impact chain:\nwhich assets received CONSENT_REVOKE events and how far the chain\npropagated through the dependency graph.","operationId":"withdraw_consent_api_v1_consent_records__record_id__withdraw_post","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/records/{record_id}/impact":{"get":{"tags":["consent"],"summary":"Get Revocation Impact","description":"Preview the revocation impact chain for a consent record\nwithout firing any events. Shows which assets would be affected\nif this consent were withdrawn.","operationId":"get_revocation_impact_api_v1_consent_records__record_id__impact_get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/subject/{subject_id}":{"get":{"tags":["consent"],"summary":"Get Subject Profile","description":"Complete profile for a data subject: all consent records,\nall DSRs, and summary of affected assets.","operationId":"get_subject_profile_api_v1_consent_subject__subject_id__get","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"string","title":"Subject Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/revocations/summary":{"get":{"tags":["consent"],"summary":"Revocation Summary","description":"Counts for dashboard widget.","operationId":"revocation_summary_api_v1_consent_revocations_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/consent/revocations":{"get":{"tags":["consent"],"summary":"List Revocations","description":"All withdrawn consent records with their impact chains.\nShows which assets currently have unresolved consent revocations.","operationId":"list_revocations_api_v1_consent_revocations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/consent/dsr":{"post":{"tags":["consent"],"summary":"Create Dsr","operationId":"create_dsr_api_v1_consent_dsr_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["consent"],"summary":"List Dsrs","operationId":"list_dsrs_api_v1_consent_dsr_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"request_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Type"}},{"name":"subject_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DsrOut"},"title":"Response List Dsrs Api V1 Consent Dsr Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/dsr/overdue":{"get":{"tags":["consent"],"summary":"List Overdue Dsrs","operationId":"list_overdue_dsrs_api_v1_consent_dsr_overdue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DsrOut"},"type":"array","title":"Response List Overdue Dsrs Api V1 Consent Dsr Overdue Get"}}}}}}},"/api/v1/consent/dsr/{dsr_id}":{"get":{"tags":["consent"],"summary":"Get Dsr","operationId":"get_dsr_api_v1_consent_dsr__dsr_id__get","parameters":[{"name":"dsr_id","in":"path","required":true,"schema":{"type":"integer","title":"Dsr Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/dsr/{dsr_id}/fulfillment":{"post":{"tags":["consent"],"summary":"Add Fulfillment","operationId":"add_fulfillment_api_v1_consent_dsr__dsr_id__fulfillment_post","parameters":[{"name":"dsr_id","in":"path","required":true,"schema":{"type":"integer","title":"Dsr Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/dsr/{dsr_id}/fulfill":{"post":{"tags":["consent"],"summary":"Fulfill Dsr","operationId":"fulfill_dsr_api_v1_consent_dsr__dsr_id__fulfill_post","parameters":[{"name":"dsr_id","in":"path","required":true,"schema":{"type":"integer","title":"Dsr Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/dsr/{dsr_id}/deny":{"post":{"tags":["consent"],"summary":"Deny Dsr","operationId":"deny_dsr_api_v1_consent_dsr__dsr_id__deny_post","parameters":[{"name":"dsr_id","in":"path","required":true,"schema":{"type":"integer","title":"Dsr Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsrOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/audits":{"get":{"tags":["bias"],"summary":"List Audits","operationId":"list_audits_api_v1_bias_audits_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by asset tag","title":"Tag"},"description":"Filter by asset tag"},{"name":"result","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"pass | fail | warning","title":"Result"},"description":"pass | fail | warning"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BiasAuditOut"},"title":"Response List Audits Api V1 Bias Audits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["bias"],"summary":"Create Audit","operationId":"create_audit_api_v1_bias_audits_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BiasAuditCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BiasAuditOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/audits/{audit_id}":{"get":{"tags":["bias"],"summary":"Get Audit","operationId":"get_audit_api_v1_bias_audits__audit_id__get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"integer","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BiasAuditOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bias"],"summary":"Delete Audit","operationId":"delete_audit_api_v1_bias_audits__audit_id__delete","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"integer","title":"Audit Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/assets/{asset_id}/history":{"get":{"tags":["bias"],"summary":"Asset Bias History","description":"Last N bias audits for an asset — used for the trend chart.","operationId":"asset_bias_history_api_v1_bias_assets__asset_id__history_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/assets/{asset_id}/latest":{"get":{"tags":["bias"],"summary":"Asset Bias Latest","operationId":"asset_bias_latest_api_v1_bias_assets__asset_id__latest_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/evaluate/{asset_id}":{"post":{"tags":["bias"],"summary":"Evaluate Bias Policy","description":"Run active policies with max_disparity_ratio conditions against\nthe most recent bias audit for the asset. Returns policy evaluation result.","operationId":"evaluate_bias_policy_api_v1_bias_evaluate__asset_id__post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bias/protected-classes":{"get":{"tags":["bias"],"summary":"Get Protected Classes","description":"Return the canonical list of protected class identifiers.","operationId":"get_protected_classes_api_v1_bias_protected_classes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/notifications/config":{"get":{"tags":["notifications"],"summary":"Get Config","operationId":"get_config_api_v1_notifications_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationConfigOut"}}}}}},"put":{"tags":["notifications"],"summary":"Upsert Config","operationId":"upsert_config_api_v1_notifications_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationConfigIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/test/slack":{"post":{"tags":["notifications"],"summary":"Test Slack","operationId":"test_slack_api_v1_notifications_test_slack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/notifications/test/teams":{"post":{"tags":["notifications"],"summary":"Test Teams","operationId":"test_teams_api_v1_notifications_test_teams_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/export/{asset_id}/preview":{"get":{"tags":["export"],"summary":"Preview Bundle","description":"Return a JSON preview of what the bundle will contain, without generating the ZIP.","operationId":"preview_bundle_api_v1_export__asset_id__preview_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/export/{asset_id}":{"get":{"tags":["export"],"summary":"Export Bundle","description":"Generate and download a signed ADPEP governance bundle (.adpep ZIP).","operationId":"export_bundle_api_v1_export__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/export/import":{"post":{"tags":["export"],"summary":"Import Bundle","description":"Import an ADPEP governance bundle into this organization.\n\n- Verifies the Ed25519 bundle signature before importing anything\n- Creates the asset if it does not exist\n- Imports events, ledger packages, and bias audits as historical records\n- Records an INGEST event marking the import\n- Returns a full import summary","operationId":"import_bundle_api_v1_export_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_bundle_api_v1_export_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/config":{"post":{"tags":["ring-verification"],"summary":"Set Ring Config","description":"Set the ring configuration for an asset.\n\nUse config_name to apply a default: internal (1 ring), standard (2 rings),\nregulated (3 rings). Or pass rings directly for a custom configuration.\n\nExamples:\n  {\"asset_id\": \"adpep://org/model\", \"config_name\": \"internal\"}\n  {\"asset_id\": \"adpep://org/model\", \"config_name\": \"regulated\"}\n  {\"asset_id\": \"adpep://org/model\", \"rings\": [...custom ring definitions...]}","operationId":"set_ring_config_api_v1_ring_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRingConfigRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/config/{asset_id}":{"get":{"tags":["ring-verification"],"summary":"Get Ring Config","description":"Get the ring configuration for an asset. Returns default if not set.","operationId":"get_ring_config_api_v1_ring_config__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ring-verification"],"summary":"Reset Ring Config","description":"Reset an asset's ring config to the default (standard - 2 rings).","operationId":"reset_ring_config_api_v1_ring_config__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/verify/{asset_id}":{"get":{"tags":["ring-verification"],"summary":"Ring1 Verify","description":"Ring 1 - Public verification. No authentication required.\nReturns content defined in the asset's Ring 1 configuration.","operationId":"ring1_verify_api_v1_ring_verify__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ring-verification"],"summary":"Token Ring Verify","description":"Token-gated ring verification. Works for any ring level >= 2 that\nuses access_method 'token'. Present token_id + token_raw.\n\nRing level defaults to the token's declared ring_level.\nThe asset's ring config determines what content is returned.","operationId":"token_ring_verify_api_v1_ring_verify__asset_id__post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/token/issue":{"post":{"tags":["ring-verification"],"summary":"Issue Governed Token","description":"Issue a Governed Authorization Token for any token-gated ring.\n\nValidates that the requested ring_level exists in the asset's\nring configuration and accepts token-based access.\n\nThe token is a provenance artifact - its issuance and every use\nare permanently recorded in the asset's governance record.","operationId":"issue_governed_token_api_v1_ring_token_issue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ring_verification__IssueTokenRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/token/{token_id}":{"get":{"tags":["ring-verification"],"summary":"Get Token","operationId":"get_token_api_v1_ring_token__token_id__get","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/tokens":{"get":{"tags":["ring-verification"],"summary":"List Tokens","operationId":"list_tokens_api_v1_ring_tokens_get","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"ring_level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Level"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/token/revoke/{token_id}":{"post":{"tags":["ring-verification"],"summary":"Revoke Token","operationId":"revoke_token_api_v1_ring_token_revoke__token_id__post","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ring_verification__RevokeTokenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/privileged/access":{"post":{"tags":["ring-verification"],"summary":"Privileged Ring Access","description":"Privileged access to any ring marked access_method='privileged'.\nRequires platform authentication. Defaults to the highest ring.\nEvery access permanently recorded and back-propagated.","operationId":"privileged_ring_access_api_v1_ring_privileged_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivilegedAccessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ring/access-log/{asset_id}":{"get":{"tags":["ring-verification"],"summary":"Get Access Log","operationId":"get_access_log_api_v1_ring_access_log__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"ring_level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Level"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/refusal/all":{"get":{"tags":["toeprint"],"summary":"List All Refusals","operationId":"list_all_refusals_api_v1_toeprint_refusal_all_get","parameters":[{"name":"refusal_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/eligibility/all":{"get":{"tags":["toeprint"],"summary":"List All Eligibility","operationId":"list_all_eligibility_api_v1_toeprint_eligibility_all_get","parameters":[{"name":"is_eligible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Eligible"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/commitment/all":{"get":{"tags":["toeprint"],"summary":"List All Commitments","operationId":"list_all_commitments_api_v1_toeprint_commitment_all_get","parameters":[{"name":"commitment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/bypass/all":{"get":{"tags":["toeprint"],"summary":"List All Bypasses","operationId":"list_all_bypasses_api_v1_toeprint_bypass_all_get","parameters":[{"name":"resolution_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/refusal":{"post":{"tags":["toeprint"],"summary":"Record Governed Refusal","description":"Record a Governed Refusal Toeprint.\n\nWhen an asset refuses to execute, the refusal is captured as a\nsigned provenance artifact and back-propagated to the asset record.\nThis produces cryptographic evidence of the refusal: what was\nrefused, why, under what policy conditions, and at what time.","operationId":"record_governed_refusal_api_v1_toeprint_refusal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernedRefusalRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/refusal/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Governed Refusals","operationId":"list_governed_refusals_api_v1_toeprint_refusal__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"refusal_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/eligibility":{"post":{"tags":["toeprint"],"summary":"Declare Eligibility","description":"Issue a Governance Eligibility Declaration.\n\nEvaluates whether an asset is eligible to execute a given action\nat this point in time, produces a signed declaration, and\nback-propagates it to the asset record.\n\nDeclarations expire after valid_for_seconds (default 300s / 5 min).\nA declaration should be obtained immediately before execution and\nthe declaration_id passed to the Commitment Toeprint on execution.","operationId":"declare_eligibility_api_v1_toeprint_eligibility_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/eligibility/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Eligibility Declarations","operationId":"list_eligibility_declarations_api_v1_toeprint_eligibility__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"is_eligible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Eligible"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/commitment":{"post":{"tags":["toeprint"],"summary":"Record Commitment","description":"Record a Commitment Toeprint.\n\nWhen a governed system commits to an action, captures the commitment\nwith the full authority chain that authorized it. Pass declaration_id\nfrom a prior Eligibility Declaration to chain the authority record.","operationId":"record_commitment_api_v1_toeprint_commitment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitmentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/commitment/{commitment_id}/outcome":{"patch":{"tags":["toeprint"],"summary":"Record Commitment Outcome","description":"Record the outcome of a committed action: executed, rolled_back, or failed.","operationId":"record_commitment_outcome_api_v1_toeprint_commitment__commitment_id__outcome_patch","parameters":[{"name":"commitment_id","in":"path","required":true,"schema":{"type":"string","title":"Commitment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitmentOutcomeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/commitment/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Commitments","operationId":"list_commitments_api_v1_toeprint_commitment__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"commitment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/bypass":{"post":{"tags":["toeprint"],"summary":"Record Bypass Detection","description":"Record a BYPASS_DETECTED governance event.\n\nWhen execution occurs outside the governed path, captures the\nbypass with all available context and back-propagates it to the\nasset record. The detection itself is signed and tamper-evident.","operationId":"record_bypass_detection_api_v1_toeprint_bypass_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BypassDetectionRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/bypass/{detection_id}/resolve":{"patch":{"tags":["toeprint"],"summary":"Resolve Bypass Detection","description":"Resolve a bypass detection: acknowledged, resolved, or false_positive.","operationId":"resolve_bypass_detection_api_v1_toeprint_bypass__detection_id__resolve_patch","parameters":[{"name":"detection_id","in":"path","required":true,"schema":{"type":"string","title":"Detection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BypassResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/bypass/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Bypass Detections","operationId":"list_bypass_detections_api_v1_toeprint_bypass__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"resolution_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/prompt":{"post":{"tags":["toeprint"],"summary":"Capture Prompt Snapshot","description":"Capture a PROMPT_SNAPSHOT at T-zero.\n\nHash the prompt immediately - raw text is never stored.\nReturns snapshot_id for use in response binding and\ncommitment toeprint chaining.","operationId":"capture_prompt_snapshot_api_v1_toeprint_prompt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptSnapshotRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/prompt/{snapshot_id}/bind-response":{"patch":{"tags":["toeprint"],"summary":"Bind Response To Snapshot","description":"Bind a response to a prompt snapshot, completing the T-zero chain.\nHash the response immediately - raw text is never stored.","operationId":"bind_response_to_snapshot_api_v1_toeprint_prompt__snapshot_id__bind_response_patch","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/prompt/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Prompt Snapshots","operationId":"list_prompt_snapshots_api_v1_toeprint_prompt__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"snapshot_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/prompt-all":{"get":{"tags":["toeprint"],"summary":"List All Prompt Snapshots","operationId":"list_all_prompt_snapshots_api_v1_toeprint_prompt_all_get","parameters":[{"name":"snapshot_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/suspension":{"post":{"tags":["toeprint"],"summary":"Record Governed Suspension","description":"Record a Governed Suspension.\n\nProves the suspension was authorized and governed - not just\nthat it happened. Implements Otani's OTANIS unavailability record:\nthe right thing was stopped, for the right reason, at the right\ntime, under the right authority.","operationId":"record_governed_suspension_api_v1_toeprint_suspension_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernedSuspensionRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/suspension/{suspension_id}/lift":{"patch":{"tags":["toeprint"],"summary":"Lift Governed Suspension","description":"Lift an active governed suspension. Requires admin role.","operationId":"lift_governed_suspension_api_v1_toeprint_suspension__suspension_id__lift_patch","parameters":[{"name":"suspension_id","in":"path","required":true,"schema":{"type":"string","title":"Suspension Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiftSuspensionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/suspension/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Governed Suspensions","operationId":"list_governed_suspensions_api_v1_toeprint_suspension__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"suspension_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspension Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/suspension-all":{"get":{"tags":["toeprint"],"summary":"List All Suspensions","operationId":"list_all_suspensions_api_v1_toeprint_suspension_all_get","parameters":[{"name":"suspension_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspension Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/trajectory":{"post":{"tags":["toeprint"],"summary":"Issue Trajectory Toeprint","description":"Issue a Trajectory Toeprint covering an entire governed execution sequence.\n\nAggregates linked toeprint artifacts into a single signed capsule\nthat proves the entire workflow was governed end-to-end.\n\nThe capsule automatically assesses whether the trajectory is fully\ngoverned based on the presence of required components.","operationId":"issue_trajectory_toeprint_api_v1_toeprint_trajectory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrajectoryToeprintRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/trajectory/{capsule_id}/outcome":{"patch":{"tags":["toeprint"],"summary":"Record Trajectory Outcome","description":"Record or update the outcome of a trajectory capsule.","operationId":"record_trajectory_outcome_api_v1_toeprint_trajectory__capsule_id__outcome_patch","parameters":[{"name":"toeprint_id","in":"query","required":true,"schema":{"type":"string","title":"Toeprint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrajectoryOutcomeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/trajectory/{asset_id}":{"get":{"tags":["toeprint"],"summary":"List Trajectory Toeprints","operationId":"list_trajectory_toeprints_api_v1_toeprint_trajectory__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"trajectory_outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trajectory Outcome"}},{"name":"fully_governed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fully Governed"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/toeprint/trajectory-all":{"get":{"tags":["toeprint"],"summary":"List All Trajectory Toeprints","operationId":"list_all_trajectory_toeprints_api_v1_toeprint_trajectory_all_get","parameters":[{"name":"trajectory_outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trajectory Outcome"}},{"name":"fully_governed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fully Governed"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ago/{asset_id}/revoke":{"post":{"tags":["ago"],"summary":"Revoke Asset","description":"Revoke an AGO asset.\n\nSets revoked_at, revoked_reason, and authorization_status='revoked'.\nPersists AGO health evaluation — asset immediately transitions to\nREVOKED health state and RETIRED lifecycle state.\nSeals a signed REVOCATION event in the append-only evidence chain.\n\nThis is a Human Authority Decision Point — requires explicit human action.\nRevocation is terminal. A revoked asset cannot have a Governance Toeprint\nissued and cannot be authorized for deployment.\n\nAGO Property: Self-Enforcing — once revoked, all deployment gates\nwill deny based on the revoked_at field without further instruction.","operationId":"revoke_asset_api_v1_ago__asset_id__revoke_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ago/summary":{"get":{"tags":["ago"],"summary":"Ago Portfolio Summary","description":"Portfolio-level AGO health summary.\nReturns counts by health state and lifecycle state across all assets.","operationId":"ago_portfolio_summary_api_v1_ago_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/ago/{asset_id}/health":{"get":{"tags":["ago"],"summary":"Get Ago Health","description":"Evaluate AGO health state for an asset.\n\nReturns the computed health state, governance lifecycle state,\ndeployment authorization status, and detailed evidence gaps.\n\nPass ?persist=true to write results back to the asset record.","operationId":"get_ago_health_api_v1_ago__asset_id__health_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"persist","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Persist"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ago/{asset_id}/health/persist":{"post":{"tags":["ago"],"summary":"Persist Ago Health","description":"Evaluate and persist AGO health state to the asset record.\nSeals a GOVERNANCE_MATERIAL_CHANGE event if state changed.","operationId":"persist_ago_health_api_v1_ago__asset_id__health_persist_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ago/{asset_id}/toeprint":{"post":{"tags":["ago"],"summary":"Issue Governance Toeprint","description":"Issue a Governance Toeprint for an asset.\n\nThe Governance Toeprint is the sealed achievement milestone proving the\nasset satisfies all requirements of its current Effective GCP.\n\nThis is a Human Authority Decision Point — requires explicit human approval.\nCannot be issued if asset is SUSPENDED, REVOKED, or RETIRED.\nSupersedes any existing active Toeprint.\n\nAGO Property: Self-Testifying — seals the compliance proof as a signed artifact.","operationId":"issue_governance_toeprint_api_v1_ago__asset_id__toeprint_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueToeprint"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ago"],"summary":"Get Governance Toeprint","description":"Get the current active Governance Toeprint for an asset.\nReturns null toeprint if none has been issued.","operationId":"get_governance_toeprint_api_v1_ago__asset_id__toeprint_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ago/{asset_id}/deploy-check":{"post":{"tags":["ago"],"summary":"Deployment Authorization Gate","description":"Autonomous deployment authorization gate.\n\nChecks whether this AGO authorizes deployment for the requested action.\nReturns AUTHORIZED or DEPLOYMENT_UNAUTHORIZED with sealed denial record.\n\nAGO Property: Self-Enforcing — the governed object gates its own deployment.\nThis check works without platform contact once the AGO state is cached locally.","operationId":"deployment_authorization_gate_api_v1_ago__asset_id__deploy_check_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApprovalPolicyRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"risk_threshold":{"type":"number","title":"Risk Threshold","default":0.5},"chain_mode":{"type":"string","title":"Chain Mode","default":"sequential"},"chain":{"items":{"$ref":"#/components/schemas/ChainStage"},"type":"array","title":"Chain"},"quorum_required":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quorum Required"},"timeout_hours":{"type":"integer","title":"Timeout Hours","default":4},"timeout_action":{"type":"string","title":"Timeout Action","default":"block"}},"type":"object","required":["asset_id","name","chain"],"title":"ApprovalPolicyRequest"},"AssetCreate":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":""},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner","default":""},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","default":[]},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta","default":{}},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["id","name"],"title":"AssetCreate"},"AssetOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"owner":{"type":"string","title":"Owner"},"tags":{"items":{},"type":"array","title":"Tags"},"meta":{"type":"object","title":"Meta"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_id":{"type":"integer","title":"Org Id","default":1},"authorization_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Status","default":"authorized"},"authorization_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Reason"},"authorization_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Authorization Changed At"}},"type":"object","required":["id","name","description","owner","tags","meta","created_at"],"title":"AssetOut"},"AssetUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","title":"AssetUpdate"},"AttestRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"AttestRequest"},"AttestationOut":{"properties":{"id":{"type":"integer","title":"Id"},"policy_id":{"type":"integer","title":"Policy Id"},"policy_name":{"type":"string","title":"Policy Name"},"effect":{"type":"string","title":"Effect"},"conditions_json":{"type":"object","title":"Conditions Json"},"is_active_snapshot":{"type":"boolean","title":"Is Active Snapshot"},"attested_by":{"type":"string","title":"Attested By"},"attested_at":{"type":"string","format":"date-time","title":"Attested At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"manifest_hash":{"type":"string","title":"Manifest Hash"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","policy_id","policy_name","effect","conditions_json","is_active_snapshot","attested_by","attested_at","note","manifest_hash","signature_b64","verify_key_b64","created_at"],"title":"AttestationOut"},"AuthorizationStatus":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"asset_name":{"type":"string","title":"Asset Name"},"authorization_status":{"type":"string","title":"Authorization Status"},"authorization_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Reason"},"authorization_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Authorization Changed At"},"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"policy_results":{"items":{"type":"object"},"type":"array","title":"Policy Results"}},"type":"object","required":["asset_id","asset_name","authorization_status","authorization_reason","authorization_changed_at","evaluated_at","policy_results"],"title":"AuthorizationStatus"},"BiasAuditCreate":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"audit_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Date"},"auditor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auditor","default":"system"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method","default":"manual"},"sample_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold","default":1.25},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"evidence":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Evidence","default":{}},"disparities":{"items":{"$ref":"#/components/schemas/DisparityRowIn"},"type":"array","title":"Disparities"}},"type":"object","required":["asset_id"],"title":"BiasAuditCreate"},"BiasAuditOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"type":"string","title":"Asset Id"},"audit_date":{"type":"string","format":"date-time","title":"Audit Date"},"auditor":{"type":"string","title":"Auditor"},"method":{"type":"string","title":"Method"},"sample_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size"},"overall_result":{"type":"string","title":"Overall Result"},"max_disparity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Disparity"},"threshold":{"type":"number","title":"Threshold"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"evidence":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Evidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"disparities":{"items":{"$ref":"#/components/schemas/DisparityRowOut"},"type":"array","title":"Disparities","default":[]}},"type":"object","required":["id","asset_id","audit_date","auditor","method","sample_size","overall_result","max_disparity","threshold","notes","evidence","created_at"],"title":"BiasAuditOut"},"BindResponseRequest":{"properties":{"response_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Text"},"response_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Hash"},"response_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Length"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"}},"type":"object","title":"BindResponseRequest"},"Body_import_bundle_api_v1_export_import_post":{"properties":{"bundle":{"type":"string","format":"binary","title":"Bundle"}},"type":"object","required":["bundle"],"title":"Body_import_bundle_api_v1_export_import_post"},"Body_issue_composite_capsule_api_v1_capsule_composite_post":{"properties":{"capsules":{"items":{"type":"string","format":"binary"},"type":"array","title":"Capsules"}},"type":"object","required":["capsules"],"title":"Body_issue_composite_capsule_api_v1_capsule_composite_post"},"Body_login_api_v1_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_api_v1_auth_login_post"},"Body_preview_composite_api_v1_capsule_composite_preview_post":{"properties":{"capsules":{"items":{"type":"string","format":"binary"},"type":"array","title":"Capsules"}},"type":"object","required":["capsules"],"title":"Body_preview_composite_api_v1_capsule_composite_preview_post"},"BypassDetectionRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"action_detected":{"type":"string","title":"Action Detected"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"},"detection_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Detection Context"},"bypass_type":{"type":"string","title":"Bypass Type"},"bypass_detail":{"type":"string","title":"Bypass Detail"},"severity":{"type":"string","title":"Severity","default":"high"},"expected_governance":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Expected Governance"},"governance_present":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Governance Present"},"detected_by":{"type":"string","title":"Detected By","default":"system"}},"type":"object","required":["asset_id","action_detected","bypass_type","bypass_detail"],"title":"BypassDetectionRequest"},"BypassResolutionRequest":{"properties":{"resolution_status":{"type":"string","title":"Resolution Status"},"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"}},"type":"object","required":["resolution_status"],"title":"BypassResolutionRequest"},"ChainStage":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"ChainStage"},"CommitmentOutcomeRequest":{"properties":{"outcome_status":{"type":"string","title":"Outcome Status"},"outcome_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome Notes"}},"type":"object","required":["outcome_status"],"title":"CommitmentOutcomeRequest"},"CommitmentRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"action_committed":{"type":"string","title":"Action Committed"},"actor":{"type":"string","title":"Actor"},"commitment_summary":{"type":"string","title":"Commitment Summary"},"commitment_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Commitment Context"},"authority_chain":{"items":{"type":"object"},"type":"array","title":"Authority Chain","default":[]},"authorization_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Basis"},"execution_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Token Id"},"escalation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Id"},"declaration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declaration Id"}},"type":"object","required":["asset_id","action_committed","actor","commitment_summary"],"title":"CommitmentRequest"},"CompositeCapsuleRequest":{"properties":{"composite_name":{"type":"string","title":"Composite Name"},"composite_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Composite Description"},"composition_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Composition Purpose"},"contributing_capsules":{"items":{"$ref":"#/components/schemas/ContributingCapsule"},"type":"array","title":"Contributing Capsules"},"declared_governance_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Governance Scope"},"profile":{"type":"string","title":"Profile","default":"regulatory"},"issued_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued To"},"issued_to_org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued To Org"},"issue_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Purpose"},"primary_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Asset Id"}},"type":"object","required":["composite_name","contributing_capsules"],"title":"CompositeCapsuleRequest"},"ConsentCreate":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"subject_id":{"type":"string","title":"Subject Id"},"consent_basis":{"type":"string","title":"Consent Basis"},"purposes":{"items":{"type":"string"},"type":"array","title":"Purposes","default":[]},"granted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Granted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"evidence":{"type":"object","title":"Evidence","default":{}}},"type":"object","required":["asset_id","subject_id","consent_basis"],"title":"ConsentCreate"},"ConsentOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"type":"string","title":"Asset Id"},"subject_id":{"type":"string","title":"Subject Id"},"consent_basis":{"type":"string","title":"Consent Basis"},"purposes":{"items":{},"type":"array","title":"Purposes"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"withdrawn_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Withdrawn At"},"status":{"type":"string","title":"Status"},"evidence":{"type":"object","title":"Evidence"},"recorded_by":{"type":"string","title":"Recorded By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","asset_id","subject_id","consent_basis","purposes","granted_at","status","evidence","recorded_by","created_at"],"title":"ConsentOut"},"ContributingCapsule":{"properties":{"org_slug":{"type":"string","title":"Org Slug"},"org_name":{"type":"string","title":"Org Name"},"asset_id":{"type":"string","title":"Asset Id"},"capsule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Id"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"manifest_hash":{"type":"string","title":"Manifest Hash"},"signature_b64":{"type":"string","title":"Signature B64"},"manifest":{"type":"object","title":"Manifest"},"contribution_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contribution Description"}},"type":"object","required":["org_slug","org_name","asset_id","verify_key_b64","manifest_hash","signature_b64","manifest"],"title":"ContributingCapsule"},"CorpusSnapshotRequest":{"properties":{"document_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Count"},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","title":"CorpusSnapshotRequest"},"CreateEnsembleRequest":{"properties":{"ensemble_id":{"type":"string","title":"Ensemble Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"member_asset_ids":{"items":{"type":"string"},"type":"array","title":"Member Asset Ids"},"aggregation_rule":{"type":"string","title":"Aggregation Rule","default":"most_restrictive"},"ensemble_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ensemble Type"}},"type":"object","required":["ensemble_id","name","member_asset_ids"],"title":"CreateEnsembleRequest"},"CreatePipelineRequest":{"properties":{"pipeline_id":{"type":"string","title":"Pipeline Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"corpus_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Asset Id"},"embedding_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding Asset Id"},"prompt_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Asset Id"},"generative_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generative Asset Id"},"corpus_freshness_days":{"type":"integer","title":"Corpus Freshness Days","default":7},"prompt_version_pinned":{"type":"boolean","title":"Prompt Version Pinned","default":false},"pinned_prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinned Prompt Version"},"require_all_authorized":{"type":"boolean","title":"Require All Authorized","default":true}},"type":"object","required":["pipeline_id","name"],"title":"CreatePipelineRequest"},"DecideRequest":{"properties":{"context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","title":"DecideRequest"},"DeltaRequest":{"properties":{"anchor":{"type":"object","title":"Anchor"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"hash_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash Sha256"}},"type":"object","required":["anchor","signature_b64","verify_key_b64"],"title":"DeltaRequest","description":"Sync anchor payload — presented by a capsule to request delta events."},"DenyRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"DenyRequest"},"DependencyCreate":{"properties":{"target_id":{"type":"string","title":"Target Id"},"relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship","default":"consumes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["target_id"],"title":"DependencyCreate"},"DependencyGraphOut":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"asset_name":{"type":"string","title":"Asset Name"},"upstream":{"items":{"$ref":"#/components/schemas/DependencyNodeOut"},"type":"array","title":"Upstream"},"downstream":{"items":{"$ref":"#/components/schemas/DependencyNodeOut"},"type":"array","title":"Downstream"},"total_edges":{"type":"integer","title":"Total Edges"}},"type":"object","required":["asset_id","asset_name","upstream","downstream","total_edges"],"title":"DependencyGraphOut"},"DependencyNodeOut":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"asset_name":{"type":"string","title":"Asset Name"},"tags":{"items":{},"type":"array","title":"Tags"},"relationship":{"type":"string","title":"Relationship"},"direction":{"type":"string","title":"Direction"}},"type":"object","required":["asset_id","asset_name","tags","relationship","direction"],"title":"DependencyNodeOut"},"DependencyOut":{"properties":{"id":{"type":"integer","title":"Id"},"source_id":{"type":"string","title":"Source Id"},"target_id":{"type":"string","title":"Target Id"},"target_name":{"type":"string","title":"Target Name"},"relationship":{"type":"string","title":"Relationship"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source_id","target_id","target_name","relationship","notes","created_by","created_at"],"title":"DependencyOut"},"DependencyToeprintRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"commitment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment Id"},"staleness_threshold_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Staleness Threshold Days","default":30}},"type":"object","required":["asset_id"],"title":"DependencyToeprintRequest"},"DeployCheckRequest":{"properties":{"action":{"type":"string","title":"Action","default":"INFER"},"requester":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester"},"context":{"type":"object","title":"Context","default":{}}},"type":"object","title":"DeployCheckRequest"},"DisparityRowIn":{"properties":{"protected_class":{"type":"string","title":"Protected Class"},"disparity_ratio":{"type":"number","title":"Disparity Ratio"},"reference_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Group"},"comparison_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comparison Group"},"selection_rate_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selection Rate Ref"},"selection_rate_comp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selection Rate Comp"},"sample_size_ref":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size Ref"},"sample_size_comp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size Comp"}},"type":"object","required":["protected_class","disparity_ratio"],"title":"DisparityRowIn"},"DisparityRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"protected_class":{"type":"string","title":"Protected Class"},"disparity_ratio":{"type":"number","title":"Disparity Ratio"},"reference_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Group"},"comparison_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comparison Group"},"selection_rate_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selection Rate Ref"},"selection_rate_comp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selection Rate Comp"},"sample_size_ref":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size Ref"},"sample_size_comp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size Comp"}},"type":"object","required":["id","protected_class","disparity_ratio","reference_group","comparison_group","selection_rate_ref","selection_rate_comp","sample_size_ref","sample_size_comp"],"title":"DisparityRowOut"},"DsrCreate":{"properties":{"asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"},"subject_id":{"type":"string","title":"Subject Id"},"request_type":{"type":"string","title":"Request Type"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},"type":"object","required":["subject_id","request_type"],"title":"DsrCreate"},"DsrOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"},"subject_id":{"type":"string","title":"Subject Id"},"request_type":{"type":"string","title":"Request Type"},"status":{"type":"string","title":"Status"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"fulfilled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fulfilled At"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"recorded_by":{"type":"string","title":"Recorded By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"fulfillments":{"items":{"$ref":"#/components/schemas/FulfillmentOut"},"type":"array","title":"Fulfillments","default":[]}},"type":"object","required":["id","subject_id","request_type","status","received_at","recorded_by","created_at"],"title":"DsrOut"},"EligibilityRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"action_requested":{"type":"string","title":"Action Requested"},"requester":{"type":"string","title":"Requester"},"requester_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Requester Context"},"valid_for_seconds":{"type":"integer","title":"Valid For Seconds","default":300}},"type":"object","required":["asset_id","action_requested","requester"],"title":"EligibilityRequest"},"EscalateRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"actor":{"type":"string","title":"Actor"},"action":{"type":"string","title":"Action"},"risk_score":{"type":"number","title":"Risk Score"},"risk_reason":{"type":"string","title":"Risk Reason"},"proposed_action":{"type":"string","title":"Proposed Action"},"context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Context","default":{}},"ttl_hours":{"type":"integer","title":"Ttl Hours","default":4},"timeout_action":{"type":"string","title":"Timeout Action","default":"block"},"override_chain":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChainStage"},"type":"array"},{"type":"null"}],"title":"Override Chain"},"override_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Mode"},"override_quorum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Override Quorum"}},"type":"object","required":["asset_id","actor","action","risk_score","risk_reason","proposed_action"],"title":"EscalateRequest"},"EscalationResolveRequest":{"properties":{"resolution_decision":{"type":"string","title":"Resolution Decision"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By"}},"type":"object","required":["resolution_decision"],"title":"EscalationResolveRequest"},"EscalationToeprintRequest":{"properties":{"escalation_id":{"type":"string","title":"Escalation Id"},"asset_id":{"type":"string","title":"Asset Id"},"escalation_trigger":{"type":"string","title":"Escalation Trigger"},"escalating_from_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalating From Authority"},"escalating_to_authority":{"type":"string","title":"Escalating To Authority"},"escalation_authority_basis":{"type":"string","title":"Escalation Authority Basis","default":"standing_policy"},"escalation_scope":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Escalation Scope"},"policy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Id"}},"type":"object","required":["escalation_id","asset_id","escalation_trigger","escalating_to_authority"],"title":"EscalationToeprintRequest"},"EstablishTrustRequest":{"properties":{"counterparty_slug":{"type":"string","title":"Counterparty Slug"},"counterparty_name":{"type":"string","title":"Counterparty Name"},"counterparty_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty Domain"},"well_known_url":{"type":"string","title":"Well Known Url"},"counterparty_verify_key_b64":{"type":"string","title":"Counterparty Verify Key B64"},"trust_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trust Purpose"},"ttl_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Days"},"permitted_asset_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permitted Asset Tags"},"permitted_actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permitted Actions"},"max_ring_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Ring Level","default":2},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["counterparty_slug","counterparty_name","well_known_url","counterparty_verify_key_b64"],"title":"EstablishTrustRequest"},"EvaluateRequest":{"properties":{"action":{"type":"string","title":"Action"},"asset_id":{"type":"string","title":"Asset Id"},"context":{"type":"object","title":"Context","default":{}}},"type":"object","required":["action","asset_id"],"title":"EvaluateRequest"},"EvaluateResponse":{"properties":{"effect":{"type":"string","title":"Effect"},"policy_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"matched_via_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Via Tag"},"circuit_breaker":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Circuit Breaker"},"upstream_violations":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Upstream Violations"}},"type":"object","required":["effect"],"title":"EvaluateResponse"},"EventIn":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"event_type":{"type":"string","title":"Event Type"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor","default":"system"},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta","default":{}}},"type":"object","required":["asset_id","event_type"],"title":"EventIn"},"EventOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"type":"string","title":"Asset Id"},"event_type":{"type":"string","title":"Event Type"},"actor":{"type":"string","title":"Actor"},"meta":{"type":"object","title":"Meta"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","asset_id","event_type","actor","meta","occurred_at"],"title":"EventOut"},"ExpertDeclarationRequest":{"properties":{"expert_name":{"type":"string","title":"Expert Name"},"credentials":{"type":"string","title":"Credentials"},"declaration_scope":{"type":"string","title":"Declaration Scope"},"professional_standard":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Standard"}},"type":"object","required":["expert_name","credentials","declaration_scope"],"title":"ExpertDeclarationRequest"},"FulfillmentCreate":{"properties":{"action_taken":{"type":"string","title":"Action Taken"},"evidence":{"type":"object","title":"Evidence","default":{}},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["action_taken"],"title":"FulfillmentCreate"},"FulfillmentOut":{"properties":{"id":{"type":"integer","title":"Id"},"action_taken":{"type":"string","title":"Action Taken"},"evidence":{"type":"object","title":"Evidence"},"performed_by":{"type":"string","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","action_taken","evidence","performed_by","performed_at"],"title":"FulfillmentOut"},"GovernedRefusalRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"action_requested":{"type":"string","title":"Action Requested"},"requester":{"type":"string","title":"Requester"},"requester_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Requester Context"},"refusal_reason":{"type":"string","title":"Refusal Reason"},"refusal_category":{"type":"string","title":"Refusal Category"},"policy_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Id"},"policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Name"},"policy_conditions":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Policy Conditions"}},"type":"object","required":["asset_id","action_requested","requester","refusal_reason","refusal_category"],"title":"GovernedRefusalRequest"},"GovernedSuspensionRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"suspension_trigger":{"type":"string","title":"Suspension Trigger"},"suspension_reason":{"type":"string","title":"Suspension Reason"},"suspension_authority":{"type":"string","title":"Suspension Authority"},"governing_policy_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Governing Policy Id"},"governing_policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Governing Policy Name"},"governing_policy_conditions":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Governing Policy Conditions"},"refusal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Id"},"escalation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Id"},"blocked_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Action"},"blocked_actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Actor"},"blocked_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Blocked Context"},"upstream_violations":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Upstream Violations"},"lift_conditions":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Lift Conditions"}},"type":"object","required":["asset_id","suspension_trigger","suspension_reason","suspension_authority"],"title":"GovernedSuspensionRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IngestRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["asset_id"],"title":"IngestRequest"},"IngestResponse":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"asset_id":{"type":"string","title":"Asset Id"},"om_table_fqn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Om Table Fqn"},"ops":{"type":"object","title":"Ops"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["dry_run","asset_id","ops","status","message"],"title":"IngestResponse"},"IssueCapsuleRequest":{"properties":{"content_hints":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Content Hints"},"profile":{"type":"string","title":"Profile","default":"regulatory"}},"type":"object","title":"IssueCapsuleRequest"},"IssueCrossOrgTokenRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"counterparty_slug":{"type":"string","title":"Counterparty Slug"},"authorized_actions":{"items":{"type":"string"},"type":"array","title":"Authorized Actions","default":["INFER"]},"issued_to":{"type":"string","title":"Issued To"},"ttl_hours":{"type":"integer","title":"Ttl Hours","default":24},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"ring_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Level","default":2},"purpose_declaration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Declaration"},"scope_declaration":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Scope Declaration"}},"type":"object","required":["asset_id","counterparty_slug","issued_to"],"title":"IssueCrossOrgTokenRequest"},"IssueToeprint":{"properties":{"evaluating_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluating Authority"},"effective_gcp_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Gcp Hash"},"floor_version":{"type":"string","title":"Floor Version","default":"1.0"},"expires_days":{"type":"integer","title":"Expires Days","default":90},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"IssueToeprint"},"LegalHoldRequest":{"properties":{"legal_hold_reference":{"type":"string","title":"Legal Hold Reference"},"capsule_hash_at_hold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Hash At Hold"}},"type":"object","required":["legal_hold_reference"],"title":"LegalHoldRequest"},"LicenseCheckRequest":{"properties":{"requesting_org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requesting Org Slug"},"jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"},"use_case":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case"}},"type":"object","title":"LicenseCheckRequest"},"LicenseRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"license_name":{"type":"string","title":"License Name"},"license_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Description"},"licensee_org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licensee Org"},"licensee_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licensee Slug"},"license_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Start"},"license_expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Expiry"},"max_executions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Executions"},"max_executions_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Executions Per Day"},"permitted_jurisdictions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permitted Jurisdictions"},"blocked_jurisdictions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Blocked Jurisdictions"},"permitted_use_cases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permitted Use Cases"},"prohibited_use_cases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prohibited Use Cases"},"permitted_org_slugs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permitted Org Slugs"},"audit_required_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audit Required Days"},"revenue_share_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revenue Share Threshold"}},"type":"object","required":["asset_id","license_name"],"title":"LicenseRequest"},"LiftSuspensionRequest":{"properties":{"lift_authority":{"type":"string","title":"Lift Authority"},"lift_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lift Notes"}},"type":"object","required":["lift_authority"],"title":"LiftSuspensionRequest"},"LineageNode":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"tags":{"items":{},"type":"array","title":"Tags"},"event_count":{"type":"integer","title":"Event Count"},"has_package":{"type":"boolean","title":"Has Package"},"children":{"items":{"$ref":"#/components/schemas/LineageNode"},"type":"array","title":"Children","default":[]}},"type":"object","required":["id","name","tags","event_count","has_package"],"title":"LineageNode"},"MeResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"org_id":{"type":"integer","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"org_slug":{"type":"string","title":"Org Slug"},"org_plan":{"type":"string","title":"Org Plan"}},"type":"object","required":["id","email","roles","org_id","org_name","org_slug","org_plan"],"title":"MeResponse"},"ModelCardCreate":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"version":{"type":"string","title":"Version"},"model_overview":{"type":"object","title":"Model Overview","default":{}},"intended_use":{"type":"object","title":"Intended Use","default":{}},"training_data":{"type":"object","title":"Training Data","default":{}},"evaluation":{"type":"object","title":"Evaluation","default":{}},"risk_assessment":{"type":"object","title":"Risk Assessment","default":{}},"governance":{"type":"object","title":"Governance","default":{}},"limitations":{"type":"object","title":"Limitations","default":{}}},"type":"object","required":["asset_id","version"],"title":"ModelCardCreate"},"ModelCardOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"type":"string","title":"Asset Id"},"version":{"type":"string","title":"Version"},"status":{"type":"string","title":"Status"},"model_overview":{"type":"object","title":"Model Overview"},"intended_use":{"type":"object","title":"Intended Use"},"training_data":{"type":"object","title":"Training Data"},"evaluation":{"type":"object","title":"Evaluation"},"risk_assessment":{"type":"object","title":"Risk Assessment"},"governance":{"type":"object","title":"Governance"},"limitations":{"type":"object","title":"Limitations"},"signature_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature B64"},"verify_key_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verify Key B64"},"hash_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash Sha256"},"signed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signed At"},"signed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed By"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","asset_id","version","status","model_overview","intended_use","training_data","evaluation","risk_assessment","governance","limitations","created_by","created_at","updated_at"],"title":"ModelCardOut"},"ModelCardUpdate":{"properties":{"model_overview":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Model Overview"},"intended_use":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Intended Use"},"training_data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Training Data"},"evaluation":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Evaluation"},"risk_assessment":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Risk Assessment"},"governance":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Governance"},"limitations":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Limitations"}},"type":"object","title":"ModelCardUpdate"},"NewVersionRequest":{"properties":{"new_id":{"type":"string","title":"New Id"},"new_version":{"type":"string","title":"New Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["new_id","new_version"],"title":"NewVersionRequest"},"NotificationConfigIn":{"properties":{"slack_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Webhook Url"},"slack_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slack Enabled"},"slack_on_deny":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slack On Deny"},"slack_on_escalate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slack On Escalate"},"slack_on_bias_fail":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slack On Bias Fail"},"teams_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Webhook Url"},"teams_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Teams Enabled"},"teams_on_deny":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Teams On Deny"},"teams_on_escalate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Teams On Escalate"},"teams_on_bias_fail":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Teams On Bias Fail"}},"type":"object","title":"NotificationConfigIn"},"NotificationConfigOut":{"properties":{"slack_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Webhook Url"},"slack_enabled":{"type":"boolean","title":"Slack Enabled"},"slack_on_deny":{"type":"boolean","title":"Slack On Deny"},"slack_on_escalate":{"type":"boolean","title":"Slack On Escalate"},"slack_on_bias_fail":{"type":"boolean","title":"Slack On Bias Fail"},"teams_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Webhook Url"},"teams_enabled":{"type":"boolean","title":"Teams Enabled"},"teams_on_deny":{"type":"boolean","title":"Teams On Deny"},"teams_on_escalate":{"type":"boolean","title":"Teams On Escalate"},"teams_on_bias_fail":{"type":"boolean","title":"Teams On Bias Fail"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["slack_webhook_url","slack_enabled","slack_on_deny","slack_on_escalate","slack_on_bias_fail","teams_webhook_url","teams_enabled","teams_on_deny","teams_on_escalate","teams_on_bias_fail","updated_at","updated_by"],"title":"NotificationConfigOut"},"OpenChainRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"chain_name":{"type":"string","title":"Chain Name"},"chain_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Description"},"legal_matter_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Matter Reference"},"capsule_manifest_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Manifest Hash"}},"type":"object","required":["asset_id","chain_name"],"title":"OpenChainRequest"},"OrgOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"type":"string","title":"Plan"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","plan","is_active","created_at"],"title":"OrgOut"},"OrgUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"OrgUpdate"},"OverrideRequest":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["status","reason"],"title":"OverrideRequest"},"PackageOut":{"properties":{"id":{"type":"integer","title":"Id"},"asset_id":{"type":"string","title":"Asset Id"},"version":{"type":"string","title":"Version"},"manifest":{"type":"object","title":"Manifest"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"hash_sha256":{"type":"string","title":"Hash Sha256"},"packaged_at":{"type":"string","format":"date-time","title":"Packaged At"}},"type":"object","required":["id","asset_id","version","manifest","signature_b64","verify_key_b64","hash_sha256","packaged_at"],"title":"PackageOut"},"PackageRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"version":{"type":"string","title":"Version"},"owners":{"items":{"type":"string"},"type":"array","title":"Owners","default":[]},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"policies":{"items":{"type":"object"},"type":"array","title":"Policies","default":[]},"lineage_parents":{"items":{"type":"string"},"type":"array","title":"Lineage Parents","default":[]}},"type":"object","required":["asset_id","version"],"title":"PackageRequest"},"PolicyCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":""},"effect":{"type":"string","title":"Effect"},"conditions":{"type":"object","title":"Conditions"}},"type":"object","required":["name","effect","conditions"],"title":"PolicyCreate"},"PolicyOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"effect":{"type":"string","title":"Effect"},"conditions":{"type":"object","title":"Conditions"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","description","effect","conditions","is_active","created_at"],"title":"PolicyOut"},"PolicyUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"effect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect"},"conditions":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Conditions"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"PolicyUpdate"},"PostProcessingRequest":{"properties":{"transformation":{"type":"string","title":"Transformation"},"reason":{"type":"string","title":"Reason"},"input_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Hash"},"output_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Hash"}},"type":"object","required":["transformation","reason"],"title":"PostProcessingRequest"},"PreserveOutputRequest":{"properties":{"output_hash":{"type":"string","title":"Output Hash"},"output_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Description"}},"type":"object","required":["output_hash"],"title":"PreserveOutputRequest"},"PrivilegedAccessRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"accessor_identity":{"type":"string","title":"Accessor Identity"},"accessor_org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessor Org"},"purpose_declaration":{"type":"string","title":"Purpose Declaration"},"credential_type":{"type":"string","title":"Credential Type","default":"privileged_examiner"},"ring_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Level"}},"type":"object","required":["asset_id","accessor_identity","purpose_declaration"],"title":"PrivilegedAccessRequest"},"PromptSnapshotRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"prompt_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Classification"},"model_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Asset Id"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"model_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Provider"},"model_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Endpoint"},"rag_pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rag Pipeline Id"},"corpus_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Asset Id"},"corpus_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Hash"},"corpus_snapshot_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Snapshot At"},"retrieved_chunk_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retrieved Chunk Count"},"retrieval_query_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieval Query Hash"},"caller_identity":{"type":"string","title":"Caller Identity"},"caller_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Caller Context"},"execution_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Token Id"},"eligibility_declaration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eligibility Declaration Id"}},"type":"object","required":["asset_id","caller_identity"],"title":"PromptSnapshotRequest"},"PromptVersionRequest":{"properties":{"version":{"type":"string","title":"Version"},"prompt_text":{"type":"string","title":"Prompt Text"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"}},"type":"object","required":["version","prompt_text"],"title":"PromptVersionRequest"},"RegisterOrgRequest":{"properties":{"org_name":{"type":"string","title":"Org Name"},"org_slug":{"type":"string","title":"Org Slug"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["org_name","org_slug","email","password"],"title":"RegisterOrgRequest"},"ResolveRequest":{"properties":{"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","title":"ResolveRequest"},"RevokeAssetTokensRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["asset_id"],"title":"RevokeAssetTokensRequest"},"RevokeRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"revoker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoker"},"authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authority"}},"type":"object","required":["reason"],"title":"RevokeRequest"},"RingDefinition":{"properties":{"level":{"type":"integer","title":"Level"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_method":{"type":"string","title":"Access Method"},"content_spec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Spec"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fields"},"default_ttl_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Ttl Hours","default":72},"default_max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Max Uses"}},"type":"object","required":["level","name","access_method"],"title":"RingDefinition"},"SearchResult":{"properties":{"result_type":{"type":"string","title":"Result Type"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"match_reason":{"type":"string","title":"Match Reason"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"tags":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tags","default":[]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"meta":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Meta","default":{}}},"type":"object","required":["result_type","id","name","match_reason"],"title":"SearchResult"},"SetRingConfigRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"config_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Name"},"rings":{"anyOf":[{"items":{"$ref":"#/components/schemas/RingDefinition"},"type":"array"},{"type":"null"}],"title":"Rings"}},"type":"object","required":["asset_id"],"title":"SetRingConfigRequest"},"SubmissionRequest":{"properties":{"submitted_to":{"type":"string","title":"Submitted To"},"submission_type":{"type":"string","title":"Submission Type"},"case_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Reference"},"capsule_hash_at_submission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Hash At Submission"}},"type":"object","required":["submitted_to","submission_type"],"title":"SubmissionRequest"},"Token":{"properties":{"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","title":"Token"},"TokenVerifyRequest":{"properties":{"token_id":{"type":"string","title":"Token Id"},"token_raw":{"type":"string","title":"Token Raw"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"ring_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Level"}},"type":"object","required":["token_id","token_raw"],"title":"TokenVerifyRequest"},"TrajectoryOutcomeRequest":{"properties":{"trajectory_outcome":{"type":"string","title":"Trajectory Outcome"},"outcome_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome Summary"}},"type":"object","required":["trajectory_outcome"],"title":"TrajectoryOutcomeRequest"},"TrajectoryToeprintRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"trajectory_name":{"type":"string","title":"Trajectory Name"},"trajectory_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trajectory Description"},"trajectory_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trajectory Type","default":"execution_sequence"},"sequence_start_at":{"type":"string","title":"Sequence Start At"},"sequence_end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequence End At"},"eligibility_declaration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eligibility Declaration Id"},"commitment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment Id"},"prompt_snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Snapshot Id"},"suspension_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspension Id"},"refusal_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Refusal Ids"},"bypass_detection_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Bypass Detection Ids"},"event_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Event Ids"},"trajectory_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trajectory Outcome","default":"pending"},"outcome_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome Summary"},"issued_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued To"},"issued_to_org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued To Org"},"issue_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Purpose"}},"type":"object","required":["asset_id","trajectory_name","sequence_start_at"],"title":"TrajectoryToeprintRequest"},"TransferRequest":{"properties":{"to_party":{"type":"string","title":"To Party"},"transfer_purpose":{"type":"string","title":"Transfer Purpose"},"capsule_hash_at_transfer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Hash At Transfer"}},"type":"object","required":["to_party","transfer_purpose"],"title":"TransferRequest"},"UpdateEnsembleRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"member_asset_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Member Asset Ids"},"ensemble_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ensemble Type"}},"type":"object","title":"UpdateEnsembleRequest"},"UpdatePipelineRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"corpus_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Asset Id"},"embedding_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding Asset Id"},"prompt_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Asset Id"},"generative_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generative Asset Id"},"corpus_freshness_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Corpus Freshness Days"},"prompt_version_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prompt Version Pinned"},"pinned_prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinned Prompt Version"},"require_all_authorized":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require All Authorized"}},"type":"object","title":"UpdatePipelineRequest"},"UserCreate":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","default":["viewer"]}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"org_id":{"type":"integer","title":"Org Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","is_active","roles","org_id","created_at"],"title":"UserOut"},"UserUpdate":{"properties":{"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Roles"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyAttestationOut":{"properties":{"valid":{"type":"boolean","title":"Valid"},"manifest_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Hash"},"computed_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed Hash"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"attestation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attestation Id"}},"type":"object","required":["valid"],"title":"VerifyAttestationOut"},"VerifyAttestationRequest":{"properties":{"attestation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attestation Id"},"manifest":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Manifest"},"signature_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature B64"},"verify_key_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verify Key B64"},"hash_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash Sha256"}},"type":"object","title":"VerifyAttestationRequest"},"VerifyInboundTokenRequest":{"properties":{"token_id":{"type":"string","title":"Token Id"},"manifest":{"type":"object","title":"Manifest"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"issuing_org_slug":{"type":"string","title":"Issuing Org Slug"},"asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},"type":"object","required":["token_id","manifest","signature_b64","verify_key_b64","issuing_org_slug"],"title":"VerifyInboundTokenRequest"},"VerifyOut":{"properties":{"valid":{"type":"boolean","title":"Valid"},"hash_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash Sha256"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["valid"],"title":"VerifyOut"},"VerifyTokenRequest":{"properties":{"token_id":{"type":"string","title":"Token Id"},"asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"record_use":{"type":"boolean","title":"Record Use","default":true}},"type":"object","required":["token_id"],"title":"VerifyTokenRequest"},"WebhookCreate":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","default":[]}},"type":"object","required":["name","url"],"title":"WebhookCreate"},"WebhookUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Event Types"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"WebhookUpdate"},"WithdrawRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"WithdrawRequest"},"app__api__routes__capsule__VerifyRequest":{"properties":{"manifest":{"type":"object","title":"Manifest"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"},"hash_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash Sha256"}},"type":"object","required":["manifest","signature_b64","verify_key_b64"],"title":"VerifyRequest"},"app__api__routes__ledger__VerifyRequest":{"properties":{"manifest":{"type":"object","title":"Manifest"},"signature_b64":{"type":"string","title":"Signature B64"},"verify_key_b64":{"type":"string","title":"Verify Key B64"}},"type":"object","required":["manifest","signature_b64","verify_key_b64"],"title":"VerifyRequest"},"app__api__routes__ring_verification__IssueTokenRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"issued_to":{"type":"string","title":"Issued To"},"recipient_org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Org"},"recipient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Name"},"purpose_declaration":{"type":"string","title":"Purpose Declaration"},"authorized_actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Authorized Actions"},"scope_declaration":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Scope Declaration"},"ttl_hours":{"type":"integer","title":"Ttl Hours","default":72},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"ring_level":{"type":"integer","title":"Ring Level","default":2}},"type":"object","required":["asset_id","issued_to","purpose_declaration"],"title":"IssueTokenRequest"},"app__api__routes__ring_verification__RevokeTokenRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"RevokeTokenRequest"},"app__api__routes__tokens__IssueTokenRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"authorized_actions":{"items":{"type":"string"},"type":"array","title":"Authorized Actions","default":["INFER"]},"issued_to":{"type":"string","title":"Issued To","default":"sdk-client"},"ttl_hours":{"type":"integer","title":"Ttl Hours","default":24},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"}},"type":"object","required":["asset_id"],"title":"IssueTokenRequest"},"app__api__routes__tokens__RevokeTokenRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"RevokeTokenRequest"}}}}