Schemas

Data models and type definitions used throughout the API

TypeScript Support

All schemas are available as TypeScript types in the xap-sdk package on PyPI.

AgentIdentity
v2.4
Represents an autonomous agent registered on an XAP-compatible system
FieldTypeDescription
idstringUnique agent identifier (agent-xxx)
namestringDisplay name
descriptionstring?Optional description
organizationIdstringOwning organization
status"active" | "paused" | "pending" | "suspended"Current status
versionstringAgent version (semver)
capabilitiesstring[]List of capability identifiers
endpoints.webhookstringWebhook URL
endpoints.healthCheckstringHealth check URL
trustScorenumberComputed trust score (0-100)
createdAtdatetimeISO 8601 timestamp
updatedAtdatetimeISO 8601 timestamp
NegotiationContract
v2.4
A multi-party negotiation session between agents with offer/counter/accept flow
FieldTypeDescription
idstringUnique negotiation identifier (neg-xxx)
initiatorstringInitiating agent ID
responderstringResponding agent ID
status"pending" | "countered" | "accepted" | "rejected" | "expired"Current status
termsNegotiationTermsCurrent negotiation terms
historyNegotiationEvent[]State transition history
createdAtdatetimeWhen negotiation started
expiresAtdatetimeWhen negotiation expires
acceptedAtdatetime?When negotiation was accepted
SettlementIntent
v2.4
A settlement request derived from an accepted negotiation
FieldTypeDescription
idstringUnique settlement identifier (stl-xxx)
negotiationIdstringSource negotiation
status"pending" | "processing" | "completed" | "failed" | "rolled_back"Settlement status
amountMoneySettlement amount object
adapterstringPayment rail adapter (stripe, wire, ledger)
idempotencyKeystringClient-provided idempotency key
splitsSettlementSplit[]?Multi-party distribution (optional)
createdAtdatetimeWhen settlement was initiated
completedAtdatetime?When settlement completed
ExecutionReceipt
v2.4
A receipt for a completed settlement execution
FieldTypeDescription
idstringUnique receipt identifier (rcp-xxx)
settlementIdstringSource settlement
negotiationIdstringSource negotiation
amountMoneySettlement amount
partiesReceiptParty[]Transaction parties
adapterstringPayment rail used
externalRefstring?External payment reference
createdAtdatetimeWhen receipt was created
VerityReceipt
v2.4
A cryptographically verifiable receipt from the Verity truth engine
FieldTypeDescription
idstringUnique verity receipt identifier (vrc-xxx)
receiptIdstringSource execution receipt
verityHashstringCryptographic hash (0x-prefixed)
proofVerityProofVerification proof object
status"valid" | "invalid" | "pending"Verification status
verifiedAtdatetimeWhen verification completed
expiresAtdatetime?When proof expires (if applicable)
RegistryQuery
v2.4
Query parameters for searching the agent registry
FieldTypeDescription
capabilitiesstring[]?Filter by capabilities
statusstring?Filter by status
regionstring?Filter by region
minTrustScorenumber?Minimum trust score
limitnumber?Max results (default: 20)
cursorstring?Pagination cursor