@integraledger/agentic-connectors
The exports of @integraledger/agentic-connectors.
Interfaces
AgreementLink
Where the buyer pays the agreement step: the URL to place beside the carriers, its network, and its pairing.
Properties
AgreementView
The agreement step's leg of a record.
Properties
| Property | Type |
|---|---|
network | string | null |
state | "required" | "settling" | "recorded" |
transaction | string | null |
Carriers
The carrier forms of this hash and link.
Properties
ChannelView
A channel pairing's channel: until is the rail's deadline for the channel, or null when the rail gives none.
Properties
ClaimDeclined
A pushed payment that landed and then failed the check: reported, never refused. atrHash is the hash the payment
is bound to, or null when it is bound to none; code is the check's code; transaction is the landed transaction.
Properties
| Property | Type |
|---|---|
atrHash | `0x${string}` | null |
code | string |
pairing | string |
state | "declined" |
transaction | string | null |
ClaimRequest
Properties
| Property | Type | Description |
|---|---|---|
chosen | Json | - |
network | string | - |
pairing | string | - |
payment | Json | - |
request? | RequestCommitment | - |
resource | string | - |
settleBy? | number | Unix seconds, at most now + 604 800. |
ClaimResponse
Properties
| Property | Type |
|---|---|
atrHash | `0x${string}` |
pairing | string |
proves | Proves |
state | "settling" |
ContentSlot
One content slot: strict RFC 4648 §4 base64 of the slot's exact bytes.
Properties
IssueRequest
Properties
| Property | Type | Description |
|---|---|---|
content? | ContentSlot[] | 0–56 slots. |
lifetimeSeconds | number | Integer 1–604 800: the protocol's challenge lifetime. |
mintRequestId | string | ^[A-Za-z0-9._:-]{1,128}$: one state of one checkout. |
offers | Offer[] | 1–16, in the order the document will carry them. |
request? | RequestCommitment | Required on an x402 surface. |
resource | string | The resource id declared through the admin door, 1–512 bytes. |
IssueResponse
Properties
| Property | Type | Description |
|---|---|---|
agreement? | AgreementLink | Present exactly when the record requires the agreement step. |
atrHash | `0x${string}` | - |
carriers | Carriers | - |
expiresAt | string | - |
link | string | - |
mintRequestId | string | - |
pairings | object[] | - |
Offer
One payment option, as the challenge will carry it. pairing is a pairing id the LCP package registers.
Properties
Proves
What a record proves: whether the claim read the hash from the payment, the pairing's pattern, and the evidence it was paid on.
Properties
RecordView
Properties
| Property | Type | Description |
|---|---|---|
agreement | AgreementView | null | Null when the record requires no agreement step. |
atrHash | `0x${string}` | - |
channel | ChannelView | null | - |
expiresAt | string | - |
proves | Proves | - |
settlement | { network?: string; pairing: string; reference?: string; } | null | - |
state | "closed" | "settling" | "paid" | "issued" | - |
Refusal
Properties
ReportClosed
A channel pairing's close: the close transaction as reference.
Properties
| Property | Type |
|---|---|
atrHash | `0x${string}` |
chosen? | Json |
network? | string |
pairing | string |
reference | string |
state | "closed" |
ReportOutcome
A payment's outcome; reference: 1–256 characters, no control characters.
Properties
| Property | Type | Description |
|---|---|---|
atrHash | `0x${string}` | - |
chosen? | Json | On a record with no claim: the option the payment paid, as issued, from which its read keys are taken. |
network? | string | - |
outcome | "declined" | "paid" | - |
pairing | string | - |
receipt? | Json | On a confirm-only channel pairing's paid report: the receipt its opening answered, from which the channel is read. |
reference? | string | - |
request? | RequestCommitment | With chosen, on a surface whose issued options are tied to the request. |
RequestCommitment
The request an x402 challenge answers.
Properties
Vector
One vector: requests to the door and the answers they must produce.
Properties
Type Aliases
ReportRequest
ReportRequest =
ReportOutcome|ReportClosed
Variables
OPENAPI_BYTES
constOPENAPI_BYTES:Uint8Array
The bytes of openapi.json.
REFUSALS
constREFUSALS:Readonly<Record<string,number>>
The closed refusal table: each code and its status.
VECTORS
constVECTORS:Readonly<Record<string,Vector>>
The vector files, parsed, by name (CV1 …).
Last updated on