components: schemas: AddCapabilityRequest: properties: capability: $ref: '#/components/schemas/AgentCapability' required: - capability title: AddCapabilityRequest type: object AddThirdPartyRequest: properties: discharge_identifier: maxLength: 128 minLength: 1 title: Discharge Identifier type: string location: default: ae402 maxLength: 64 minLength: 1 title: Location type: string predicate_hint: anyOf: - maxLength: 128 type: string - type: 'null' title: Predicate Hint token: minLength: 1 title: Token type: string required: - token - discharge_identifier title: AddThirdPartyRequest type: object AddThirdPartyResponse: properties: caveats: items: type: string title: Caveats type: array token: title: Token type: string required: - token - caveats title: AddThirdPartyResponse type: object AdvanceBlocksRequest: properties: blocks: maximum: 100000.0 minimum: 1.0 title: Blocks type: integer chain: $ref: '#/components/schemas/ChainId' required: - chain - blocks title: AdvanceBlocksRequest type: object AgentCapability: properties: description: title: Description type: string name: title: Name type: string verified: default: false title: Verified type: boolean version: title: Version type: string required: - name - version - description title: AgentCapability type: object AgentRiskResponse: properties: agent: title: Agent type: string anomaly_flag: title: Anomaly Flag type: boolean dispute_rate: title: Dispute Rate type: number escrow_count: title: Escrow Count type: integer explanation: title: Explanation type: string model_version: title: Model Version type: string risk_score: title: Risk Score type: integer scored_at: title: Scored At type: integer total_volume_motes: title: Total Volume Motes type: integer required: - agent - risk_score - anomaly_flag - explanation - model_version - scored_at - escrow_count - total_volume_motes - dispute_rate title: AgentRiskResponse type: object AgentSimRequest: properties: base_amount: default: 1000000000 exclusiveMinimum: 0.0 title: Base Amount type: integer max_rounds: default: 10 maximum: 100.0 minimum: 1.0 title: Max Rounds type: integer num_escrows: default: 100 maximum: 5000.0 minimum: 1.0 title: Num Escrows type: integer receiver_strategy: default: honest title: Receiver Strategy type: string seed: default: 0 title: Seed type: integer sender_strategy: default: honest title: Sender Strategy type: string title: AgentSimRequest type: object AgentSimResponse: properties: avg_rounds: title: Avg Rounds type: number dispute_rate: title: Dispute Rate type: number outcome_counts: additionalProperties: type: integer title: Outcome Counts type: object outcomes: items: $ref: '#/components/schemas/EscrowOutcomeResponse' title: Outcomes type: array report_hash: title: Report Hash type: string summary: title: Summary type: string required: - outcome_counts - dispute_rate - avg_rounds - report_hash - summary - outcomes title: AgentSimResponse type: object AggregateRequest: properties: commitments: items: $ref: '#/components/schemas/CommitmentRef' maxItems: 1000 minItems: 1 title: Commitments type: array required: - commitments title: AggregateRequest type: object AggregateResponse: properties: aggregate: title: Aggregate type: string count: title: Count type: integer required: - aggregate - count title: AggregateResponse type: object ArbiterListResponse: properties: arbiters: items: $ref: '#/components/schemas/ReputationScore' title: Arbiters type: array count: title: Count type: integer required: - arbiters - count title: ArbiterListResponse type: object ArbiterRecord: properties: arbiter_id: title: Arbiter Id type: string availability: default: true title: Availability type: boolean completed_arbitrations: title: Completed Arbitrations type: integer reputation_score: title: Reputation Score type: number required: - arbiter_id - reputation_score - completed_arbitrations title: ArbiterRecord type: object ArbitrateRequest: properties: dispute_id: title: Dispute Id type: string election_seed_hash: anyOf: - type: string - type: 'null' title: Election Seed Hash escrow_amount: title: Escrow Amount type: integer receiver_account: anyOf: - type: string - type: 'null' title: Receiver Account receiver_evidence: items: $ref: '#/components/schemas/DisputeEvidence' title: Receiver Evidence type: array sender_account: anyOf: - type: string - type: 'null' title: Sender Account sender_evidence: items: $ref: '#/components/schemas/DisputeEvidence' title: Sender Evidence type: array required: - dispute_id - sender_evidence - receiver_evidence - escrow_amount title: ArbitrateRequest type: object ArbitrationRecommendation: properties: analysis_hash: title: Analysis Hash type: string confidence: maximum: 1.0 minimum: 0.0 title: Confidence type: number dispute_id: title: Dispute Id type: string escalated_to_panel: default: false title: Escalated To Panel type: boolean escalation_reason: anyOf: - type: string - type: 'null' title: Escalation Reason evidence_root: default: '' title: Evidence Root type: string panel_election: anyOf: - additionalProperties: true type: object - type: 'null' title: Panel Election provider: default: heuristic title: Provider type: string reasoning: title: Reasoning type: string recommendation: pattern: ^(favor_sender|favor_receiver|split|escalate|abstain)$ title: Recommendation type: string risk_factors: items: type: string title: Risk Factors type: array suggested_split_pct: maximum: 100.0 minimum: 0.0 title: Suggested Split Pct type: number required: - dispute_id - recommendation - confidence - reasoning - risk_factors - suggested_split_pct - analysis_hash title: ArbitrationRecommendation type: object AttenuateRequest: properties: caveats: items: type: string maxItems: 32 minItems: 1 title: Caveats type: array token: minLength: 1 title: Token type: string required: - token - caveats title: AttenuateRequest type: object AttenuateResponse: properties: caveats: items: type: string title: Caveats type: array token: title: Token type: string required: - token - caveats title: AttenuateResponse type: object AttestHopRequest: properties: service_hash: maxLength: 64 minLength: 64 pattern: ^[0-9a-f]{64}$ title: Service Hash type: string required: - service_hash title: AttestHopRequest type: object BatchEscrowItem: description: A single escrow spec within a batch-create request. properties: amount_motes: description: Deposit amount in motes (1 CSPR = 1_000_000_000 motes). Canonical wire name is `amount_motes`; legacy `amount` is accepted as an input alias and will be removed in API v2. exclusiveMinimum: 0.0 title: Amount Motes type: integer receiver: description: Casper account hash of the receiver (raw 64-hex or account-hash- prefixed) pattern: ^(account-hash-)?[0-9a-fA-F]{64}$ title: Receiver type: string service_hash: maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Service Hash type: string ttl: default: 300 description: Time-to-live in seconds maximum: 86400.0 minimum: 60.0 title: Ttl type: integer required: - receiver - amount_motes - service_hash title: BatchEscrowItem type: object BatchEscrowRequest: description: 'Request to create up to 50 escrows in a single on-chain deploy via escrow-manager.create_batch().' properties: escrows: items: $ref: '#/components/schemas/BatchEscrowItem' maxItems: 50 minItems: 1 title: Escrows type: array required: - escrows title: BatchEscrowRequest type: object BatchEscrowResponse: description: Result of a batch escrow creation. properties: created: title: Created type: integer deploy_hash: anyOf: - type: string - type: 'null' title: Deploy Hash records: items: $ref: '#/components/schemas/EscrowRecord' title: Records type: array required: - created - records title: BatchEscrowResponse type: object BatchLifecycleRequest: description: Request to batch-release or batch-cancel escrows. properties: arbiter_pubkeys: default: [] items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: default: [] items: type: string title: Arbiter Signatures type: array service_hashes: items: type: string title: Service Hashes type: array required: - service_hashes title: BatchLifecycleRequest type: object BatchLifecycleResponse: properties: deploy_hash: anyOf: - type: string - type: 'null' title: Deploy Hash processed: title: Processed type: integer required: - deploy_hash - processed title: BatchLifecycleResponse type: object BatchPreviewRequest: properties: action: default: release description: Either "release" or "cancel". title: Action type: string arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array service_hashes: items: type: string title: Service Hashes type: array required: - service_hashes title: BatchPreviewRequest type: object BatchPreviewResponse: properties: above_cap_hashes: items: type: string title: Above Cap Hashes type: array action: title: Action type: string admit: title: Admit type: boolean max_batch_size: title: Max Batch Size type: integer needs_quorum: title: Needs Quorum type: boolean rejections: items: $ref: '#/components/schemas/BatchRejectionResponse' title: Rejections type: array required_quorum: title: Required Quorum type: integer valid_arbiter_votes: title: Valid Arbiter Votes type: integer required: - admit - action - needs_quorum - valid_arbiter_votes - required_quorum - above_cap_hashes - rejections - max_batch_size title: BatchPreviewResponse type: object BatchRejectionResponse: properties: code: title: Code type: string detail: additionalProperties: true title: Detail type: object message: title: Message type: string service_hash: anyOf: - type: string - type: 'null' title: Service Hash required: - code - message title: BatchRejectionResponse type: object CUSUMResult: description: Result of a CUSUM update. Immutable snapshot. properties: alarm_lower: title: Alarm Lower type: boolean alarm_upper: title: Alarm Upper type: boolean direction: anyOf: - type: string - type: 'null' title: Direction n: minimum: 0.0 title: N type: integer s_neg: title: S Neg type: number s_pos: title: S Pos type: number required: - n - s_pos - s_neg - alarm_upper - alarm_lower - direction title: CUSUMResult type: object ChainEscrowRequest: properties: hop_index: minimum: 0.0 title: Hop Index type: integer service_hash: maxLength: 64 minLength: 64 pattern: ^[0-9a-f]{64}$ title: Service Hash type: string required: - service_hash - hop_index title: ChainEscrowRequest type: object ChainId: description: 'Supported blockchain targets for cross-chain operations. Mirrors `contracts/stubs/src/chain_adapter.rs::ChainId` on the server side.' enum: - casper-testnet - casper-mainnet - ethereum - ethereum-sepolia - polygon - arbitrum title: ChainId type: string ClaimResponse: properties: amount_released: title: Amount Released type: integer ok: title: Ok type: boolean reason: title: Reason type: string remaining_pool: title: Remaining Pool type: integer required: - ok - amount_released - reason - remaining_pool title: ClaimResponse type: object CommitResponse: properties: root: title: Root type: string round_id: title: Round Id type: string total_committed: title: Total Committed type: integer winners_count: title: Winners Count type: integer required: - root - total_committed - winners_count - round_id title: CommitResponse type: object CommitmentRef: properties: commitment: title: Commitment type: string required: - commitment title: CommitmentRef type: object ComplianceDecisionResponse: properties: amount_motes: title: Amount Motes type: integer country_code: title: Country Code type: string permitted: title: Permitted type: boolean policy_notes: title: Policy Notes type: string regime: $ref: '#/components/schemas/JurisdictionRegime' rejections: items: type: string title: Rejections type: array report_reasons: items: type: string title: Report Reasons type: array requires_reporting: title: Requires Reporting type: boolean verification_level: $ref: '#/components/schemas/VerificationLevel' required: - permitted - country_code - regime - verification_level - amount_motes - requires_reporting - report_reasons - rejections - policy_notes title: ComplianceDecisionResponse type: object ConfigureFeeRequest: properties: new_fee_bps: description: Basis points, contract max 1000 = 10% maximum: 1000.0 minimum: 0.0 title: New Fee Bps type: integer required: - new_fee_bps title: ConfigureFeeRequest type: object CreateCrossChainRequest: properties: amount_motes: exclusiveMaximum: 1.8446744073709552e+19 exclusiveMinimum: 0.0 title: Amount Motes type: integer min_confirmations: default: 12 maximum: 100.0 minimum: 1.0 title: Min Confirmations type: integer receiver: maxLength: 140 minLength: 1 title: Receiver type: string sender: maxLength: 140 minLength: 1 title: Sender type: string service_hash: maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Service Hash type: string trigger_chain: $ref: '#/components/schemas/ChainId' trigger_topic: default: '' maxLength: 68 title: Trigger Topic type: string trigger_tx_hash: maxLength: 68 minLength: 2 title: Trigger Tx Hash type: string required: - sender - receiver - amount_motes - service_hash - trigger_chain - trigger_tx_hash title: CreateCrossChainRequest type: object DeclareIntentRequest: properties: agent_path: description: Ordered agent identifiers, e.g. ['A', 'B', 'C'] for a 2-hop A->B->C choreography. len(agent_path) - 1 hops planned. items: type: string maxItems: 17 minItems: 2 title: Agent Path type: array intent_id: anyOf: - maxLength: 128 type: string - type: 'null' description: Caller-supplied intent id. Omit to have the server generate one (uuid4 hex). title: Intent Id required: - agent_path title: DeclareIntentRequest type: object DelegateCapabilityRequest: description: Request to delegate a capability from one agent to another. properties: capability_uri: description: URI identifying the capability (e.g., 'urn:escrow:release') maxLength: 256 minLength: 1 pattern: ^[a-zA-Z0-9_:/?.#=-]+$ title: Capability Uri type: string delegatee_id: description: Public ID of the agent receiving the capability maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9_:.-]+$ title: Delegatee Id type: string delegator_id: description: Public ID of the delegating agent maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9_:.-]+$ title: Delegator Id type: string expiry_timestamp: description: Unix timestamp when the delegation expires exclusiveMinimum: 1700000000.0 title: Expiry Timestamp type: integer signature: description: Ed25519 signature of the canonical delegation message maxLength: 128 minLength: 128 pattern: ^[0-9a-fA-F]{128}$ title: Signature type: string required: - delegator_id - delegatee_id - capability_uri - expiry_timestamp - signature title: DelegateCapabilityRequest type: object DischargeRequest: properties: caveats: items: type: string maxItems: 16 title: Caveats type: array discharge_identifier: maxLength: 128 minLength: 1 title: Discharge Identifier type: string location: default: ae402 maxLength: 64 minLength: 1 title: Location type: string ttl_seconds: default: 3600 maximum: 2592000.0 minimum: 1.0 title: Ttl Seconds type: integer required: - discharge_identifier title: DischargeRequest type: object DischargeResponse: properties: identifier: title: Identifier type: string token: title: Token type: string required: - token - identifier title: DischargeResponse type: object DisputeEvidence: properties: claimant: title: Claimant type: string content_hash: title: Content Hash type: string description: title: Description type: string escrow_id: title: Escrow Id type: string evidence_type: pattern: ^(text|screenshot|hash|transaction)$ title: Evidence Type type: string timestamp: title: Timestamp type: integer required: - escrow_id - claimant - evidence_type - content_hash - description - timestamp title: DisputeEvidence type: object DisputeRequest: properties: reason_hash: maxLength: 64 minLength: 64 title: Reason Hash type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string wallet_tx_hash: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' title: Wallet Tx Hash required: - service_hash - reason_hash title: DisputeRequest type: object ElectArbiterRequest: properties: dispute_id: description: Unique dispute identifier title: Dispute Id type: string receiver: description: Dispute receiver account (excluded from election); same format as `sender`. title: Receiver type: string seed_hash: description: A recent block hash or other verifiable random seed for election title: Seed Hash type: string sender: description: Dispute sender account (excluded from election). For the on-chain VRF path this must match the on-chain arbiter identity format -- a plain lowercase-hex Casper account hash, no 'account-hash-' prefix -- since that is what elected candidates are compared against (INVARIANT 5). title: Sender type: string required: - dispute_id - sender - receiver - seed_hash title: ElectArbiterRequest type: object ElectArbiterResponse: properties: dispute_id: title: Dispute Id type: string elected_arbiter: $ref: '#/components/schemas/ArbiterRecord' elected_at: title: Elected At type: integer election_proof: title: Election Proof type: string method: default: onchain_vrf title: Method type: string required: - dispute_id - elected_arbiter - election_proof - elected_at title: ElectArbiterResponse type: object EscrowListResponse: properties: count: title: Count type: integer escrows: items: additionalProperties: true type: object title: Escrows type: array required: - escrows - count title: EscrowListResponse type: object EscrowOutcomeResponse: properties: arbitration_confidence: anyOf: - type: number - type: 'null' title: Arbitration Confidence arbitration_recommendation: anyOf: - type: string - type: 'null' title: Arbitration Recommendation disputed: title: Disputed type: boolean escrow_id: title: Escrow Id type: string final_status: title: Final Status type: string rounds_taken: title: Rounds Taken type: integer required: - escrow_id - final_status - rounds_taken - disputed - arbitration_recommendation - arbitration_confidence title: EscrowOutcomeResponse type: object EscrowRecord: description: 'On-chain escrow record. Optional ML-KEM fields are returned by create_escrow so the console can prove that post-quantum metadata encryption actually ran for the demo.' properties: amount: title: Amount type: integer commitment: anyOf: - type: string - type: 'null' title: Commitment confidential: default: false title: Confidential type: boolean created_at: title: Created At type: integer deploy_hash: anyOf: - type: string - type: 'null' title: Deploy Hash escrow_type: default: standard title: Escrow Type type: string funded_block: default: 0 title: Funded Block type: integer gaming_result_root: default: '' title: Gaming Result Root type: string mlkem_algorithm: anyOf: - type: string - type: 'null' title: Mlkem Algorithm mlkem_ciphertext: anyOf: - type: string - type: 'null' title: Mlkem Ciphertext mlkem_decap_key: anyOf: - type: string - type: 'null' title: Mlkem Decap Key range_proof_bits: anyOf: - type: integer - type: 'null' title: Range Proof Bits receiver: title: Receiver type: string sender: title: Sender type: string service_hash: title: Service Hash type: string status: $ref: '#/components/schemas/EscrowStatus' threshold_commitment_hex: default: '' title: Threshold Commitment Hex type: string threshold_m: default: 0 title: Threshold M type: integer threshold_n: default: 0 title: Threshold N type: integer ttl: title: Ttl type: integer required: - sender - receiver - amount - service_hash - status - created_at - ttl title: EscrowRecord type: object EscrowRequest: description: Request to create a new escrow. properties: amount_motes: description: Deposit amount in motes (1 CSPR = 1_000_000_000 motes). Canonical wire name is `amount_motes`; legacy `amount` is accepted as an input alias and will be removed in API v2. exclusiveMinimum: 0.0 title: Amount Motes type: integer confidential: default: false description: Opt-in zero-knowledge amount privacy (Tier Wow W.2). When true, amount is hidden behind a Pedersen commitment + range proof in every API response; use POST /escrows/{service_hash}/reveal with the blinding factor to disclose it. title: Confidential type: boolean hop_index: anyOf: - minimum: 0.0 type: integer - type: 'null' description: Zero-based position of this escrow in its intent's hop chain. Required when parent_intent_id is set; ignored otherwise. title: Hop Index parent_intent_id: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' description: Intent id this escrow belongs to for multi-hop A2A choreography. Must be declared first via POST /intents. title: Parent Intent Id receiver: description: Casper account hash of the receiver (raw 64-hex or account-hash- prefixed) pattern: ^(account-hash-)?[0-9a-fA-F]{64}$ title: Receiver type: string sender_public_key_hex: anyOf: - maxLength: 140 minLength: 1 type: string - type: 'null' title: Sender Public Key Hex service_hash: maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Service Hash type: string ttl: default: 300 description: Time-to-live in seconds maximum: 86400.0 minimum: 60.0 title: Ttl type: integer wallet_tx_hash: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' title: Wallet Tx Hash required: - receiver - amount_motes - service_hash title: EscrowRequest type: object EscrowResponse: properties: escrow: additionalProperties: true title: Escrow type: object required: - escrow title: EscrowResponse type: object EscrowStateResponse: properties: claimed_players: items: type: string title: Claimed Players type: array escrow_id: title: Escrow Id type: string prize_pool_motes: title: Prize Pool Motes type: integer remaining_pool: title: Remaining Pool type: integer root: title: Root type: string round_id: title: Round Id type: string winners_count: title: Winners Count type: integer required: - escrow_id - root - round_id - prize_pool_motes - remaining_pool - winners_count - claimed_players title: EscrowStateResponse type: object EscrowStatus: enum: - pending - released - refunded - expired - disputed - resolved - released - refunded title: EscrowStatus type: string EvaluateComplianceByAgentRequest: properties: amount_motes: minimum: 0.0 title: Amount Motes type: integer country_code: maxLength: 2 minLength: 2 title: Country Code type: string did: description: DID of the agent in the identity registry — verification_level is read live. title: Did type: string prior_volume_today_motes: default: 0 minimum: 0.0 title: Prior Volume Today Motes type: integer required: - country_code - did - amount_motes title: EvaluateComplianceByAgentRequest type: object EvaluateComplianceRequest: properties: amount_motes: minimum: 0.0 title: Amount Motes type: integer country_code: description: ISO 3166-1 alpha-2 country code. maxLength: 2 minLength: 2 title: Country Code type: string prior_volume_today_motes: default: 0 minimum: 0.0 title: Prior Volume Today Motes type: integer verification_level: $ref: '#/components/schemas/VerificationLevel' default: UNVERIFIED required: - country_code - amount_motes title: EvaluateComplianceRequest type: object FilterModel: description: 'Filter definition mirroring :class:`SubscriptionFilter`. Accepts either strings (Telegram-side ergonomics) or lists of strings. Anything else is rejected with a 422 to keep bad input out of the SDK.' properties: event_types: anyOf: - items: type: string type: array - type: string - type: 'null' title: Event Types receivers: anyOf: - items: type: string type: array - type: string - type: 'null' title: Receivers service_hashes: anyOf: - items: type: string type: array - type: string - type: 'null' title: Service Hashes title: FilterModel type: object GamingArmRequest: description: 'C14: arm an already-created escrow with a gaming result Merkle root. The caller — typically the tournament organiser or the game backend — computes the Merkle root off-chain over every payout leaf (leaf value = `receiver_pubkey` bytes, sha256-tagged — see server/gaming_merkle.py) and calls this endpoint with the resulting hex root. Individual winners then submit inclusion proofs against this root at /release.' properties: result_root_hex: maxLength: 64 minLength: 64 title: Result Root Hex type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash - result_root_hex title: GamingArmRequest type: object HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' title: Detail type: array title: HTTPValidationError type: object HealthResponse: properties: chain: default: '' title: Chain type: string contract_hash: default: '' title: Contract Hash type: string db: default: disconnected title: Db type: string mode: default: sandbox title: Mode type: string sandbox: default: true title: Sandbox type: boolean status: default: ok title: Status type: string strict_mode: additionalProperties: true default: {} title: Strict Mode type: object uptime: default: 0 title: Uptime type: integer version: default: 0.3.0 title: Version type: string title: HealthResponse type: object HopView: properties: attested: title: Attested type: boolean from_agent: title: From Agent type: string hop_index: title: Hop Index type: integer on_chain_link_tx_hash: anyOf: - type: string - type: 'null' title: On Chain Link Tx Hash service_hash: title: Service Hash type: string to_agent: title: To Agent type: string required: - hop_index - service_hash - from_agent - to_agent - attested title: HopView type: object InitiateSwapRequest: properties: casper_amount: exclusiveMinimum: 0.0 title: Casper Amount type: integer casper_counterparty: title: Casper Counterparty type: string casper_initiator: title: Casper Initiator type: string casper_timelock_ms: description: absolute deadline in ms (must be > evm_timelock_ms) title: Casper Timelock Ms type: integer evm_amount: exclusiveMinimum: 0.0 title: Evm Amount type: integer evm_counterparty: title: Evm Counterparty type: string evm_initiator: title: Evm Initiator type: string evm_timelock_ms: description: absolute deadline in ms (must be < casper_timelock_ms) title: Evm Timelock Ms type: integer hashlock_hex: description: lowercase sha256(preimage) hex, 64 chars title: Hashlock Hex type: string now_ms: anyOf: - type: integer - type: 'null' description: test override; defaults to wall clock title: Now Ms required: - hashlock_hex - casper_initiator - casper_counterparty - casper_amount - casper_timelock_ms - evm_initiator - evm_counterparty - evm_amount - evm_timelock_ms title: InitiateSwapRequest type: object InsuranceClaimRequest: description: Request to file a claim against the insurance pool. properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array claimant_account_hash: anyOf: - type: string - type: 'null' description: account-hash-{hex} of the connected wallet, used to poll the on-chain claims dict (required when wallet_tx_hash is set) title: Claimant Account Hash escrow_hash: description: Service hash of the disputed escrow maxLength: 64 minLength: 64 title: Escrow Hash type: string reason: description: Reason for the claim minLength: 10 title: Reason type: string sender_public_key_hex: anyOf: - type: string - type: 'null' description: Connected wallet's public key hex, matched against the escrow's recorded sender/receiver (required when wallet_tx_hash is set) title: Sender Public Key Hex wallet_tx_hash: anyOf: - type: string - type: 'null' description: Transaction hash of a wallet-submitted on-chain claim() call title: Wallet Tx Hash required: - escrow_hash - reason title: InsuranceClaimRequest type: object InsuranceDepositRequest: description: Request to deposit funds into the insurance pool. properties: amount_motes: description: Deposit amount in motes (1 CSPR = 1_000_000_000 motes). Canonical wire name is `amount_motes`; `amount` is a legacy input alias slated for removal in API v2. exclusiveMinimum: 0.0 title: Amount Motes type: integer required: - amount_motes title: InsuranceDepositRequest type: object IntentView: properties: agent_path: items: type: string title: Agent Path type: array attestation_event_ids: items: type: string title: Attestation Event Ids type: array attested_hop_count: title: Attested Hop Count type: integer chain_root_hash: title: Chain Root Hash type: string hops: items: $ref: '#/components/schemas/HopView' title: Hops type: array intent_id: title: Intent Id type: string is_complete: title: Is Complete type: boolean planned_hop_count: title: Planned Hop Count type: integer required: - intent_id - agent_path - planned_hop_count - attested_hop_count - is_complete - chain_root_hash - attestation_event_ids - hops title: IntentView type: object IssueRequest: properties: amount_motes: minimum: 0.0 title: Amount Motes type: integer asset: default: CSPR title: Asset type: string escrow_id: anyOf: - type: string - type: 'null' title: Escrow Id event: description: release | refund | resolve title: Event type: string extra_claims: anyOf: - additionalProperties: true type: object - type: 'null' title: Extra Claims issuance_ts: anyOf: - type: integer - type: 'null' description: Unix epoch seconds; defaults to now title: Issuance Ts payer: title: Payer type: string receiver: title: Receiver type: string service_hash: title: Service Hash type: string required: - event - service_hash - payer - receiver - amount_motes title: IssueRequest type: object IssueResponse: properties: credential: additionalProperties: true title: Credential type: object summary: additionalProperties: true title: Summary type: object required: - credential - summary title: IssueResponse type: object IssuerInfo: properties: did: title: Did type: string proof_suite: title: Proof Suite type: string public_key_hex: title: Public Key Hex type: string supported_events: items: type: string title: Supported Events type: array required: - did - public_key_hex - proof_suite - supported_events title: IssuerInfo type: object JurisdictionPolicyResponse: properties: country_code: title: Country Code type: string max_daily_volume_motes: anyOf: - type: integer - type: 'null' title: Max Daily Volume Motes max_single_tx_motes: anyOf: - type: integer - type: 'null' title: Max Single Tx Motes min_verification: $ref: '#/components/schemas/VerificationLevel' notes: title: Notes type: string regime: $ref: '#/components/schemas/JurisdictionRegime' required: - country_code - regime - min_verification - max_single_tx_motes - max_daily_volume_motes - notes title: JurisdictionPolicyResponse type: object JurisdictionRegime: description: "Coarse regulatory posture for a jurisdiction.\n\nUNRESTRICTED — no jurisdiction-specific gating beyond the global\n reporting threshold.\nRESTRICTED — permitted, but gated on a minimum KYC/verification tier\n and a per-jurisdiction transaction/day-volume cap.\nPROHIBITED — always blocked, no override. Modeled on sanctioned/\n embargoed jurisdiction lists; a real deployment wires this to an\n actual sanctions data feed instead of the static default table." enum: - UNRESTRICTED - RESTRICTED - PROHIBITED title: JurisdictionRegime type: string LegResponse: properties: amount: title: Amount type: integer claim_tx_hash: anyOf: - type: string - type: 'null' title: Claim Tx Hash claimed_at_ms: anyOf: - type: integer - type: 'null' title: Claimed At Ms counterparty: title: Counterparty type: string hashlock_hex: title: Hashlock Hex type: string initiator: title: Initiator type: string leg_id: title: Leg Id type: string lock_tx_hash: anyOf: - type: string - type: 'null' title: Lock Tx Hash locked_at_ms: anyOf: - type: integer - type: 'null' title: Locked At Ms preimage_hex: anyOf: - type: string - type: 'null' title: Preimage Hex refund_tx_hash: anyOf: - type: string - type: 'null' title: Refund Tx Hash refunded_at_ms: anyOf: - type: integer - type: 'null' title: Refunded At Ms side: title: Side type: string status: title: Status type: string timelock_ms: title: Timelock Ms type: integer required: - leg_id - side - initiator - counterparty - amount - hashlock_hex - timelock_ms - status title: LegResponse type: object LockRequest: properties: prize_pool_motes: minimum: 1.0 title: Prize Pool Motes type: integer round_id: title: Round Id type: string required: - round_id - prize_pool_motes title: LockRequest type: object LockResponse: properties: escrow_id: title: Escrow Id type: string prize_pool_motes: title: Prize Pool Motes type: integer root: title: Root type: string winners_count: title: Winners Count type: integer required: - escrow_id - root - prize_pool_motes - winners_count title: LockResponse type: object MintRequest: properties: caveats: items: type: string maxItems: 32 title: Caveats type: array identifier: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' title: Identifier ttl_seconds: default: 3600 maximum: 2592000.0 minimum: 1.0 title: Ttl Seconds type: integer title: MintRequest type: object MintResponse: properties: caveats: items: type: string title: Caveats type: array expires_at: title: Expires At type: integer identifier: title: Identifier type: string token: title: Token type: string required: - token - identifier - caveats - expires_at title: MintResponse type: object MockEventRequest: properties: block_offset: default: 0 maximum: 100000.0 minimum: 0.0 title: Block Offset type: integer chain: $ref: '#/components/schemas/ChainId' data: default: '' maxLength: 1024 title: Data type: string topics: items: type: string maxItems: 16 title: Topics type: array tx_hash: maxLength: 68 minLength: 2 title: Tx Hash type: string required: - chain - tx_hash title: MockEventRequest type: object MultiAssetEscrowRequest: description: Request to create a new multi-asset escrow. properties: amount_motes: description: Amount in motes (for token_type=cspr, 1 CSPR = 1_000_000_000 motes) or in token units for CEP-18/CEP-78. Canonical wire name is `amount_motes`; `amount` is a legacy input alias. exclusiveMinimum: 0.0 title: Amount Motes type: integer permit: anyOf: - $ref: '#/components/schemas/PermitProof' - type: 'null' description: 'CEP-18-only: when set, funds move from the owner''s own wallet balance via a gasless permit()+transfer_from() instead of the backend''s custodial demo balance.' receiver: description: Casper account hash of the receiver title: Receiver type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string token: $ref: '#/components/schemas/TokenIdentifier' description: Details of the token being escrowed ttl: default: 300 description: Time-to-live in seconds maximum: 86400.0 minimum: 60.0 title: Ttl type: integer required: - receiver - amount_motes - token - service_hash title: MultiAssetEscrowRequest type: object MultiAssetLifecycleRequest: description: Request body for multi-asset escrow lifecycle operations. properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash title: MultiAssetLifecycleRequest type: object MultiAssetResolveRequest: description: Request body for multi-asset escrow dispute resolution. properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array in_favor_of: pattern: ^(sender|receiver)$ title: In Favor Of type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash - in_favor_of title: MultiAssetResolveRequest type: object OpenRequest: properties: amount: exclusiveMaximum: 1.8446744073709552e+19 minimum: 0.0 title: Amount type: integer blinding: title: Blinding type: string commitment: title: Commitment type: string required: - commitment - amount - blinding title: OpenRequest type: object OpenResponse: properties: valid: title: Valid type: boolean required: - valid title: OpenResponse type: object PageHinkleyResult: properties: alarm: title: Alarm type: boolean m_min: title: M Min type: number m_t: title: M T type: number mean: title: Mean type: number n: minimum: 0.0 title: N type: integer ph_stat: title: Ph Stat type: number required: - n - mean - m_t - m_min - ph_stat - alarm title: PageHinkleyResult type: object PermitProof: description: 'CEP-2612-inspired gasless permit proof (see CasperClient.cep18_permit). The owner signs `owner_account_hash` was authorized to allow `spender_account_hash` (always the backend operator''s own account, the relayer) to move `amount` of the token identified by the surrounding request, off-chain via their own wallet -- see frontend/src/lib/cep18Permit.ts for the exact canonical message the signature must cover. The backend never sees or needs the owner''s private key.' properties: deadline: description: Unix ms deadline, must be in the future title: Deadline type: integer owner_account_hash: maxLength: 64 minLength: 64 title: Owner Account Hash type: string signature: description: Owner's Ed25519 signature, hex, tag-prefixed title: Signature type: string required: - owner_account_hash - deadline - signature title: PermitProof type: object PoolStatsResponse: description: Response containing current insurance pool statistics. properties: coverage_ratio: description: Ratio of total assets to total potential liabilities (simplified) title: Coverage Ratio type: number last_rebalance_time: title: Last Rebalance Time type: integer total_assets: title: Total Assets type: integer total_claims_filed: title: Total Claims Filed type: integer total_claims_paid: title: Total Claims Paid type: integer total_premiums_collected: title: Total Premiums Collected type: integer required: - total_assets - total_premiums_collected - total_claims_paid - total_claims_filed - coverage_ratio - last_rebalance_time title: PoolStatsResponse type: object PreimageResponse: properties: hashlock_hex: title: Hashlock Hex type: string preimage_hex: title: Preimage Hex type: string required: - preimage_hex - hashlock_hex title: PreimageResponse type: object PremiumBatchRequest: properties: items: items: $ref: '#/components/schemas/RiskPremiumRequest' title: Items type: array required: - items title: PremiumBatchRequest type: object PremiumQuoteResponse: description: Response containing the calculated insurance premium. properties: base_rate_bps: description: Base premium rate in basis points title: Base Rate Bps type: integer premium_amount: description: Calculated premium in motes title: Premium Amount type: integer risk_multiplier: description: Risk multiplier applied to the base rate title: Risk Multiplier type: number required: - premium_amount - risk_multiplier - base_rate_bps title: PremiumQuoteResponse type: object ProofStepDTO: properties: hash: maxLength: 64 minLength: 64 title: Hash type: string position: pattern: ^(left|right)$ title: Position type: string required: - hash - position title: ProofStepDTO type: object ProveRequest: properties: amount: exclusiveMaximum: 1.8446744073709552e+19 minimum: 0.0 title: Amount type: integer bits: default: 64 maximum: 64.0 minimum: 1.0 title: Bits type: integer transcript: default: '' description: Binding context (hex or utf8) maxLength: 256 title: Transcript type: string required: - amount title: ProveRequest type: object ProveResponse: properties: bits: title: Bits type: integer blinding: title: Blinding type: string commitment: title: Commitment type: string prove_ms: title: Prove Ms type: number range_proof: additionalProperties: true title: Range Proof type: object required: - commitment - range_proof - blinding - bits - prove_ms title: ProveResponse type: object QueueRequest: properties: action_type: description: One of the whitelisted admin action types title: Action Type type: string params: additionalProperties: true title: Params type: object required: - action_type title: QueueRequest type: object ReconstructRequest: properties: encrypted_payload_b64: title: Encrypted Payload B64 type: string shares_hex: items: type: string title: Shares Hex type: array threshold: title: Threshold type: integer required: - encrypted_payload_b64 - shares_hex - threshold title: ReconstructRequest type: object ReconstructResponse: properties: payload_b64: title: Payload B64 type: string shares_used: title: Shares Used type: integer required: - payload_b64 - shares_used title: ReconstructResponse type: object RefundRequest: properties: service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string wallet_tx_hash: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' title: Wallet Tx Hash required: - service_hash title: RefundRequest type: object RegimeShiftBenchmark: description: 'Side-by-side output when caller wants to compare CUSUM vs Page-Hinkley on the same stream (used by /risk/regime-shift/benchmark).' properties: baseline_mean: title: Baseline Mean type: number baseline_sigma: title: Baseline Sigma type: number cusum: $ref: '#/components/schemas/CUSUMResult' detectors_agree: title: Detectors Agree type: boolean n: title: N type: integer page_hinkley: $ref: '#/components/schemas/PageHinkleyResult' required: - n - baseline_mean - baseline_sigma - cusum - page_hinkley - detectors_agree title: RegimeShiftBenchmark type: object RegimeShiftBenchmarkResponse: additionalProperties: false properties: agreement_ratio: title: Agreement Ratio type: number first_cusum_alarm_idx: anyOf: - type: integer - type: 'null' title: First Cusum Alarm Idx first_page_hinkley_alarm_idx: anyOf: - type: integer - type: 'null' title: First Page Hinkley Alarm Idx n_samples: title: N Samples type: integer trajectory: items: $ref: '#/components/schemas/RegimeShiftBenchmark' title: Trajectory type: array required: - n_samples - first_cusum_alarm_idx - first_page_hinkley_alarm_idx - agreement_ratio - trajectory title: RegimeShiftBenchmarkResponse type: object RegimeShiftRequest: additionalProperties: false description: 'Input for /risk/regime-shift/* endpoints. ``values`` — the stream to analyse (e.g. per-hour dispute rate, counterparty volume, oracle latency). Typically 100-1000 samples. ``mu0``, ``sigma`` — assumed baseline mean/std (CUSUM only). ``cusum_k``, ``cusum_h`` — CUSUM slack and alarm threshold. ``ph_delta``, ``ph_threshold``, ``ph_alpha`` — Page-Hinkley knobs.' properties: cusum_h: default: 5.0 title: Cusum H type: number cusum_k: default: 0.5 title: Cusum K type: number mu0: default: 0.0 title: Mu0 type: number ph_alpha: default: 1.0 title: Ph Alpha type: number ph_delta: default: 0.005 title: Ph Delta type: number ph_threshold: default: 50.0 title: Ph Threshold type: number sigma: default: 1.0 title: Sigma type: number values: items: type: number title: Values type: array required: - values title: RegimeShiftRequest type: object RegisterAgentRequest: description: Request to register a new agent identity. properties: agent_id: description: Public agent identifier maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9_:.-]+$ title: Agent Id type: string did_document_hash: description: SHA256 hash of the agent's Decentralized Identity (DID) document maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Did Document Hash type: string public_key: description: Public key associated with the agent's identity maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Public Key type: string required: - agent_id - public_key - did_document_hash title: RegisterAgentRequest type: object RegisterIdentityRequest: properties: account_hash: maxLength: 128 minLength: 1 title: Account Hash type: string capabilities: items: $ref: '#/components/schemas/AgentCapability' title: Capabilities type: array display_name: maxLength: 256 title: Display Name type: string required: - account_hash - display_name title: RegisterIdentityRequest type: object ReleaseRequest: properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array gaming_leaf_hex: default: '' title: Gaming Leaf Hex type: string gaming_proof_hex: items: type: string title: Gaming Proof Hex type: array service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string threshold_shares_hex: items: type: string title: Threshold Shares Hex type: array wallet_tx_hash: anyOf: - maxLength: 128 minLength: 1 type: string - type: 'null' title: Wallet Tx Hash required: - service_hash title: ReleaseRequest type: object ReputationRecord: properties: agent: title: Agent type: string completed: default: 0 title: Completed type: integer disputed: default: 0 title: Disputed type: integer last_active: default: 0 title: Last Active type: integer score: default: 50 title: Score type: integer slashed: default: 0 title: Slashed type: integer required: - agent title: ReputationRecord type: object ReputationScore: properties: agent: title: Agent type: string completed: default: 0 title: Completed type: integer disputed: default: 0 title: Disputed type: integer score: default: 0.0 title: Score type: number required: - agent title: ReputationScore type: object ResolveRequest: properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array in_favor_of: pattern: ^(sender|receiver)$ title: In Favor Of type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash - in_favor_of - arbiter_pubkeys - arbiter_signatures title: ResolveRequest type: object RevealAmountRequest: description: 'W.2: disclose the plaintext amount of a confidential escrow. The caller must supply the blinding factor they hold privately (received out-of-band when the escrow was created with `confidential: true`). The server never persists or logs this value beyond the request lifetime of this call.' properties: blinding: description: 32-byte blinding factor, hex, as returned at escrow creation. maxLength: 64 minLength: 64 pattern: ^[0-9a-fA-F]{64}$ title: Blinding type: string required: - blinding title: RevealAmountRequest type: object RevealAmountResponse: properties: amount: title: Amount type: integer service_hash: title: Service Hash type: string verified: title: Verified type: boolean required: - service_hash - amount - verified title: RevealAmountResponse type: object RevealRequest: description: Request to reveal the preimage for an atomic swap. properties: arbiter_pubkeys: items: type: string title: Arbiter Pubkeys type: array arbiter_signatures: items: type: string title: Arbiter Signatures type: array preimage: description: The secret preimage to reveal minLength: 1 title: Preimage type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash - preimage title: RevealRequest type: object RewardInclusionProofDTO: properties: player_id: title: Player Id type: string rank: title: Rank type: integer reward_amount: title: Reward Amount type: integer siblings: items: $ref: '#/components/schemas/ProofStepDTO' title: Siblings type: array required: - player_id - reward_amount - rank - siblings title: RewardInclusionProofDTO type: object RewardLeafDTO: properties: player_id: maxLength: 128 minLength: 1 title: Player Id type: string rank: description: Leaderboard position (1 = winner) minimum: 1.0 title: Rank type: integer reward_amount: description: Reward in the escrow's unit (motes for Casper) minimum: 1.0 title: Reward Amount type: integer required: - player_id - reward_amount - rank title: RewardLeafDTO type: object RiskDashboard: properties: agents: items: $ref: '#/components/schemas/AgentRiskResponse' title: Agents type: array avg_risk_score: title: Avg Risk Score type: number high_risk_count: title: High Risk Count type: integer model_trained_at: title: Model Trained At type: number total_agents: title: Total Agents type: integer training_samples: title: Training Samples type: integer required: - total_agents - high_risk_count - avg_risk_score - agents - model_trained_at - training_samples title: RiskDashboard type: object RiskPremiumRequest: properties: alpha0: default: 0.2 exclusiveMinimum: 0.0 title: Alpha0 type: number beta0: default: 19.8 exclusiveMinimum: 0.0 title: Beta0 type: number ci_level: default: 0.95 exclusiveMaximum: 1.0 exclusiveMinimum: 0.0 title: Ci Level type: number disputes: description: Number of disputed escrows for this agent minimum: 0.0 title: Disputes type: integer successes: description: Number of settled-clean escrows for this agent minimum: 0.0 title: Successes type: integer required: - successes - disputes title: RiskPremiumRequest type: object RiskPremiumResponse: properties: alpha_post: title: Alpha Post type: number beta_post: title: Beta Post type: number ci_level: title: Ci Level type: number ci_lower: title: Ci Lower type: number ci_upper: title: Ci Upper type: number explanation: title: Explanation type: string posterior_mean: title: Posterior Mean type: number posterior_variance: title: Posterior Variance type: number premium_bps: title: Premium Bps type: integer premium_ratio: title: Premium Ratio type: number should_refuse: title: Should Refuse type: boolean required: - alpha_post - beta_post - posterior_mean - posterior_variance - ci_level - ci_lower - ci_upper - premium_bps - premium_ratio - should_refuse - explanation title: RiskPremiumResponse type: object SetArbitersRequest: properties: arbiters: description: Full replacement arbiter_list — hex-encoded Ed25519 pubkeys items: type: string minItems: 1 title: Arbiters type: array required: - arbiters title: SetArbitersRequest type: object SetReleaseCapRequest: properties: new_cap_motes: description: New A1 release cap, in motes exclusiveMinimum: 0.0 title: New Cap Motes type: integer required: - new_cap_motes title: SetReleaseCapRequest type: object SettleRequest: properties: escrow_id: maxLength: 64 minLength: 1 title: Escrow Id type: string required: - escrow_id title: SettleRequest type: object SlashRequest: properties: amount: exclusiveMinimum: 0.0 title: Amount type: integer reason: maxLength: 256 minLength: 1 title: Reason type: string required: - amount - reason title: SlashRequest type: object SplitRequest: properties: payload_b64: description: Base64-encoded release payload to protect title: Payload B64 type: string threshold: description: Shares required to reconstruct (n) minimum: 2.0 title: Threshold type: integer total_shares: description: Total shares to generate (m) maximum: 255.0 title: Total Shares type: integer required: - payload_b64 - threshold - total_shares title: SplitRequest type: object SplitResponse: properties: encrypted_payload_b64: title: Encrypted Payload B64 type: string shares_hex: items: type: string title: Shares Hex type: array threshold: title: Threshold type: integer total: title: Total type: integer warning: default: Distribute shares over independent channels to independent holders. Store the encrypted_payload; deliver each share separately. AE402 does NOT retain shares. title: Warning type: string required: - encrypted_payload_b64 - shares_hex - threshold - total title: SplitResponse type: object StreamEscrowRequest: additionalProperties: false description: Request to create a new streaming escrow. example: amount_motes: 1000000000 receiver: account-hash-... service_hash: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa token: token_type: cspr properties: amount_motes: description: Total amount in motes (CSPR) or token units. Canonical wire name is `amount_motes` for CSPR; `amount` accepted as legacy alias. exclusiveMinimum: 0.0 title: Amount Motes type: integer end_time: description: Unix timestamp when streaming ends title: End Time type: integer receiver: description: Casper account hash of the receiver title: Receiver type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string start_time: description: Unix timestamp when streaming starts title: Start Time type: integer token: $ref: '#/components/schemas/TokenIdentifier' description: Details of the token being streamed required: - receiver - amount_motes - token - service_hash - start_time - end_time title: StreamEscrowRequest type: object StreamStatusResponse: description: Current status of a streaming escrow. properties: end_time: title: End Time type: integer last_payout_time: anyOf: - type: integer - type: 'null' title: Last Payout Time receiver: title: Receiver type: string remaining_amount: title: Remaining Amount type: integer sender: title: Sender type: string service_hash: title: Service Hash type: string start_time: title: Start Time type: integer status: $ref: '#/components/schemas/EscrowStatus' streamed_amount: title: Streamed Amount type: integer token: $ref: '#/components/schemas/TokenIdentifier' total_amount: title: Total Amount type: integer required: - service_hash - total_amount - token - receiver - sender - start_time - end_time - streamed_amount - remaining_amount - status title: StreamStatusResponse type: object SubscribeRequest: properties: chat_id: description: Telegram chat_id to notify title: Chat Id type: integer filter: anyOf: - $ref: '#/components/schemas/FilterModel' - type: 'null' required: - chat_id title: SubscribeRequest type: object SubscribeResponse: properties: chat_id: title: Chat Id type: integer created_at: title: Created At type: number filter: additionalProperties: items: type: string type: array title: Filter type: object sub_id: title: Sub Id type: string required: - sub_id - chat_id - filter - created_at title: SubscribeResponse type: object SupportedChainsResponse: properties: casper: items: type: string title: Casper type: array evm: items: type: string title: Evm type: array required: - evm - casper title: SupportedChainsResponse type: object SwapResponse: properties: casper_leg: anyOf: - $ref: '#/components/schemas/LegResponse' - type: 'null' created_at_ms: title: Created At Ms type: integer evm_leg: anyOf: - $ref: '#/components/schemas/LegResponse' - type: 'null' hashlock_hex: title: Hashlock Hex type: string swap_id: title: Swap Id type: string required: - swap_id - hashlock_hex - created_at_ms title: SwapResponse type: object SwapSummaryResponse: properties: atomic_outcome: title: Atomic Outcome type: string casper_status: anyOf: - type: string - type: 'null' title: Casper Status evm_status: anyOf: - type: string - type: 'null' title: Evm Status hashlock_hex: title: Hashlock Hex type: string revealed_preimage_hex: anyOf: - type: string - type: 'null' title: Revealed Preimage Hex safety_violation: title: Safety Violation type: boolean swap_id: title: Swap Id type: string required: - swap_id - hashlock_hex - casper_status - evm_status - revealed_preimage_hex - atomic_outcome - safety_violation title: SwapSummaryResponse type: object TestSendRequest: properties: chat_id: description: Telegram chat_id to receive the smoke test title: Chat Id type: integer text: default: AE402 bridge is alive description: Message body. Escaped as MarkdownV2 before send. maxLength: 1024 title: Text type: string required: - chat_id title: TestSendRequest type: object ThreeStepRequest: properties: scenario: default: happy title: Scenario type: string title: ThreeStepRequest type: object ThreeStepResponse: properties: outro: title: Outro type: string scenario: title: Scenario type: string steps: items: $ref: '#/components/schemas/ThreeStepStep' title: Steps type: array required: - scenario - steps - outro title: ThreeStepResponse type: object ThreeStepStep: properties: body: anyOf: - additionalProperties: true type: object - type: 'null' title: Body expected_status: title: Expected Status type: integer index: title: Index type: integer path: title: Path type: string title: title: Title type: string verb: title: Verb type: string verify_link: anyOf: - type: string - type: 'null' title: Verify Link required: - index - title - verb - path - expected_status title: ThreeStepStep type: object ThresholdArmRequest: description: 'C13: arm an already-created escrow with a Shamir n-of-m release gate. The caller (typically the sender) chooses n and m, calls this endpoint, and receives back the shares in the response — exactly once. The server stores only the sha256 commitment; the shares are the caller''s problem to distribute over independent channels. Idempotency: arming an already-armed escrow is refused (409). Change of parameters requires a fresh escrow.' properties: service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string threshold: description: Shares needed to release (n) maximum: 255.0 minimum: 2.0 title: Threshold type: integer total: description: Total shares generated (m) maximum: 255.0 minimum: 2.0 title: Total type: integer required: - service_hash - threshold - total title: ThresholdArmRequest type: object ThresholdArmResponse: properties: service_hash: title: Service Hash type: string shares_hex: items: type: string title: Shares Hex type: array threshold_commitment_hex: title: Threshold Commitment Hex type: string threshold_m: title: Threshold M type: integer threshold_n: title: Threshold N type: integer warning: default: These shares are shown ONCE and never stored server-side. Distribute them over independent channels to independent holders immediately; losing more than (m - n) of them makes the escrow un-releasable. title: Warning type: string required: - service_hash - threshold_commitment_hex - threshold_n - threshold_m - shares_hex title: ThresholdArmResponse type: object ThresholdConfig: properties: aead: default: HKDF-SHA256 + HMAC-SHA256-CTR + HMAC-SHA256 authentication title: Aead type: string algorithm: default: Shamir Secret Sharing over secp256k1 group order title: Algorithm type: string max_total_shares: title: Max Total Shares type: integer min_threshold: title: Min Threshold type: integer note: default: Threshold gate for escrow release-secret. See docs/wow/T3.1-threshold-mpc.md title: Note type: string required: - min_threshold - max_total_shares title: ThresholdConfig type: object TimeOnlyRequest: properties: now_ms: anyOf: - type: integer - type: 'null' title: Now Ms title: TimeOnlyRequest type: object TokenIdentifier: description: Identifies a token type (CSPR, CEP-18, CEP-78). properties: contract_hash: anyOf: - maxLength: 64 minLength: 64 type: string - type: 'null' description: Contract hash for CEP-18/CEP-78 tokens title: Contract Hash token_type: description: 'Type of token: ''cspr'', ''cep18'', or ''cep78''' pattern: ^(cspr|cep18|cep78)$ title: Token Type type: string required: - token_type title: TokenIdentifier type: object ToolCallRequest: properties: arguments: additionalProperties: true title: Arguments type: object title: ToolCallRequest type: object UpdateReputationRequest: properties: completed: default: 0 minimum: 0.0 title: Completed type: integer disputed: default: 0 minimum: 0.0 title: Disputed type: integer title: UpdateReputationRequest type: object ValidationError: properties: ctx: title: Context type: object input: title: Input loc: items: anyOf: - type: string - type: integer title: Location type: array msg: title: Message type: string type: title: Error Type type: string required: - loc - msg - type title: ValidationError type: object VerificationLevel: enum: - UNVERIFIED - BASIC - ENHANCED - FULL title: VerificationLevel type: string VerifyEvidenceRequest: properties: expected_root: title: Expected Root type: string leaf: title: Leaf type: string siblings: items: $ref: '#/components/schemas/VerifyEvidenceStep' title: Siblings type: array required: - leaf - siblings - expected_root title: VerifyEvidenceRequest type: object VerifyEvidenceResponse: properties: computed_root: title: Computed Root type: string expected_root: title: Expected Root type: string reason: anyOf: - type: string - type: 'null' title: Reason steps: title: Steps type: integer valid: title: Valid type: boolean required: - valid - computed_root - expected_root - steps title: VerifyEvidenceResponse type: object VerifyEvidenceStep: properties: hash: title: Hash type: string position: title: Position type: string required: - hash - position title: VerifyEvidenceStep type: object _DisputeRubricRequest: properties: claimant_evidence_count: default: 0 minimum: 0.0 title: Claimant Evidence Count type: integer claimant_prior_disputes: default: 0 minimum: 0.0 title: Claimant Prior Disputes type: integer claimant_reputation: maximum: 100.0 minimum: 0.0 title: Claimant Reputation type: integer escrow_amount_motes: exclusiveMinimum: 0.0 title: Escrow Amount Motes type: integer evidence_provenance_verified: default: false title: Evidence Provenance Verified type: boolean respondent_evidence_count: default: 0 minimum: 0.0 title: Respondent Evidence Count type: integer respondent_prior_disputes: default: 0 minimum: 0.0 title: Respondent Prior Disputes type: integer respondent_reputation: maximum: 100.0 minimum: 0.0 title: Respondent Reputation type: integer time_to_dispute_seconds: minimum: 0.0 title: Time To Dispute Seconds type: integer x402_replay_flagged: default: false title: X402 Replay Flagged type: boolean required: - escrow_amount_motes - time_to_dispute_seconds - claimant_reputation - respondent_reputation title: _DisputeRubricRequest type: object _PricingRequest: properties: escrow_amount_motes: exclusiveMinimum: 0.0 title: Escrow Amount Motes type: integer reputation: maximum: 100.0 minimum: 0.0 title: Reputation type: integer required: - escrow_amount_motes - reputation title: _PricingRequest type: object server__agent_identity__AgentIdentity: description: Details of an agent's registered identity. properties: agent_id: title: Agent Id type: string capabilities: description: List of capabilities delegated to this agent items: type: string title: Capabilities type: array deploy_hash: anyOf: - type: string - type: 'null' title: Deploy Hash did_document_hash: title: Did Document Hash type: string mode: default: local_registry title: Mode type: string public_key: title: Public Key type: string registered_at: title: Registered At type: integer updated_at: anyOf: - type: integer - type: 'null' title: Updated At required: - agent_id - public_key - did_document_hash - registered_at title: AgentIdentity type: object server__bridge_htlc_api__ClaimRequest: properties: now_ms: anyOf: - type: integer - type: 'null' title: Now Ms preimage_hex: description: the 32-byte secret in hex title: Preimage Hex type: string required: - preimage_hex title: ClaimRequest type: object server__cross_chain_api__CancelRequest: properties: caller: maxLength: 140 minLength: 1 title: Caller type: string escrow_id: maxLength: 64 minLength: 1 title: Escrow Id type: string required: - escrow_id - caller title: CancelRequest type: object server__gaming_reward_api__ClaimRequest: properties: escrow_id: title: Escrow Id type: string proof: $ref: '#/components/schemas/RewardInclusionProofDTO' required: - escrow_id - proof title: ClaimRequest type: object server__gaming_reward_api__CommitRequest: properties: leaves: description: Full reward sheet (kept private on the operator side) items: $ref: '#/components/schemas/RewardLeafDTO' title: Leaves type: array round_id: description: Operator-chosen round identifier maxLength: 64 minLength: 1 title: Round Id type: string required: - round_id - leaves title: CommitRequest type: object server__identity_registry__AgentIdentity: properties: account_hash: title: Account Hash type: string capabilities: items: $ref: '#/components/schemas/AgentCapability' title: Capabilities type: array did: title: Did type: string display_name: title: Display Name type: string dispute_rate: title: Dispute Rate type: number last_active: title: Last Active type: integer metadata_hash: title: Metadata Hash type: string registered_at: title: Registered At type: integer reputation_score: maximum: 100.0 minimum: 0.0 title: Reputation Score type: integer risk_score: maximum: 100.0 minimum: 0.0 title: Risk Score type: integer slashed_count: title: Slashed Count type: integer stake: default: 0 minimum: 0.0 title: Stake type: integer total_deals: title: Total Deals type: integer verification_level: $ref: '#/components/schemas/VerificationLevel' required: - did - account_hash - display_name - capabilities - verification_level - reputation_score - total_deals - dispute_rate - registered_at - last_active - metadata_hash - risk_score - slashed_count title: AgentIdentity type: object server__identity_registry_api__VerifyRequest: properties: level: $ref: '#/components/schemas/VerificationLevel' required: - level title: VerifyRequest type: object server__macaroon_api__VerifyRequest: properties: discharges: items: type: string maxItems: 8 title: Discharges type: array facts: additionalProperties: true title: Facts type: object now: anyOf: - type: integer - type: 'null' title: Now token: minLength: 1 title: Token type: string required: - token title: VerifyRequest type: object server__macaroon_api__VerifyResponse: properties: caveats: items: type: string title: Caveats type: array detail: anyOf: - type: string - type: 'null' title: Detail identifier: title: Identifier type: string ok: title: Ok type: boolean required: - ok - identifier - caveats title: VerifyResponse type: object server__multi_asset__CommitRequest: description: Request to commit a hash for an atomic swap. properties: commit_hash: description: SHA256 hash of the secret preimage maxLength: 64 minLength: 64 title: Commit Hash type: string service_hash: maxLength: 64 minLength: 64 title: Service Hash type: string required: - service_hash - commit_hash title: CommitRequest type: object server__timelock_api__CancelRequest: properties: reason: anyOf: - type: string - type: 'null' title: Reason title: CancelRequest type: object server__vc_api__VerifyRequest: properties: credential: additionalProperties: true title: Credential type: object expected_issuer: anyOf: - type: string - type: 'null' description: Optional did:key to enforce title: Expected Issuer required: - credential title: VerifyRequest type: object server__vc_api__VerifyResponse: properties: error_detail: anyOf: - type: string - type: 'null' title: Error Detail error_type: anyOf: - type: string - type: 'null' title: Error Type summary: anyOf: - additionalProperties: true type: object - type: 'null' title: Summary valid: title: Valid type: boolean required: - valid title: VerifyResponse type: object server__zk_amount_api__VerifyRequest: properties: commitment: title: Commitment type: string range_proof: additionalProperties: true title: Range Proof type: object transcript: default: '' maxLength: 256 title: Transcript type: string required: - commitment - range_proof title: VerifyRequest type: object server__zk_amount_api__VerifyResponse: properties: bits: title: Bits type: integer valid: title: Valid type: boolean verify_ms: title: Verify Ms type: number required: - valid - verify_ms - bits title: VerifyResponse type: object info: description: x402-compatible payment middleware for AI agents on Casper title: AgentEscrow402 version: 0.2.0 openapi: 3.1.0 paths: /admin/configure-fee: post: description: Update the insurance fee (basis points, contract max 1000 = 10%). operationId: configure_fee_admin_configure_fee_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key requestBody: content: application/json: schema: $ref: '#/components/schemas/ConfigureFeeRequest' required: true responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Configure Fee Admin Configure Fee Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Configure Fee tags: - admin /admin/emergency-freeze: post: description: 'Freeze escrow-contract state changes (release/refund/dispute/resolve/ commit_swap/reveal_swap). Reversible -- see `POST /admin/unfreeze`. Use as a last resort (e.g. a discovered exploit) while investigating.' operationId: emergency_freeze_admin_emergency_freeze_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Emergency Freeze Admin Emergency Freeze Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Emergency Freeze tags: - admin /admin/set-arbiters: post: description: 'Replace the whole on-chain arbiter_list used by resolve() and the A1 cap-approval quorum. Remember to also update ARBITER_PUBKEYS env var to match, or the backend''s local fast-fail checks will use a stale list.' operationId: set_arbiters_admin_set_arbiters_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key requestBody: content: application/json: schema: $ref: '#/components/schemas/SetArbitersRequest' required: true responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Set Arbiters Admin Set Arbiters Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Set Arbiters tags: - admin /admin/set-release-cap: post: description: 'Update the A1 release cap (motes). Remember to also update the RELEASE_CAP_MOTES env var (server/config.py''s local fast-fail mirror) to match, or /release and /escrow/atomic-swap/reveal will fast-fail against a stale cap even though the on-chain value already changed.' operationId: set_release_cap_admin_set_release_cap_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key requestBody: content: application/json: schema: $ref: '#/components/schemas/SetReleaseCapRequest' required: true responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Set Release Cap Admin Set Release Cap Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Set Release Cap tags: - admin /admin/unfreeze: post: description: 'Resume operations after `emergency_freeze` (installer-only on-chain check, plus the same X-Admin-Key gate as every other route in this file).' operationId: unfreeze_admin_unfreeze_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Unfreeze Admin Unfreeze Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Unfreeze tags: - admin /agents: get: description: List known agents with their reputation scores. operationId: list_agents_agents_get responses: '200': content: application/json: schema: {} description: Successful Response summary: List Agents /api/v1/events/stream: get: description: 'Server-Sent Events stream for real-time escrow updates. Exposed on two paths: - ``/events`` (canonical, historical) - ``/api/v1/events/stream`` (AE402 Agent Spec alias)' operationId: event_stream_api_v1_events_stream_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Event Stream /arbitration/analyze: post: description: "Run LLM arbitration on dispute evidence.\n\nTries Groq → NVIDIA NIM → OpenRouter → heuristic fallback. Returns\nrecommendation: favor_sender | favor_receiver | split | escalate |\nabstain.\n\nAE-A1.4 auto-escalation (flat fields on the response):\n * verdict.recommendation == 'abstain' → always route to VRF panel\n * verdict.recommendation == 'escalate' AND confidence <\n _ESCALATION_CONFIDENCE_MAX → route to VRF panel\n * escalation needs sender_account + receiver_account in the\n request (they must be excluded from the panel); when missing,\n the verdict is returned with escalated_to_panel=false and\n escalation_reason set so the caller knows what to add." operationId: arbitrate_dispute_arbitration_analyze_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ArbitrateRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ArbitrationRecommendation' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Arbitrate Dispute tags: - arbitration /arbitration/history: get: description: 'Most recent LLM arbitration analyses (process-lifetime in-memory history), newest first. Powers the console''s Arbitration verdict-history view.' operationId: arbitration_history_arbitration_history_get parameters: - in: query name: limit required: false schema: default: 20 title: Limit type: integer responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/ArbitrationRecommendation' title: Response Arbitration History Arbitration History Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Arbitration History tags: - arbitration /arbitration/verify-evidence: post: description: 'Verify an evidence Merkle inclusion proof against a published root. This is the "UI verify button" surface (AE-A2). A judge or auditor can independently reproduce the check with any language that has sha256 — the endpoint is a convenience, not a source of trust.' operationId: arbitration_verify_evidence_arbitration_verify_evidence_post requestBody: content: application/json: schema: $ref: '#/components/schemas/VerifyEvidenceRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/VerifyEvidenceResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Arbitration Verify Evidence tags: - arbitration /bridge/htlc/initiate: post: operationId: initiate_swap_bridge_htlc_initiate_post requestBody: content: application/json: schema: $ref: '#/components/schemas/InitiateSwapRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/SwapResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Initiate Swap tags: - bridge-htlc /bridge/htlc/legs/{leg_id}: get: operationId: get_leg_bridge_htlc_legs__leg_id__get parameters: - in: path name: leg_id required: true schema: title: Leg Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/LegResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Leg tags: - bridge-htlc /bridge/htlc/legs/{leg_id}/claim: post: operationId: claim_leg_bridge_htlc_legs__leg_id__claim_post parameters: - in: path name: leg_id required: true schema: title: Leg Id type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/server__bridge_htlc_api__ClaimRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LegResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Claim Leg tags: - bridge-htlc /bridge/htlc/legs/{leg_id}/lock: post: operationId: lock_leg_bridge_htlc_legs__leg_id__lock_post parameters: - in: path name: leg_id required: true schema: title: Leg Id type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/TimeOnlyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LegResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Lock Leg tags: - bridge-htlc /bridge/htlc/legs/{leg_id}/refund: post: operationId: refund_leg_bridge_htlc_legs__leg_id__refund_post parameters: - in: path name: leg_id required: true schema: title: Leg Id type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/TimeOnlyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LegResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Refund Leg tags: - bridge-htlc /bridge/htlc/preimage/new: post: description: 'Convenience for demos/tests: generate a fresh secret + hashlock. In production the initiator generates the preimage client-side and ONLY publishes the hashlock. This endpoint is for local flows / tutorial scripts / judges reproducing a demo.' operationId: new_preimage_endpoint_bridge_htlc_preimage_new_post responses: '200': content: application/json: schema: $ref: '#/components/schemas/PreimageResponse' description: Successful Response summary: New Preimage Endpoint tags: - bridge-htlc /bridge/htlc/swaps: get: operationId: list_swaps_bridge_htlc_swaps_get responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/SwapResponse' title: Response List Swaps Bridge Htlc Swaps Get type: array description: Successful Response summary: List Swaps tags: - bridge-htlc /bridge/htlc/swaps/{swap_id}: get: operationId: get_swap_bridge_htlc_swaps__swap_id__get parameters: - in: path name: swap_id required: true schema: title: Swap Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/SwapResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Swap tags: - bridge-htlc /bridge/htlc/swaps/{swap_id}/summary: get: operationId: get_swap_summary_bridge_htlc_swaps__swap_id__summary_get parameters: - in: path name: swap_id required: true schema: title: Swap Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/SwapSummaryResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Swap Summary tags: - bridge-htlc /compliance/evaluate: post: description: 'Dry-run compliance evaluation for an explicit `(country, KYC tier, amount)` triple. Never mutates state, never touches Casper or the identity registry — pure function of the request body. `permitted` is the enforceable verdict; `requires_reporting` is independent of it (a permitted transaction can still require a compliance record).' operationId: evaluate_compliance_evaluate_post requestBody: content: application/json: schema: $ref: '#/components/schemas/EvaluateComplianceRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ComplianceDecisionResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Evaluate tags: - compliance /compliance/evaluate-by-agent: post: description: 'Same evaluation as `/evaluate`, but reads `verification_level` live from the identity registry for `did` instead of trusting a client-supplied value — closes the gap where a client could claim a higher KYC tier than the registry actually has on file for it.' operationId: evaluate_by_agent_compliance_evaluate_by_agent_post requestBody: content: application/json: schema: $ref: '#/components/schemas/EvaluateComplianceByAgentRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ComplianceDecisionResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Evaluate By Agent tags: - compliance /compliance/jurisdictions: get: description: 'Read-only listing of every configured jurisdiction policy, sorted by country code. Illustrative reference table — see the module docstring in `server/compliance.py`: not a real sanctions/licensing determination, replace before going live.' operationId: list_jurisdictions_compliance_jurisdictions_get responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/JurisdictionPolicyResponse' title: Response List Jurisdictions Compliance Jurisdictions Get type: array description: Successful Response summary: List Jurisdictions tags: - compliance /compute-hash: post: description: Utility endpoint to compute a service hash. operationId: compute_hash_compute_hash_post parameters: - in: query name: sender required: true schema: title: Sender type: string - in: query name: receiver required: true schema: title: Receiver type: string - in: query name: amount required: true schema: title: Amount type: integer - in: query name: nonce required: true schema: title: Nonce type: string responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Compute Hash /contracts: get: description: 'Backend-configured deployed contract addresses. Previously the 3 non-escrow contract hashes were hardcoded directly in the frontend (frontend/src/components/console/Contracts.tsx) with no env/config wiring — a redeploy of any of them required a frontend code change. All 4 are now sourced from Config (env-overridable) and served here so the frontend can fetch them at runtime instead.' operationId: contracts_contracts_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Contracts /crosschain/cancel: post: description: Cancel a PENDING escrow (sender only). operationId: cancel_crosschain_cancel_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__cross_chain_api__CancelRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Cancel tags: - cross-chain /crosschain/chains: get: operationId: supported_chains_crosschain_chains_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/SupportedChainsResponse' description: Successful Response summary: Supported Chains tags: - cross-chain /crosschain/escrow: post: description: Open a cross-chain escrow bound to a trigger event on a foreign chain. operationId: create_escrow_crosschain_escrow_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateCrossChainRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create Escrow tags: - cross-chain /crosschain/escrow/{escrow_id}: get: operationId: get_escrow_crosschain_escrow__escrow_id__get parameters: - in: path name: escrow_id required: true schema: title: Escrow Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Escrow tags: - cross-chain /crosschain/escrows: get: operationId: list_escrows_crosschain_escrows_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowListResponse' description: Successful Response summary: List Escrows tags: - cross-chain /crosschain/mock/advance: post: description: 'Demo helper: advance the mock block height.' operationId: mock_advance_crosschain_mock_advance_post requestBody: content: application/json: schema: $ref: '#/components/schemas/AdvanceBlocksRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Mock Advance tags: - cross-chain /crosschain/mock/event: post: description: 'Demo helper: inject a mock EVM event into the mock adapter.' operationId: mock_event_crosschain_mock_event_post requestBody: content: application/json: schema: $ref: '#/components/schemas/MockEventRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Mock Event tags: - cross-chain /crosschain/settle: post: description: Attempt to settle the escrow by verifying its trigger event. operationId: settle_crosschain_settle_post requestBody: content: application/json: schema: $ref: '#/components/schemas/SettleRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Settle tags: - cross-chain /demo/three-step: post: description: 'Return the 3-step guided-demo contract for one of the well-known scenarios. Deterministic. Same request → same response.' operationId: demo_three_step_demo_three_step_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ThreeStepRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ThreeStepResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Demo Three Step tags: - demo /dispute: post: operationId: dispute_escrow_dispute_post requestBody: content: application/json: schema: $ref: '#/components/schemas/DisputeRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Dispute Escrow /dispute/rubric: post: description: 'Deterministic dispute rubric (E.2) with advisory narrative. Never binding — the arbiter panel makes the final decision. This endpoint exists so judges/UI can preview the rubric verdict without committing anything on-chain.' operationId: dispute_rubric_dispute_rubric_post requestBody: content: application/json: schema: $ref: '#/components/schemas/_DisputeRubricRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Dispute Rubric Dispute Rubric Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Dispute Rubric tags: - dispute /escrow: post: operationId: create_escrow_escrow_post requestBody: content: application/json: schema: $ref: '#/components/schemas/EscrowRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create Escrow /escrow/atomic-swap/commit: post: description: 'Commits a SHA256 hash of a secret preimage for an atomic swap. This is the first step in a commit-reveal scheme. Live mode calls the deployed escrow contract''s real `commit_swap` entry point (contracts/escrow/src/main.rs), which enforces on-chain that the caller is the escrow''s sender and that no commit already exists for this service_hash -- see CasperClient.commit_swap. Sandbox mode (or no casper client configured) keeps the previous purely in-memory simulation.' operationId: commit_atomic_swap_escrow_atomic_swap_commit_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__multi_asset__CommitRequest' required: true responses: '202': content: application/json: schema: additionalProperties: type: string title: Response Commit Atomic Swap Escrow Atomic Swap Commit Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Commit Atomic Swap tags: - multi-asset - streaming /escrow/atomic-swap/reveal: post: description: 'Reveals the secret preimage for an atomic swap. The contract verifies the preimage against the previously committed hash. If valid, the escrow is released. Live mode calls the deployed escrow contract''s real `reveal_swap` entry point, which verifies sha256(preimage) == commit_hash *on-chain* and releases escrowed funds directly to the receiver as part of the same transaction (the HTLC model: the contract has no caller-identity check here, knowing the preimage IS the authorization) -- see CasperClient.reveal_swap. We still verify the hash locally first so we can return a clean 400 instead of paying gas for a doomed on-chain call.' operationId: reveal_atomic_swap_escrow_atomic_swap_reveal_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RevealRequest' required: true responses: '200': content: application/json: schema: additionalProperties: type: string title: Response Reveal Atomic Swap Escrow Atomic Swap Reveal Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Reveal Atomic Swap tags: - multi-asset - streaming /escrow/cep18-permit-nonce: get: description: 'Public read of the next expected permit nonce for `owner_account_hash` on the given CEP-18 contract -- needed by the frontend to build the exact canonical message the wallet will sign (see PermitProof / frontend/src/lib/cep18Permit.ts). No auth needed: this is public on-chain state, not a state-changing call.' operationId: get_cep18_permit_nonce_escrow_cep18_permit_nonce_get parameters: - in: query name: contract_hash required: true schema: title: Contract Hash type: string - in: query name: owner_account_hash required: true schema: title: Owner Account Hash type: string responses: '200': content: application/json: schema: additionalProperties: true title: Response Get Cep18 Permit Nonce Escrow Cep18 Permit Nonce Get type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Cep18 Permit Nonce tags: - multi-asset - streaming /escrow/multi-asset: post: description: 'Creates a new multi-asset escrow. The sender (from X402 header) transfers the specified token amount to the escrow contract.' operationId: create_multi_asset_escrow_escrow_multi_asset_post requestBody: content: application/json: schema: $ref: '#/components/schemas/MultiAssetEscrowRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create Multi Asset Escrow tags: - multi-asset - streaming /escrow/multi-asset/{service_hash}/dispute: post: description: Dispute a multi-asset escrow. operationId: dispute_multi_asset_escrow_escrow_multi_asset__service_hash__dispute_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: additionalProperties: true title: Response Dispute Multi Asset Escrow Escrow Multi Asset Service Hash Dispute Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Dispute Multi Asset Escrow tags: - multi-asset - streaming /escrow/multi-asset/{service_hash}/refund: post: description: Refund a multi-asset escrow — tokens go back to the sender. operationId: refund_multi_asset_escrow_escrow_multi_asset__service_hash__refund_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: additionalProperties: true title: Response Refund Multi Asset Escrow Escrow Multi Asset Service Hash Refund Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Refund Multi Asset Escrow tags: - multi-asset - streaming /escrow/multi-asset/{service_hash}/release: post: description: Release a multi-asset escrow — tokens go to the receiver. operationId: release_multi_asset_escrow_escrow_multi_asset__service_hash__release_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/MultiAssetLifecycleRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Release Multi Asset Escrow Escrow Multi Asset Service Hash Release Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Release Multi Asset Escrow tags: - multi-asset - streaming /escrow/multi-asset/{service_hash}/resolve: post: description: Resolve a disputed multi-asset escrow via arbiter quorum. operationId: resolve_multi_asset_escrow_escrow_multi_asset__service_hash__resolve_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/MultiAssetResolveRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Resolve Multi Asset Escrow Escrow Multi Asset Service Hash Resolve Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Resolve Multi Asset Escrow tags: - multi-asset - streaming /escrow/stream: post: description: 'Creates a new streaming escrow. The sender (from X402 header) deposits the total amount into a streaming contract, which then releases funds to the receiver over a specified time period.' operationId: create_streaming_escrow_escrow_stream_post requestBody: content: application/json: schema: $ref: '#/components/schemas/StreamEscrowRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create Streaming Escrow tags: - multi-asset - streaming /escrow/{service_hash}: get: operationId: get_escrow_escrow__service_hash__get parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Escrow /escrow/{service_hash}/gaming-arm: post: description: 'C14: convert a pending standard escrow into a gaming-reward escrow. Idempotency: re-arming with the same root is fine (no state change); re-arming with a different root is refused so a race between two organisers cannot silently overwrite the committed result.' operationId: gaming_arm_escrow__service_hash__gaming_arm_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/GamingArmRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Gaming Arm tags: - gaming /escrow/{service_hash}/history: get: description: Transaction timeline for a specific escrow. operationId: escrow_history_escrow__service_hash__history_get parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Escrow History /escrow/{service_hash}/reveal: post: description: 'W.2: disclose the plaintext amount of a confidential escrow. Cryptographic gate, not an authorization system: this endpoint proves the caller holds the blinding factor that opens the stored commitment to the server''s private ledger amount (Pedersen binding makes forging a different opening computationally infeasible), and discloses the amount only on success. It does not check that the caller is the escrow''s sender/receiver/an arbiter — in this demo, possession of the blinding (handed out once, at creation, and never logged) IS the access control. A production build would pair this with the same identity checks that gate release/refund/dispute.' operationId: reveal_confidential_amount_escrow__service_hash__reveal_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RevealAmountRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/RevealAmountResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Reveal Confidential Amount /escrow/{service_hash}/stream-claim: post: description: 'Claim a fully vested streaming escrow — triggers a real on-chain release. A streaming escrow''s vesting schedule is computed API-side (linear from start_time to end_time). Once 100% of the stream duration has elapsed, this endpoint settles the escrow on-chain by calling the same release() path as a standard escrow. Before the stream is fully vested, the request is rejected with 422. This turns streaming from pure API simulation into "API-timed vesting with on-chain settlement at maturity".' operationId: claim_streamed_escrow_escrow__service_hash__stream_claim_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: additionalProperties: true title: Response Claim Streamed Escrow Escrow Service Hash Stream Claim Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Claim Streamed Escrow tags: - multi-asset - streaming /escrow/{service_hash}/stream-status: get: description: Retrieves the current status of a streaming escrow, including streamed and remaining amounts. operationId: get_stream_status_escrow__service_hash__stream_status_get parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/StreamStatusResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Stream Status tags: - multi-asset - streaming /escrow/{service_hash}/threshold-arm: post: description: 'C13: gate a pending escrow''s /release behind an n-of-m Shamir bundle. Deterministic effect on state: computes commitment = sha256(secret) and writes {threshold_commitment_hex, threshold_n, threshold_m} onto the escrow row. Shares are returned in the response only — they are never logged, never persisted, and cannot be recovered from the server.' operationId: threshold_arm_escrow__service_hash__threshold_arm_post parameters: - in: path name: service_hash required: true schema: title: Service Hash type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ThresholdArmRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ThresholdArmResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Threshold Arm tags: - threshold /escrows: get: description: List escrows with optional filters and pagination. operationId: list_escrows_escrows_get parameters: - in: query name: status required: false schema: anyOf: - type: string - type: 'null' title: Status - in: query name: sender required: false schema: anyOf: - type: string - type: 'null' title: Sender - in: query name: page required: false schema: default: 1 title: Page type: integer - in: query name: limit required: false schema: default: 20 title: Limit type: integer - in: query name: offset required: false schema: anyOf: - type: integer - type: 'null' title: Offset responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: List Escrows /escrows/batch: post: description: 'Create up to 50 escrows in ONE on-chain deploy via escrow-manager.create_batch() (contracts/escrow-manager/src/main.rs). Unlike /escrow (one escrow per deploy, hosted-key path funded from the backend''s own purse), this batches N escrow creations behind a single session-wasm transaction (contracts/batch-funder), trading per-escrow dispute/insurance/ML-KEM features for deploy-count efficiency — intended for bulk/demo provisioning, not the interactive per-agent flow.' operationId: create_escrow_batch_escrows_batch_post requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchEscrowRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/BatchEscrowResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create Escrow Batch /escrows/batch-cancel: post: description: 'Cancel multiple batch-created escrows in one deploy. Full refund to sender. Only pending escrows can be cancelled.' operationId: batch_cancel_escrows_escrows_batch_cancel_post requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchLifecycleRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/BatchLifecycleResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Batch Cancel Escrows /escrows/batch-preview: post: description: 'Dry-run the batch cap/quorum guard. Returns the exact `BatchDecision` the mutating route would compute, without hitting Casper or updating any local state. Never returns non-200 for a policy rejection: the rejection is in the body''s `admit=false` + `rejections[]`. Only structural bugs (e.g. empty service_hashes list — which is itself a rejection code, not a raise) would fail the request.' operationId: preview_batch_escrows_batch_preview_post requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchPreviewRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/BatchPreviewResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Preview Batch tags: - batch-guard /escrows/batch-release: post: description: 'Release multiple batch-created escrows in one deploy. Server-side enforcement: every escrow is checked against the release cap. If any escrow exceeds the cap, a valid arbiter quorum (via arbiter_pubkeys/arbiter_signatures) is required for the ENTIRE batch — same threshold as single-escrow release.' operationId: batch_release_escrows_escrows_batch_release_post requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchLifecycleRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/BatchLifecycleResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Batch Release Escrows /estimate: get: description: Calculate insurance fee for a given amount. operationId: fee_estimate_estimate_get parameters: - in: query name: amount required: true schema: title: Amount type: integer responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Fee Estimate /events: get: description: 'Server-Sent Events stream for real-time escrow updates. Exposed on two paths: - ``/events`` (canonical, historical) - ``/api/v1/events/stream`` (AE402 Agent Spec alias)' operationId: event_stream_events_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Event Stream /gaming/claim: post: description: A winner claims their reward by submitting an inclusion proof. operationId: claim_reward_gaming_claim_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__gaming_reward_api__ClaimRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ClaimResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Claim Reward tags: - gaming /gaming/commit: post: description: 'Commit a reward sheet. The operator uploads the full sheet; the server hashes it into a Merkle root and caches the sheet so winners can later fetch their proofs. The response''s `root` is what the operator pins onto the escrow (via `/gaming/lock`) — this is the only piece of data that needs to be public.' operationId: commit_sheet_gaming_commit_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__gaming_reward_api__CommitRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/CommitResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Commit Sheet tags: - gaming /gaming/escrow/{escrow_id}: get: description: Read-only view of an escrow's claim state. operationId: get_escrow_state_gaming_escrow__escrow_id__get parameters: - in: path name: escrow_id required: true schema: title: Escrow Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowStateResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Escrow State tags: - gaming /gaming/lock: post: description: 'Lock the prize pool against a previously committed reward sheet. Refuses to lock if the sheet''s `total_committed` exceeds `prize_pool_motes` — a solvency guard.' operationId: lock_prize_pool_gaming_lock_post requestBody: content: application/json: schema: $ref: '#/components/schemas/LockRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LockResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Lock Prize Pool tags: - gaming /gaming/proof/{root}/{player_id}: get: description: Build the inclusion proof a specific winner will submit. operationId: get_claim_proof_gaming_proof__root___player_id__get parameters: - in: path name: root required: true schema: title: Root type: string - in: path name: player_id required: true schema: title: Player Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/RewardInclusionProofDTO' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Claim Proof tags: - gaming /health: get: operationId: health_health_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/HealthResponse' description: Successful Response summary: Health /identity-registry/by-account/{account_hash}: get: operationId: get_identity_by_account_identity_registry_by_account__account_hash__get parameters: - in: path name: account_hash required: true schema: title: Account Hash type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Identity By Account tags: - identity-registry /identity-registry/register: post: operationId: register_identity_identity_registry_register_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterIdentityRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Register Identity tags: - identity-registry /identity-registry/search/agents: get: operationId: search_identities_identity_registry_search_agents_get parameters: - in: query name: capability required: false schema: anyOf: - type: string - type: 'null' title: Capability - in: query name: min_reputation required: false schema: default: 0 maximum: 100 minimum: 0 title: Min Reputation type: integer - in: query name: min_verification required: false schema: $ref: '#/components/schemas/VerificationLevel' default: UNVERIFIED responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' title: Response Search Identities Identity Registry Search Agents Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Search Identities tags: - identity-registry /identity-registry/stats/summary: get: operationId: registry_statistics_identity_registry_stats_summary_get responses: '200': content: application/json: schema: additionalProperties: true title: Response Registry Statistics Identity Registry Stats Summary Get type: object description: Successful Response summary: Registry Statistics tags: - identity-registry /identity-registry/{did}: get: operationId: get_identity_identity_registry__did__get parameters: - in: path name: did required: true schema: title: Did type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Identity tags: - identity-registry /identity-registry/{did}/capabilities: post: operationId: add_capability_identity_registry__did__capabilities_post parameters: - in: path name: did required: true schema: title: Did type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AddCapabilityRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Add Capability tags: - identity-registry /identity-registry/{did}/decay: post: operationId: apply_decay_identity_registry__did__decay_post parameters: - in: path name: did required: true schema: title: Did type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Apply Decay tags: - identity-registry /identity-registry/{did}/reputation: post: operationId: update_reputation_identity_registry__did__reputation_post parameters: - in: path name: did required: true schema: title: Did type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateReputationRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Update Reputation tags: - identity-registry /identity-registry/{did}/slash: post: operationId: slash_identity_identity_registry__did__slash_post parameters: - in: path name: did required: true schema: title: Did type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SlashRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Slash Identity tags: - identity-registry /identity-registry/{did}/verify: post: operationId: verify_identity_identity_registry__did__verify_post parameters: - in: path name: did required: true schema: title: Did type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/server__identity_registry_api__VerifyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__identity_registry__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Verify Identity tags: - identity-registry /identity/capabilities/{agent_id}: get: description: Get all capabilities for an agent (own + delegated). operationId: get_capabilities_identity_capabilities__agent_id__get parameters: - in: path name: agent_id required: true schema: title: Agent Id type: string responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Capabilities tags: - identity /identity/delegate: post: description: 'Delegates a specific capability from one agent (delegator) to another (delegatee). Requires a cryptographic signature from the delegator.' operationId: delegate_capability_identity_delegate_post requestBody: content: application/json: schema: $ref: '#/components/schemas/DelegateCapabilityRequest' required: true responses: '202': content: application/json: schema: additionalProperties: anyOf: - type: string - type: integer title: Response Delegate Capability Identity Delegate Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Delegate Capability tags: - identity /identity/register: post: description: 'Registers a new agent identity on the platform, linking a Casper account hash to a public key and a DID document hash.' operationId: register_agent_identity_identity_register_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterAgentRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/server__agent_identity__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Register Agent Identity tags: - identity /identity/{agent_id}: get: description: Retrieves the registered identity details for a given agent ID. operationId: get_agent_identity_identity__agent_id__get parameters: - in: path name: agent_id required: true schema: title: Agent Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__agent_identity__AgentIdentity' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Agent Identity tags: - identity /insurance/claim: post: description: 'Allows an agent to file a claim against the insurance pool for a disputed or failed escrow. Includes basic fraud detection.' operationId: file_insurance_claim_insurance_claim_post requestBody: content: application/json: schema: $ref: '#/components/schemas/InsuranceClaimRequest' required: true responses: '202': content: application/json: schema: additionalProperties: type: string title: Response File Insurance Claim Insurance Claim Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: File Insurance Claim tags: - insurance /insurance/deposit: post: description: 'Allows an agent to deposit funds into the shared insurance pool. These funds contribute to the pool''s solvency and can be used to cover claims.' operationId: deposit_to_insurance_pool_insurance_deposit_post requestBody: content: application/json: schema: $ref: '#/components/schemas/InsuranceDepositRequest' required: true responses: '202': content: application/json: schema: additionalProperties: type: string title: Response Deposit To Insurance Pool Insurance Deposit Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Deposit To Insurance Pool tags: - insurance /insurance/pool-stats: get: description: Retrieves current statistics for the insurance pool. operationId: get_insurance_pool_stats_insurance_pool_stats_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/PoolStatsResponse' description: Successful Response summary: Get Insurance Pool Stats tags: - insurance /insurance/premium-quote: get: description: Calculates a dynamic insurance premium quote based on agent reputation and escrow details. operationId: get_premium_quote_insurance_premium_quote_get parameters: - in: query name: agent_id required: true schema: title: Agent Id type: string - in: query name: escrow_amount required: true schema: exclusiveMinimum: 0 title: Escrow Amount type: integer - in: query name: service_type required: false schema: default: general title: Service Type type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/PremiumQuoteResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Premium Quote tags: - insurance /intents: post: operationId: declare_intent_intents_post requestBody: content: application/json: schema: $ref: '#/components/schemas/DeclareIntentRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/IntentView' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Declare Intent tags: - intent-chain /intents/{intent_id}: get: operationId: get_intent_intents__intent_id__get parameters: - in: path name: intent_id required: true schema: title: Intent Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/IntentView' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Intent tags: - intent-chain /intents/{intent_id}/hops: post: operationId: chain_escrow_intents__intent_id__hops_post parameters: - in: path name: intent_id required: true schema: title: Intent Id type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ChainEscrowRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/IntentView' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Chain Escrow tags: - intent-chain /intents/{intent_id}/hops/{hop_index}/attest: post: operationId: attest_hop_intents__intent_id__hops__hop_index__attest_post parameters: - in: path name: intent_id required: true schema: title: Intent Id type: string - in: path name: hop_index required: true schema: title: Hop Index type: integer requestBody: content: application/json: schema: $ref: '#/components/schemas/AttestHopRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/IntentView' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Attest Hop tags: - intent-chain /macaroons/add-third-party: post: description: Bind a third-party caveat onto an existing token (client-side operation). operationId: add_third_party_endpoint_macaroons_add_third_party_post requestBody: content: application/json: schema: $ref: '#/components/schemas/AddThirdPartyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AddThirdPartyResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Add Third Party Endpoint tags: - macaroons /macaroons/attenuate: post: description: 'Attenuate a macaroon without touching the server root secret. Attenuation is a pure client-side operation — every bearer can do it. Exposing it as an endpoint is a convenience for clients that would rather not implement the HMAC chain themselves; the endpoint does not grant any additional authority.' operationId: attenuate_endpoint_macaroons_attenuate_post requestBody: content: application/json: schema: $ref: '#/components/schemas/AttenuateRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AttenuateResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Attenuate Endpoint tags: - macaroons /macaroons/discharge: post: description: 'Issue a discharge macaroon for a third-party caveat. In a hosted deployment this endpoint stands in for the third-party discharger (e.g. the arbiter pool). The discharger derives its per-caveat HMAC key from the shared `macaroon_root_secret` context — see `derive_third_party_key` docstring for why that is honest crypto without pulling in an asymmetric primitive.' operationId: discharge_endpoint_macaroons_discharge_post requestBody: content: application/json: schema: $ref: '#/components/schemas/DischargeRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/DischargeResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Discharge Endpoint tags: - macaroons /macaroons/mint: post: operationId: mint_macaroons_mint_post requestBody: content: application/json: schema: $ref: '#/components/schemas/MintRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/MintResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Mint tags: - macaroons /macaroons/policy: get: description: Describe the caveat grammar accepted by the AE402 verifier. operationId: policy_macaroons_policy_get responses: '200': content: application/json: schema: additionalProperties: true title: Response Policy Macaroons Policy Get type: object description: Successful Response summary: Policy tags: - macaroons /macaroons/verify: post: operationId: verify_endpoint_macaroons_verify_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__macaroon_api__VerifyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__macaroon_api__VerifyResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Verify Endpoint tags: - macaroons /mcp/tools: get: description: 'Return the shipped MCP tool catalogue (name, description, input schema). Read-only. Safe to call from any role. Response matches the shape of `docs/mcp_tools_schema.json` verbatim.' operationId: list_tools_mcp_tools_get responses: '200': content: application/json: schema: additionalProperties: true title: Response List Tools Mcp Tools Get type: object description: Successful Response summary: List Tools tags: - mcp /mcp/tools/{tool_name}/call: post: description: "Invoke a single MCP tool by name.\n\nResponse mirrors the MCP `CallToolResult` shape:\n { \"content\": [{ \"type\": \"text\", \"text\": \"\" }],\n \"isError\": false | true,\n \"status\": ,\n \"tool\": \"\" }\n\nErrors from the underlying REST endpoint are surfaced as\n`isError: true` with the response body serialized in the content\nblock, so the playground can render a red error card without a\nseparate error-response schema." operationId: call_tool_mcp_tools__tool_name__call_post parameters: - in: path name: tool_name required: true schema: title: Tool Name type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ToolCallRequest' required: true responses: '200': content: application/json: schema: title: Response Call Tool Mcp Tools Tool Name Call Post description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Call Tool tags: - mcp /ops/health: get: description: 'Deep operator snapshot: dependency status, retry queue depth, circuit-breaker state, active warnings. No secrets in the payload; provider config is reported as boolean + configured model name.' operationId: ops_health_ops_health_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Ops Health tags: - ops /pricing/insurance-fee: post: description: 'Reputation-based insurance premium calculator (E.3). Pure function. Same (amount, reputation) always returns the same fee, deterministically. See `server/rep_pricing.py` for the math.' operationId: pricing_insurance_fee_pricing_insurance_fee_post requestBody: content: application/json: schema: $ref: '#/components/schemas/_PricingRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Pricing Insurance Fee Pricing Insurance Fee Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Pricing Insurance Fee tags: - pricing /refund: post: operationId: refund_escrow_refund_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RefundRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Refund Escrow /release: post: description: 'Release escrowed funds to the receiver. A1 hardening: if this escrow''s amount exceeds the contract''s `release_cap`, `arbiter_pubkeys`/`arbiter_signatures` must carry a quorum of registered-arbiter signatures over "release:{service_hash}:cap_approval" (see arbiter_crypto. build_cap_approval_message) — same fast-fail-then-on-chain-enforced pattern as /resolve. Below cap, empty lists are fine.' operationId: release_escrow_release_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ReleaseRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Release Escrow /reputation/{agent}: get: operationId: get_reputation_reputation__agent__get parameters: - in: path name: agent required: true schema: title: Agent type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ReputationRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Reputation /resolve: post: description: 'Resolve a disputed escrow via 3-of-5 arbiter multisig. Unlike release/refund/dispute, this is *not* gated on the escrow sender/receiver identity: authorization comes from the contract''s own check that each submitted (pubkey, signature) pair is (a) a member of the on-chain registered `arbiter_list` and (b) a real Ed25519 signature over the canonical vote message `"resolve:{service_hash}:{in_favor_of}"`, verified on-chain via `casper_types::crypto::verify`. Any caller may submit this once they have collected enough signed arbiter votes off-chain -- a claimed account-hash alone is never sufficient.' operationId: resolve_escrow_resolve_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EscrowRecord' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Resolve Escrow /risk/dashboard: get: description: Return aggregated risk scores for all known agents. operationId: get_risk_dashboard_risk_dashboard_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/RiskDashboard' description: Successful Response summary: Get Risk Dashboard tags: - risk /risk/premium: post: description: 'Compute the Beta-Binomial risk premium for an agent given their observed (successes, disputes) history. Returns posterior parameters, credible interval on the dispute probability, and the recommended premium in basis points (UCB-driven, capped at 25%). A ``should_refuse: true`` result means the escrow should decline the counterparty entirely — the UCB implies the raw premium would exceed the safety ceiling.' operationId: risk_premium_risk_premium_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RiskPremiumRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/RiskPremiumResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Risk Premium tags: - risk /risk/premium/batch: post: description: Batch variant — computes premium for a list of counterparties in one call. operationId: risk_premium_batch_risk_premium_batch_post requestBody: content: application/json: schema: $ref: '#/components/schemas/PremiumBatchRequest' required: true responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/RiskPremiumResponse' title: Response Risk Premium Batch Risk Premium Batch Post type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Risk Premium Batch tags: - risk /risk/regime-shift/benchmark: post: description: 'Side-by-side CUSUM vs Page-Hinkley on the same stream. Useful for operator dashboards — shows which detector fired first, how often they agree, and lets ops pick the right knob for the signal at hand.' operationId: regime_shift_benchmark_risk_regime_shift_benchmark_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegimeShiftRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/RegimeShiftBenchmarkResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Regime Shift Benchmark tags: - risk /risk/regime-shift/cusum: post: description: 'Run CUSUM over the supplied stream. Returns per-step results and the index of the first alarm (if any).' operationId: regime_shift_cusum_risk_regime_shift_cusum_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegimeShiftRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Regime Shift Cusum Risk Regime Shift Cusum Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Regime Shift Cusum tags: - risk /risk/regime-shift/page-hinkley: post: description: Run Page-Hinkley over the supplied stream. operationId: regime_shift_page_hinkley_risk_regime_shift_page_hinkley_post requestBody: content: application/json: schema: $ref: '#/components/schemas/RegimeShiftRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Regime Shift Page Hinkley Risk Regime Shift Page Hinkley Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Regime Shift Page Hinkley tags: - risk /risk/score/{agent}: get: description: Get the IsolationForest risk score for a specific agent address. operationId: get_agent_risk_score_risk_score__agent__get parameters: - in: path name: agent required: true schema: title: Agent type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/AgentRiskResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Agent Risk Score tags: - risk /simulate/agent-vs-agent: post: operationId: simulate_agent_vs_agent_simulate_agent_vs_agent_post requestBody: content: application/json: schema: $ref: '#/components/schemas/AgentSimRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AgentSimResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Simulate Agent Vs Agent tags: - agent-sim /simulate/strategies: get: description: Available strategy names for `sender_strategy` / `receiver_strategy`. operationId: list_strategies_simulate_strategies_get responses: '200': content: application/json: schema: additionalProperties: items: type: string type: array title: Response List Strategies Simulate Strategies Get type: object description: Successful Response summary: List Strategies tags: - agent-sim /stats: get: description: 'Aggregate statistics for the console. Neon is optional on the hosted demo. When it is disconnected or empty, the console must still reflect the in-memory testnet/demo escrows loaded at startup and created during the current process.' operationId: stats_stats_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Stats /telegram/status: get: description: Report bridge readiness without exposing the bot token. operationId: get_status_telegram_status_get responses: '200': content: application/json: schema: additionalProperties: true title: Response Get Status Telegram Status Get type: object description: Successful Response summary: Get Status tags: - telegram /telegram/subscribe: post: description: 'Register a new Telegram subscription. The endpoint returns ``201 Created`` with the freshly-minted subscription id in the body. Callers should store that id to be able to unsubscribe.' operationId: subscribe_telegram_subscribe_post requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscribeRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/SubscribeResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Subscribe tags: - telegram /telegram/subscriptions: get: description: List active subscriptions. Read-only, safe when bridge is disabled. operationId: list_subscriptions_telegram_subscriptions_get responses: '200': content: application/json: schema: additionalProperties: items: additionalProperties: true type: object type: array title: Response List Subscriptions Telegram Subscriptions Get type: object description: Successful Response summary: List Subscriptions tags: - telegram /telegram/subscriptions/{sub_id}: delete: description: Remove a subscription by id. operationId: unsubscribe_telegram_subscriptions__sub_id__delete parameters: - in: path name: sub_id required: true schema: minLength: 1 title: Sub Id type: string responses: '204': description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Unsubscribe tags: - telegram /telegram/test: post: description: 'Send a smoke-test message and return the Telegram result. Uses ``sendMessage`` directly (not the formatter) so the operator can verify that the token has been granted access to the chat.' operationId: test_send_telegram_test_post requestBody: content: application/json: schema: $ref: '#/components/schemas/TestSendRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Test Send Telegram Test Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Test Send tags: - telegram /telegram/webhook/{secret}: post: description: 'Receive a Telegram update and, when supported, reply to the chat. Security: the URL contains a shared secret that Telegram appends to every call. Without an exact match on ``TELEGRAM_WEBHOOK_SECRET`` we return ``403``. Additionally Telegram forwards the ``X-Telegram-Bot-Api-Secret-Token`` header when it is set in ``setWebhook``; we accept either match so that operators can pick their transport.' operationId: webhook_telegram_webhook__secret__post parameters: - in: path name: secret required: true schema: minLength: 1 title: Secret type: string requestBody: content: application/json: schema: additionalProperties: true title: Update type: object required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Webhook Telegram Webhook Secret Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Webhook tags: - telegram /threshold/config: get: operationId: get_config_threshold_config_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/ThresholdConfig' description: Successful Response summary: Get Config tags: - threshold /threshold/reconstruct: post: operationId: reconstruct_release_threshold_reconstruct_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ReconstructRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ReconstructResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Reconstruct Release tags: - threshold /threshold/split: post: operationId: split_release_threshold_split_post requestBody: content: application/json: schema: $ref: '#/components/schemas/SplitRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/SplitResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Split Release tags: - threshold /timelock/actions: get: operationId: list_actions_timelock_actions_get parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: true title: Response List Actions Timelock Actions Get type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: List Actions tags: - timelock /timelock/actions/{action_id}: get: operationId: get_action_timelock_actions__action_id__get parameters: - in: path name: action_id required: true schema: title: Action Id type: integer - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: true title: Response Get Action Timelock Actions Action Id Get type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Action tags: - timelock /timelock/cancel/{action_id}: post: operationId: cancel_action_timelock_cancel__action_id__post parameters: - in: path name: action_id required: true schema: title: Action Id type: integer - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key requestBody: content: application/json: schema: anyOf: - $ref: '#/components/schemas/server__timelock_api__CancelRequest' - type: 'null' title: Req responses: '200': content: application/json: schema: additionalProperties: true title: Response Cancel Action Timelock Cancel Action Id Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Cancel Action tags: - timelock /timelock/execute/{action_id}: post: operationId: execute_action_timelock_execute__action_id__post parameters: - in: path name: action_id required: true schema: title: Action Id type: integer - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: true title: Response Execute Action Timelock Execute Action Id Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Execute Action tags: - timelock /timelock/queue: post: operationId: queue_action_timelock_queue_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key requestBody: content: application/json: schema: $ref: '#/components/schemas/QueueRequest' required: true responses: '200': content: application/json: schema: additionalProperties: true title: Response Queue Action Timelock Queue Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Queue Action tags: - timelock /timelock/renounce: post: description: 'Terminal, one-way. All pending actions are cancelled with reason=''renounce''. After this the timelock router refuses every mutating call.' operationId: renounce_admin_timelock_renounce_post parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: true title: Response Renounce Admin Timelock Renounce Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Renounce Admin tags: - timelock /timelock/status: get: operationId: get_status_timelock_status_get parameters: - in: header name: x-admin-key required: false schema: anyOf: - type: string - type: 'null' title: X-Admin-Key responses: '200': content: application/json: schema: additionalProperties: true title: Response Get Status Timelock Status Get type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Status tags: - timelock /vc/issuer: get: operationId: get_issuer_vc_issuer_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/IssuerInfo' description: Successful Response summary: Get Issuer tags: - vc-receipts /vc/receipts/issue: post: operationId: issue_vc_receipts_issue_post requestBody: content: application/json: schema: $ref: '#/components/schemas/IssueRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/IssueResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Issue tags: - vc-receipts /vc/receipts/verify: post: description: 'Verify a receipt. Does NOT require issuer secret — verification only needs the credential (pubkey is embedded in the issuer DID).' operationId: verify_vc_receipts_verify_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__vc_api__VerifyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__vc_api__VerifyResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Verify tags: - vc-receipts /vrf/arbiters: get: description: List all registered arbiters. operationId: get_registered_arbiters_vrf_arbiters_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/ArbiterListResponse' description: Successful Response summary: Get Registered Arbiters tags: - vrf /vrf/arbiters/register: post: description: Register an arbiter in the election pool. operationId: register_arbiter_vrf_arbiters_register_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ReputationScore' required: true responses: '201': content: application/json: schema: additionalProperties: type: string title: Response Register Arbiter Vrf Arbiters Register Post type: object description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Register Arbiter tags: - vrf /vrf/elect: post: description: Elect an arbiter using on-chain VRF (vrf-arbiter contract) with local CSPRNG fallback. operationId: elect_arbiter_vrf_elect_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ElectArbiterRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/ElectArbiterResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Elect Arbiter tags: - vrf /vrf/election/{dispute_id}: get: description: Retrieve the result of a previous arbiter election. operationId: get_election_result_vrf_election__dispute_id__get parameters: - in: path name: dispute_id required: true schema: title: Dispute Id type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ElectArbiterResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Election Result tags: - vrf /wasm/escrow_funder: get: description: 'Serve the session-wasm module used to fund an escrow''s on-chain deposit directly from a caller''s own main purse (see `sendCreateEscrowTx` in frontend/src/lib/liveTx.ts). Session code executed under the signer''s own account context is the only way the Casper execution engine grants legitimate elevated purse access — a plain stored-contract call cannot (see wallet_frontend_gotchas skill notes on `Mint error: 4` / InvalidAccessRights). This is the exact same compiled artifact the backend''s own hosted-key flow already runs (`server/casper_tx/escrow_funder.wasm`); serving it lets the connected wallet sign+submit it itself instead.' operationId: wasm_escrow_funder_wasm_escrow_funder_get responses: '200': content: application/json: schema: {} description: Successful Response summary: Wasm Escrow Funder /zk/aggregate: post: description: 'Homomorphic sum: aggregate commitment = Σ C_i. Useful for batch-cap conservation checks: sum all commitments in a batch and verify the aggregate against the batch cap (which the auditor knows).' operationId: aggregate_zk_aggregate_post requestBody: content: application/json: schema: $ref: '#/components/schemas/AggregateRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/AggregateResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Aggregate tags: - zk-amount /zk/generators: get: description: 'Return the two group generators G, H (SEC-1 compressed, hex). Deterministic — same output on every server. Useful for a client that wants to independently verify the generators the server is using.' operationId: generators_zk_generators_get responses: '200': content: application/json: schema: additionalProperties: true title: Response Generators Zk Generators Get type: object description: Successful Response summary: Generators tags: - zk-amount /zk/open: post: description: 'Verify `commitment` opens to `(amount, blinding)`. Used by an auditor or receiver who is authorized to see the amount: given the sender''s disclosure of `(amount, blinding)`, this endpoint confirms they match the public commitment. No secrets are logged.' operationId: open_commitment_zk_open_post requestBody: content: application/json: schema: $ref: '#/components/schemas/OpenRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/OpenResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Open Commitment tags: - zk-amount /zk/prove: post: description: 'Generate a Pedersen commitment + range proof for `amount`. Returns the commitment, the range proof (JSON), the blinding factor (the caller must persist this privately — losing it means the escrow cannot be opened later), and prove timing.' operationId: prove_zk_prove_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ProveRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ProveResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Prove tags: - zk-amount /zk/verify: post: description: Verify a range proof against a commitment. operationId: verify_zk_verify_post requestBody: content: application/json: schema: $ref: '#/components/schemas/server__zk_amount_api__VerifyRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/server__zk_amount_api__VerifyResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Verify tags: - zk-amount