@hyperscale0/sdk 1.0.382 → 1.0.385

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/platform.d.ts CHANGED
@@ -1,7 +1,14 @@
1
1
  // Generated from core/contracts operation descriptors. Do not edit.
2
2
  export type ErrorResponse = { readonly "error": ErrorResponse_HyperscaleErrorBody; readonly "requestId": string; };
3
- type ErrorResponse_HyperscaleErrorBody = { readonly "code": string; readonly "details"?: ErrorResponse_HyperscaleErrorDetails; readonly "message": string; };
3
+ type ErrorResponse_HyperscaleErrorBody = { readonly "code": string; readonly "details"?: ErrorResponse_HyperscaleErrorDetails; readonly "message": string; readonly "trace"?: ErrorResponse_HyperscaleRefusalTrace; };
4
4
  type ErrorResponse_HyperscaleErrorDetails = unknown;
5
+ type ErrorResponse_HyperscaleRefusalTrace = { readonly "gate": "request" | "identity" | "scope" | "principal" | "grant_caps" | "reason" | "approval" | "idempotency" | "product_state" | "instrument_state" | "funds" | "provider" | "engine"; readonly "law": string; readonly "facts": { readonly [key: string]: (string | number | boolean | null | { readonly [key: string]: string | number | boolean | null }) }; readonly "remedy"?: ErrorResponse_HyperscaleRefusalRemedy; };
6
+ type ErrorResponse_HyperscaleRefusalRemedy = { readonly "kind": "call" | "change_request" | "retry" | "needs_human" | "none"; readonly "operation"?: string; readonly "fields"?: ReadonlyArray<string>; readonly "who"?: "owner" | "approver" | "staff" | "customer"; readonly "values"?: { readonly [key: string]: string | number | boolean | null }; };
7
+ /** What a call sent with `rehearse: true` answers in place of its output. */
8
+ export type OperationRehearsal = { readonly "rehearsal": true; readonly "outcome": "succeeded" | "refused" | "approval_would_be_raised"; readonly "status": number; readonly "output"?: unknown; readonly "error"?: { readonly "code": string; readonly "message": string; readonly "details"?: unknown; }; readonly "operationId": string | null; readonly "receipt": ({ readonly "receiptId": string; readonly "status": string; readonly "body": { readonly [key: string]: unknown }; } | null); readonly "postings": ReadonlyArray<OperationRehearsal_RehearsalPosting>; readonly "accountsOpened": ReadonlyArray<OperationRehearsal_RehearsalAccount>; readonly "instrumentTransitions": ReadonlyArray<OperationRehearsal_RehearsalTransition>; readonly "withheld": { readonly "postCommitEffects": number; readonly "providerEgress": ReadonlyArray<{ readonly "adapter": string; readonly "amount": string; readonly "currency": string; readonly "sourceAccountId": string; readonly "destinationAccountId": string; }>; }; };
9
+ type OperationRehearsal_RehearsalPosting = { readonly "operationId": string; readonly "transferId": string; readonly "kind": string; readonly "phase": "post" | "post_pending" | "reserve" | "void_pending"; readonly "debitAccountId": string; readonly "creditAccountId": string; readonly "amount": string; readonly "currency": string; readonly "book": "cash" | "claim"; };
10
+ type OperationRehearsal_RehearsalAccount = { readonly "operationId": string; readonly "accountId": string; readonly "role": string; readonly "currency": string; readonly "book": "cash" | "claim"; };
11
+ type OperationRehearsal_RehearsalTransition = { readonly "operationId": string; readonly "instanceId": string; readonly "nextStatus": string; readonly "nextFields": { readonly [key: string]: unknown }; readonly "productId"?: string; };
5
12
  export type account_balance_retrieveInput = { readonly "accountId": string; readonly "productId"?: string; };
6
13
  export type account_balance_retrieveOutput = { readonly "accountId": string; readonly "asOf": string; readonly "observedAt": string; readonly "available": string; readonly "creditsPending": string; readonly "creditsPosted": string; readonly "currency": "SAR"; readonly "debitsPending": string; readonly "debitsPosted": string; readonly "environment": "sandbox" | "live"; readonly "normalBalance": "debit" | "credit"; readonly "pending": string; readonly "settled": string; readonly "tenantId": string; readonly "productId"?: string; };
7
14
  export type account_closeInput = { readonly "accountId": string; readonly "reason": string; };
