@facto-to/connect 0.0.1-beta.1 → 0.0.1-beta.13
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/README.md +140 -81
- package/dist/browser/index.cjs +29 -20
- package/dist/browser/index.d.cts +1 -31
- package/dist/browser/index.d.ts +1 -31
- package/dist/browser/index.js +28 -19
- package/dist/card-transport-Zh-6EMPi.d.cts +63 -0
- package/dist/card-transport-Zh-6EMPi.d.ts +63 -0
- package/dist/chunk-2WJ3CACP.js +1 -0
- package/dist/chunk-MSUNZ66U.js +2 -0
- package/dist/cli/index.cjs +6 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +5 -0
- package/dist/index.d-BikZSd0p.d.cts +1030 -0
- package/dist/index.d-BikZSd0p.d.ts +1030 -0
- package/dist/react/index.cjs +0 -1
- package/dist/react/index.js +0 -1
- package/dist/server/card-connect-admin-client.cjs +2 -0
- package/dist/server/card-connect-admin-client.d.cts +318 -0
- package/dist/server/card-connect-admin-client.d.ts +318 -0
- package/dist/server/card-connect-admin-client.js +1 -0
- package/dist/server/index.cjs +1 -2
- package/dist/server/index.d.cts +1186 -291
- package/dist/server/index.d.ts +1186 -291
- package/dist/server/index.js +1 -2
- package/dist/testing/index.cjs +1 -2
- package/dist/testing/index.d.cts +2 -12
- package/dist/testing/index.d.ts +2 -12
- package/dist/testing/index.js +1 -2
- package/package.json +64 -17
- package/dist/browser/index.cjs.map +0 -1
- package/dist/browser/index.js.map +0 -1
- package/dist/react/index.cjs.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/server/index.cjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/testing/index.cjs.map +0 -1
- package/dist/testing/index.js.map +0 -1
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
2
|
+
/** Exact existing demo-grade success fields retained, not a settlement claim. */
|
|
3
|
+
interface AuthorizationAccepted {
|
|
4
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
5
|
+
charge_id: string;
|
|
6
|
+
status: 'processing';
|
|
7
|
+
}
|
|
8
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
9
|
+
/** Wire validation: {"format":"date-time"} */
|
|
10
|
+
type AuthorizationTimestamp = string;
|
|
11
|
+
interface CardholderVerification {
|
|
12
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
13
|
+
evidence_id: string;
|
|
14
|
+
method: 'pin' | 'biometric' | 'cdcvm' | 'signature' | 'no_cvm' | 'provider_attested';
|
|
15
|
+
verified_at: AuthorizationTimestamp;
|
|
16
|
+
}
|
|
17
|
+
interface AuthorizationCreateInput {
|
|
18
|
+
/** Wire validation: {"maxLength":64,"minLength":1} */
|
|
19
|
+
amount: string;
|
|
20
|
+
cardholder_verification: CardholderVerification;
|
|
21
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
22
|
+
client_transaction_id?: string;
|
|
23
|
+
currency: 'USD' | 'USDC';
|
|
24
|
+
/** Wire validation: {"format":"date-time"} */
|
|
25
|
+
deadline_at?: string;
|
|
26
|
+
decision_mode?: 'asynchronous' | 'synchronous';
|
|
27
|
+
/** Wire validation: {"maximum":5000,"minimum":50} */
|
|
28
|
+
decision_timeout_ms?: number;
|
|
29
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
30
|
+
external_authorization_id: string;
|
|
31
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
32
|
+
external_card_id: string;
|
|
33
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
34
|
+
mapping_revision: string;
|
|
35
|
+
/** Wire validation: {"maxLength":8,"minLength":1} */
|
|
36
|
+
merchant_country?: string;
|
|
37
|
+
/** Wire validation: {"maxLength":16,"minLength":0} */
|
|
38
|
+
merchant_mcc?: string;
|
|
39
|
+
/** Wire validation: {"maxLength":256,"minLength":0} */
|
|
40
|
+
merchant_name?: string;
|
|
41
|
+
/** Wire validation: {"format":"date-time"} */
|
|
42
|
+
occurred_at?: string;
|
|
43
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
44
|
+
program_id: string;
|
|
45
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
46
|
+
resource_version: string;
|
|
47
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
48
|
+
supplier_transaction_id?: string;
|
|
49
|
+
}
|
|
50
|
+
interface AuthorizationDeadlineExceeded {
|
|
51
|
+
/** Wire validation: {"format":"date-time"} */
|
|
52
|
+
deadline_at: string;
|
|
53
|
+
/** Wire validation: {"format":"uuid"} */
|
|
54
|
+
decision_id: string;
|
|
55
|
+
error: 'decision_deadline_exceeded';
|
|
56
|
+
message: string;
|
|
57
|
+
request_id: string;
|
|
58
|
+
}
|
|
59
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
60
|
+
/** provider_authorization is supplier approval of this consumption, never card issuance. durable_commit is technical persistence only; it does not by itself create irreversible payment, debt, settlement or legal responsibility. */
|
|
61
|
+
declare const AUTHORIZATION_FACT_KIND_VALUES: readonly ["facto_admission", "durable_commit", "provider_authorization", "chain_finality", "provider_settlement"];
|
|
62
|
+
type AuthorizationFactKind = (typeof AUTHORIZATION_FACT_KIND_VALUES)[number];
|
|
63
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
64
|
+
/** Safe public five-axis fact summary only. Confirmed requires an internal authoritative evidence record and observed_at; internal evidence locators, transaction hashes and storage identifiers never cross this projection. Source system is an allowlisted category, not a host/name/reference. */
|
|
65
|
+
interface AuthorizationFactProperties {
|
|
66
|
+
kind: AuthorizationFactKind;
|
|
67
|
+
observed_at?: AuthorizationTimestamp;
|
|
68
|
+
recorded_at: AuthorizationTimestamp;
|
|
69
|
+
/** Wire validation: {"maxLength":64,"minLength":1} */
|
|
70
|
+
safe_code?: string;
|
|
71
|
+
source_system: 'facto' | 'provider' | 'chain';
|
|
72
|
+
state: 'unobserved' | 'pending' | 'confirmed' | 'rejected' | 'indeterminate';
|
|
73
|
+
}
|
|
74
|
+
type AuthorizationFact = AuthorizationFactProperties & (({
|
|
75
|
+
state: 'confirmed';
|
|
76
|
+
} & Required<Pick<AuthorizationFactProperties, 'observed_at'>>) | ({
|
|
77
|
+
state: Exclude<AuthorizationFactProperties['state'], 'confirmed'>;
|
|
78
|
+
})) & (({
|
|
79
|
+
state: 'unobserved';
|
|
80
|
+
} & {
|
|
81
|
+
observed_at?: never;
|
|
82
|
+
}) | ({
|
|
83
|
+
state: Exclude<AuthorizationFactProperties['state'], 'unobserved'>;
|
|
84
|
+
}));
|
|
85
|
+
interface AuthorizationFactInput {
|
|
86
|
+
/** Wire validation: {"maxLength":64,"minLength":1} */
|
|
87
|
+
amount: string;
|
|
88
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
89
|
+
client_transaction_id?: string;
|
|
90
|
+
currency: 'USD' | 'USDC';
|
|
91
|
+
fact_type: 'authorization_updated' | 'clearing' | 'reversal' | 'refund' | 'chargeback' | 'settlement';
|
|
92
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
93
|
+
mapping_revision: string;
|
|
94
|
+
/** Wire validation: {"maxLength":8,"minLength":1} */
|
|
95
|
+
merchant_country?: string;
|
|
96
|
+
/** Wire validation: {"maxLength":16,"minLength":0} */
|
|
97
|
+
merchant_mcc?: string;
|
|
98
|
+
/** Wire validation: {"maxLength":256,"minLength":0} */
|
|
99
|
+
merchant_name?: string;
|
|
100
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
101
|
+
parent_supplier_transaction_id?: string;
|
|
102
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
103
|
+
predecessor_version: string;
|
|
104
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
105
|
+
program_id: string;
|
|
106
|
+
/** Wire validation: {"format":"date-time"} */
|
|
107
|
+
recorded_at: string;
|
|
108
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
109
|
+
resource_version: string;
|
|
110
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
111
|
+
supplier_transaction_id?: string;
|
|
112
|
+
}
|
|
113
|
+
interface AuthorizationFactReceipt {
|
|
114
|
+
/** Wire validation: {"format":"uuid"} */
|
|
115
|
+
operation_id: string;
|
|
116
|
+
status: 'recorded';
|
|
117
|
+
}
|
|
118
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
119
|
+
/** Fixed order, exactly one per fact kind; not a progress ladder. */
|
|
120
|
+
/** Wire validation: {"maxItems":5,"minItems":5,"prefixItems":[{"allOf":[{"$ref":"#/components/schemas/AuthorizationFact"},{"properties":{"kind":{"const":"facto_admission"}}}]},{"allOf":[{"$ref":"#/components/schemas/AuthorizationFact"},{"properties":{"kind":{"const":"durable_commit"}}}]},{"allOf":[{"$ref":"#/components/schemas/AuthorizationFact"},{"properties":{"kind":{"const":"provider_authorization"}}}]},{"allOf":[{"$ref":"#/components/schemas/AuthorizationFact"},{"properties":{"kind":{"const":"chain_finality"}}}]},{"allOf":[{"$ref":"#/components/schemas/AuthorizationFact"},{"properties":{"kind":{"const":"provider_settlement"}}}]}]} */
|
|
121
|
+
type AuthorizationFacts = [
|
|
122
|
+
AuthorizationFact & {
|
|
123
|
+
kind?: 'facto_admission';
|
|
124
|
+
},
|
|
125
|
+
AuthorizationFact & {
|
|
126
|
+
kind?: 'durable_commit';
|
|
127
|
+
},
|
|
128
|
+
AuthorizationFact & {
|
|
129
|
+
kind?: 'provider_authorization';
|
|
130
|
+
},
|
|
131
|
+
AuthorizationFact & {
|
|
132
|
+
kind?: 'chain_finality';
|
|
133
|
+
},
|
|
134
|
+
AuthorizationFact & {
|
|
135
|
+
kind?: 'provider_settlement';
|
|
136
|
+
}
|
|
137
|
+
];
|
|
138
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
139
|
+
declare const AUTHORIZATION_OPERATION_TYPE_VALUES: readonly ["authorization_requested", "authorization_updated", "clearing", "reversal", "refund", "chargeback", "settlement"];
|
|
140
|
+
type AuthorizationOperationType = (typeof AUTHORIZATION_OPERATION_TYPE_VALUES)[number];
|
|
141
|
+
/** USDC with exactly six fractional digits. */
|
|
142
|
+
/** Wire validation: {"pattern":"^-?[0-9]+\\.[0-9]{6}$"} */
|
|
143
|
+
type AuthorizationUsdcAmount = string;
|
|
144
|
+
/** Opened by a reversal or refund fact once the original charge exists. amount = min(fact amount, principal not yet claimed by other payable cases); fees are not refundable. Status machine: awaiting_charge_final -> awaiting_funds (charge collected) -> payable (operator confirmed funds returned to Facto) -> paid | failed; no-pay terminal not_payable. */
|
|
145
|
+
interface AuthorizationRefundCase {
|
|
146
|
+
amount: AuthorizationUsdcAmount;
|
|
147
|
+
/** Wire validation: {"pattern":"^rfc_[0-9a-f]{32}$"} */
|
|
148
|
+
case_id: string;
|
|
149
|
+
excess_amount: AuthorizationUsdcAmount;
|
|
150
|
+
/** Open: below_minimum (< 0.01 USD) | exceeds_charge (no principal left) | charge_failed | rejected (administrator). */
|
|
151
|
+
not_payable_reason?: string;
|
|
152
|
+
paid_amount?: AuthorizationUsdcAmount;
|
|
153
|
+
source_operation_type: AuthorizationOperationType;
|
|
154
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
155
|
+
source_resource_version: string;
|
|
156
|
+
/** Open: awaiting_charge_final | awaiting_funds | payable | paid | failed | not_payable. */
|
|
157
|
+
status: string;
|
|
158
|
+
/** Wire validation: {"format":"date-time"} */
|
|
159
|
+
updated_at: string;
|
|
160
|
+
}
|
|
161
|
+
interface AuthorizationLifecycleEntry {
|
|
162
|
+
amount: AuthorizationUsdcAmount;
|
|
163
|
+
currency: 'USDC';
|
|
164
|
+
link_status: 'linked' | 'unlinked';
|
|
165
|
+
operation_type: AuthorizationOperationType;
|
|
166
|
+
/** Wire validation: {"format":"date-time"} */
|
|
167
|
+
recorded_at: string;
|
|
168
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
169
|
+
resource_version: string;
|
|
170
|
+
/** Open, only when unlinked: original_declined | original_not_dispatched | lineage_missing_charge. */
|
|
171
|
+
unlinked_reason?: string;
|
|
172
|
+
}
|
|
173
|
+
/** Issuer state derived from the multiset of linked facts, independent of arrival order. First match wins: reversals summing to at least the authorized amount -> reversed (a later clearing never restores cleared); any chargeback -> charged_back; refunds summing to at least the cleared amount (authorized amount when nothing cleared) -> refunded, any refund -> partially_refunded; any clearing or settlement -> cleared; any reversal -> partially_reversed; otherwise authorized. cleared_amount is the larger of the clearing and settlement sums. authorization_updated is listed and does not change state. */
|
|
174
|
+
interface AuthorizationSupplierSummary {
|
|
175
|
+
cleared_amount: AuthorizationUsdcAmount;
|
|
176
|
+
entries: AuthorizationLifecycleEntry[];
|
|
177
|
+
refunded_amount: AuthorizationUsdcAmount;
|
|
178
|
+
reversed_amount: AuthorizationUsdcAmount;
|
|
179
|
+
/** Open: authorized | partially_reversed | reversed | cleared | partially_refunded | refunded | charged_back. */
|
|
180
|
+
state: string;
|
|
181
|
+
}
|
|
182
|
+
/** Optional on an original authorization read; present only when the read grant's approved scope names the optional projection field `lifecycle` and a later issuer fact or refund case exists. A scope listing only the complete projection never carries this member. Issuer facts link to the charge only through the original authorization's lineage. Pushes carry bounded summaries and one change, not this full history. Amounts are six-decimal USDC strings. `state`, `status`, `not_payable_reason` and `unlinked_reason` are open vocabularies: tolerate unknown values. Refund cases are recorded by Facto operators; the engine never pays automatically. */
|
|
183
|
+
interface AuthorizationLifecycle {
|
|
184
|
+
issuer: AuthorizationSupplierSummary;
|
|
185
|
+
refund_cases: AuthorizationRefundCase[];
|
|
186
|
+
}
|
|
187
|
+
/** Only for an explicitly approved payment_details read projection. Refund payments additionally require lifecycle. User payment hashes are exposed only for a successful proven settlement; refund hashes are operator-recorded, not chain-verified. Receive subscription does not grant read access. */
|
|
188
|
+
interface AuthorizationPaymentDetails {
|
|
189
|
+
fee_breakdown: {
|
|
190
|
+
base_fee: AuthorizationUsdcAmount;
|
|
191
|
+
fast_pay_fee: AuthorizationUsdcAmount;
|
|
192
|
+
pooled_surcharge: AuthorizationUsdcAmount;
|
|
193
|
+
};
|
|
194
|
+
fee_total: AuthorizationUsdcAmount;
|
|
195
|
+
refund_payments?: Array<{
|
|
196
|
+
/** Wire validation: {"maxLength":36} */
|
|
197
|
+
case_id: string;
|
|
198
|
+
/** Wire validation: {"format":"int64"} */
|
|
199
|
+
chain_id: number;
|
|
200
|
+
paid_amount: AuthorizationUsdcAmount;
|
|
201
|
+
/** Open value; operator means manually recorded, not chain-verified. */
|
|
202
|
+
recorded_by: string;
|
|
203
|
+
/** Wire validation: {"pattern":"^0x[0-9a-fA-F]{64}$"} */
|
|
204
|
+
tx_hash: string;
|
|
205
|
+
}>;
|
|
206
|
+
user_payment?: {
|
|
207
|
+
/** Wire validation: {"maxLength":32} */
|
|
208
|
+
asset_symbol?: string;
|
|
209
|
+
/** Wire validation: {"format":"int64"} */
|
|
210
|
+
chain_id: number;
|
|
211
|
+
/** Wire validation: {"pattern":"^0x[0-9a-fA-F]{64}$"} */
|
|
212
|
+
tx_hash: string;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
216
|
+
/** Wire validation: {"pattern":"^pconn_[A-Za-z0-9_-]{16,}$"} */
|
|
217
|
+
type AuthorizationProgramConnectionId = string;
|
|
218
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
219
|
+
/** Wire validation: {"maximum":2147483647,"minimum":1} */
|
|
220
|
+
type AuthorizationRevision = number;
|
|
221
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
222
|
+
/** Wire validation: {"format":"uuid"} */
|
|
223
|
+
type AuthorizationUuid = string;
|
|
224
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
225
|
+
/** Exactly one immutable safe receipt core per public charge identity in its original Program/environment. Generated only after actual releaseFor/cancelReservation is on chain and past existing per-chain pipeline_finality_secs. Never a provisional receipt. releaseFor=>succeeded; cancelReservation=>failed, describing that finalized pipeline action only, not supplier settlement, refund, discharge or legal responsibility. receipt_event_id is the established public logical delivery event identity, not an added storage ID. Pull and push serialize this same persisted core. Correlation discloses only the original caller-known business ref and approved public mapping/type/version; no card ref/subject/storage UUID/internal digest/evidence/route/tx hash. */
|
|
226
|
+
interface ChargeFinalReceiptProperties {
|
|
227
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
228
|
+
charge_id: string;
|
|
229
|
+
execution_outcome: 'succeeded' | 'failed';
|
|
230
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
231
|
+
external_authorization_id: string;
|
|
232
|
+
facts_at_finality: AuthorizationFacts;
|
|
233
|
+
finalized_at: AuthorizationTimestamp;
|
|
234
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
235
|
+
mapping_revision: string;
|
|
236
|
+
operation_type: AuthorizationOperationType;
|
|
237
|
+
receipt_event_id: AuthorizationUuid;
|
|
238
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
239
|
+
resource_version: string;
|
|
240
|
+
terminal_action: 'releaseFor' | 'cancelReservation';
|
|
241
|
+
}
|
|
242
|
+
type ChargeFinalReceipt = ChargeFinalReceiptProperties & {
|
|
243
|
+
/** Wire validation: {"prefixItems":[{},{},{},{"properties":{"state":{"const":"confirmed"}}}]} */
|
|
244
|
+
facts_at_finality?: [
|
|
245
|
+
ChargeFinalReceiptProperties['facts_at_finality'][0],
|
|
246
|
+
ChargeFinalReceiptProperties['facts_at_finality'][1],
|
|
247
|
+
ChargeFinalReceiptProperties['facts_at_finality'][2],
|
|
248
|
+
ChargeFinalReceiptProperties['facts_at_finality'][3] & {
|
|
249
|
+
state?: 'confirmed';
|
|
250
|
+
},
|
|
251
|
+
ChargeFinalReceiptProperties['facts_at_finality'][4]
|
|
252
|
+
];
|
|
253
|
+
} & (({
|
|
254
|
+
terminal_action: 'releaseFor';
|
|
255
|
+
} & {
|
|
256
|
+
execution_outcome?: 'succeeded';
|
|
257
|
+
/** Wire validation: {"prefixItems":[{"properties":{"state":{"const":"confirmed"}}},{"properties":{"state":{"const":"confirmed"}}}]} */
|
|
258
|
+
facts_at_finality?: [
|
|
259
|
+
ChargeFinalReceiptProperties['facts_at_finality'][0] & {
|
|
260
|
+
state?: 'confirmed';
|
|
261
|
+
},
|
|
262
|
+
ChargeFinalReceiptProperties['facts_at_finality'][1] & {
|
|
263
|
+
state?: 'confirmed';
|
|
264
|
+
},
|
|
265
|
+
ChargeFinalReceiptProperties['facts_at_finality'][2],
|
|
266
|
+
ChargeFinalReceiptProperties['facts_at_finality'][3],
|
|
267
|
+
ChargeFinalReceiptProperties['facts_at_finality'][4]
|
|
268
|
+
];
|
|
269
|
+
}) | ({
|
|
270
|
+
terminal_action: Exclude<ChargeFinalReceiptProperties['terminal_action'], 'releaseFor'>;
|
|
271
|
+
} & {
|
|
272
|
+
execution_outcome?: 'failed';
|
|
273
|
+
}));
|
|
274
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
275
|
+
/** Safe exact-operation projection. Before the FR107 terminal-action finality condition, a known charge is only processing, even with confirmed admission and durable persistence. succeeded requires the single persisted final receipt. A terminal PRE-DISPATCH refusal is `failed` with `charge_id` plus a bounded `decline_reason_code` and deliberately no final receipt, because no money moved. A `failed` WITH a receipt keeps the persisted-core contract. The two are mutually exclusive, but the residual rule (a failed projection must carry a receipt OR a decline_reason_code) is not expressible in the SDK's closed keyword subset and is enforced by the strict consuming parser/engine instead. Unknown original-action lineage has indeterminate status and no borrowed charge. No internal record IDs or internal digests. Mapping revision is an approved Program-scoped public locator, not a raw mapping storage UUID. */
|
|
276
|
+
interface AuthorizationProjectionProperties {
|
|
277
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
278
|
+
charge_id?: string;
|
|
279
|
+
decision?: 'approved' | 'declined' | 'self_reversed_timeout';
|
|
280
|
+
/** Bounded engine decline code for a terminal PRE-DISPATCH refusal (no money moved, so no final receipt). Never a message body. */
|
|
281
|
+
/** Wire validation: {"maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$"} */
|
|
282
|
+
decline_reason_code?: string;
|
|
283
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
284
|
+
external_authorization_id: string;
|
|
285
|
+
facts: AuthorizationFacts;
|
|
286
|
+
final_receipt?: ChargeFinalReceipt;
|
|
287
|
+
lifecycle?: AuthorizationLifecycle;
|
|
288
|
+
/** Exact original immutable trusted mapping revision locator, never caller authority or current-profile fallback. It must uniquely recover namespace inside the authenticated original scope before intersecting current read or money eligibility. */
|
|
289
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
290
|
+
mapping_revision: string;
|
|
291
|
+
operation_type: AuthorizationOperationType;
|
|
292
|
+
origin_connection_id: AuthorizationProgramConnectionId;
|
|
293
|
+
payment_details?: AuthorizationPaymentDetails;
|
|
294
|
+
processing_status: 'processing' | 'succeeded' | 'failed' | 'indeterminate';
|
|
295
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
296
|
+
resource_version: string;
|
|
297
|
+
revision: AuthorizationRevision;
|
|
298
|
+
/** Wire validation: {"maxLength":256,"minLength":1} */
|
|
299
|
+
supplier_transaction_id?: string;
|
|
300
|
+
}
|
|
301
|
+
type AuthorizationProjection = AuthorizationProjectionProperties & (({
|
|
302
|
+
processing_status: 'succeeded';
|
|
303
|
+
} & Required<Pick<AuthorizationProjectionProperties, 'charge_id'>>) | ({
|
|
304
|
+
processing_status: Exclude<AuthorizationProjectionProperties['processing_status'], 'succeeded'>;
|
|
305
|
+
} & {
|
|
306
|
+
final_receipt?: never;
|
|
307
|
+
})) & (({
|
|
308
|
+
processing_status: 'succeeded';
|
|
309
|
+
} & Required<Pick<AuthorizationProjectionProperties, 'final_receipt'>>) | ({
|
|
310
|
+
processing_status: Exclude<AuthorizationProjectionProperties['processing_status'], 'succeeded'>;
|
|
311
|
+
})) & ((Required<Pick<AuthorizationProjectionProperties, 'final_receipt'>> & {
|
|
312
|
+
decline_reason_code?: never;
|
|
313
|
+
}) | ({
|
|
314
|
+
final_receipt?: never;
|
|
315
|
+
})) & ((Required<Pick<AuthorizationProjectionProperties, 'decline_reason_code'>> & {
|
|
316
|
+
processing_status?: 'failed';
|
|
317
|
+
}) | ({
|
|
318
|
+
decline_reason_code?: never;
|
|
319
|
+
})) & ((Required<Pick<AuthorizationProjectionProperties, 'charge_id'>> & {
|
|
320
|
+
processing_status?: 'processing' | 'succeeded' | 'failed';
|
|
321
|
+
}) | ({
|
|
322
|
+
charge_id?: never;
|
|
323
|
+
})) & (({
|
|
324
|
+
processing_status: 'succeeded';
|
|
325
|
+
} & {
|
|
326
|
+
final_receipt?: {
|
|
327
|
+
execution_outcome?: 'succeeded';
|
|
328
|
+
};
|
|
329
|
+
}) | ({
|
|
330
|
+
processing_status: Exclude<AuthorizationProjectionProperties['processing_status'], 'succeeded'>;
|
|
331
|
+
})) & (({
|
|
332
|
+
processing_status: 'failed';
|
|
333
|
+
} & {
|
|
334
|
+
final_receipt?: {
|
|
335
|
+
execution_outcome?: 'failed';
|
|
336
|
+
};
|
|
337
|
+
}) | ({
|
|
338
|
+
processing_status: Exclude<AuthorizationProjectionProperties['processing_status'], 'failed'>;
|
|
339
|
+
}));
|
|
340
|
+
/** Wire metadata: {"x-facto-contract-revision":"2026-10-23-green-proposal.4","x-facto-status":"candidate"} */
|
|
341
|
+
/** Original ref/key or public charge ID, strictly one lookup. All undergo current authority before existence disclosure. resolved means final receipt exists; pending known charge/request never implies terminal; unknown identity remains unknown. Charge without confirmed terminal-action finality is processing only. */
|
|
342
|
+
interface AuthorizationLookupResultProperties {
|
|
343
|
+
authorization?: AuthorizationProjection;
|
|
344
|
+
observed_at: AuthorizationTimestamp;
|
|
345
|
+
resolution: 'resolved' | 'pending' | 'unknown' | 'not_observed';
|
|
346
|
+
}
|
|
347
|
+
type AuthorizationLookupResult = AuthorizationLookupResultProperties & (({
|
|
348
|
+
resolution: 'not_observed';
|
|
349
|
+
} & {
|
|
350
|
+
authorization?: never;
|
|
351
|
+
}) | ({
|
|
352
|
+
resolution: Exclude<AuthorizationLookupResultProperties['resolution'], 'not_observed'>;
|
|
353
|
+
})) & (({
|
|
354
|
+
resolution: 'resolved';
|
|
355
|
+
} & Required<Pick<AuthorizationLookupResultProperties, 'authorization'>> & {
|
|
356
|
+
authorization?: {
|
|
357
|
+
processing_status?: 'succeeded' | 'failed';
|
|
358
|
+
};
|
|
359
|
+
}) | ({
|
|
360
|
+
resolution: Exclude<AuthorizationLookupResultProperties['resolution'], 'resolved'>;
|
|
361
|
+
})) & (({
|
|
362
|
+
resolution: 'pending';
|
|
363
|
+
} & Required<Pick<AuthorizationLookupResultProperties, 'authorization'>> & {
|
|
364
|
+
authorization?: {
|
|
365
|
+
processing_status?: 'processing';
|
|
366
|
+
};
|
|
367
|
+
}) | ({
|
|
368
|
+
resolution: Exclude<AuthorizationLookupResultProperties['resolution'], 'pending'>;
|
|
369
|
+
})) & (({
|
|
370
|
+
resolution: 'unknown';
|
|
371
|
+
} & Required<Pick<AuthorizationLookupResultProperties, 'authorization'>> & {
|
|
372
|
+
authorization?: {
|
|
373
|
+
processing_status?: 'indeterminate';
|
|
374
|
+
};
|
|
375
|
+
}) | ({
|
|
376
|
+
resolution: Exclude<AuthorizationLookupResultProperties['resolution'], 'unknown'>;
|
|
377
|
+
}));
|
|
378
|
+
interface BindingFundingAvailableToCharge {
|
|
379
|
+
amount?: string;
|
|
380
|
+
constrained_by?: string;
|
|
381
|
+
currency?: string;
|
|
382
|
+
reason?: string;
|
|
383
|
+
state: 'available' | 'not_chargeable' | 'unavailable';
|
|
384
|
+
}
|
|
385
|
+
/** Wire validation: {"format":"date-time"} */
|
|
386
|
+
type CardTimestamp = string;
|
|
387
|
+
interface BindingFundingLimitsProjection {
|
|
388
|
+
available_to_charge: BindingFundingAvailableToCharge;
|
|
389
|
+
currency: string;
|
|
390
|
+
expires_at?: CardTimestamp | null;
|
|
391
|
+
per_tx_limit?: string | null;
|
|
392
|
+
period: string;
|
|
393
|
+
period_limit?: string | null;
|
|
394
|
+
period_remaining?: string | null;
|
|
395
|
+
period_used?: string | null;
|
|
396
|
+
}
|
|
397
|
+
interface BindingFundingPipelineProjection {
|
|
398
|
+
account_ref: string;
|
|
399
|
+
/** Wire validation: {"format":"int32"} */
|
|
400
|
+
asset_decimals: number;
|
|
401
|
+
asset_symbol: string;
|
|
402
|
+
balance?: string | null;
|
|
403
|
+
balance_raw?: string | null;
|
|
404
|
+
balance_updated_at?: CardTimestamp | null;
|
|
405
|
+
/** Wire validation: {"format":"int64"} */
|
|
406
|
+
chain_id: number;
|
|
407
|
+
name: string;
|
|
408
|
+
protocol: string;
|
|
409
|
+
spend_mode: string;
|
|
410
|
+
yield_token_symbol: string;
|
|
411
|
+
}
|
|
412
|
+
interface BindingFundingProjection {
|
|
413
|
+
configured: boolean;
|
|
414
|
+
limits?: BindingFundingLimitsProjection;
|
|
415
|
+
pipeline?: BindingFundingPipelineProjection;
|
|
416
|
+
reason?: string;
|
|
417
|
+
state: 'ready' | 'not_configured' | 'unavailable';
|
|
418
|
+
}
|
|
419
|
+
interface BindingLookupInput {
|
|
420
|
+
/** Wire validation: {"maxLength":255,"minLength":1,"not":{"pattern":"[0-9]{13}"}} */
|
|
421
|
+
external_card_id: string;
|
|
422
|
+
}
|
|
423
|
+
/** Wire validation: {"pattern":"^cb_[A-Za-z0-9_-]{16,}$"} */
|
|
424
|
+
type CardBindingId = string;
|
|
425
|
+
interface CardDisplayFacts {
|
|
426
|
+
last4: string | null;
|
|
427
|
+
network: string | null;
|
|
428
|
+
type: 'virtual' | 'physical' | 'unknown' | null;
|
|
429
|
+
}
|
|
430
|
+
interface BindingSummary {
|
|
431
|
+
card: CardDisplayFacts;
|
|
432
|
+
funding?: BindingFundingProjection;
|
|
433
|
+
id: CardBindingId;
|
|
434
|
+
/** Wire validation: {"format":"int32","minimum":1} */
|
|
435
|
+
revision: number;
|
|
436
|
+
status: 'active' | 'revoked';
|
|
437
|
+
}
|
|
438
|
+
interface BindingLookupResult {
|
|
439
|
+
binding: BindingSummary | null;
|
|
440
|
+
found: boolean;
|
|
441
|
+
}
|
|
442
|
+
/** Wire validation: {"pattern":"^cbs_[A-Za-z0-9_-]{16,}$"} */
|
|
443
|
+
type BindingSessionId = string;
|
|
444
|
+
interface BindingProofChallenge {
|
|
445
|
+
binding_session_id: BindingSessionId;
|
|
446
|
+
expires_at: CardTimestamp;
|
|
447
|
+
facto_challenge: string;
|
|
448
|
+
session_request_digest: string;
|
|
449
|
+
}
|
|
450
|
+
interface BindingProofPolicy {
|
|
451
|
+
/** Wire validation: {"minItems":1,"uniqueItems":true} */
|
|
452
|
+
allowed_modes: ['provider_reauthentication' | 'provider_second_channel', ...Array<'provider_reauthentication' | 'provider_second_channel'>];
|
|
453
|
+
/** Present only when the create request opted in with `x-facto-card-selection: 1`. */
|
|
454
|
+
card_selection_supported?: true;
|
|
455
|
+
challenge_after_facto_auth: true;
|
|
456
|
+
challenge_delivery: 'browser_handoff' | 'provider_backend';
|
|
457
|
+
}
|
|
458
|
+
interface BindingSessionCreate {
|
|
459
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
460
|
+
program_ref: string;
|
|
461
|
+
/** Wire validation: {"minItems":1,"uniqueItems":true} */
|
|
462
|
+
requested_user_consents: ['card.metadata.view' | 'card.use_for_facto_payments', ...Array<'card.metadata.view' | 'card.use_for_facto_payments'>];
|
|
463
|
+
/** Exact pre-registered URI; maximum 2048 UTF-8 bytes. The existing shape validator is not a general URL normalizer. */
|
|
464
|
+
/** Wire validation: {"maxLength":2048,"pattern":"^https://[^/@?#\\r\\n]+(?:[/?][^#\\r\\n]*)?$"} */
|
|
465
|
+
return_uri: string;
|
|
466
|
+
}
|
|
467
|
+
interface BindingSessionCreated {
|
|
468
|
+
binding_session_id: BindingSessionId;
|
|
469
|
+
/** Sensitive one-time URL returned only to the authenticated Program backend. */
|
|
470
|
+
binding_url: string;
|
|
471
|
+
expires_at: CardTimestamp;
|
|
472
|
+
proof_policy: BindingProofPolicy;
|
|
473
|
+
status: 'pending';
|
|
474
|
+
}
|
|
475
|
+
type BindingSessionStatus = {
|
|
476
|
+
binding_session_id: BindingSessionId;
|
|
477
|
+
expires_at: CardTimestamp;
|
|
478
|
+
status: 'pending';
|
|
479
|
+
} | {
|
|
480
|
+
binding_session_id: BindingSessionId;
|
|
481
|
+
expires_at: CardTimestamp;
|
|
482
|
+
status: 'proof_pending';
|
|
483
|
+
} | {
|
|
484
|
+
binding_session_id: BindingSessionId;
|
|
485
|
+
expires_at: CardTimestamp;
|
|
486
|
+
status: 'consent_pending';
|
|
487
|
+
} | {
|
|
488
|
+
binding_ids: CardBindingId[];
|
|
489
|
+
binding_session_id: BindingSessionId;
|
|
490
|
+
completed_at?: CardTimestamp;
|
|
491
|
+
expires_at: CardTimestamp;
|
|
492
|
+
outcome: 'bound';
|
|
493
|
+
status: 'completed';
|
|
494
|
+
} | {
|
|
495
|
+
binding_session_id: BindingSessionId;
|
|
496
|
+
completed_at?: CardTimestamp;
|
|
497
|
+
expires_at: CardTimestamp;
|
|
498
|
+
failure_reason: 'declined_by_user';
|
|
499
|
+
outcome: 'declined';
|
|
500
|
+
status: 'completed';
|
|
501
|
+
} | {
|
|
502
|
+
binding_session_id: BindingSessionId;
|
|
503
|
+
completed_at?: CardTimestamp;
|
|
504
|
+
expires_at: CardTimestamp;
|
|
505
|
+
failure_reason?: 'cancelled_by_user' | 'cancelled_by_partner' | 'proof_rejected' | 'admission_closed' | 'no_eligible_cards' | 'integrity_conflict';
|
|
506
|
+
status: 'cancelled';
|
|
507
|
+
} | {
|
|
508
|
+
binding_session_id: BindingSessionId;
|
|
509
|
+
expires_at: CardTimestamp;
|
|
510
|
+
failure_reason?: 'expired' | 'proof_timeout';
|
|
511
|
+
status: 'expired';
|
|
512
|
+
};
|
|
513
|
+
/** Wire validation: {"pattern":"^sha256:[a-f0-9]{64}$"} */
|
|
514
|
+
type CardDigest = string;
|
|
515
|
+
declare const CARD_ENVIRONMENT_VALUES: readonly ["dev", "production"];
|
|
516
|
+
type CardEnvironment = (typeof CARD_ENVIRONMENT_VALUES)[number];
|
|
517
|
+
type CardInboundEventInput = {
|
|
518
|
+
/** Nonblank compact JWS; certified typ/audience/jti and exact scope verified by the handler. */
|
|
519
|
+
/** Wire validation: {"minLength":1,"pattern":"\\S","writeOnly":true} */
|
|
520
|
+
assertion_jws: string;
|
|
521
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
522
|
+
delivery_id: string;
|
|
523
|
+
external_account_id?: null;
|
|
524
|
+
/** Wire validation: {"maxLength":255,"minLength":1,"not":{"pattern":"[0-9]{13}"}} */
|
|
525
|
+
external_card_id: string;
|
|
526
|
+
kind: 'card.unbound';
|
|
527
|
+
lifecycle_status?: null;
|
|
528
|
+
} | {
|
|
529
|
+
/** Nonblank compact JWS; certified typ/audience/jti and exact scope verified by the handler. */
|
|
530
|
+
/** Wire validation: {"minLength":1,"pattern":"\\S","writeOnly":true} */
|
|
531
|
+
assertion_jws: string;
|
|
532
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
533
|
+
delivery_id: string;
|
|
534
|
+
external_account_id?: null;
|
|
535
|
+
/** Wire validation: {"maxLength":255,"minLength":1,"not":{"pattern":"[0-9]{13}"}} */
|
|
536
|
+
external_card_id: string;
|
|
537
|
+
kind: 'card.lifecycle_changed';
|
|
538
|
+
lifecycle_status: 'pending' | 'active' | 'frozen' | 'closed' | 'replaced' | 'unknown';
|
|
539
|
+
} | {
|
|
540
|
+
/** Nonblank compact JWS; certified typ/audience/jti and exact scope verified by the handler. */
|
|
541
|
+
/** Wire validation: {"minLength":1,"pattern":"\\S","writeOnly":true} */
|
|
542
|
+
assertion_jws: string;
|
|
543
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
544
|
+
delivery_id: string;
|
|
545
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
546
|
+
external_account_id: string;
|
|
547
|
+
external_card_id?: null;
|
|
548
|
+
kind: 'account.released';
|
|
549
|
+
lifecycle_status?: null;
|
|
550
|
+
};
|
|
551
|
+
type CardInboundEventReceipt = {
|
|
552
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
553
|
+
delivery_id: string;
|
|
554
|
+
disposition: 'applied';
|
|
555
|
+
effect: 'revoked' | 'status_updated' | 'released' | 'none';
|
|
556
|
+
} | {
|
|
557
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
558
|
+
delivery_id: string;
|
|
559
|
+
disposition: 'duplicate';
|
|
560
|
+
effect: null;
|
|
561
|
+
};
|
|
562
|
+
/** Wire validation: {"maximum":2147483647,"minimum":1} */
|
|
563
|
+
type CardRevision = number;
|
|
564
|
+
/** Wire validation: {"format":"uuid"} */
|
|
565
|
+
type CardUuid = string;
|
|
566
|
+
/** Wire validation: {"pattern":"^sha256:[a-fA-F0-9]{64}$"} */
|
|
567
|
+
type ConnectIntentDigest = string;
|
|
568
|
+
/** Wire validation: {"pattern":"^cint_[A-Za-z0-9_-]{16,}$"} */
|
|
569
|
+
type ConnectIntentId = string;
|
|
570
|
+
declare const MANDATE_LIMIT_PERIOD_VALUES: readonly ["daily", "weekly", "monthly"];
|
|
571
|
+
type MandateLimitPeriod = (typeof MANDATE_LIMIT_PERIOD_VALUES)[number];
|
|
572
|
+
declare const MANDATE_USE_CASE_VALUES: readonly ["immediate", "recurring", "top_up", "metered"];
|
|
573
|
+
type MandateUseCase = (typeof MANDATE_USE_CASE_VALUES)[number];
|
|
574
|
+
interface CreateMandatePaymentRequest {
|
|
575
|
+
amount: string;
|
|
576
|
+
currency: string;
|
|
577
|
+
description?: string | null;
|
|
578
|
+
mandateId: string;
|
|
579
|
+
merchantPaymentRef: string;
|
|
580
|
+
metadata?: Record<string, string> | null;
|
|
581
|
+
paymentOptionId?: string | null;
|
|
582
|
+
/**
|
|
583
|
+
* The sub-merchant name to show on the consumer's billing line. Returned
|
|
584
|
+
* on authenticated payment reads; NOT included in webhook payloads.
|
|
585
|
+
* Rejects control, zero-width and bidi override characters.
|
|
586
|
+
*/
|
|
587
|
+
subMerchantDisplayName?: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* Your reconciliation anchor for the sub-merchant this payment was
|
|
590
|
+
* collected for. Echoed on every payment projection and included in
|
|
591
|
+
* payment webhooks. Display and reconciliation only — Facto never keys,
|
|
592
|
+
* joins or deduplicates on it.
|
|
593
|
+
*/
|
|
594
|
+
subMerchantRef?: string | null;
|
|
595
|
+
useCase: MandateUseCase;
|
|
596
|
+
}
|
|
597
|
+
interface DeadLetterItem {
|
|
598
|
+
binding_id: CardBindingId;
|
|
599
|
+
/** Wire validation: {"format":"int32"} */
|
|
600
|
+
binding_revision: number;
|
|
601
|
+
connection_sequence: number | null;
|
|
602
|
+
dead_lettered_at: CardTimestamp | null;
|
|
603
|
+
/** Wire validation: {"format":"int32"} */
|
|
604
|
+
delivery_attempts: number;
|
|
605
|
+
event_kind: string;
|
|
606
|
+
id: CardUuid;
|
|
607
|
+
last_delivery_error: string | null;
|
|
608
|
+
/** Wire validation: {"format":"int32"} */
|
|
609
|
+
replay_count: number;
|
|
610
|
+
}
|
|
611
|
+
interface DeadLetterPage {
|
|
612
|
+
items: DeadLetterItem[];
|
|
613
|
+
}
|
|
614
|
+
interface DeadLetterReplayAccepted {
|
|
615
|
+
id: CardUuid;
|
|
616
|
+
status: 'accepted';
|
|
617
|
+
}
|
|
618
|
+
interface DeliveryReceiverReplacementProperties {
|
|
619
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
620
|
+
approval_ref: string;
|
|
621
|
+
/** Wire validation: {"format":"uri","maxLength":2048,"minLength":1,"pattern":"^https://[^@#]+$"} */
|
|
622
|
+
endpoint_url: string;
|
|
623
|
+
/** Kinds must belong to the approved catalog; authorization.updated requires the approved authorization_updates feature. */
|
|
624
|
+
/** Wire validation: {"maxItems":32,"minItems":1,"uniqueItems":true} */
|
|
625
|
+
event_kinds: ['card.binding.linked' | 'card.binding.relinked' | 'card.binding.revoked' | 'card.binding.route_changed' | 'card.binding.limits_changed' | 'card.binding.ownership_transferred' | 'card.charge.finalized' | 'card.charge.facts_updated' | 'card.authorization.updated' | 'card_program.card_binding.linked' | 'card_program.card_binding.relinked' | 'card_program.card_binding.revoked' | 'card_program.card_binding.route_association_changed' | 'card_program.card_binding.spend_envelope_changed' | 'card_program.card_binding.ownership_transferred' | 'card_program.charge.finalized' | 'card_program.charge.facts_updated' | 'card_program.authorization.updated', ...Array<'card.binding.linked' | 'card.binding.relinked' | 'card.binding.revoked' | 'card.binding.route_changed' | 'card.binding.limits_changed' | 'card.binding.ownership_transferred' | 'card.charge.finalized' | 'card.charge.facts_updated' | 'card.authorization.updated' | 'card_program.card_binding.linked' | 'card_program.card_binding.relinked' | 'card_program.card_binding.revoked' | 'card_program.card_binding.route_association_changed' | 'card_program.card_binding.spend_envelope_changed' | 'card_program.card_binding.ownership_transferred' | 'card_program.charge.finalized' | 'card_program.charge.facts_updated' | 'card_program.authorization.updated'>];
|
|
626
|
+
expected_grant_revision: CardRevision;
|
|
627
|
+
/** Wire validation: {"format":"uuid"} */
|
|
628
|
+
expected_target_revision: string | null;
|
|
629
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
630
|
+
principal_ref: string;
|
|
631
|
+
required_event_catalog_digest: CardDigest;
|
|
632
|
+
/** Published catalogs are immutable. New catalogs do not invalidate approved connections; changing catalog requires a newly approved revision. */
|
|
633
|
+
required_event_catalog_revision: '2026-10-23-green-proposal.4' | '2026-10-23-green-proposal.5' | '2026-11-18-card-events.1';
|
|
634
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
635
|
+
signing_key_id: string;
|
|
636
|
+
}
|
|
637
|
+
type DeliveryReceiverReplacement = DeliveryReceiverReplacementProperties & (({
|
|
638
|
+
required_event_catalog_revision: '2026-10-23-green-proposal.4';
|
|
639
|
+
} & {
|
|
640
|
+
/** Wire validation: {"not":{"contains":{"const":"card_program.authorization.updated"}}} */
|
|
641
|
+
event_kinds?: Exclude<DeliveryReceiverReplacementProperties['event_kinds'][number], 'card_program.authorization.updated'>[];
|
|
642
|
+
required_event_catalog_digest?: 'sha256:117822c07295b7b574f488dfd74a32d4edf3f648e5d2a8333916301354798367';
|
|
643
|
+
}) | ({
|
|
644
|
+
required_event_catalog_revision: Exclude<DeliveryReceiverReplacementProperties['required_event_catalog_revision'], '2026-10-23-green-proposal.4'>;
|
|
645
|
+
})) & (({
|
|
646
|
+
required_event_catalog_revision: '2026-10-23-green-proposal.5';
|
|
647
|
+
} & {
|
|
648
|
+
required_event_catalog_digest?: 'sha256:b17e2170470adda15c7f02e3341f7afeab7680abcfbae6610e1eb6094bf4f6ab';
|
|
649
|
+
}) | ({
|
|
650
|
+
required_event_catalog_revision: Exclude<DeliveryReceiverReplacementProperties['required_event_catalog_revision'], '2026-10-23-green-proposal.5'>;
|
|
651
|
+
})) & (({
|
|
652
|
+
required_event_catalog_revision: '2026-11-18-card-events.1';
|
|
653
|
+
} & {
|
|
654
|
+
required_event_catalog_digest?: 'sha256:9fcad68499ef3f770533ad3f3a4c4950d16c0385c56b2b0af6bba5375038aa98';
|
|
655
|
+
}) | ({
|
|
656
|
+
required_event_catalog_revision: Exclude<DeliveryReceiverReplacementProperties['required_event_catalog_revision'], '2026-11-18-card-events.1'>;
|
|
657
|
+
}));
|
|
658
|
+
type DeliveryGrantTransition = {
|
|
659
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
660
|
+
approval_ref: string;
|
|
661
|
+
expected_grant_revision: CardRevision;
|
|
662
|
+
expected_target_revision: CardUuid;
|
|
663
|
+
/** Wire validation: {"maxLength":64,"minLength":2,"pattern":"^[a-z][a-z0-9_]{1,63}$"} */
|
|
664
|
+
reason_code: string;
|
|
665
|
+
transition: 'activate';
|
|
666
|
+
} | {
|
|
667
|
+
/** Wire validation: {"maxLength":64,"minLength":2,"pattern":"^[a-z][a-z0-9_]{1,63}$"} */
|
|
668
|
+
reason_code: string;
|
|
669
|
+
transition: 'disable' | 'revoke';
|
|
670
|
+
} | {
|
|
671
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
672
|
+
approval_ref: string;
|
|
673
|
+
expected_target_revision: CardUuid;
|
|
674
|
+
new_credential_binding_id: CardUuid;
|
|
675
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
676
|
+
new_credential_key_id: string;
|
|
677
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
678
|
+
new_principal_ref: string;
|
|
679
|
+
/** Wire validation: {"maxLength":64,"minLength":2,"pattern":"^[a-z][a-z0-9_]{1,63}$"} */
|
|
680
|
+
reason_code: string;
|
|
681
|
+
replacement_receiver: DeliveryReceiverReplacement & {
|
|
682
|
+
expected_target_revision?: CardUuid;
|
|
683
|
+
};
|
|
684
|
+
transition: 'handover';
|
|
685
|
+
};
|
|
686
|
+
/** Wire validation: {"pattern":"^pconn_[A-Za-z0-9_-]{16,}$"} */
|
|
687
|
+
type ProgramConnectionId = string;
|
|
688
|
+
interface DeliveryItem {
|
|
689
|
+
accepted_at?: CardTimestamp;
|
|
690
|
+
/** Wire validation: {"minimum":1} */
|
|
691
|
+
connection_sequence: number | null;
|
|
692
|
+
delivery_state: 'pending' | 'held' | 'accepted' | 'failed' | 'dead_lettered' | 'indeterminate';
|
|
693
|
+
event_id: CardUuid;
|
|
694
|
+
/** Wire validation: {"pattern":"^[a-f0-9]{64}$"} */
|
|
695
|
+
event_sha256: string;
|
|
696
|
+
origin_connection_id: ProgramConnectionId;
|
|
697
|
+
target_revision: CardUuid;
|
|
698
|
+
}
|
|
699
|
+
interface DeliveryOperationReceiptProperties {
|
|
700
|
+
/** Wire validation: {"maxItems":100,"minItems":0,"uniqueItems":true} */
|
|
701
|
+
evidence_refs: string[];
|
|
702
|
+
expected_revision: CardRevision;
|
|
703
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
704
|
+
operation: string;
|
|
705
|
+
operation_receipt_id: CardUuid;
|
|
706
|
+
/** Wire validation: {"maxLength":64,"minLength":1} */
|
|
707
|
+
reason_code?: string;
|
|
708
|
+
recorded_at: CardTimestamp;
|
|
709
|
+
request_digest: CardDigest;
|
|
710
|
+
result_revision?: CardRevision;
|
|
711
|
+
scope_ref: ProgramConnectionId;
|
|
712
|
+
status: 'accepted' | 'committed' | 'rejected' | 'indeterminate';
|
|
713
|
+
}
|
|
714
|
+
type DeliveryOperationReceipt = DeliveryOperationReceiptProperties & (({
|
|
715
|
+
status: 'committed';
|
|
716
|
+
} & Required<Pick<DeliveryOperationReceiptProperties, 'result_revision'>>) | ({
|
|
717
|
+
status: Exclude<DeliveryOperationReceiptProperties['status'], 'committed'>;
|
|
718
|
+
})) & (({
|
|
719
|
+
status: 'accepted' | 'rejected' | 'indeterminate';
|
|
720
|
+
} & {
|
|
721
|
+
result_revision?: never;
|
|
722
|
+
}) | ({
|
|
723
|
+
status: Exclude<DeliveryOperationReceiptProperties['status'], 'accepted' | 'rejected' | 'indeterminate'>;
|
|
724
|
+
}));
|
|
725
|
+
/** Wire validation: {"pattern":"^pc_[A-Za-z0-9_-]{16,}$"} */
|
|
726
|
+
type ProviderConnectionId = string;
|
|
727
|
+
interface DeliveryReceiverViewProperties {
|
|
728
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
729
|
+
approval_ref: string;
|
|
730
|
+
callback_endpoint_id: CardUuid;
|
|
731
|
+
created_at: CardTimestamp;
|
|
732
|
+
/** Wire validation: {"format":"uri","maxLength":2048,"minLength":1} */
|
|
733
|
+
endpoint_url: string;
|
|
734
|
+
environment: CardEnvironment;
|
|
735
|
+
/** Wire validation: {"maxItems":32,"minItems":1,"uniqueItems":true} */
|
|
736
|
+
event_kinds: [string, ...Array<string>];
|
|
737
|
+
grant_revision: CardRevision;
|
|
738
|
+
pending_operation_receipt_id?: CardUuid;
|
|
739
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
740
|
+
principal_ref: string;
|
|
741
|
+
program_connection_id: ProgramConnectionId;
|
|
742
|
+
provider_connection_id: ProviderConnectionId;
|
|
743
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
744
|
+
registered_by_actor_ref: string;
|
|
745
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
746
|
+
signing_key_id: string;
|
|
747
|
+
status: 'active' | 'disabled' | 'stopping' | 'indeterminate';
|
|
748
|
+
target_revision: CardUuid;
|
|
749
|
+
updated_at: CardTimestamp;
|
|
750
|
+
}
|
|
751
|
+
type DeliveryReceiverView = DeliveryReceiverViewProperties & (({
|
|
752
|
+
status: 'stopping' | 'indeterminate';
|
|
753
|
+
} & Required<Pick<DeliveryReceiverViewProperties, 'pending_operation_receipt_id'>>) | ({
|
|
754
|
+
status: Exclude<DeliveryReceiverViewProperties['status'], 'stopping' | 'indeterminate'>;
|
|
755
|
+
} & {
|
|
756
|
+
pending_operation_receipt_id?: never;
|
|
757
|
+
}));
|
|
758
|
+
interface DeliveryOperationViewProperties {
|
|
759
|
+
current_receiver?: DeliveryReceiverView;
|
|
760
|
+
effective_at?: CardTimestamp;
|
|
761
|
+
operation_receipt: DeliveryOperationReceipt;
|
|
762
|
+
previous_target_revision?: CardUuid;
|
|
763
|
+
requested_target_revision?: CardUuid;
|
|
764
|
+
status: 'pending' | 'effective' | 'indeterminate' | 'rejected';
|
|
765
|
+
}
|
|
766
|
+
type DeliveryOperationView = DeliveryOperationViewProperties & (({
|
|
767
|
+
status: 'effective';
|
|
768
|
+
} & Required<Pick<DeliveryOperationViewProperties, 'effective_at'>> & {
|
|
769
|
+
operation_receipt?: {
|
|
770
|
+
status?: 'committed';
|
|
771
|
+
};
|
|
772
|
+
}) | ({
|
|
773
|
+
status: Exclude<DeliveryOperationViewProperties['status'], 'effective'>;
|
|
774
|
+
})) & (({
|
|
775
|
+
status: 'pending' | 'indeterminate' | 'rejected';
|
|
776
|
+
} & {
|
|
777
|
+
effective_at?: never;
|
|
778
|
+
current_receiver?: never;
|
|
779
|
+
}) | ({
|
|
780
|
+
status: Exclude<DeliveryOperationViewProperties['status'], 'pending' | 'indeterminate' | 'rejected'>;
|
|
781
|
+
})) & (({
|
|
782
|
+
status: 'pending';
|
|
783
|
+
} & {
|
|
784
|
+
operation_receipt?: {
|
|
785
|
+
status?: 'accepted';
|
|
786
|
+
};
|
|
787
|
+
}) | ({
|
|
788
|
+
status: Exclude<DeliveryOperationViewProperties['status'], 'pending'>;
|
|
789
|
+
})) & (({
|
|
790
|
+
status: 'indeterminate';
|
|
791
|
+
} & {
|
|
792
|
+
operation_receipt?: {
|
|
793
|
+
status?: 'indeterminate';
|
|
794
|
+
};
|
|
795
|
+
}) | ({
|
|
796
|
+
status: Exclude<DeliveryOperationViewProperties['status'], 'indeterminate'>;
|
|
797
|
+
})) & (({
|
|
798
|
+
status: 'rejected';
|
|
799
|
+
} & {
|
|
800
|
+
operation_receipt?: {
|
|
801
|
+
status?: 'rejected';
|
|
802
|
+
};
|
|
803
|
+
}) | ({
|
|
804
|
+
status: Exclude<DeliveryOperationViewProperties['status'], 'rejected'>;
|
|
805
|
+
}));
|
|
806
|
+
interface DeliveryPageProperties {
|
|
807
|
+
complete: boolean;
|
|
808
|
+
/** Wire validation: {"maxItems":100,"minItems":0} */
|
|
809
|
+
items: DeliveryItem[];
|
|
810
|
+
/** Wire validation: {"maxLength":4096} */
|
|
811
|
+
next_cursor: string | null;
|
|
812
|
+
snapshot_at: CardTimestamp;
|
|
813
|
+
/** Wire validation: {"maxLength":4096,"minLength":16} */
|
|
814
|
+
snapshot_token: string;
|
|
815
|
+
to_at: CardTimestamp;
|
|
816
|
+
}
|
|
817
|
+
type DeliveryPage = DeliveryPageProperties & (({
|
|
818
|
+
complete: true;
|
|
819
|
+
} & {
|
|
820
|
+
next_cursor?: null;
|
|
821
|
+
}) | ({
|
|
822
|
+
complete: Exclude<DeliveryPageProperties['complete'], true>;
|
|
823
|
+
}));
|
|
824
|
+
interface DeliveryReceiverTransition {
|
|
825
|
+
expected_target_revision: CardUuid;
|
|
826
|
+
/** Wire validation: {"maxLength":64,"minLength":2,"pattern":"^[a-z][a-z0-9_]{1,63}$"} */
|
|
827
|
+
reason_code: string;
|
|
828
|
+
status: 'disabled';
|
|
829
|
+
}
|
|
830
|
+
interface DeliveryReconciliationListInputProperties {
|
|
831
|
+
/** Wire validation: {"maxLength":4096,"minLength":16} */
|
|
832
|
+
cursor?: string;
|
|
833
|
+
from_at?: CardTimestamp;
|
|
834
|
+
/** Wire validation: {"maximum":100,"minimum":1} */
|
|
835
|
+
page_size: number;
|
|
836
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
837
|
+
program_id: string;
|
|
838
|
+
selection_id?: CardUuid;
|
|
839
|
+
/** Wire validation: {"maxLength":4096,"minLength":16} */
|
|
840
|
+
snapshot_token?: string;
|
|
841
|
+
target_revision: CardUuid;
|
|
842
|
+
to_at?: CardTimestamp;
|
|
843
|
+
}
|
|
844
|
+
type DeliveryReconciliationListInput = DeliveryReconciliationListInputProperties & ((Required<Pick<DeliveryReconciliationListInputProperties, 'selection_id'>> & {
|
|
845
|
+
from_at?: never;
|
|
846
|
+
to_at?: never;
|
|
847
|
+
}) | (Required<Pick<DeliveryReconciliationListInputProperties, 'from_at' | 'to_at'>> & {
|
|
848
|
+
selection_id?: never;
|
|
849
|
+
}));
|
|
850
|
+
interface DeliveryReplayAccepted {
|
|
851
|
+
replay_id: CardUuid;
|
|
852
|
+
selection_id: CardUuid;
|
|
853
|
+
status: 'accepted';
|
|
854
|
+
target_revision: CardUuid;
|
|
855
|
+
}
|
|
856
|
+
interface DeliveryReplayCreateInput {
|
|
857
|
+
/** Wire validation: {"maxLength":512,"minLength":1} */
|
|
858
|
+
program_id: string;
|
|
859
|
+
selection_id: CardUuid;
|
|
860
|
+
}
|
|
861
|
+
interface ExchangeLinkCodeResponse {
|
|
862
|
+
appId: string;
|
|
863
|
+
cardRef?: string | null;
|
|
864
|
+
factoServerWalletAddress?: string | null;
|
|
865
|
+
factoUserId?: string | null;
|
|
866
|
+
grantStatus: string;
|
|
867
|
+
pipelineReady: boolean;
|
|
868
|
+
scopes: string[];
|
|
869
|
+
/**
|
|
870
|
+
* Opaque public link handle (GA contract). Store this; the legacy
|
|
871
|
+
* factoUserId/factoServerWalletAddress fields remain for pre-GA callers.
|
|
872
|
+
*/
|
|
873
|
+
userLinkRef: string;
|
|
874
|
+
}
|
|
875
|
+
interface IntentCancelInput {
|
|
876
|
+
/** Wire validation: {"writeOnly":true} */
|
|
877
|
+
intent_token: string;
|
|
878
|
+
}
|
|
879
|
+
interface IntentCancelled {
|
|
880
|
+
id: ConnectIntentId;
|
|
881
|
+
status: 'cancelled';
|
|
882
|
+
}
|
|
883
|
+
interface IntentCardItem {
|
|
884
|
+
binding_id: CardBindingId;
|
|
885
|
+
card: CardDisplayFacts;
|
|
886
|
+
status: 'active' | 'revoked';
|
|
887
|
+
}
|
|
888
|
+
interface IntentCardList {
|
|
889
|
+
cards: IntentCardItem[];
|
|
890
|
+
id: ConnectIntentId;
|
|
891
|
+
revision: ConnectIntentDigest;
|
|
892
|
+
}
|
|
893
|
+
interface TargetCardInput {
|
|
894
|
+
/** Wire validation: {"maxLength":255,"minLength":1,"not":{"pattern":"[0-9]{13}"}} */
|
|
895
|
+
external_card_id: string;
|
|
896
|
+
last4?: string | null;
|
|
897
|
+
network?: string | null;
|
|
898
|
+
type?: 'virtual' | 'physical' | 'unknown' | null;
|
|
899
|
+
}
|
|
900
|
+
interface IntentCardsReplaceInput {
|
|
901
|
+
/** Wire validation: {"maxLength":255,"minLength":1} */
|
|
902
|
+
approval_id: string;
|
|
903
|
+
/** Wire validation: {"pattern":"^[a-f0-9]{64}$"} */
|
|
904
|
+
approval_sha256: string;
|
|
905
|
+
/** Wire validation: {"maxItems":50} */
|
|
906
|
+
cards: TargetCardInput[];
|
|
907
|
+
external_account_id?: string | null;
|
|
908
|
+
/** Wire validation: {"writeOnly":true} */
|
|
909
|
+
intent_token: string;
|
|
910
|
+
revision: ConnectIntentDigest;
|
|
911
|
+
}
|
|
912
|
+
interface IntentCardsReplaced {
|
|
913
|
+
added_binding_ids: CardBindingId[];
|
|
914
|
+
id: ConnectIntentId;
|
|
915
|
+
kept_binding_ids: CardBindingId[];
|
|
916
|
+
removed_binding_ids: CardBindingId[];
|
|
917
|
+
revision: ConnectIntentDigest;
|
|
918
|
+
status: 'applied' | 'no_change';
|
|
919
|
+
}
|
|
920
|
+
declare const MANDATE_DECLINE_REASON_VALUES: readonly ["mandate_inactive", "mandate_revoked", "mandate_expired", "use_case_not_allowed", "mandate_limit_exceeded", "mandate_period_limit_exceeded", "user_limit_exceeded", "limit_check_unavailable", "payment_path_unavailable", "funding_source_not_authorized", "payment_option_not_pinned", "settlement_reverted", "idempotency_conflict"];
|
|
921
|
+
type MandateDeclineReason = (typeof MANDATE_DECLINE_REASON_VALUES)[number];
|
|
922
|
+
declare const MANDATE_PAYMENT_STATUS_VALUES: readonly ["accepted", "declined", "charging", "finalizing", "succeeded", "paid_via_coverage", "failed", "canceled"];
|
|
923
|
+
type MandatePaymentStatus = (typeof MANDATE_PAYMENT_STATUS_VALUES)[number];
|
|
924
|
+
declare const MANDATE_STATUS_VALUES: readonly ["pending", "active", "paused", "revoked", "expired", "suspended"];
|
|
925
|
+
type MandateStatus = (typeof MANDATE_STATUS_VALUES)[number];
|
|
926
|
+
declare const MANDATE_AUTHORIZATION_SESSION_STATUS_VALUES: readonly ["created", "authorized", "declined", "expired"];
|
|
927
|
+
type MandateAuthorizationSessionStatus = (typeof MANDATE_AUTHORIZATION_SESSION_STATUS_VALUES)[number];
|
|
928
|
+
interface MandatePayment {
|
|
929
|
+
amount: string;
|
|
930
|
+
/**
|
|
931
|
+
* Cumulative refunded amount — merchants compute the remaining
|
|
932
|
+
* refundable headroom as `amount - amountRefunded` without local
|
|
933
|
+
* bookkeeping (spec 012 FR-004).
|
|
934
|
+
*/
|
|
935
|
+
amountRefunded: string;
|
|
936
|
+
chargeId?: string | null;
|
|
937
|
+
/** Wire validation: {"format":"date-time"} */
|
|
938
|
+
createdAt: string;
|
|
939
|
+
currency: string;
|
|
940
|
+
declineReason?: null | MandateDeclineReason;
|
|
941
|
+
/** Wire validation: {"format":"int64","minimum":0} */
|
|
942
|
+
finalityEtaSeconds?: number | null;
|
|
943
|
+
mandateId: string;
|
|
944
|
+
merchantPaymentRef: string;
|
|
945
|
+
paymentId: string;
|
|
946
|
+
status: MandatePaymentStatus;
|
|
947
|
+
/** The name shown on the consumer's billing line. */
|
|
948
|
+
subMerchantDisplayName?: string | null;
|
|
949
|
+
/**
|
|
950
|
+
* Echoed back so a PSP can reconcile without a local join. DISPLAY ONLY:
|
|
951
|
+
* no read path keys, matches, joins or deduplicates on it (migration 281's
|
|
952
|
+
* rule, inherited by 329).
|
|
953
|
+
*/
|
|
954
|
+
subMerchantRef?: string | null;
|
|
955
|
+
/** When the payment reached a terminal status. Serialized as `terminalAt`. */
|
|
956
|
+
/** Wire validation: {"format":"date-time"} */
|
|
957
|
+
terminalAt?: string | null;
|
|
958
|
+
/**
|
|
959
|
+
* On-chain settlement tx hash of the linked charge, stamped by the settler
|
|
960
|
+
* once the payment reaches a terminal status. Serialized as `txHash`.
|
|
961
|
+
*/
|
|
962
|
+
txHash?: string | null;
|
|
963
|
+
/** Wire validation: {"format":"date-time"} */
|
|
964
|
+
updatedAt?: string | null;
|
|
965
|
+
useCase: MandateUseCase;
|
|
966
|
+
}
|
|
967
|
+
/** Property bag shared by every `anyOf` branch of `PaymentCapabilityRequest`. */
|
|
968
|
+
interface PaymentCapabilityRequestProperties {
|
|
969
|
+
/** Legacy shape: merchant app id, sent together with `facto_server_wallet_address`. */
|
|
970
|
+
app_id?: string;
|
|
971
|
+
/** Legacy shape: Facto server wallet address of the linked user. */
|
|
972
|
+
facto_server_wallet_address?: string;
|
|
973
|
+
/** Optional merchant mandate. When present, readiness follows that mandate's pinned route. */
|
|
974
|
+
mandateId?: string;
|
|
975
|
+
/** GA shape: opaque user-link reference minted by the link-code exchange. */
|
|
976
|
+
userLinkRef?: string;
|
|
977
|
+
}
|
|
978
|
+
declare const PAYMENT_READINESS_NOT_READY_REASON_VALUES: readonly ["payment_route_not_provisioned", "protocol_config_incomplete"];
|
|
979
|
+
type PaymentReadinessNotReadyReason = (typeof PAYMENT_READINESS_NOT_READY_REASON_VALUES)[number];
|
|
980
|
+
declare const PAYMENT_READINESS_SCOPE_VALUES: readonly ["account_default", "mandate_pinned"];
|
|
981
|
+
type PaymentReadinessScope = (typeof PAYMENT_READINESS_SCOPE_VALUES)[number];
|
|
982
|
+
interface PaymentCapabilityResponse {
|
|
983
|
+
appId: string;
|
|
984
|
+
assetSymbol: string;
|
|
985
|
+
/** Wire validation: {"format":"int64"} */
|
|
986
|
+
chainId: number;
|
|
987
|
+
factoServerWalletAddress?: string | null;
|
|
988
|
+
factoUserId?: string | null;
|
|
989
|
+
notReadyReason?: null | PaymentReadinessNotReadyReason;
|
|
990
|
+
pipelineReady: boolean;
|
|
991
|
+
protocolId: string;
|
|
992
|
+
readinessScope: PaymentReadinessScope;
|
|
993
|
+
spendMode: string;
|
|
994
|
+
userLinkRef: string;
|
|
995
|
+
}
|
|
996
|
+
interface ProviderProofAccepted {
|
|
997
|
+
binding_session_id: BindingSessionId;
|
|
998
|
+
proof_received_at: CardTimestamp;
|
|
999
|
+
status: 'consent_pending';
|
|
1000
|
+
}
|
|
1001
|
+
interface ProviderProofSubmitPayload {
|
|
1002
|
+
/** Wire validation: {"maxLength":16384,"minLength":128,"pattern":"^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$","writeOnly":true} */
|
|
1003
|
+
binding_assertion: string;
|
|
1004
|
+
proof_format: 'compact-jws';
|
|
1005
|
+
}
|
|
1006
|
+
interface SynchronousAuthorizationApproved {
|
|
1007
|
+
charge_id: string;
|
|
1008
|
+
/** Wire validation: {"format":"date-time"} */
|
|
1009
|
+
deadline_at: string;
|
|
1010
|
+
/** Wire validation: {"format":"date-time"} */
|
|
1011
|
+
decided_at: string;
|
|
1012
|
+
decision: 'approved';
|
|
1013
|
+
/** Wire validation: {"format":"uuid"} */
|
|
1014
|
+
decision_id: string;
|
|
1015
|
+
status: 'approved';
|
|
1016
|
+
}
|
|
1017
|
+
interface SynchronousAuthorizationDeclined {
|
|
1018
|
+
/** Wire validation: {"format":"date-time"} */
|
|
1019
|
+
deadline_at: string;
|
|
1020
|
+
/** Wire validation: {"format":"date-time"} */
|
|
1021
|
+
decided_at: string;
|
|
1022
|
+
decision: 'declined' | 'self_reversed_timeout';
|
|
1023
|
+
/** Wire validation: {"format":"uuid"} */
|
|
1024
|
+
decision_id: string;
|
|
1025
|
+
error: string;
|
|
1026
|
+
message: string;
|
|
1027
|
+
request_id: string;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export type { PaymentReadinessNotReadyReason as $, AuthorizationCreateInput as A, BindingSessionCreate as B, ChargeFinalReceipt as C, DeliveryReconciliationListInput as D, ExchangeLinkCodeResponse as E, DeliveryReplayCreateInput as F, DeliveryReplayAccepted as G, DeadLetterPage as H, IntentCardList as I, DeadLetterReplayAccepted as J, DeliveryReceiverView as K, DeliveryReceiverReplacement as L, DeliveryOperationView as M, DeliveryReceiverTransition as N, DeliveryGrantTransition as O, ProviderProofSubmitPayload as P, MandatePayment as Q, CreateMandatePaymentRequest as R, SynchronousAuthorizationApproved as S, MandateUseCase as T, MandateLimitPeriod as U, PaymentCapabilityRequestProperties as V, PaymentCapabilityResponse as W, MandateAuthorizationSessionStatus as X, MandateStatus as Y, MandatePaymentStatus as Z, MandateDeclineReason as _, BindingSessionCreated as a, PaymentReadinessScope as a0, BindingSessionStatus as b, ProviderProofAccepted as c, BindingProofChallenge as d, IntentCardItem as e, IntentCardsReplaceInput as f, IntentCardsReplaced as g, IntentCancelInput as h, IntentCancelled as i, BindingLookupInput as j, BindingLookupResult as k, BindingSummary as l, SynchronousAuthorizationDeclined as m, AuthorizationDeadlineExceeded as n, AuthorizationAccepted as o, AuthorizationFactInput as p, AuthorizationFactReceipt as q, AuthorizationOperationType as r, AuthorizationLookupResult as s, AuthorizationProjection as t, AuthorizationFacts as u, AuthorizationLifecycle as v, CardInboundEventInput as w, CardInboundEventReceipt as x, DeliveryPage as y, DeliveryItem as z };
|