@@ -37,10 +44,14 @@ export type account_statement_retrieveInput = { readonly "accountId": string; re
37
44
  export type account_statement_retrieveOutput = { readonly "accountId": string; readonly "closingBalance": string; readonly "currency": "SAR"; readonly "environment": "sandbox" | "live"; readonly "finalized": boolean; readonly "openingBalance": string; readonly "period": string; readonly "periodEndExclusive": string; readonly "periodStart": string; readonly "tenantId": string; readonly "productId"?: string; readonly "asOf": string; readonly "cutoff": string; readonly "observedAt"?: string; readonly "totalLines": number; readonly "nextCursor": string | null; readonly "lines": ReadonlyArray<{ readonly "amount": string; readonly "balanceDelta": string; readonly "counterpartyAccountId": string; readonly "counterpartyDisplayName": string; readonly "currency": "SAR"; readonly "direction": "debit" | "credit"; readonly "entryId": string; readonly "ledgerTransferId": string; readonly "memo": string; readonly "occurredAt": string; readonly "operationId": string; readonly "operationName": string; readonly "origin"?: { readonly "instrumentId": string; readonly "instrumentInstanceId": string; readonly "action": string; }; readonly "runningBalance": string; readonly "status": "pending" | "posted" | "voided"; readonly "title"?: string; readonly "transferId": string; }>; };
38
45
  export type account_unfreezeInput = { readonly "accountId": string; readonly "reason": string; };
39
46
  export type account_unfreezeOutput = { readonly "tenantId": string; readonly "accountId": string; readonly "productId"?: string; readonly "updatedAt": string; readonly "reason": string; readonly "previousStatus": "frozen"; readonly "status": "open"; };
40
- export type activity_listInput = { readonly "productId"?: string; readonly "operation"?: string; readonly "status"?: "accepted" | "pending" | "succeeded" | "failed"; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user"; readonly "resourceId"?: string; readonly "createdFrom"?: string; readonly "createdTo"?: string; readonly "limit"?: number; readonly "cursor"?: string; readonly "type"?: "object" | "money_move" | "company_access"; };
41
- export type activity_listOutput = { readonly "items": ReadonlyArray<({ readonly "activityId": string; readonly "occurredAt": string; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "fix": (string | null); }; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "amount": ({ readonly "value": string; readonly "currency": string; } | null); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": string; readonly "operation": string; readonly "status": "accepted" | "pending" | "succeeded" | "failed"; } | { readonly "activityId": string; readonly "occurredAt": string; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "fix": (string | null); }; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "amount": ({ readonly "value": string; readonly "currency": string; } | null); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "auditEvent": string; })>; readonly "nextCursor"?: string; };
47
+ export type activity_listInput = { readonly "productId"?: string; readonly "operation"?: string; readonly "status"?: "accepted" | "pending" | "succeeded" | "failed"; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user"; readonly "resourceId"?: string; readonly "createdFrom"?: string; readonly "createdTo"?: string; readonly "limit"?: number; readonly "cursor"?: string; readonly "type"?: "object" | "money_move" | "company_access"; };
48
+ export type activity_listOutput = { readonly "items": ReadonlyArray<({ readonly "activityId": string; readonly "occurredAt": string; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "trace"?: activity_listOutput_HyperscaleRefusalTrace; readonly "fix": (string | null); }; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "agent"?: { readonly "memberId": string; readonly "name": string; readonly "reason": (string | null); }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "amount": ({ readonly "value": string; readonly "currency": string; } | null); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": string; readonly "operation": string; readonly "status": "accepted" | "pending" | "succeeded" | "failed"; } | { readonly "activityId": string; readonly "occurredAt": string; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "trace"?: activity_listOutput_HyperscaleRefusalTrace; readonly "fix": (string | null); }; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "agent"?: { readonly "memberId": string; readonly "name": string; readonly "reason": (string | null); }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "amount": ({ readonly "value": string; readonly "currency": string; } | null); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "auditEvent": string; })>; readonly "nextCursor"?: string; };
49
+ type activity_listOutput_HyperscaleRefusalTrace = { readonly "gate": "request" | "identity" | "scope" | "principal" | "grant_caps" | "reason" | "approval" | "idempotency" | "product_state" | "instrument_state" | "funds" | "provider" | "engine"; readonly "law": string; readonly "facts": { readonly [key: string]: (string | number | boolean | null | { readonly [key: string]: string | number | boolean | null }) }; readonly "remedy"?: activity_listOutput_HyperscaleRefusalRemedy; };
50
+ type activity_listOutput_HyperscaleRefusalRemedy = { readonly "kind": "call" | "change_request" | "retry" | "needs_human" | "none"; readonly "operation"?: string; readonly "fields"?: ReadonlyArray<string>; readonly "who"?: "owner" | "approver" | "staff" | "customer"; readonly "values"?: { readonly [key: string]: string | number | boolean | null }; };
42
51
  export type activity_retrieveInput = { readonly "productId"?: string; readonly "activityId": string; };
43
- export type activity_retrieveOutput = ({ readonly "activityId": string; readonly "occurredAt": string; readonly "receiptId"?: string; readonly "requestId"?: string; readonly "sourceSurface"?: string; readonly "evidence": ReadonlyArray<{ readonly "kind": "ledger" | "local" | "external"; readonly "reference": string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; }>; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "fix": (string | null); }; readonly "timeline": ReadonlyArray<{ readonly "kind": string; readonly "reference"?: string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: ("account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user" | null); readonly "resourceId"?: (string | null); readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; readonly "usageRecordId"?: string; readonly "meter"?: "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity"?: string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "operationName"?: string; readonly "receiptId"?: string; readonly "type"?: string; readonly "finalizedAt"?: (string | null); readonly "auditEventId"?: string; readonly "event"?: string; readonly "level"?: string; readonly "body"?: { readonly [key: string]: unknown }; } & { readonly [key: string]: unknown }>; readonly "usage": ReadonlyArray<{ readonly "usageRecordId": string; readonly "meter": "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity": string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "occurredAt": string; }>; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": string; readonly "operation": string; readonly "status": "accepted" | "pending" | "succeeded" | "failed"; readonly "resource"?: { readonly "kind": "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "id"?: string; }; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "receipt"?: { readonly "id": string; readonly "status": string; readonly "type": string; readonly "finalizedAt": (string | null); }; readonly "auditEvent"?: string; } | { readonly "activityId": string; readonly "occurredAt": string; readonly "receiptId"?: string; readonly "requestId"?: string; readonly "sourceSurface"?: string; readonly "evidence": ReadonlyArray<{ readonly "kind": "ledger" | "local" | "external"; readonly "reference": string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; }>; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "fix": (string | null); }; readonly "timeline": ReadonlyArray<{ readonly "kind": string; readonly "reference"?: string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: ("account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user" | null); readonly "resourceId"?: (string | null); readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; readonly "usageRecordId"?: string; readonly "meter"?: "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity"?: string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "operationName"?: string; readonly "receiptId"?: string; readonly "type"?: string; readonly "finalizedAt"?: (string | null); readonly "auditEventId"?: string; readonly "event"?: string; readonly "level"?: string; readonly "body"?: { readonly [key: string]: unknown }; } & { readonly [key: string]: unknown }>; readonly "usage": ReadonlyArray<{ readonly "usageRecordId": string; readonly "meter": "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity": string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "occurredAt": string; }>; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": null; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user"; readonly "resourceId"?: string; readonly "auditEventId": string; readonly "auditEvent": string; readonly "auditEventBody"?: { readonly [key: string]: unknown }; });
52
+ export type activity_retrieveOutput = ({ readonly "activityId": string; readonly "occurredAt": string; readonly "receiptId"?: string; readonly "requestId"?: string; readonly "sourceSurface"?: string; readonly "evidence": ReadonlyArray<{ readonly "kind": "ledger" | "local" | "external"; readonly "reference": string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; }>; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "trace"?: activity_retrieveOutput_HyperscaleRefusalTrace; readonly "fix": (string | null); }; readonly "timeline": ReadonlyArray<{ readonly "kind": string; readonly "reference"?: string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: ("account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user" | null); readonly "resourceId"?: (string | null); readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; readonly "usageRecordId"?: string; readonly "meter"?: "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity"?: string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "operationName"?: string; readonly "receiptId"?: string; readonly "type"?: string; readonly "finalizedAt"?: (string | null); readonly "auditEventId"?: string; readonly "event"?: string; readonly "level"?: string; readonly "body"?: { readonly [key: string]: unknown }; } & { readonly [key: string]: unknown }>; readonly "usage": ReadonlyArray<{ readonly "usageRecordId": string; readonly "meter": "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity": string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "occurredAt": string; }>; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "agent"?: { readonly "memberId": string; readonly "name": string; readonly "reason": (string | null); }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": string; readonly "operation": string; readonly "status": "accepted" | "pending" | "succeeded" | "failed"; readonly "resource"?: { readonly "kind": "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "id"?: string; }; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "receipt"?: { readonly "id": string; readonly "status": string; readonly "type": string; readonly "finalizedAt": (string | null); }; readonly "auditEvent"?: string; } | { readonly "activityId": string; readonly "occurredAt": string; readonly "receiptId"?: string; readonly "requestId"?: string; readonly "sourceSurface"?: string; readonly "evidence": ReadonlyArray<{ readonly "kind": "ledger" | "local" | "external"; readonly "reference": string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert"; readonly "resourceId"?: string; readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; }>; readonly "errorEnvelope"?: { readonly "code": string; readonly "message": string; readonly "status": number; readonly "details"?: unknown; readonly "trace"?: activity_retrieveOutput_HyperscaleRefusalTrace; readonly "fix": (string | null); }; readonly "timeline": ReadonlyArray<{ readonly "kind": string; readonly "reference"?: string; readonly "externalConfirmationId"?: string; readonly "provider"?: string; readonly "providerReference"?: string; readonly "resourceKind"?: ("account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user" | null); readonly "resourceId"?: (string | null); readonly "operationId"?: string; readonly "operation"?: { readonly "id": string; readonly "name"?: string; readonly "status"?: string; }; readonly "status"?: string; readonly "occurredAt"?: string; readonly "proof"?: { readonly [key: string]: unknown }; readonly "usageRecordId"?: string; readonly "meter"?: "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity"?: string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "operationName"?: string; readonly "receiptId"?: string; readonly "type"?: string; readonly "finalizedAt"?: (string | null); readonly "auditEventId"?: string; readonly "event"?: string; readonly "level"?: string; readonly "body"?: { readonly [key: string]: unknown }; } & { readonly [key: string]: unknown }>; readonly "usage": ReadonlyArray<{ readonly "usageRecordId": string; readonly "meter": "account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month"; readonly "quantity": string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "occurredAt": string; }>; readonly "title": string; readonly "actor": { readonly "id": (string | null); readonly "name": string; }; readonly "agent"?: { readonly "memberId": string; readonly "name": string; readonly "reason": (string | null); }; readonly "product": ({ readonly "id": string; readonly "name": string; } | null); readonly "subject": ({ readonly "kind": "object"; readonly "productId": string; readonly "objectKind": string; readonly "objectId": string; readonly "title": string; } | { readonly "kind": "money_move"; readonly "resourceKind": "account" | "internal_transfer"; readonly "resourceId": string; } | { readonly "kind": "company_access"; readonly "resourceKind": string; readonly "resourceId": (string | null); }); readonly "moves": ReadonlyArray<{ readonly "transferId": string; readonly "amount": { readonly "value": string; readonly "currency": string; }; readonly "from": string; readonly "to": string; readonly "customer": ({ readonly "id": string; readonly "name": string; } | null); readonly "object": ({ readonly "kind": string; readonly "id": string; readonly "title": string; } | null); readonly "action": (string | null); }>; readonly "moveCount": number; readonly "operationId": null; readonly "resourceKind"?: "account" | "activity" | "api_key" | "audit" | "bank_statement" | "product_capability" | "consent" | "customer" | "entity" | "instrument_instance" | "business_object" | "operation" | "product" | "customer_access" | "customer_session" | "external_confirmation" | "provider_cost_event" | "provider_webhook_event" | "webhook_endpoint" | "webhook_delivery" | "receipt" | "tenant" | "tenant_catalog_revision" | "reporting_artifact" | "wedged_money_repair" | "user_session" | "internal_transfer" | "usage" | "platform_alert" | "team" | "team_membership" | "user"; readonly "resourceId"?: string; readonly "auditEventId": string; readonly "auditEvent": string; readonly "auditEventBody"?: { readonly [key: string]: unknown }; });
53
+ type activity_retrieveOutput_HyperscaleRefusalTrace = { readonly "gate": "request" | "identity" | "scope" | "principal" | "grant_caps" | "reason" | "approval" | "idempotency" | "product_state" | "instrument_state" | "funds" | "provider" | "engine"; readonly "law": string; readonly "facts": { readonly [key: string]: (string | number | boolean | null | { readonly [key: string]: string | number | boolean | null }) }; readonly "remedy"?: activity_retrieveOutput_HyperscaleRefusalRemedy; };
54
+ type activity_retrieveOutput_HyperscaleRefusalRemedy = { readonly "kind": "call" | "change_request" | "retry" | "needs_human" | "none"; readonly "operation"?: string; readonly "fields"?: ReadonlyArray<string>; readonly "who"?: "owner" | "approver" | "staff" | "customer"; readonly "values"?: { readonly [key: string]: string | number | boolean | null }; };
44
55
  export type audit_event_listInput = { readonly "productId"?: string; readonly "limit"?: number; readonly "cursor"?: string; readonly "query"?: string; readonly "createdFrom"?: string; readonly "createdTo"?: string; };
45
56
  export type audit_event_listOutput = { readonly "items": ReadonlyArray<{ readonly "auditEventId": string; readonly "tenantId": string; readonly "title"?: string; readonly "actorName"?: string; readonly "productName"?: string; readonly "event"?: string; readonly "principalId"?: string; readonly "userId"?: string; readonly "operationId"?: string; readonly "requestId"?: string; readonly "resourceKind"?: string; readonly "resourceId"?: string; readonly "digest"?: string; readonly "prevDigest"?: string; readonly "chainVersion": string; readonly "createdAt"?: string; }>; readonly "nextCursor"?: string; readonly "statusCounts"?: { readonly [key: string]: number }; };
46
57
  export type audit_event_retrieveInput = { readonly "productId"?: string; readonly "auditEventId": string; };
@@ -85,8 +96,6 @@ export type event_listInput = { readonly "limit"?: number; readonly "cursor"?: s
85
96
  export type event_listOutput = { readonly "items": ReadonlyArray<{ readonly "id": string; readonly "object": "event"; readonly "apiVersion": "2026-06-04"; readonly "environment": "sandbox" | "live"; readonly "tenantId": string; readonly "event": string; readonly "createdAt": string; readonly "operationId": (string | null); readonly "relatedObject": ({ readonly "id": string; readonly "type": string; } | null); readonly "data": { readonly "object": { readonly [key: string]: unknown }; }; readonly "outbox"?: { readonly "payloadDigest": string; }; }>; readonly "nextCursor"?: string; };
86
97
  export type event_retrieveInput = { readonly "productId"?: string; readonly "eventId": string; };
87
98
  export type event_retrieveOutput = { readonly "id": string; readonly "object": "event"; readonly "apiVersion": "2026-06-04"; readonly "environment": "sandbox" | "live"; readonly "tenantId": string; readonly "event": string; readonly "createdAt": string; readonly "operationId": (string | null); readonly "relatedObject": ({ readonly "id": string; readonly "type": string; } | null); readonly "data": { readonly "object": { readonly [key: string]: unknown }; }; readonly "outbox"?: { readonly "payloadDigest": string; }; };
88
- export type extension_listInput = { readonly "limit"?: number; readonly "cursor"?: string; };
89
- export type extension_listOutput = { readonly "items": ReadonlyArray<{ readonly "id": "booking" | "cards" | "collections" | "escrow" | "financing" | "insurance" | "lending" | "marketplace" | "money" | "purchase" | "rental" | "reporting" | "savings" | "wallet"; readonly "title": string; readonly "objects": ReadonlyArray<{ readonly "name": string; readonly "qualifiedName": string; readonly "signature": string; readonly "states": ReadonlyArray<string>; readonly "summary": string; readonly "authoringTemplate": { readonly "source": string; readonly "instancePlaceholder": string; readonly "requiredBindings": ReadonlyArray<{ readonly "name": string; readonly "type": string; readonly "placeholder": string; }>; }; readonly "tunables": ReadonlyArray<{ readonly "name": string; readonly "type": string; readonly "required": boolean; readonly "default"?: string; readonly "values"?: ReadonlyArray<string>; readonly "minimum"?: (number | string); readonly "maximum"?: (number | string); }>; readonly "checks": ReadonlyArray<{ readonly "rule": string; readonly "when"?: { readonly "selector": string; readonly "is": string; }; readonly "message": string; readonly "fix": string; }>; readonly "parties": ReadonlyArray<string>; readonly "subject": ReadonlyArray<{ readonly "name": string; readonly "type": string; }>; readonly "actions": ReadonlyArray<{ readonly "name": string; readonly "summary": string; readonly "actor": string; }>; }>; }>; readonly "nextCursor"?: string; };
90
99
  export type internal_transfer_listInput = { readonly "productId"?: string; readonly "limit"?: number; readonly "cursor"?: string; readonly "query"?: string; readonly "createdFrom"?: string; readonly "createdTo"?: string; readonly "accountId"?: string; readonly "customerId"?: string; readonly "book"?: "cash" | "claim"; readonly "currency"?: "SAR"; readonly "amountMin"?: string; readonly "amountMax"?: string; readonly "timeBasis"?: "created" | "posted"; readonly "postedFrom"?: string; readonly "postedTo"?: string; readonly "status"?: "settled" | "reversed" | "accepted" | "reserved" | "posted" | "voided" | "failed"; };
91
100
  export type internal_transfer_listOutput = { readonly "items": ReadonlyArray<{ readonly "transferId": string; readonly "tenantId": string; readonly "amount"?: string; readonly "postedAmount"?: string; readonly "currency"?: string; readonly "sourceAccountId"?: string; readonly "destinationAccountId"?: string; readonly "status"?: "settled" | "reversed" | "accepted" | "reserved" | "posted" | "voided" | "failed"; readonly "expiresAt"?: string; readonly "expiredAt"?: string; readonly "metadata"?: internal_transfer_listOutput_Metadata; readonly "correctsTransferId"?: string; readonly "operationId"?: string; readonly "productName"?: string; readonly "accountLabel"?: string; readonly "ownerName"?: string; readonly "sourceName"?: string; readonly "destinationName"?: string; readonly "record"?: { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "title": string; }; readonly "createdAt"?: string; readonly "postedInRangeAmount"?: string; readonly "recordedAt"?: string; }>; readonly "nextCursor"?: string; readonly "statusCounts"?: { readonly [key: string]: number }; };
92
101
  type internal_transfer_listOutput_Metadata = { readonly [key: string]: internal_transfer_listOutput_MetadataValue };
@@ -132,7 +141,7 @@ export type product_instruments_listOutput = { readonly "productBuildId": string
132
141
  export type product_margin_retrieveInput = { readonly "productId": string; };
133
142
  export type product_margin_retrieveOutput = { readonly "asOf": string; readonly "items": ReadonlyArray<{ readonly "operationName": string; readonly "sell": { readonly "bps"?: string; readonly "flatAmount"?: string; }; readonly "buy": { readonly "volumeBps"?: string; readonly "perEvent"?: string; }; readonly "net": { readonly "bps": string; readonly "perEvent": string; }; }>; };
134
143
  export type product_objects_actionsInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "cursor"?: string; readonly "limit"?: number; readonly "onBehalfOf"?: string; };
135
- export type product_objects_actionsOutput = { readonly "objectId": string; readonly "revision": number; readonly "actions": ReadonlyArray<{ readonly "summary": string; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fieldsSchema": { readonly [key: string]: unknown }; readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "action": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "requirementConditions"?: { readonly [key: string]: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>> }; readonly "creationRequirements"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "creationOnlyNames"?: ReadonlyArray<string>; readonly "inputSchema": { readonly [key: string]: unknown }; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); readonly "requiredNow": ReadonlyArray<string>; readonly "evidence"?: ReadonlyArray<{ readonly "requirementId": string; readonly "subjectId": string; readonly "protectedInputDigest": string; readonly "adapter": string; readonly "declarationDigest": string; readonly "productBuildId": string; readonly "state": "missing" | "pending" | "satisfied" | "refused" | "stale"; readonly "reference"?: string; readonly "observedAt"?: string; readonly "reasonCode"?: string; }>; }>; readonly "evidence": ReadonlyArray<{ readonly "requirementId": string; readonly "subjectId": string; readonly "protectedInputDigest": string; readonly "adapter": string; readonly "declarationDigest": string; readonly "productBuildId": string; readonly "state": "missing" | "pending" | "satisfied" | "refused" | "stale"; readonly "reference"?: string; readonly "observedAt"?: string; readonly "reasonCode"?: string; }>; readonly "nextCursor"?: string; };
144
+ export type product_objects_actionsOutput = { readonly "objectId": string; readonly "revision": number; readonly "actions": ReadonlyArray<{ readonly "summary": string; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fieldsSchema": { readonly [key: string]: unknown }; readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "action": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "requirementConditions"?: { readonly [key: string]: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>> }; readonly "creationRequirements"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "creationOnlyNames"?: ReadonlyArray<string>; readonly "inputSchema": { readonly [key: string]: unknown }; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "instances"?: { readonly [key: string]: ReadonlyArray<string> }; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); readonly "requiredNow": ReadonlyArray<string>; readonly "evidence"?: ReadonlyArray<{ readonly "requirementId": string; readonly "subjectId": string; readonly "protectedInputDigest": string; readonly "adapter": string; readonly "declarationDigest": string; readonly "productBuildId": string; readonly "state": "missing" | "pending" | "satisfied" | "refused" | "stale"; readonly "reference"?: string; readonly "observedAt"?: string; readonly "reasonCode"?: string; }>; }>; readonly "evidence": ReadonlyArray<{ readonly "requirementId": string; readonly "subjectId": string; readonly "protectedInputDigest": string; readonly "adapter": string; readonly "declarationDigest": string; readonly "productBuildId": string; readonly "state": "missing" | "pending" | "satisfied" | "refused" | "stale"; readonly "reference"?: string; readonly "observedAt"?: string; readonly "reasonCode"?: string; }>; readonly "nextCursor"?: string; };
136
145
  export type product_objects_agreements_evidence_listInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "instanceId": string; readonly "cursor"?: string; readonly "limit"?: number; };
137
146
  export type product_objects_agreements_evidence_listOutput = { readonly "objectId": string; readonly "instanceId": string; readonly "items": ReadonlyArray<{ readonly "eventId": string; readonly "operationId": string; readonly "occurredAt": string; readonly "title": string; readonly "productBuildId": string; readonly "digest": string; readonly "subjectEvidence": { readonly "objectId": string; readonly "kind": string; readonly "productBuildId": string; readonly "digest": string; readonly "fields": { readonly [key: string]: unknown }; }; }>; readonly "nextCursor"?: string; };
138
147
  export type product_objects_agreements_listInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "cursor"?: string; readonly "limit"?: number; readonly "rootsOnly"?: "true" | "false"; readonly "parentInstanceId"?: string; };
@@ -142,13 +151,13 @@ type product_objects_agreements_listOutput___schema0 = (string | number | boolea
142
151
  export type product_objects_createInput = { readonly "productId": string; readonly "kind": string; readonly "externalId"?: string; readonly "fields"?: { readonly [key: string]: unknown }; readonly "onBehalfOf"?: string; };
143
152
  export type product_objects_createOutput = { readonly "createdAt": string; readonly "objectId": string; readonly "kind": string; readonly "revision": number; readonly "externalId"?: string; readonly "fields": { readonly [key: string]: unknown }; readonly "productBuildId": string; };
144
153
  export type product_objects_discoverInput = { readonly "productId": string; };
145
- export type product_objects_discoverOutput = { readonly "semantics": { readonly "currency": string; readonly "parties": { readonly [key: string]: { readonly "kind": "person" | "business" | "staff"; readonly "role"?: string; } }; readonly "objects": ReadonlyArray<{ readonly "entryActions"?: ReadonlyArray<string>; readonly "id": string; readonly "title": string; readonly "authoredFields": ReadonlyArray<string>; readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title"?: string; readonly "parent"?: string; readonly "instrument": string; readonly "parties": { readonly [key: string]: ({ readonly "role": "owner" | "actor" | "operator"; } | { readonly "party": string; }) }; readonly "cardinality": { readonly "min": number; readonly "max": (number | null); }; }>; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "columns": ReadonlyArray<string>; }>; readonly "instruments": ReadonlyArray<{ readonly "id": string; readonly "title": string; readonly "subject"?: string; readonly "template"?: string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "accounts": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "relationships": ReadonlyArray<{ readonly "kind": "reference" | "child"; readonly "via": "field" | "attachment" | "invocation" | "parent_actor"; readonly "name": string; readonly "targetKind": "instrument" | "object"; readonly "targets": ReadonlyArray<string>; readonly "cardinality": { readonly "min": number; readonly "max": (number | null); }; }>; readonly "calculations": ReadonlyArray<({ readonly "target": string; readonly "op": "at"; readonly "list": string; readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); } | { readonly "target": string; readonly "op": "ratio"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "numerator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "denominator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "sum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "subtract"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "subtract": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "rate"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "bps": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "minimum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "multiply"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "units": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "divide"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "divisor": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "annuity"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rate": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "periods": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "part": "principal" | "interest"; } | { readonly "target": string; readonly "op": "shift"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "milliseconds": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "direction": "before" | "after"; } | { readonly "target": string; readonly "op": "step"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "period": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "times": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); })>; readonly "invariants": ReadonlyArray<({ readonly "kind": "hours"; readonly "at": string; readonly "start": number; readonly "end": number; readonly "timezone": string; } | { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "state"; readonly "reference": string; readonly "states": ReadonlyArray<string>; } | { readonly "kind": "unique"; readonly "namespace": string; readonly "fields": ReadonlyArray<string>; } | { readonly "kind": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); readonly "operator": "==" | "<=" | ">=" | "<" | ">"; readonly "value": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "evidence"; readonly "instruction"?: string; readonly "subject": string; readonly "family": string; readonly "check": string; readonly "result": string; readonly "maxAge": number; })>; readonly "initialState": string; readonly "lifecycle": { readonly "initial": string; readonly "states": ReadonlyArray<{ readonly "name": string; readonly "label": string; readonly "terminal": boolean; }>; readonly "cancellationActions": ReadonlyArray<string>; }; readonly "actions": ReadonlyArray<{ readonly "name": string; readonly "alias": string | null; readonly "title": string; readonly "actor": ("caller" | "clock" | { readonly "party": string; } | { readonly "parent": (string | ReadonlyArray<string>); }); readonly "roles": ReadonlyArray<(({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }) | { readonly "kind": "caller" | "clock"; } | { readonly "kind": "parent"; readonly "instruments": ReadonlyArray<string>; })>; readonly "from": ReadonlyArray<string>; readonly "to": string | null; readonly "references"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "invokedBy"?: ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "alias": string | null; readonly "invocation": ({ readonly "instrument": string; readonly "action": "create"; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "range"?: { readonly "count": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "maximum": number; readonly "bind": string; }; } | { readonly "reference": string; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; } | { readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; }); }>; readonly "inputs": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "subject"?: { readonly "requirements": ReadonlyArray<{ readonly "field": ({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; }); readonly "objectField"?: string; readonly "when"?: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>>; }>; readonly "adapters": ReadonlyArray<{ readonly "binding": string; readonly "snapshot": ({ readonly "onboarding"?: ReadonlyArray<"person" | "organization">; readonly "provider": string; readonly "capability": string; readonly "operation": string; readonly "declarationDigest": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; } | null); readonly "renames"?: { readonly [key: string]: string }; }>; }; readonly "prerequisites": ReadonlyArray<({ readonly "kind": "hours"; readonly "at": string; readonly "start": number; readonly "end": number; readonly "timezone": string; } | { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "state"; readonly "reference": string; readonly "states": ReadonlyArray<string>; } | { readonly "kind": "unique"; readonly "namespace": string; readonly "fields": ReadonlyArray<string>; } | { readonly "kind": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); readonly "operator": "==" | "<=" | ">=" | "<" | ">"; readonly "value": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "evidence"; readonly "instruction"?: string; readonly "subject": string; readonly "family": string; readonly "check": string; readonly "result": string; readonly "maxAge": number; })>; readonly "due": ({ readonly "at": string; readonly "offset"?: number; readonly "localDay"?: { readonly "days": number; readonly "direction": "before" | "after"; readonly "hour": number; readonly "timezone": string; }; } | null); readonly "deadline": ({ readonly "at": string; readonly "offset"?: number; readonly "localDay"?: { readonly "days": number; readonly "direction": "before" | "after"; readonly "hour": number; readonly "timezone": string; }; } | null); readonly "calculations": ReadonlyArray<({ readonly "target": string; readonly "op": "at"; readonly "list": string; readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); } | { readonly "target": string; readonly "op": "ratio"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "numerator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "denominator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "sum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "subtract"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "subtract": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "rate"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "bps": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "minimum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "multiply"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "units": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "divide"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "divisor": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor"; } | { readonly "target": string; readonly "op": "annuity"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rate": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "periods": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "part": "principal" | "interest"; } | { readonly "target": string; readonly "op": "shift"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "milliseconds": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "direction": "before" | "after"; } | { readonly "target": string; readonly "op": "step"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "period": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "times": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); })>; readonly "assignments": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "moves": ReadonlyArray<({ readonly "key": string; readonly "operation": "internal_transfer.create"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "from": string; readonly "to": string; } | { readonly "key": string; readonly "operation": "internal_transfer.reserve"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "boundary"?: { readonly "adapter": string; }; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "from": string; readonly "to": string; readonly "capture": string; } | { readonly "key": string; readonly "operation": "internal_transfer.post"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "transfer": string; } | { readonly "key": string; readonly "operation": "internal_transfer.void"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "transfer": string; })>; readonly "moneyEffects": ReadonlyArray<{ readonly "key": string; readonly "operation": "internal_transfer.create" | "internal_transfer.reserve" | "internal_transfer.post" | "internal_transfer.void"; readonly "amount": (({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) | null); readonly "from": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "to": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "disposition": "held" | "paid" | "released" | "claim" | "unresolved"; readonly "transfer": string | null; readonly "reservations": ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "key": string; }>; readonly "economics": ({ readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf": string | null; } | null); readonly "share": ({ readonly "base": string; readonly "bps": number; readonly "value": string | null; } | null); }>; readonly "invokes": ReadonlyArray<({ readonly "instrument": string; readonly "action": "create"; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "range"?: { readonly "count": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "maximum": number; readonly "bind": string; }; } | { readonly "reference": string; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; } | { readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; })>; }>; readonly "reports": ReadonlyArray<{ readonly "identity": { readonly "id": string; readonly "version": number; readonly "description": string; }; readonly "scope": { readonly "kind": "product" | "company"; readonly "classification": "internal" | "personal" | "restricted"; readonly "currency": "SAR"; }; readonly "datasets": ReadonlyArray<{ readonly "id": string; readonly "source": "instrument" | "account" | "identity" | "operation"; readonly "instruments": ReadonlyArray<string>; readonly "rowKey": string; readonly "columns": ReadonlyArray<{ readonly "name": string; readonly "field": string; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "required": boolean; }>; readonly "expressions": ReadonlyArray<({ readonly "id": string; readonly "op": "field"; readonly "path": string; } | { readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "not"; readonly "value": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "bucket"; readonly "value": string; readonly "unit": "month" | "quarter"; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; readonly "selection"?: string; }>; readonly "time": { readonly "timezone": "Asia/Riyadh"; readonly "boundary": "startInclusiveEndExclusive"; readonly "observation": "periodEnd"; readonly "history": "retainedOnly"; }; readonly "selection": { readonly "dataset": string; readonly "predicate"?: string; }; readonly "calculation": { readonly "joins": ReadonlyArray<{ readonly "dataset": string; readonly "local": string; readonly "foreign": string; readonly "cardinality": "one" | "many"; readonly "missing": "refuse" | "allow"; readonly "aggregates": ReadonlyArray<{ readonly "name": string; readonly "op": "sum" | "average" | "count" | "minimum" | "maximum"; readonly "rounding"?: "floor" | "halfUp"; readonly "value"?: string; }>; }>; readonly "expressions": ReadonlyArray<({ readonly "id": string; readonly "op": "field"; readonly "path": string; } | { readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "not"; readonly "value": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "bucket"; readonly "value": string; readonly "unit": "month" | "quarter"; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; readonly "groupBy": ReadonlyArray<string>; readonly "aggregates": ReadonlyArray<{ readonly "name": string; readonly "op": "sum" | "average" | "count" | "minimum" | "maximum"; readonly "rounding"?: "floor" | "halfUp"; readonly "value"?: string; }>; readonly "resultExpressions": ReadonlyArray<({ readonly "id": string; readonly "op": "field"; readonly "path": string; } | { readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "not"; readonly "value": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "bucket"; readonly "value": string; readonly "unit": "month" | "quarter"; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; }; readonly "validation": { readonly "empty": "refuse" | "noEligibleFacilities"; readonly "required": ReadonlyArray<string>; readonly "rowReconcile": ReadonlyArray<{ readonly "left": string; readonly "right": string; }>; readonly "reconcile": ReadonlyArray<{ readonly "left": string; readonly "right": string; }>; readonly "unavailableFacts": ReadonlyArray<string>; }; readonly "output": { readonly "profile": "internal.v1"; readonly "formats": ReadonlyArray<"json" | "csv">; readonly "columns": ReadonlyArray<{ readonly "name": string; readonly "label": string; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); }>; readonly "sort": ReadonlyArray<string>; }; readonly "authority": { readonly "request": ReadonlyArray<string>; readonly "read": ReadonlyArray<string>; readonly "release": ReadonlyArray<string>; readonly "retention": { readonly "policy": string; readonly "years": number; }; }; }>; readonly "structures": ReadonlyArray<"stage_and_decisions" | "payment_review" | "held_funds" | "reserved_payment" | "payment_calendar" | "funding_progress" | "cancellation_review" | "external_checks" | "report_view">; }>; }; readonly "navigation": ReadonlyArray<{ readonly "kind": string; readonly "title": string; readonly "creation": boolean; }>; readonly "productBuildId": string; readonly "digest": string; readonly "kinds": ReadonlyArray<{ readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "parentAttachment": (string | null); readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); }>; readonly "productBuildId": string; readonly "digest": string; readonly "creation": true; readonly "kind": string; readonly "title": string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "authoredFields": ReadonlyArray<string>; readonly "columns": ReadonlyArray<string>; readonly "filters": ReadonlyArray<{ readonly "field": string; readonly "type": "text" | "enum" | "date" | "boolean" | "integer"; }>; readonly "createSchema": { readonly [key: string]: unknown }; readonly "actions": ReadonlyArray<{ readonly "summary": string; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fieldsSchema": { readonly [key: string]: unknown }; readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "action": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "requirementConditions"?: { readonly [key: string]: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>> }; readonly "creationRequirements"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "creationOnlyNames"?: ReadonlyArray<string>; readonly "inputSchema": { readonly [key: string]: unknown }; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); }>; }>; readonly "retainedKinds": ReadonlyArray<{ readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "parentAttachment": (string | null); readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); }>; readonly "kind": string; readonly "title": string; readonly "productBuildId": string; readonly "digest": string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "authoredFields": ReadonlyArray<string>; readonly "columns": ReadonlyArray<string>; readonly "filters": ReadonlyArray<{ readonly "field": string; readonly "type": "text" | "enum" | "date" | "boolean" | "integer"; }>; readonly "creation": false; }>; };
154
+ export type product_objects_discoverOutput = { readonly "semantics": { readonly "currency": string; readonly "parties": { readonly [key: string]: { readonly "kind": "person" | "business" | "staff"; readonly "role"?: string; } }; readonly "objects": ReadonlyArray<{ readonly "entryActions"?: ReadonlyArray<string>; readonly "id": string; readonly "title": string; readonly "authoredFields": ReadonlyArray<string>; readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title"?: string; readonly "parent"?: string; readonly "instrument": string; readonly "parties": { readonly [key: string]: ({ readonly "role": "owner" | "actor" | "operator"; } | { readonly "party": string; }) }; readonly "cardinality": { readonly "min": number; readonly "max": (number | null); }; }>; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "columns": ReadonlyArray<string>; }>; readonly "instruments": ReadonlyArray<{ readonly "id": string; readonly "title": string; readonly "subject"?: string; readonly "template"?: string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "accounts": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "relationships": ReadonlyArray<{ readonly "kind": "reference" | "child"; readonly "via": "field" | "attachment" | "invocation" | "parent_actor"; readonly "name": string; readonly "targetKind": "instrument" | "object"; readonly "targets": ReadonlyArray<string>; readonly "cardinality": { readonly "min": number; readonly "max": (number | null); }; }>; readonly "calculations": ReadonlyArray<({ readonly "target": string; readonly "op": "at"; readonly "list": string; readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); } | { readonly "target": string; readonly "op": "ratio"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "numerator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "denominator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "sum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "subtract"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "subtract": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "rate"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "bps": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "minimum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "multiply"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "units": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "divide"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "divisor": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "annuity"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rate": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "periods": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "part": "principal" | "interest"; } | { readonly "target": string; readonly "op": "shift"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "milliseconds": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "direction": "before" | "after"; } | { readonly "target": string; readonly "op": "step"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "period": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "times": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); })>; readonly "invariants": ReadonlyArray<({ readonly "kind": "hours"; readonly "at": string; readonly "start": number; readonly "end": number; readonly "timezone": string; } | { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "state"; readonly "reference": string; readonly "states": ReadonlyArray<string>; } | { readonly "kind": "unique"; readonly "namespace": string; readonly "fields": ReadonlyArray<string>; } | { readonly "kind": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); readonly "operator": "==" | "<=" | ">=" | "<" | ">"; readonly "value": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "evidence"; readonly "instruction"?: string; readonly "subject": string; readonly "family": string; readonly "check": string; readonly "result": string; readonly "maxAge": number; })>; readonly "initialState": string; readonly "lifecycle": { readonly "initial": string; readonly "states": ReadonlyArray<{ readonly "name": string; readonly "label": string; readonly "terminal": boolean; }>; readonly "cancellationActions": ReadonlyArray<string>; }; readonly "actions": ReadonlyArray<{ readonly "name": string; readonly "alias": string | null; readonly "title": string; readonly "actor": ("caller" | "clock" | { readonly "party": string; } | { readonly "parent": (string | ReadonlyArray<string>); }); readonly "roles": ReadonlyArray<(({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }) | { readonly "kind": "caller" | "clock"; } | { readonly "kind": "parent"; readonly "instruments": ReadonlyArray<string>; })>; readonly "from": ReadonlyArray<string>; readonly "to": string | null; readonly "references"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "invokedBy"?: ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "alias": string | null; readonly "invocation": ({ readonly "instrument": string; readonly "action": "create"; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "range"?: { readonly "count": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "maximum": number; readonly "bind": string; }; } | { readonly "reference": string; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; } | { readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; }); }>; readonly "inputs": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "account"; readonly "owner": (string | { readonly "adapter": string; }); readonly "key"?: string; readonly "book": "cash" | "claim"; readonly "contra"?: true; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "subject"?: { readonly "requirements": ReadonlyArray<{ readonly "field": ({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; }); readonly "objectField"?: string; readonly "when"?: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>>; }>; readonly "adapters": ReadonlyArray<{ readonly "binding": string; readonly "snapshot": ({ readonly "onboarding"?: ReadonlyArray<"person" | "organization">; readonly "provider": string; readonly "capability": string; readonly "operation": string; readonly "declarationDigest": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; } | null); readonly "renames"?: { readonly [key: string]: string }; }>; }; readonly "prerequisites": ReadonlyArray<({ readonly "kind": "hours"; readonly "at": string; readonly "start": number; readonly "end": number; readonly "timezone": string; } | { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "state"; readonly "reference": string; readonly "states": ReadonlyArray<string>; } | { readonly "kind": "unique"; readonly "namespace": string; readonly "fields": ReadonlyArray<string>; } | { readonly "kind": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); readonly "operator": "==" | "<=" | ">=" | "<" | ">"; readonly "value": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "kind": "evidence"; readonly "instruction"?: string; readonly "subject": string; readonly "family": string; readonly "check": string; readonly "result": string; readonly "maxAge": number; })>; readonly "due": ({ readonly "at": string; readonly "offset"?: number; readonly "localDay"?: { readonly "days": number; readonly "direction": "before" | "after"; readonly "hour": number; readonly "timezone": string; }; } | null); readonly "deadline": ({ readonly "at": string; readonly "offset"?: number; readonly "localDay"?: { readonly "days": number; readonly "direction": "before" | "after"; readonly "hour": number; readonly "timezone": string; }; } | null); readonly "calculations": ReadonlyArray<({ readonly "target": string; readonly "op": "at"; readonly "list": string; readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "aggregate"; readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "measure": ("count" | { readonly "sum": string; }); } | { readonly "target": string; readonly "op": "ratio"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "numerator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "denominator": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "sum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "subtract"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "subtract": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "rate"; readonly "base": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "bps": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "minimum"; readonly "values": ReadonlyArray<({ readonly "literal": (string | number | boolean); } | { readonly "field": string; })>; } | { readonly "target": string; readonly "op": "multiply"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "units": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); } | { readonly "target": string; readonly "op": "divide"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "divisor": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rounding": "floor" | "ceiling" | "half_even"; } | { readonly "target": string; readonly "op": "annuity"; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "rate": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "periods": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "position": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "part": "principal" | "interest"; } | { readonly "target": string; readonly "op": "shift"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "milliseconds": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "direction": "before" | "after"; } | { readonly "target": string; readonly "op": "step"; readonly "date": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "period": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "times": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); })>; readonly "assignments": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "moves": ReadonlyArray<({ readonly "key": string; readonly "operation": "internal_transfer.create"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "from": string; readonly "to": string; } | { readonly "key": string; readonly "operation": "internal_transfer.reserve"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "boundary"?: { readonly "adapter": string; }; readonly "amount": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "from": string; readonly "to": string; readonly "capture": string; } | { readonly "key": string; readonly "operation": "internal_transfer.post"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "transfer": string; } | { readonly "key": string; readonly "operation": "internal_transfer.void"; readonly "economics"?: { readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf"?: string; }; readonly "capture"?: string; readonly "transfer": string; })>; readonly "moneyEffects": ReadonlyArray<{ readonly "key": string; readonly "operation": "internal_transfer.create" | "internal_transfer.reserve" | "internal_transfer.post" | "internal_transfer.void"; readonly "amount": (({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) | null); readonly "from": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "to": ReadonlyArray<{ readonly "path": string; readonly "scope": string; readonly "instrument": string; readonly "field": string; readonly "owner": ({ readonly "kind": "instrument"; readonly "instrument": string; } | { readonly "kind": "role"; readonly "role": "owner" | "actor" | "operator"; } | { readonly "kind": "party"; readonly "party": string; } | { readonly "kind": "adapter"; readonly "adapter": string; }); readonly "book": "cash" | "claim"; readonly "key"?: string; readonly "contra": boolean; }>; readonly "disposition": "held" | "paid" | "released" | "claim" | "unresolved"; readonly "transfer": string | null; readonly "reservations": ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "key": string; }>; readonly "economics": ({ readonly "purpose": "earning" | "principal" | "participant_payout" | "internal" | "prepaid_credit" | "pass_through"; readonly "sourceParty": string; readonly "reversalOf": string | null; } | null); readonly "share": ({ readonly "base": string; readonly "bps": number; readonly "value": string | null; } | null); }>; readonly "invokes": ReadonlyArray<({ readonly "instrument": string; readonly "action": "create"; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "range"?: { readonly "count": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "maximum": number; readonly "bind": string; }; } | { readonly "reference": string; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; } | { readonly "selection": { readonly "family"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "instrument": (string | ReadonlyArray<string>); readonly "reference": string; readonly "anchor": string; readonly "states": ReadonlyArray<string>; readonly "limit": number; readonly "batch"?: true; readonly "order"?: ReadonlyArray<string>; readonly "window"?: { readonly "field": string; readonly "milliseconds": number; }; readonly "overlaps"?: { readonly "start": string; readonly "end": string; readonly "from": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "until": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "where"?: { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; }; readonly "action": string; readonly "input": { readonly [key: string]: ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }) }; readonly "guard"?: { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; })>; }>; readonly "reports": ReadonlyArray<{ readonly "identity": { readonly "id": string; readonly "version": number; readonly "description": string; }; readonly "scope": { readonly "kind": "product" | "company"; readonly "currency": "SAR"; }; readonly "datasets": ReadonlyArray<{ readonly "id": string; readonly "source": "instrument" | "account" | "identity" | "operation"; readonly "instruments": ReadonlyArray<string>; readonly "rowKey": string; readonly "columns": ReadonlyArray<{ readonly "name": string; readonly "field": string; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "required": boolean; }>; readonly "expressions": ReadonlyArray<({ readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; readonly "selection"?: string; }>; readonly "selection": { readonly "dataset": string; readonly "predicate"?: string; }; readonly "calculation": { readonly "joins": ReadonlyArray<{ readonly "dataset": string; readonly "local": string; readonly "foreign": string; readonly "cardinality": "one" | "many"; readonly "missing": "refuse" | "allow"; readonly "aggregates": ReadonlyArray<{ readonly "name": string; readonly "op": "sum" | "average" | "count" | "minimum" | "maximum"; readonly "rounding"?: "floor" | "halfUp"; readonly "value"?: string; }>; }>; readonly "expressions": ReadonlyArray<({ readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; readonly "groupBy": ReadonlyArray<string>; readonly "aggregates": ReadonlyArray<{ readonly "name": string; readonly "op": "sum" | "average" | "count" | "minimum" | "maximum"; readonly "rounding"?: "floor" | "halfUp"; readonly "value"?: string; }>; readonly "resultExpressions": ReadonlyArray<({ readonly "id": string; readonly "op": "literal"; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); readonly "value": (string | number | boolean); } | { readonly "id": string; readonly "op": "parameter"; readonly "name": "periodStart" | "periodEnd" | "observationAt"; } | { readonly "id": string; readonly "op": "sum" | "subtract" | "minimum" | "maximum" | "equal" | "less" | "atMost" | "and" | "or" | "daysBetween"; readonly "left": string; readonly "right": string; } | { readonly "id": string; readonly "op": "choose"; readonly "condition": string; readonly "yes": string; readonly "no": string; } | { readonly "id": string; readonly "op": "ratio"; readonly "numerator": string; readonly "denominator": string; readonly "scale": number; readonly "rounding": "floor" | "halfUp"; readonly "zero": "refuse" | "null"; })>; }; readonly "validation": { readonly "empty": "refuse" | "noEligibleFacilities"; readonly "required": ReadonlyArray<string>; readonly "rowReconcile": ReadonlyArray<{ readonly "left": string; readonly "right": string; }>; readonly "reconcile": ReadonlyArray<{ readonly "left": string; readonly "right": string; }>; readonly "unavailableFacts": ReadonlyArray<string>; }; readonly "output": { readonly "formats": ReadonlyArray<"json" | "csv">; readonly "columns": ReadonlyArray<{ readonly "name": string; readonly "label": string; readonly "type": ({ readonly "kind": "money"; readonly "currency": "SAR"; } | { readonly "kind": "text" | "integer" | "boolean" | "date"; }); }>; readonly "sort": ReadonlyArray<string>; }; readonly "authority": { readonly "request": ReadonlyArray<string>; readonly "read": ReadonlyArray<string>; readonly "retention": { readonly "years": number; }; }; }>; readonly "structures": ReadonlyArray<"stage_and_decisions" | "payment_review" | "held_funds" | "reserved_payment" | "payment_calendar" | "funding_progress" | "cancellation_review" | "external_checks" | "report_view">; }>; }; readonly "navigation": ReadonlyArray<{ readonly "kind": string; readonly "title": string; readonly "creation": boolean; }>; readonly "productBuildId": string; readonly "digest": string; readonly "kinds": ReadonlyArray<{ readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "parentAttachment": (string | null); readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); }>; readonly "productBuildId": string; readonly "digest": string; readonly "creation": true; readonly "kind": string; readonly "title": string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "authoredFields": ReadonlyArray<string>; readonly "columns": ReadonlyArray<string>; readonly "filters": ReadonlyArray<{ readonly "field": string; readonly "type": "text" | "enum" | "date" | "boolean" | "integer"; }>; readonly "createSchema": { readonly [key: string]: unknown }; readonly "actions": ReadonlyArray<{ readonly "summary": string; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fieldsSchema": { readonly [key: string]: unknown }; readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "action": string; readonly "requirements": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "requirementConditions"?: { readonly [key: string]: ReadonlyArray<ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "guard": { readonly "kind": "compare"; readonly "left": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); readonly "operator": "==" | "!=" | "<" | "<=" | ">" | ">="; readonly "right": ({ readonly "literal": (string | number | boolean); } | { readonly "field": string; }); }; readonly "valueType"?: "money" | "date"; }>> }; readonly "creationRequirements"?: ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "creationOnlyNames"?: ReadonlyArray<string>; readonly "inputSchema": { readonly [key: string]: unknown }; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "instances"?: { readonly [key: string]: ReadonlyArray<string> }; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); }>; }>; readonly "retainedKinds": ReadonlyArray<{ readonly "attachments": ReadonlyArray<{ readonly "name": string; readonly "title": string; readonly "instrument": string; readonly "parentAttachment": (string | null); readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); }>; readonly "kind": string; readonly "title": string; readonly "productBuildId": string; readonly "digest": string; readonly "fields": ReadonlyArray<({ readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "money"; readonly "value"?: string; readonly "minimum"?: string; readonly "maximum"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "ref"; readonly "targetKind": "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target": (string | ReadonlyArray<string>); } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "date"; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "duration"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "text"; readonly "value"?: string; readonly "minLength"?: number; readonly "maxLength"?: number; readonly "pattern"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "integer"; readonly "value"?: number; readonly "minimum"?: number; readonly "maximum"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "percent"; readonly "value"?: number; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "boolean"; readonly "value"?: boolean; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "enum"; readonly "values": ReadonlyArray<string>; readonly "value"?: string; } | { readonly "name": string; readonly "label"?: string; readonly "optional"?: true; readonly "description"?: string; readonly "sensitive"?: true; readonly "type": "list"; readonly "item": "money" | "date" | "text" | "integer" | "ref"; readonly "targetKind"?: "instrument" | "object"; readonly "targetFamily"?: ({ readonly "module": string; readonly "exportPath": string; readonly "digest": string; } | { readonly "module": string; readonly "exportPath": string; readonly "revision": number; }); readonly "target"?: string; readonly "maxItems": number; })>; readonly "authoredFields": ReadonlyArray<string>; readonly "columns": ReadonlyArray<string>; readonly "filters": ReadonlyArray<{ readonly "field": string; readonly "type": "text" | "enum" | "date" | "boolean" | "integer"; }>; readonly "creation": false; }>; };
146
155
  export type product_objects_executeInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "action": string; readonly "expectedRevision"?: number; readonly "productBuildId"?: string; readonly "digest"?: string; readonly "target"?: ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fields"?: { readonly [key: string]: unknown }; readonly "input"?: { readonly [key: string]: unknown }; readonly "onBehalfOf"?: string; };
147
156
  export type product_objects_executeOutput = { readonly "object": { readonly "createdAt": string; readonly "objectId": string; readonly "kind": string; readonly "revision": number; readonly "externalId"?: string; readonly "fields": { readonly [key: string]: unknown }; readonly "productBuildId": string; }; readonly "outcome": ({ readonly "instrument": string; readonly "instanceId": string; readonly "state": string; readonly "moves"?: ReadonlyArray<{ readonly "transferId": string; readonly "amount": string; readonly "currency": string; readonly "sourceAccountId": string; readonly "destinationAccountId": string; readonly "status": "posted" | "reserved" | "released" | "voided"; }>; } | null); readonly "evidence": ReadonlyArray<{ readonly "requirementId": string; readonly "subjectId": string; readonly "protectedInputDigest": string; readonly "adapter": string; readonly "declarationDigest": string; readonly "productBuildId": string; readonly "state": "missing" | "pending" | "satisfied" | "refused" | "stale"; readonly "reference"?: string; readonly "observedAt"?: string; readonly "reasonCode"?: string; }>; readonly "receiptId"?: string; };
148
157
  export type product_objects_listInput = { readonly "productId": string; readonly "kind": string; readonly "owner"?: string; readonly "externalId"?: string; /** JSON-encode this object in the HTTP query parameter. */ readonly "filters"?: { readonly [key: string]: string }; readonly "agreementState"?: string; readonly "blockKey"?: "financing.installments" | "escrow.hold" | "money.hold" | "marketplace.listing" | "marketplace.order" | "marketplace.reservation" | "insurance.cover" | "insurance.claim"; readonly "blockMetric"?: "overdue_installments" | "overdue_amount" | "held_funds" | "active_listings" | "awaiting_fulfilment" | "active_reservations" | "active_covers" | "submitted_claims"; readonly "dueField"?: string; readonly "dueFrom"?: string; readonly "dueThrough"?: string; readonly "cursor"?: string; readonly "limit"?: number; };
149
158
  export type product_objects_listOutput = { readonly "items": ReadonlyArray<{ readonly "createdAt": string; readonly "objectId": string; readonly "kind": string; readonly "revision": number; readonly "externalId"?: string; readonly "fields": { readonly [key: string]: unknown }; readonly "productBuildId": string; readonly "currency": string; readonly "references": { readonly [key: string]: ReadonlyArray<{ readonly "id": string; readonly "displayTitle": string | null; }> }; readonly "standing": string; readonly "access": "owner" | "party" | "open" | "company"; readonly "agreements": ReadonlyArray<{ readonly "instanceId": string; readonly "instrument": string; readonly "attachment": string; readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); readonly "title": string; readonly "state": string; readonly "standing": string; }>; readonly "agreementsComplete": boolean; readonly "nextSchedule": ({ readonly "instanceId": string; readonly "action": string; readonly "title": string; readonly "dueAt": string; readonly "status": "upcoming" | "due"; } | null); readonly "scheduleComplete": boolean; }>; readonly "nextCursor"?: string; readonly "total": number; readonly "facets": { readonly [key: string]: { readonly [key: string]: number } }; };
150
159
  export type product_objects_previewInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "action": string; readonly "expectedRevision"?: number; readonly "productBuildId"?: string; readonly "digest"?: string; readonly "target"?: ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "fields"?: { readonly [key: string]: unknown }; readonly "input"?: { readonly [key: string]: unknown }; readonly "onBehalfOf"?: string; };
151
- export type product_objects_previewOutput = { readonly "objectId": string; readonly "revision": number; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "evaluatedAt": string; readonly "effectiveAt": string; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); readonly "effects": ReadonlyArray<{ readonly "sourceAccountId": string; readonly "destinationAccountId": string; readonly "amount": string; readonly "currency": "SAR"; readonly "book": "cash" | "claim"; readonly "outcome": "paid" | "held" | "released"; }>; readonly "stateChange": ({ readonly "from": string; readonly "to": string; } | null); readonly "clocks": ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "at": string; }>; };
160
+ export type product_objects_previewOutput = { readonly "objectId": string; readonly "revision": number; readonly "productBuildId": string; readonly "digest": string; readonly "target": ({ readonly "kind": "attachment"; readonly "attachment": string; } | { readonly "kind": "instance"; readonly "attachment": string; readonly "instanceId": string; }); readonly "evaluatedAt": string; readonly "effectiveAt": string; readonly "availability": ({ readonly "status": "available"; } | { readonly "status": "requires_input"; readonly "subjectFields": ReadonlyArray<string>; readonly "actionInputs": ReadonlyArray<string>; readonly "parties": ReadonlyArray<string>; readonly "instances"?: { readonly [key: string]: ReadonlyArray<string> }; readonly "reason": string; } | { readonly "status": "unavailable"; readonly "blockers": ReadonlyArray<{ readonly "code": "permission_required" | "state_changed" | "not_due" | "deadline_passed" | "clock_pending" | "condition_not_met" | "already_used" | "evidence_required" | "account_unavailable" | "insufficient_balance" | "setup_required" | "invalid_input" | "operation_pending"; readonly "reason": string; readonly "recheckAt"?: string; readonly "details"?: { readonly "accountId": string; readonly "currency": string; readonly "available": string; readonly "required": string; readonly "shortfall": string; }; readonly "belongsTo"?: { readonly "party": string; readonly "binding"?: "owner" | "actor" | "operator"; readonly "customerId"?: string; }; }>; } | { readonly "status": "unknown"; readonly "reason": string; }); readonly "effects": ReadonlyArray<{ readonly "sourceAccountId": string; readonly "destinationAccountId": string; readonly "amount": string; readonly "currency": "SAR"; readonly "book": "cash" | "claim"; readonly "outcome": "paid" | "held" | "released"; }>; readonly "stateChange": ({ readonly "from": string; readonly "to": string; } | null); readonly "clocks": ReadonlyArray<{ readonly "instrument": string; readonly "action": string; readonly "at": string; }>; };
152
161
  export type product_objects_retrieveInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; };
153
162
  export type product_objects_retrieveOutput = { readonly "createdAt": string; readonly "objectId": string; readonly "kind": string; readonly "revision": number; readonly "externalId"?: string; readonly "fields": { readonly [key: string]: unknown }; readonly "productBuildId": string; readonly "currency": string; readonly "references": { readonly [key: string]: ReadonlyArray<{ readonly "id": string; readonly "displayTitle": string | null; }> }; readonly "standing": string; readonly "access": "owner" | "party" | "open" | "company"; readonly "agreements": ReadonlyArray<{ readonly "instanceId": string; readonly "instrument": string; readonly "attachment": string; readonly "block": (({ readonly "key": string; readonly "recordPath": string; readonly "digest": string; } | { readonly "key": string; readonly "recordPath": string; readonly "headerDigest": string; }) | null); readonly "title": string; readonly "state": string; readonly "standing": string; readonly "progress": ({ readonly "done": number; readonly "total": number; readonly "word": string; } | null); readonly "nextDueAt": (string | null); }>; readonly "agreementsNextCursor"?: string; };
154
163
  export type product_objects_timeline_listInput = { readonly "productId": string; readonly "kind": string; readonly "objectId": string; readonly "cursor"?: string; readonly "limit"?: number; };
@@ -178,8 +187,6 @@ export type sandbox_clock_retrieveInput = { readonly "productId": string; };
178
187
  export type sandbox_clock_retrieveOutput = { readonly "tenantId": string; readonly "productId": string; readonly "effectiveAt": string; readonly "mode": "host" | "frozen"; readonly "observedAt": string; };
179
188
  export type sandbox_customer_access_activateInput = { readonly "customerAccessId": string; };
180
189
  export type sandbox_customer_access_activateOutput = { readonly "customerAccessId": string; readonly "tenantId": string; readonly "productId": string; readonly "customerId": string; readonly "entityId": string; readonly "entityStatus": "pending" | "verified" | "rejected" | "disabled"; readonly "status": "pending" | "active" | "suspended" | "closed"; readonly "amlStatus": "not_screened" | "clear" | "review" | "blocked"; readonly "onboarding": ReadonlyArray<{ readonly "provider": string; readonly "status": "approved" | "pending" | "rejected"; readonly "reference": string; }>; };
181
- export type sandbox_platform_fireInput = { readonly "operation": string; readonly "input": { readonly [key: string]: unknown }; };
182
- export type sandbox_platform_fireOutput = { readonly "operation": string; } & { readonly [key: string]: unknown };
183
190
  export type usage_record_listInput = { readonly "productId"?: string; readonly "limit"?: number; readonly "cursor"?: string; readonly "query"?: string; readonly "createdFrom"?: string; readonly "createdTo"?: string; readonly "meters"?: ReadonlyArray<"account.active_month" | "account.created.count" | "transfer.internal.count" | "transfer.internal.volume_sar" | "instrument.event.count" | "operation.executed.count" | "billing.plan.recurring_month">; };
184
191
  export type usage_record_listOutput = { readonly "items": ReadonlyArray<{ readonly "usageRecordId": string; readonly "tenantId": string; readonly "meter": string; readonly "quantity"?: string; readonly "unitPrice"?: string; readonly "amount": string; readonly "currency": string; readonly "previewAmount"?: string; readonly "operationName"?: string; readonly "operationId"?: string; readonly "sourceEventId"?: string; readonly "sourceOperationId"?: string; readonly "productId"?: string; readonly "settledAt": "execution" | "invoice"; readonly "createdAt"?: string; }>; readonly "nextCursor"?: string; readonly "statusCounts"?: { readonly [key: string]: number }; };
185
192
  export type usage_record_retrieveInput = { readonly "productId"?: string; readonly "usageRecordId": string; };
@@ -211,94 +218,92 @@ export type webhook_event_catalogOutput = { readonly "productBuildId": string; r
211
218
  /** Error codes every operation can return. */
212
219
  export type SharedErrorCode = "internal_error" | "invalid_request" | "not_found" | "rate_limited" | "resource_not_found" | "state_conflict" | "tenant_not_found" | "unauthorized";
213
220
  export interface Operations {
214
- readonly "account.balance.retrieve": { input: account_balance_retrieveInput; output: account_balance_retrieveOutput; errorCode: "account_ledger_mapping_dangling" | "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
215
- readonly "account.close": { input: account_closeInput; output: account_closeOutput; errorCode: "account_close_balance_nonzero" | "account_freeze_plane_forbidden" | "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
216
- readonly "account.create": { input: account_createInput; output: account_createOutput; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "account_role_already_provisioned" | "account_role_owner_mismatch" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "owner_unsupported" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "usage_source_conflict" };
217
- readonly "account.deposit": { input: account_depositInput; output: account_depositOutput; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "capability_not_configured" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "funding_destination_role_forbidden" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
218
- readonly "account.freeze": { input: account_freezeInput; output: account_freezeOutput; errorCode: "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
219
- readonly "account.hold.list": { input: account_hold_listInput; output: account_hold_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
220
- readonly "account.hold.retrieve": { input: account_hold_retrieveInput; output: account_hold_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
221
- readonly "account.list": { input: account_listInput; output: account_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
222
- readonly "account.retrieve": { input: account_retrieveInput; output: account_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
223
- readonly "account.statement.export": { input: account_statement_exportInput; output: account_statement_exportOutput; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "statement_evidence_incomplete" | "statement_evidence_mismatch" | "statement_line_limit_exceeded" | "tenant_mismatch" | "tenant_status_forbidden" };
224
- readonly "account.statement.retrieve": { input: account_statement_retrieveInput; output: account_statement_retrieveOutput; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "statement_evidence_incomplete" | "statement_evidence_mismatch" | "statement_line_limit_exceeded" | "tenant_mismatch" | "tenant_status_forbidden" };
225
- readonly "account.unfreeze": { input: account_unfreezeInput; output: account_unfreezeOutput; errorCode: "account_freeze_plane_forbidden" | "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
226
- readonly "activity.list": { input: activity_listInput; output: activity_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
227
- readonly "activity.retrieve": { input: activity_retrieveInput; output: activity_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
228
- readonly "audit_event.list": { input: audit_event_listInput; output: audit_event_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
229
- readonly "audit_event.retrieve": { input: audit_event_retrieveInput; output: audit_event_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
230
- readonly "consent.list": { input: consent_listInput; output: consent_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
231
- readonly "consent.retrieve": { input: consent_retrieveInput; output: consent_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
232
- readonly "consent.revoke": { input: consent_revokeInput; output: consent_revokeOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "consent_expired" | "consent_not_active" | "consent_not_found" | "consent_revoked" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
233
- readonly "customer_access.close": { input: customer_access_closeInput; output: customer_access_closeOutput; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_close_open_activity" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
234
- readonly "customer_access.list": { input: customer_access_listInput; output: customer_access_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
235
- readonly "customer_access.reactivate": { input: customer_access_reactivateInput; output: customer_access_reactivateOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
236
- readonly "customer_access.retrieve": { input: customer_access_retrieveInput; output: customer_access_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
237
- readonly "customer_access.suspend": { input: customer_access_suspendInput; output: customer_access_suspendOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
238
- readonly "customer.create": { input: customer_createInput; output: customer_createOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
239
- readonly "customer.join": { input: customer_joinInput; output: customer_joinOutput; errorCode: "cross_tenant_transfer_forbidden" | "currency_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "join_link_expired" | "join_link_full" | "join_link_not_found" | "ledger_transfer_rejected" | "ledger_unavailable" | "operation_not_finalized" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
240
- readonly "customer.list": { input: customer_listInput; output: customer_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
241
- readonly "customer.login": { input: customer_loginInput; output: customer_loginOutput; errorCode: "customer_access_required" | "customer_access_status_forbidden" | "customer_not_found" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
242
- readonly "customer.logout": { input: customer_logoutInput; output: customer_logoutOutput; errorCode: "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "missing_required_scope" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_required" | "state_constraint_failed" | "tenant_mismatch" };
243
- readonly "customer.me.retrieve": { input: customer_me_retrieveInput; output: customer_me_retrieveOutput; errorCode: "environment_mismatch" | "ledger_unavailable" | "missing_required_scope" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "tenant_mismatch" | "tenant_status_forbidden" };
244
- readonly "customer.profile.update": { input: customer_profile_updateInput; output: customer_profile_updateOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_erased" | "customer_not_found" | "entity_lifecycle_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
245
- readonly "customer.retrieve": { input: customer_retrieveInput; output: customer_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
246
- readonly "customer.session.revoke": { input: customer_session_revokeInput; output: customer_session_revokeOutput; errorCode: "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "missing_required_scope" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_not_found" | "session_required" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
247
- readonly "customer.signup": { input: customer_signupInput; output: customer_signupOutput; errorCode: "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
248
- readonly "event.list": { input: event_listInput; output: event_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
249
- readonly "event.retrieve": { input: event_retrieveInput; output: event_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
250
- readonly "extension.list": { input: extension_listInput; output: extension_listOutput; errorCode: "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" };
251
- readonly "internal_transfer.list": { input: internal_transfer_listInput; output: internal_transfer_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
252
- readonly "internal_transfer.retrieve": { input: internal_transfer_retrieveInput; output: internal_transfer_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
253
- readonly "operation.list": { input: operation_listInput; output: operation_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
254
- readonly "operation.retrieve": { input: operation_retrieveInput; output: operation_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
255
- readonly "payment_reminder.delivery.retrieve": { input: payment_reminder_delivery_retrieveInput; output: payment_reminder_delivery_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
256
- readonly "product.actions.list": { input: product_actions_listInput; output: product_actions_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
257
- readonly "product.activation.retrieve": { input: product_activation_retrieveInput; output: product_activation_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
258
- readonly "product.blocks.summary": { input: product_blocks_summaryInput; output: product_blocks_summaryOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
259
- readonly "product.books.retrieve": { input: product_books_retrieveInput; output: product_books_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
260
- readonly "product.connections.retrieve": { input: product_connections_retrieveInput; output: product_connections_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
261
- readonly "product.earn.rate.list": { input: product_earn_rate_listInput; output: product_earn_rate_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
262
- readonly "product.earnings.settle": { input: product_earnings_settleInput; output: product_earnings_settleOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
263
- readonly "product.economic_snapshot.retrieve": { input: product_economic_snapshot_retrieveInput; output: product_economic_snapshot_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "economic_snapshot_unstable" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
264
- readonly "product.guidance.retrieve": { input: product_guidance_retrieveInput; output: product_guidance_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_build_not_found" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
265
- readonly "product.instruments.list": { input: product_instruments_listInput; output: product_instruments_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
266
- readonly "product.margin.retrieve": { input: product_margin_retrieveInput; output: product_margin_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
267
- readonly "product.objects.actions": { input: product_objects_actionsInput; output: product_objects_actionsOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
268
- readonly "product.objects.agreements.evidence.list": { input: product_objects_agreements_evidence_listInput; output: product_objects_agreements_evidence_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
269
- readonly "product.objects.agreements.list": { input: product_objects_agreements_listInput; output: product_objects_agreements_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
270
- readonly "product.objects.create": { input: product_objects_createInput; output: product_objects_createOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_pending" | "environment_mismatch" | "external_id_in_use" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "tenant_mismatch" | "tenant_status_forbidden" };
271
- readonly "product.objects.discover": { input: product_objects_discoverInput; output: product_objects_discoverOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
272
- readonly "product.objects.execute": { input: product_objects_executeInput; output: product_objects_executeOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_pending" | "environment_mismatch" | "external_confirmation_conflict" | "external_confirmation_not_found" | "external_confirmation_resource_conflict" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "target_needs_instance" | "tenant_mismatch" | "tenant_status_forbidden" | "usage_source_conflict" };
273
- readonly "product.objects.list": { input: product_objects_listInput; output: product_objects_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
274
- readonly "product.objects.preview": { input: product_objects_previewInput; output: product_objects_previewOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "target_needs_instance" | "tenant_mismatch" | "tenant_status_forbidden" };
275
- readonly "product.objects.retrieve": { input: product_objects_retrieveInput; output: product_objects_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
276
- readonly "product.objects.timeline.list": { input: product_objects_timeline_listInput; output: product_objects_timeline_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
277
- readonly "product.operation_set.retrieve": { input: product_operation_set_retrieveInput; output: product_operation_set_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_build_not_found" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
278
- readonly "product.schedule.list": { input: product_schedule_listInput; output: product_schedule_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
279
- readonly "product.treasury.retrieve": { input: product_treasury_retrieveInput; output: product_treasury_retrieveOutput; errorCode: "account_ledger_mapping_dangling" | "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
280
- readonly "product.work.list": { input: product_work_listInput; output: product_work_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
281
- readonly "receipt.list": { input: receipt_listInput; output: receipt_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
282
- readonly "receipt.retrieve": { input: receipt_retrieveInput; output: receipt_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
283
- readonly "sandbox.account.fund": { input: sandbox_account_fundInput; output: sandbox_account_fundOutput; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "funding_destination_role_forbidden" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
284
- readonly "sandbox.clock.advance": { input: sandbox_clock_advanceInput; output: sandbox_clock_advanceOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_context_mismatch" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
285
- readonly "sandbox.clock.retrieve": { input: sandbox_clock_retrieveInput; output: sandbox_clock_retrieveOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
286
- readonly "sandbox.customer_access.activate": { input: sandbox_customer_access_activateInput; output: sandbox_customer_access_activateOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "capability_not_configured" | "csrf_token_invalid" | "customer_access_compliance_forbidden" | "customer_profile_incomplete" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
287
- readonly "sandbox.platform.fire": { input: sandbox_platform_fireInput; output: sandbox_platform_fireOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
288
- readonly "usage_record.list": { input: usage_record_listInput; output: usage_record_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
289
- readonly "usage_record.retrieve": { input: usage_record_retrieveInput; output: usage_record_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
290
- readonly "webhook.delivery.list": { input: webhook_delivery_listInput; output: webhook_delivery_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
291
- readonly "webhook.delivery.resend": { input: webhook_delivery_resendInput; output: webhook_delivery_resendOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_url_mismatch" };
292
- readonly "webhook.endpoint.create": { input: webhook_endpoint_createInput; output: webhook_endpoint_createOutput; errorCode: "account_not_found" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
293
- readonly "webhook.endpoint.delete": { input: webhook_endpoint_deleteInput; output: webhook_endpoint_deleteOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
294
- readonly "webhook.endpoint.disable": { input: webhook_endpoint_disableInput; output: webhook_endpoint_disableOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
295
- readonly "webhook.endpoint.enable": { input: webhook_endpoint_enableInput; output: webhook_endpoint_enableOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
296
- readonly "webhook.endpoint.list": { input: webhook_endpoint_listInput; output: webhook_endpoint_listOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
297
- readonly "webhook.endpoint.recover": { input: webhook_endpoint_recoverInput; output: webhook_endpoint_recoverOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
298
- readonly "webhook.endpoint.retrieve": { input: webhook_endpoint_retrieveInput; output: webhook_endpoint_retrieveOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
299
- readonly "webhook.endpoint.secret.rotate": { input: webhook_endpoint_secret_rotateInput; output: webhook_endpoint_secret_rotateOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
300
- readonly "webhook.endpoint.update": { input: webhook_endpoint_updateInput; output: webhook_endpoint_updateOutput; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
301
- readonly "webhook.event.catalog": { input: webhook_event_catalogInput; output: webhook_event_catalogOutput; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
221
+ readonly "account.balance.retrieve": { input: account_balance_retrieveInput; output: account_balance_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/accounts/{accountId}/balance"; credentialTenant: true; errorCode: "account_ledger_mapping_dangling" | "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
222
+ readonly "account.close": { input: account_closeInput; output: account_closeOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/accounts/{accountId}/close"; credentialTenant: true; rehearsable: true; errorCode: "account_close_balance_nonzero" | "account_freeze_plane_forbidden" | "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
223
+ readonly "account.create": { input: account_createInput; output: account_createOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/accounts"; credentialTenant: true; rehearsable: true; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "account_role_already_provisioned" | "account_role_owner_mismatch" | "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "owner_unsupported" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "usage_source_conflict" };
224
+ readonly "account.deposit": { input: account_depositInput; output: account_depositOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/account-deposits"; credentialTenant: true; rehearsable: true; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "agent_approval_denied" | "agent_approval_required" | "agent_cap_exceeded" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "capability_not_configured" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "funding_destination_role_forbidden" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
225
+ readonly "account.freeze": { input: account_freezeInput; output: account_freezeOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/accounts/{accountId}/freeze"; credentialTenant: true; rehearsable: true; errorCode: "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
226
+ readonly "account.hold.list": { input: account_hold_listInput; output: account_hold_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/accounts/{accountId}/holds"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
227
+ readonly "account.hold.retrieve": { input: account_hold_retrieveInput; output: account_hold_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/accounts/{accountId}/holds/{transferId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
228
+ readonly "account.list": { input: account_listInput; output: account_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/accounts"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
229
+ readonly "account.retrieve": { input: account_retrieveInput; output: account_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/accounts/{accountId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
230
+ readonly "account.statement.export": { input: account_statement_exportInput; output: account_statement_exportOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/accounts/{accountId}/statements/{period}/export"; credentialTenant: true; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "statement_evidence_incomplete" | "statement_evidence_mismatch" | "statement_line_limit_exceeded" | "tenant_mismatch" | "tenant_status_forbidden" };
231
+ readonly "account.statement.retrieve": { input: account_statement_retrieveInput; output: account_statement_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/accounts/{accountId}/statements/{period}"; credentialTenant: true; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "statement_evidence_incomplete" | "statement_evidence_mismatch" | "statement_line_limit_exceeded" | "tenant_mismatch" | "tenant_status_forbidden" };
232
+ readonly "account.unfreeze": { input: account_unfreezeInput; output: account_unfreezeOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/accounts/{accountId}/unfreeze"; credentialTenant: true; rehearsable: true; errorCode: "account_freeze_plane_forbidden" | "account_not_found" | "account_status_forbidden" | "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
233
+ readonly "activity.list": { input: activity_listInput; output: activity_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/activity"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
234
+ readonly "activity.retrieve": { input: activity_retrieveInput; output: activity_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/activity/{activityId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
235
+ readonly "audit_event.list": { input: audit_event_listInput; output: audit_event_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/audit-events"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
236
+ readonly "audit_event.retrieve": { input: audit_event_retrieveInput; output: audit_event_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/audit-events/{auditEventId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
237
+ readonly "consent.list": { input: consent_listInput; output: consent_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/consents"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
238
+ readonly "consent.retrieve": { input: consent_retrieveInput; output: consent_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/consents/{consentId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
239
+ readonly "consent.revoke": { input: consent_revokeInput; output: consent_revokeOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/consents/{consentId}/revoke"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "consent_expired" | "consent_not_active" | "consent_not_found" | "consent_revoked" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
240
+ readonly "customer_access.close": { input: customer_access_closeInput; output: customer_access_closeOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/customer-access/{customerAccessId}/close"; credentialTenant: true; rehearsable: true; errorCode: "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_close_open_activity" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
241
+ readonly "customer_access.list": { input: customer_access_listInput; output: customer_access_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/customer-access"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
242
+ readonly "customer_access.reactivate": { input: customer_access_reactivateInput; output: customer_access_reactivateOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/customer-access/{customerAccessId}/reactivate"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
243
+ readonly "customer_access.retrieve": { input: customer_access_retrieveInput; output: customer_access_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/customer-access/{customerAccessId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
244
+ readonly "customer_access.suspend": { input: customer_access_suspendInput; output: customer_access_suspendOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/customer-access/{customerAccessId}/suspend"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_lifecycle_status_forbidden" | "customer_access_not_found" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
245
+ readonly "customer.create": { input: customer_createInput; output: customer_createOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/customers"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
246
+ readonly "customer.join": { input: customer_joinInput; output: customer_joinOutput; principals: "customer_session"; method: "POST"; path: "/v1/customer-identity/join"; rehearsable: true; errorCode: "cross_tenant_transfer_forbidden" | "currency_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "join_link_expired" | "join_link_full" | "join_link_not_found" | "ledger_transfer_rejected" | "ledger_unavailable" | "operation_not_finalized" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
247
+ readonly "customer.list": { input: customer_listInput; output: customer_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/customers"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
248
+ readonly "customer.login": { input: customer_loginInput; output: customer_loginOutput; principals: "customer_session"; method: "POST"; path: "/v1/customer-identity/login"; rehearsable: true; errorCode: "customer_access_required" | "customer_access_status_forbidden" | "customer_not_found" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
249
+ readonly "customer.logout": { input: customer_logoutInput; output: customer_logoutOutput; principals: "customer_session"; method: "POST"; path: "/v1/customer-identity/logout"; rehearsable: true; errorCode: "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "missing_required_scope" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_required" | "state_constraint_failed" | "tenant_mismatch" };
250
+ readonly "customer.me.retrieve": { input: customer_me_retrieveInput; output: customer_me_retrieveOutput; principals: "customer_session"; method: "GET"; path: "/v1/customer-identity/me"; credentialTenant: true; errorCode: "environment_mismatch" | "ledger_unavailable" | "missing_required_scope" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "tenant_mismatch" | "tenant_status_forbidden" };
251
+ readonly "customer.profile.update": { input: customer_profile_updateInput; output: customer_profile_updateOutput; principals: "api_key" | "user_session"; method: "PATCH"; path: "/v1/customers/{customerId}/profile"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_erased" | "customer_not_found" | "entity_lifecycle_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
252
+ readonly "customer.retrieve": { input: customer_retrieveInput; output: customer_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/customers/{customerId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
253
+ readonly "customer.session.revoke": { input: customer_session_revokeInput; output: customer_session_revokeOutput; principals: "customer_session"; method: "POST"; path: "/v1/customer-identity/sessions/{customerSessionId}/revoke"; rehearsable: true; errorCode: "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "missing_required_scope" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "request_body_too_large" | "session_not_found" | "session_required" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
254
+ readonly "customer.signup": { input: customer_signupInput; output: customer_signupOutput; principals: "customer_session"; method: "POST"; path: "/v1/customer-identity/signup"; rehearsable: true; errorCode: "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "state_constraint_failed" | "tenant_status_forbidden" };
255
+ readonly "event.list": { input: event_listInput; output: event_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/events"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
256
+ readonly "event.retrieve": { input: event_retrieveInput; output: event_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/events/{eventId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
257
+ readonly "internal_transfer.list": { input: internal_transfer_listInput; output: internal_transfer_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/internal-transfers"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
258
+ readonly "internal_transfer.retrieve": { input: internal_transfer_retrieveInput; output: internal_transfer_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/internal-transfers/{transferId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
259
+ readonly "operation.list": { input: operation_listInput; output: operation_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/operations"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
260
+ readonly "operation.retrieve": { input: operation_retrieveInput; output: operation_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/operations/{operationId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
261
+ readonly "payment_reminder.delivery.retrieve": { input: payment_reminder_delivery_retrieveInput; output: payment_reminder_delivery_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/payment-reminders/{operationId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
262
+ readonly "product.actions.list": { input: product_actions_listInput; output: product_actions_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/actions"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
263
+ readonly "product.activation.retrieve": { input: product_activation_retrieveInput; output: product_activation_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/activation"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
264
+ readonly "product.blocks.summary": { input: product_blocks_summaryInput; output: product_blocks_summaryOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/blocks/summary"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
265
+ readonly "product.books.retrieve": { input: product_books_retrieveInput; output: product_books_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/books"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
266
+ readonly "product.connections.retrieve": { input: product_connections_retrieveInput; output: product_connections_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/connections"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
267
+ readonly "product.earn.rate.list": { input: product_earn_rate_listInput; output: product_earn_rate_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/earn-rates"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
268
+ readonly "product.earnings.settle": { input: product_earnings_settleInput; output: product_earnings_settleOutput; principals: "api_key" | "user_session" | "admin_session"; method: "POST"; path: "/v1/products/{productId}/earnings/settlements"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_cap_exceeded" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
269
+ readonly "product.economic_snapshot.retrieve": { input: product_economic_snapshot_retrieveInput; output: product_economic_snapshot_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/economic-snapshot"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "economic_snapshot_unstable" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
270
+ readonly "product.guidance.retrieve": { input: product_guidance_retrieveInput; output: product_guidance_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/guidance"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_build_not_found" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
271
+ readonly "product.instruments.list": { input: product_instruments_listInput; output: product_instruments_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/instruments"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
272
+ readonly "product.margin.retrieve": { input: product_margin_retrieveInput; output: product_margin_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/margin"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
273
+ readonly "product.objects.actions": { input: product_objects_actionsInput; output: product_objects_actionsOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/actions"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
274
+ readonly "product.objects.agreements.evidence.list": { input: product_objects_agreements_evidence_listInput; output: product_objects_agreements_evidence_listOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/agreements/{instanceId}/evidence"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
275
+ readonly "product.objects.agreements.list": { input: product_objects_agreements_listInput; output: product_objects_agreements_listOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/agreements"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
276
+ readonly "product.objects.create": { input: product_objects_createInput; output: product_objects_createOutput; principals: "api_key" | "user_session" | "customer_session"; method: "POST"; path: "/v1/products/{productId}/objects/{kind}"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_pending" | "environment_mismatch" | "external_id_in_use" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "tenant_mismatch" | "tenant_status_forbidden" };
277
+ readonly "product.objects.discover": { input: product_objects_discoverInput; output: product_objects_discoverOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
278
+ readonly "product.objects.execute": { input: product_objects_executeInput; output: product_objects_executeOutput; principals: "api_key" | "user_session" | "customer_session"; method: "POST"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/actions/{action}"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_cap_exceeded" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_pending" | "environment_mismatch" | "external_confirmation_conflict" | "external_confirmation_not_found" | "external_confirmation_resource_conflict" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "target_needs_instance" | "tenant_mismatch" | "tenant_status_forbidden" | "usage_source_conflict" };
279
+ readonly "product.objects.list": { input: product_objects_listInput; output: product_objects_listOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
280
+ readonly "product.objects.preview": { input: product_objects_previewInput; output: product_objects_previewOutput; principals: "api_key" | "user_session" | "customer_session"; method: "POST"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/actions/{action}/preview"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "subject_adapter_unbound" | "subject_evidence_stale" | "subject_field_unknown" | "subject_party_unbound" | "subject_requirement_missing" | "target_needs_instance" | "tenant_mismatch" | "tenant_status_forbidden" };
281
+ readonly "product.objects.retrieve": { input: product_objects_retrieveInput; output: product_objects_retrieveOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}/{objectId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
282
+ readonly "product.objects.timeline.list": { input: product_objects_timeline_listInput; output: product_objects_timeline_listOutput; principals: "api_key" | "user_session" | "customer_session"; method: "GET"; path: "/v1/products/{productId}/objects/{kind}/{objectId}/timeline"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "customer_access_pending" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
283
+ readonly "product.operation_set.retrieve": { input: product_operation_set_retrieveInput; output: product_operation_set_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/operation-set"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_build_not_found" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
284
+ readonly "product.schedule.list": { input: product_schedule_listInput; output: product_schedule_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/schedule"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
285
+ readonly "product.treasury.retrieve": { input: product_treasury_retrieveInput; output: product_treasury_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/treasury"; credentialTenant: true; errorCode: "account_ledger_mapping_dangling" | "account_ledger_unprovisioned" | "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_context_forbidden" | "product_context_mismatch" | "product_context_owner_mismatch" | "product_context_required" | "product_not_found" | "product_scope_required" | "product_scope_unsupported" | "product_status_forbidden" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
286
+ readonly "product.work.list": { input: product_work_listInput; output: product_work_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/products/{productId}/work"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
287
+ readonly "receipt.list": { input: receipt_listInput; output: receipt_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/receipts"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
288
+ readonly "receipt.retrieve": { input: receipt_retrieveInput; output: receipt_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/receipts/{receiptId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
289
+ readonly "sandbox.account.fund": { input: sandbox_account_fundInput; output: sandbox_account_fundOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/sandbox/account-funding"; credentialTenant: true; rehearsable: true; errorCode: "account_ledger_mapping_conflict" | "account_not_found" | "agent_approval_denied" | "agent_approval_required" | "agent_cap_exceeded" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "cross_tenant_transfer_forbidden" | "csrf_token_invalid" | "currency_mismatch" | "customer_access_compliance_forbidden" | "customer_access_required" | "customer_not_found" | "customer_status_forbidden" | "entity_not_found" | "entity_status_forbidden" | "environment_mismatch" | "funding_destination_role_forbidden" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "insufficient_balance" | "invalid_credentials" | "key_revoked" | "ledger_transfer_rejected" | "ledger_unavailable" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_environment_invalid" | "operation_not_allowed" | "operation_not_finalized" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
290
+ readonly "sandbox.clock.advance": { input: sandbox_clock_advanceInput; output: sandbox_clock_advanceOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/sandbox/clock/advance"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_context_mismatch" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
291
+ readonly "sandbox.clock.retrieve": { input: sandbox_clock_retrieveInput; output: sandbox_clock_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/sandbox-clock"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
292
+ readonly "sandbox.customer_access.activate": { input: sandbox_customer_access_activateInput; output: sandbox_customer_access_activateOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/sandbox/customer-access/{customerAccessId}/activate"; credentialTenant: true; rehearsable: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_reason_required" | "agent_result_already_delivered" | "agent_token_expired" | "agent_token_replaced" | "capability_not_configured" | "csrf_token_invalid" | "customer_access_compliance_forbidden" | "customer_profile_incomplete" | "entity_status_forbidden" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
293
+ readonly "usage_record.list": { input: usage_record_listInput; output: usage_record_listOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/usage-records"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
294
+ readonly "usage_record.retrieve": { input: usage_record_retrieveInput; output: usage_record_retrieveOutput; principals: "api_key" | "user_session"; method: "GET"; path: "/v1/usage-records/{usageRecordId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
295
+ readonly "webhook.delivery.list": { input: webhook_delivery_listInput; output: webhook_delivery_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/webhook-endpoints/{webhookEndpointId}/deliveries"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
296
+ readonly "webhook.delivery.resend": { input: webhook_delivery_resendInput; output: webhook_delivery_resendOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/deliveries/{webhookDeliveryId}/resend"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_url_mismatch" };
297
+ readonly "webhook.endpoint.create": { input: webhook_endpoint_createInput; output: webhook_endpoint_createOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints"; credentialTenant: true; rehearsable: true; errorCode: "account_not_found" | "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
298
+ readonly "webhook.endpoint.delete": { input: webhook_endpoint_deleteInput; output: webhook_endpoint_deleteOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/delete"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
299
+ readonly "webhook.endpoint.disable": { input: webhook_endpoint_disableInput; output: webhook_endpoint_disableOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/disable"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
300
+ readonly "webhook.endpoint.enable": { input: webhook_endpoint_enableInput; output: webhook_endpoint_enableOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/enable"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
301
+ readonly "webhook.endpoint.list": { input: webhook_endpoint_listInput; output: webhook_endpoint_listOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/webhook-endpoints"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
302
+ readonly "webhook.endpoint.recover": { input: webhook_endpoint_recoverInput; output: webhook_endpoint_recoverOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/recover"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
303
+ readonly "webhook.endpoint.retrieve": { input: webhook_endpoint_retrieveInput; output: webhook_endpoint_retrieveOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/webhook-endpoints/{webhookEndpointId}"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
304
+ readonly "webhook.endpoint.secret.rotate": { input: webhook_endpoint_secret_rotateInput; output: webhook_endpoint_secret_rotateOutput; principals: "api_key" | "user_session"; method: "POST"; path: "/v1/webhook-endpoints/{webhookEndpointId}/secret/rotate"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" };
305
+ readonly "webhook.endpoint.update": { input: webhook_endpoint_updateInput; output: webhook_endpoint_updateOutput; principals: "api_key" | "user_session"; method: "PATCH"; path: "/v1/webhook-endpoints/{webhookEndpointId}"; credentialTenant: true; rehearsable: true; errorCode: "agent_token_expired" | "agent_token_replaced" | "csrf_token_invalid" | "environment_mismatch" | "idempotency_conflict" | "idempotency_required" | "instrument_instance_not_found" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "operation_not_finalized" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "request_body_too_large" | "session_expired" | "session_required" | "session_revoked" | "state_constraint_failed" | "tenant_mismatch" | "tenant_status_forbidden" | "webhook_endpoint_lifecycle_status_forbidden" };
306
+ readonly "webhook.event.catalog": { input: webhook_event_catalogInput; output: webhook_event_catalogOutput; principals: "api_key" | "user_session" | "admin_session"; method: "GET"; path: "/v1/products/{productId}/webhook-event-catalog"; credentialTenant: true; errorCode: "agent_approval_denied" | "agent_approval_required" | "agent_token_expired" | "agent_token_replaced" | "environment_mismatch" | "invalid_credentials" | "key_revoked" | "missing_required_permission" | "missing_required_product_capability" | "missing_required_scope" | "operation_not_allowed" | "product_access_suspended" | "product_activation_required" | "product_not_found" | "resource_reader_unavailable" | "session_expired" | "session_required" | "session_revoked" | "tenant_mismatch" | "tenant_status_forbidden" };
302
307
  }
303
308
  /** Cursor lists and the field that holds each page's records. */
304
309
  export interface ListOperations {
@@ -311,7 +316,6 @@ export interface ListOperations {
311
316
  readonly "customer_access.list": "items";
312
317
  readonly "customer.list": "items";
313
318
  readonly "event.list": "items";
314
- readonly "extension.list": "items";
315
319
  readonly "internal_transfer.list": "items";
316
320
  readonly "operation.list": "items";
317
321
  readonly "product.blocks.summary": "items";
@@ -329,3 +333,9 @@ export interface ListOperations {
329
333
  readonly "webhook.endpoint.list": "items";
330
334
  }
331
335
  export type ErrorCode = SharedErrorCode | Operations[keyof Operations]["errorCode"];
336
+ /** Operations a call may send with `rehearse: true`: every mutation. */
337
+ export type RehearsableOperation = { [Name in keyof Operations]: Operations[Name] extends { readonly rehearsable: true } ? Name : never }[keyof Operations];
338
+ /** Operations a principal kind may call. */
339
+ export type OperationsFor<Principal extends string> = { [Name in keyof Operations as Extract<Operations[Name]["principals"], Principal> extends never ? never : Name]: Operations[Name] };
340
+ /** Input as a founder or staff session sends it: the session names its tenant. */
341
+ export type SessionInput<Name extends keyof Operations> = Operations[Name] extends { readonly credentialTenant: true } ? { readonly tenantId: string } & (Operations[Name]["input"] extends Record<string, never> ? unknown : Operations[Name]["input"]) : Operations[Name]["input"];