@402flow/sdk 0.1.0-alpha.1 → 0.1.0-alpha.10

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.
@@ -5,13 +5,25 @@ export declare const settlementEvidenceClassSchema: z.ZodEnum<["none", "inconclu
5
5
  export type SettlementEvidenceClass = z.infer<typeof settlementEvidenceClassSchema>;
6
6
  export declare const fulfillmentStatusSchema: z.ZodEnum<["succeeded", "failed", "inconclusive"]>;
7
7
  export type FulfillmentStatus = z.infer<typeof fulfillmentStatusSchema>;
8
+ export declare const receiptStatusSchema: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
9
+ export type ReceiptStatus = z.infer<typeof receiptStatusSchema>;
10
+ export declare const receiptReconciliationStatusSchema: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
11
+ export type ReceiptReconciliationStatus = z.infer<typeof receiptReconciliationStatusSchema>;
8
12
  export declare const paymentProofSourceSchema: z.ZodEnum<["merchant", "local_simulation"]>;
9
13
  export type PaymentProofSource = z.infer<typeof paymentProofSourceSchema>;
14
+ export declare const chainAttributionStrengthSchema: z.ZodEnum<["strong_request_scoped", "constrained_unique"]>;
15
+ export type ChainAttributionStrength = z.infer<typeof chainAttributionStrengthSchema>;
16
+ export declare const chainConfirmationSourceSchema: z.ZodEnum<["chain_observer"]>;
17
+ export type ChainConfirmationSource = z.infer<typeof chainConfirmationSourceSchema>;
18
+ export declare const chainFinalityLevelSchema: z.ZodEnum<["evm_block_confirmations_12"]>;
19
+ export type ChainFinalityLevel = z.infer<typeof chainFinalityLevelSchema>;
20
+ export declare const chainAttributionBasisSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
21
+ export type ChainAttributionBasis = z.infer<typeof chainAttributionBasisSchema>;
10
22
  export declare const paidRequestProtocolSchema: z.ZodEnum<["x402", "l402"]>;
11
23
  export type PaidRequestProtocol = z.infer<typeof paidRequestProtocolSchema>;
12
24
  export declare const paidRequestHttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
13
25
  export type PaidRequestHttpMethod = z.infer<typeof paidRequestHttpMethodSchema>;
14
- export declare const paidRequestReasonCodeSchema: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
26
+ export declare const paidRequestReasonCodeSchema: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "merchant_execution_failed", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
15
27
  export type PaidRequestReasonCode = z.infer<typeof paidRequestReasonCodeSchema>;
16
28
  export declare const defaultMoneyPrecision = 6;
17
29
  export declare const externalIdSchema: z.ZodString;
@@ -54,31 +66,22 @@ export type NormalizedMoney = z.infer<typeof normalizedMoneySchema>;
54
66
  export declare const paidRequestContextSchema: z.ZodObject<{
55
67
  organization: z.ZodString;
56
68
  agent: z.ZodString;
57
- purpose: z.ZodOptional<z.ZodString>;
69
+ description: z.ZodOptional<z.ZodString>;
58
70
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
71
  }, "strip", z.ZodTypeAny, {
60
72
  organization: string;
61
73
  agent: string;
62
- purpose?: string | undefined;
74
+ description?: string | undefined;
63
75
  metadata?: Record<string, unknown> | undefined;
64
76
  }, {
65
77
  organization: string;
66
78
  agent: string;
67
- purpose?: string | undefined;
79
+ description?: string | undefined;
68
80
  metadata?: Record<string, unknown> | undefined;
69
81
  }>;
70
82
  export type PaidRequestContext = z.infer<typeof paidRequestContextSchema>;
71
- export declare const paidRequestTargetSchema: z.ZodObject<{
72
- merchant: z.ZodString;
73
- paymentRail: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- merchant: string;
76
- paymentRail: string;
77
- }, {
78
- merchant: string;
79
- paymentRail: string;
80
- }>;
81
- export type PaidRequestTarget = z.infer<typeof paidRequestTargetSchema>;
83
+ export declare const paidRequestPaymentRailSchema: z.ZodString;
84
+ export type PaidRequestPaymentRail = z.infer<typeof paidRequestPaymentRailSchema>;
82
85
  export declare const paidRequestHttpRequestSchema: z.ZodObject<{
83
86
  url: z.ZodString;
84
87
  method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
@@ -101,93 +104,35 @@ export declare const paidRequestHttpRequestSchema: z.ZodObject<{
101
104
  export type PaidRequestHttpRequest = z.infer<typeof paidRequestHttpRequestSchema>;
102
105
  export declare const paidRequestChallengeSchema: z.ZodObject<{
103
106
  protocol: z.ZodEnum<["x402", "l402"]>;
104
- money: z.ZodEffects<z.ZodObject<{
105
- asset: z.ZodString;
106
- amount: z.ZodString;
107
- amountMinor: z.ZodString;
108
- precision: z.ZodNumber;
109
- unit: z.ZodLiteral<"minor">;
110
- }, "strip", z.ZodTypeAny, {
111
- asset: string;
112
- amount: string;
113
- amountMinor: string;
114
- precision: number;
115
- unit: "minor";
116
- }, {
117
- asset: string;
118
- amount: string;
119
- amountMinor: string;
120
- precision: number;
121
- unit: "minor";
122
- }>, {
123
- asset: string;
124
- amount: string;
125
- amountMinor: string;
126
- precision: number;
127
- unit: "minor";
128
- }, {
129
- asset: string;
130
- amount: string;
131
- amountMinor: string;
132
- precision: number;
133
- unit: "minor";
134
- }>;
135
- payee: z.ZodOptional<z.ZodString>;
136
- memo: z.ZodOptional<z.ZodString>;
137
- raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ body: z.ZodOptional<z.ZodUnknown>;
138
109
  }, "strip", z.ZodTypeAny, {
110
+ headers: Record<string, string>;
139
111
  protocol: "x402" | "l402";
140
- money: {
141
- asset: string;
142
- amount: string;
143
- amountMinor: string;
144
- precision: number;
145
- unit: "minor";
146
- };
147
- raw: Record<string, unknown>;
148
- payee?: string | undefined;
149
- memo?: string | undefined;
112
+ body?: unknown;
150
113
  }, {
151
114
  protocol: "x402" | "l402";
152
- money: {
153
- asset: string;
154
- amount: string;
155
- amountMinor: string;
156
- precision: number;
157
- unit: "minor";
158
- };
159
- payee?: string | undefined;
160
- memo?: string | undefined;
161
- raw?: Record<string, unknown> | undefined;
115
+ headers?: Record<string, string> | undefined;
116
+ body?: unknown;
162
117
  }>;
163
118
  export type PaidRequestChallenge = z.infer<typeof paidRequestChallengeSchema>;
164
119
  export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
165
120
  context: z.ZodObject<{
166
121
  organization: z.ZodString;
167
122
  agent: z.ZodString;
168
- purpose: z.ZodOptional<z.ZodString>;
123
+ description: z.ZodOptional<z.ZodString>;
169
124
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
125
  }, "strip", z.ZodTypeAny, {
171
126
  organization: string;
172
127
  agent: string;
173
- purpose?: string | undefined;
128
+ description?: string | undefined;
174
129
  metadata?: Record<string, unknown> | undefined;
175
130
  }, {
176
131
  organization: string;
177
132
  agent: string;
178
- purpose?: string | undefined;
133
+ description?: string | undefined;
179
134
  metadata?: Record<string, unknown> | undefined;
180
135
  }>;
181
- target: z.ZodObject<{
182
- merchant: z.ZodString;
183
- paymentRail: z.ZodString;
184
- }, "strip", z.ZodTypeAny, {
185
- merchant: string;
186
- paymentRail: string;
187
- }, {
188
- merchant: string;
189
- paymentRail: string;
190
- }>;
191
136
  request: z.ZodObject<{
192
137
  url: z.ZodString;
193
138
  method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
@@ -209,77 +154,26 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
209
154
  }>;
210
155
  challenge: z.ZodObject<{
211
156
  protocol: z.ZodEnum<["x402", "l402"]>;
212
- money: z.ZodEffects<z.ZodObject<{
213
- asset: z.ZodString;
214
- amount: z.ZodString;
215
- amountMinor: z.ZodString;
216
- precision: z.ZodNumber;
217
- unit: z.ZodLiteral<"minor">;
218
- }, "strip", z.ZodTypeAny, {
219
- asset: string;
220
- amount: string;
221
- amountMinor: string;
222
- precision: number;
223
- unit: "minor";
224
- }, {
225
- asset: string;
226
- amount: string;
227
- amountMinor: string;
228
- precision: number;
229
- unit: "minor";
230
- }>, {
231
- asset: string;
232
- amount: string;
233
- amountMinor: string;
234
- precision: number;
235
- unit: "minor";
236
- }, {
237
- asset: string;
238
- amount: string;
239
- amountMinor: string;
240
- precision: number;
241
- unit: "minor";
242
- }>;
243
- payee: z.ZodOptional<z.ZodString>;
244
- memo: z.ZodOptional<z.ZodString>;
245
- raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
157
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
158
+ body: z.ZodOptional<z.ZodUnknown>;
246
159
  }, "strip", z.ZodTypeAny, {
160
+ headers: Record<string, string>;
247
161
  protocol: "x402" | "l402";
248
- money: {
249
- asset: string;
250
- amount: string;
251
- amountMinor: string;
252
- precision: number;
253
- unit: "minor";
254
- };
255
- raw: Record<string, unknown>;
256
- payee?: string | undefined;
257
- memo?: string | undefined;
162
+ body?: unknown;
258
163
  }, {
259
164
  protocol: "x402" | "l402";
260
- money: {
261
- asset: string;
262
- amount: string;
263
- amountMinor: string;
264
- precision: number;
265
- unit: "minor";
266
- };
267
- payee?: string | undefined;
268
- memo?: string | undefined;
269
- raw?: Record<string, unknown> | undefined;
165
+ headers?: Record<string, string> | undefined;
166
+ body?: unknown;
270
167
  }>;
168
+ paymentRail: z.ZodOptional<z.ZodString>;
271
169
  idempotencyKey: z.ZodOptional<z.ZodString>;
272
170
  }, "strip", z.ZodTypeAny, {
273
171
  context: {
274
172
  organization: string;
275
173
  agent: string;
276
- purpose?: string | undefined;
174
+ description?: string | undefined;
277
175
  metadata?: Record<string, unknown> | undefined;
278
176
  };
279
- target: {
280
- merchant: string;
281
- paymentRail: string;
282
- };
283
177
  request: {
284
178
  url: string;
285
179
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
@@ -288,30 +182,19 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
288
182
  bodyHash?: string | undefined;
289
183
  };
290
184
  challenge: {
185
+ headers: Record<string, string>;
291
186
  protocol: "x402" | "l402";
292
- money: {
293
- asset: string;
294
- amount: string;
295
- amountMinor: string;
296
- precision: number;
297
- unit: "minor";
298
- };
299
- raw: Record<string, unknown>;
300
- payee?: string | undefined;
301
- memo?: string | undefined;
187
+ body?: unknown;
302
188
  };
189
+ paymentRail?: string | undefined;
303
190
  idempotencyKey?: string | undefined;
304
191
  }, {
305
192
  context: {
306
193
  organization: string;
307
194
  agent: string;
308
- purpose?: string | undefined;
195
+ description?: string | undefined;
309
196
  metadata?: Record<string, unknown> | undefined;
310
197
  };
311
- target: {
312
- merchant: string;
313
- paymentRail: string;
314
- };
315
198
  request: {
316
199
  url: string;
317
200
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
@@ -321,17 +204,10 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
321
204
  };
322
205
  challenge: {
323
206
  protocol: "x402" | "l402";
324
- money: {
325
- asset: string;
326
- amount: string;
327
- amountMinor: string;
328
- precision: number;
329
- unit: "minor";
330
- };
331
- payee?: string | undefined;
332
- memo?: string | undefined;
333
- raw?: Record<string, unknown> | undefined;
207
+ headers?: Record<string, string> | undefined;
208
+ body?: unknown;
334
209
  };
210
+ paymentRail?: string | undefined;
335
211
  idempotencyKey?: string | undefined;
336
212
  }>;
337
213
  export type SdkPaymentDecisionRequest = z.infer<typeof sdkPaymentDecisionRequestSchema>;
@@ -341,7 +217,7 @@ export declare const sdkReceiptSchema: z.ZodObject<{
341
217
  paymentAttemptId: z.ZodString;
342
218
  organizationId: z.ZodString;
343
219
  agentId: z.ZodString;
344
- merchantId: z.ZodString;
220
+ merchantId: z.ZodOptional<z.ZodString>;
345
221
  protocol: z.ZodEnum<["x402", "l402"]>;
346
222
  money: z.ZodEffects<z.ZodObject<{
347
223
  asset: z.ZodString;
@@ -375,17 +251,33 @@ export declare const sdkReceiptSchema: z.ZodObject<{
375
251
  unit: "minor";
376
252
  }>;
377
253
  authorizationOutcome: z.ZodEnum<["allowed"]>;
254
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
255
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
256
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
257
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
258
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
259
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
260
+ confirmedAt: z.ZodOptional<z.ZodString>;
261
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
378
262
  requestUrl: z.ZodString;
379
263
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
264
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
380
265
  paymentReference: z.ZodOptional<z.ZodString>;
381
266
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
382
267
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
383
268
  settlementIdentifier: z.ZodOptional<z.ZodString>;
269
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
384
270
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
385
271
  createdAt: z.ZodString;
386
272
  completedAt: z.ZodOptional<z.ZodString>;
387
273
  }, "strip", z.ZodTypeAny, {
274
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
388
275
  protocol: "x402" | "l402";
276
+ receiptId: string;
277
+ paidRequestId: string;
278
+ paymentAttemptId: string;
279
+ organizationId: string;
280
+ agentId: string;
389
281
  money: {
390
282
  asset: string;
391
283
  amount: string;
@@ -393,24 +285,34 @@ export declare const sdkReceiptSchema: z.ZodObject<{
393
285
  precision: number;
394
286
  unit: "minor";
395
287
  };
396
- receiptId: string;
397
- paidRequestId: string;
398
- paymentAttemptId: string;
399
- organizationId: string;
400
- agentId: string;
401
- merchantId: string;
402
288
  authorizationOutcome: "allowed";
289
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
403
290
  requestUrl: string;
404
291
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
405
292
  createdAt: string;
293
+ merchantId?: string | undefined;
294
+ confirmationSource?: "chain_observer" | undefined;
295
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
296
+ attributionBasis?: Record<string, unknown> | undefined;
297
+ attributionRuleVersion?: string | undefined;
298
+ confirmedAt?: string | undefined;
299
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
300
+ canonicalSettlementKey?: string | undefined;
406
301
  paymentReference?: string | undefined;
407
302
  evidenceSource?: "merchant" | "local_simulation" | undefined;
408
303
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
409
304
  settlementIdentifier?: string | undefined;
305
+ supersededByReceiptId?: string | undefined;
410
306
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
411
307
  completedAt?: string | undefined;
412
308
  }, {
309
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
413
310
  protocol: "x402" | "l402";
311
+ receiptId: string;
312
+ paidRequestId: string;
313
+ paymentAttemptId: string;
314
+ organizationId: string;
315
+ agentId: string;
414
316
  money: {
415
317
  asset: string;
416
318
  amount: string;
@@ -418,20 +320,24 @@ export declare const sdkReceiptSchema: z.ZodObject<{
418
320
  precision: number;
419
321
  unit: "minor";
420
322
  };
421
- receiptId: string;
422
- paidRequestId: string;
423
- paymentAttemptId: string;
424
- organizationId: string;
425
- agentId: string;
426
- merchantId: string;
427
323
  authorizationOutcome: "allowed";
324
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
428
325
  requestUrl: string;
429
326
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
430
327
  createdAt: string;
328
+ merchantId?: string | undefined;
329
+ confirmationSource?: "chain_observer" | undefined;
330
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
331
+ attributionBasis?: Record<string, unknown> | undefined;
332
+ attributionRuleVersion?: string | undefined;
333
+ confirmedAt?: string | undefined;
334
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
335
+ canonicalSettlementKey?: string | undefined;
431
336
  paymentReference?: string | undefined;
432
337
  evidenceSource?: "merchant" | "local_simulation" | undefined;
433
338
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
434
339
  settlementIdentifier?: string | undefined;
340
+ supersededByReceiptId?: string | undefined;
435
341
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
436
342
  completedAt?: string | undefined;
437
343
  }>;
@@ -454,7 +360,7 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
454
360
  outcome: z.ZodLiteral<"allow">;
455
361
  paidRequestId: z.ZodString;
456
362
  paymentAttemptId: z.ZodString;
457
- reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
363
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "merchant_execution_failed", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
458
364
  reason: z.ZodString;
459
365
  merchantResponse: z.ZodObject<{
460
366
  status: z.ZodNumber;
@@ -475,7 +381,7 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
475
381
  paymentAttemptId: z.ZodString;
476
382
  organizationId: z.ZodString;
477
383
  agentId: z.ZodString;
478
- merchantId: z.ZodString;
384
+ merchantId: z.ZodOptional<z.ZodString>;
479
385
  protocol: z.ZodEnum<["x402", "l402"]>;
480
386
  money: z.ZodEffects<z.ZodObject<{
481
387
  asset: z.ZodString;
@@ -509,17 +415,33 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
509
415
  unit: "minor";
510
416
  }>;
511
417
  authorizationOutcome: z.ZodEnum<["allowed"]>;
418
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
419
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
420
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
421
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
422
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
423
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
424
+ confirmedAt: z.ZodOptional<z.ZodString>;
425
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
512
426
  requestUrl: z.ZodString;
513
427
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
428
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
514
429
  paymentReference: z.ZodOptional<z.ZodString>;
515
430
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
516
431
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
517
432
  settlementIdentifier: z.ZodOptional<z.ZodString>;
433
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
518
434
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
519
435
  createdAt: z.ZodString;
520
436
  completedAt: z.ZodOptional<z.ZodString>;
521
437
  }, "strip", z.ZodTypeAny, {
438
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
522
439
  protocol: "x402" | "l402";
440
+ receiptId: string;
441
+ paidRequestId: string;
442
+ paymentAttemptId: string;
443
+ organizationId: string;
444
+ agentId: string;
523
445
  money: {
524
446
  asset: string;
525
447
  amount: string;
@@ -527,24 +449,34 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
527
449
  precision: number;
528
450
  unit: "minor";
529
451
  };
530
- receiptId: string;
531
- paidRequestId: string;
532
- paymentAttemptId: string;
533
- organizationId: string;
534
- agentId: string;
535
- merchantId: string;
536
452
  authorizationOutcome: "allowed";
453
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
537
454
  requestUrl: string;
538
455
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
539
456
  createdAt: string;
457
+ merchantId?: string | undefined;
458
+ confirmationSource?: "chain_observer" | undefined;
459
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
460
+ attributionBasis?: Record<string, unknown> | undefined;
461
+ attributionRuleVersion?: string | undefined;
462
+ confirmedAt?: string | undefined;
463
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
464
+ canonicalSettlementKey?: string | undefined;
540
465
  paymentReference?: string | undefined;
541
466
  evidenceSource?: "merchant" | "local_simulation" | undefined;
542
467
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
543
468
  settlementIdentifier?: string | undefined;
469
+ supersededByReceiptId?: string | undefined;
544
470
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
545
471
  completedAt?: string | undefined;
546
472
  }, {
473
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
547
474
  protocol: "x402" | "l402";
475
+ receiptId: string;
476
+ paidRequestId: string;
477
+ paymentAttemptId: string;
478
+ organizationId: string;
479
+ agentId: string;
548
480
  money: {
549
481
  asset: string;
550
482
  amount: string;
@@ -552,20 +484,24 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
552
484
  precision: number;
553
485
  unit: "minor";
554
486
  };
555
- receiptId: string;
556
- paidRequestId: string;
557
- paymentAttemptId: string;
558
- organizationId: string;
559
- agentId: string;
560
- merchantId: string;
561
487
  authorizationOutcome: "allowed";
488
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
562
489
  requestUrl: string;
563
490
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
564
491
  createdAt: string;
492
+ merchantId?: string | undefined;
493
+ confirmationSource?: "chain_observer" | undefined;
494
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
495
+ attributionBasis?: Record<string, unknown> | undefined;
496
+ attributionRuleVersion?: string | undefined;
497
+ confirmedAt?: string | undefined;
498
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
499
+ canonicalSettlementKey?: string | undefined;
565
500
  paymentReference?: string | undefined;
566
501
  evidenceSource?: "merchant" | "local_simulation" | undefined;
567
502
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
568
503
  settlementIdentifier?: string | undefined;
504
+ supersededByReceiptId?: string | undefined;
569
505
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
570
506
  completedAt?: string | undefined;
571
507
  }>;
@@ -573,7 +509,7 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
573
509
  paidRequestId: string;
574
510
  paymentAttemptId: string;
575
511
  outcome: "allow";
576
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
512
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
577
513
  reason: string;
578
514
  merchantResponse: {
579
515
  status: number;
@@ -581,7 +517,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
581
517
  body: string;
582
518
  };
583
519
  receipt: {
520
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
584
521
  protocol: "x402" | "l402";
522
+ receiptId: string;
523
+ paidRequestId: string;
524
+ paymentAttemptId: string;
525
+ organizationId: string;
526
+ agentId: string;
585
527
  money: {
586
528
  asset: string;
587
529
  amount: string;
@@ -589,20 +531,24 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
589
531
  precision: number;
590
532
  unit: "minor";
591
533
  };
592
- receiptId: string;
593
- paidRequestId: string;
594
- paymentAttemptId: string;
595
- organizationId: string;
596
- agentId: string;
597
- merchantId: string;
598
534
  authorizationOutcome: "allowed";
535
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
599
536
  requestUrl: string;
600
537
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
601
538
  createdAt: string;
539
+ merchantId?: string | undefined;
540
+ confirmationSource?: "chain_observer" | undefined;
541
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
542
+ attributionBasis?: Record<string, unknown> | undefined;
543
+ attributionRuleVersion?: string | undefined;
544
+ confirmedAt?: string | undefined;
545
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
546
+ canonicalSettlementKey?: string | undefined;
602
547
  paymentReference?: string | undefined;
603
548
  evidenceSource?: "merchant" | "local_simulation" | undefined;
604
549
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
605
550
  settlementIdentifier?: string | undefined;
551
+ supersededByReceiptId?: string | undefined;
606
552
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
607
553
  completedAt?: string | undefined;
608
554
  };
@@ -610,7 +556,7 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
610
556
  paidRequestId: string;
611
557
  paymentAttemptId: string;
612
558
  outcome: "allow";
613
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
559
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
614
560
  reason: string;
615
561
  merchantResponse: {
616
562
  status: number;
@@ -618,7 +564,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
618
564
  body?: string | undefined;
619
565
  };
620
566
  receipt: {
567
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
621
568
  protocol: "x402" | "l402";
569
+ receiptId: string;
570
+ paidRequestId: string;
571
+ paymentAttemptId: string;
572
+ organizationId: string;
573
+ agentId: string;
622
574
  money: {
623
575
  asset: string;
624
576
  amount: string;
@@ -626,20 +578,24 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
626
578
  precision: number;
627
579
  unit: "minor";
628
580
  };
629
- receiptId: string;
630
- paidRequestId: string;
631
- paymentAttemptId: string;
632
- organizationId: string;
633
- agentId: string;
634
- merchantId: string;
635
581
  authorizationOutcome: "allowed";
582
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
636
583
  requestUrl: string;
637
584
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
638
585
  createdAt: string;
586
+ merchantId?: string | undefined;
587
+ confirmationSource?: "chain_observer" | undefined;
588
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
589
+ attributionBasis?: Record<string, unknown> | undefined;
590
+ attributionRuleVersion?: string | undefined;
591
+ confirmedAt?: string | undefined;
592
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
593
+ canonicalSettlementKey?: string | undefined;
639
594
  paymentReference?: string | undefined;
640
595
  evidenceSource?: "merchant" | "local_simulation" | undefined;
641
596
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
642
597
  settlementIdentifier?: string | undefined;
598
+ supersededByReceiptId?: string | undefined;
643
599
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
644
600
  completedAt?: string | undefined;
645
601
  };
@@ -648,7 +604,7 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
648
604
  outcome: z.ZodLiteral<"paid_fulfillment_failed">;
649
605
  paidRequestId: z.ZodString;
650
606
  paymentAttemptId: z.ZodString;
651
- reasonCode: z.ZodLiteral<"merchant_rejected">;
607
+ reasonCode: z.ZodEnum<["merchant_rejected", "merchant_execution_failed"]>;
652
608
  reason: z.ZodString;
653
609
  merchantResponse: z.ZodObject<{
654
610
  status: z.ZodNumber;
@@ -671,7 +627,7 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
671
627
  paymentAttemptId: z.ZodString;
672
628
  organizationId: z.ZodString;
673
629
  agentId: z.ZodString;
674
- merchantId: z.ZodString;
630
+ merchantId: z.ZodOptional<z.ZodString>;
675
631
  protocol: z.ZodEnum<["x402", "l402"]>;
676
632
  money: z.ZodEffects<z.ZodObject<{
677
633
  asset: z.ZodString;
@@ -705,17 +661,33 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
705
661
  unit: "minor";
706
662
  }>;
707
663
  authorizationOutcome: z.ZodEnum<["allowed"]>;
664
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
665
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
666
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
667
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
668
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
669
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
670
+ confirmedAt: z.ZodOptional<z.ZodString>;
671
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
708
672
  requestUrl: z.ZodString;
709
673
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
674
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
710
675
  paymentReference: z.ZodOptional<z.ZodString>;
711
676
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
712
677
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
713
678
  settlementIdentifier: z.ZodOptional<z.ZodString>;
679
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
714
680
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
715
681
  createdAt: z.ZodString;
716
682
  completedAt: z.ZodOptional<z.ZodString>;
717
683
  }, "strip", z.ZodTypeAny, {
684
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
718
685
  protocol: "x402" | "l402";
686
+ receiptId: string;
687
+ paidRequestId: string;
688
+ paymentAttemptId: string;
689
+ organizationId: string;
690
+ agentId: string;
719
691
  money: {
720
692
  asset: string;
721
693
  amount: string;
@@ -723,24 +695,34 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
723
695
  precision: number;
724
696
  unit: "minor";
725
697
  };
726
- receiptId: string;
727
- paidRequestId: string;
728
- paymentAttemptId: string;
729
- organizationId: string;
730
- agentId: string;
731
- merchantId: string;
732
698
  authorizationOutcome: "allowed";
699
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
733
700
  requestUrl: string;
734
701
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
735
702
  createdAt: string;
703
+ merchantId?: string | undefined;
704
+ confirmationSource?: "chain_observer" | undefined;
705
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
706
+ attributionBasis?: Record<string, unknown> | undefined;
707
+ attributionRuleVersion?: string | undefined;
708
+ confirmedAt?: string | undefined;
709
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
710
+ canonicalSettlementKey?: string | undefined;
736
711
  paymentReference?: string | undefined;
737
712
  evidenceSource?: "merchant" | "local_simulation" | undefined;
738
713
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
739
714
  settlementIdentifier?: string | undefined;
715
+ supersededByReceiptId?: string | undefined;
740
716
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
741
717
  completedAt?: string | undefined;
742
718
  }, {
719
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
743
720
  protocol: "x402" | "l402";
721
+ receiptId: string;
722
+ paidRequestId: string;
723
+ paymentAttemptId: string;
724
+ organizationId: string;
725
+ agentId: string;
744
726
  money: {
745
727
  asset: string;
746
728
  amount: string;
@@ -748,20 +730,24 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
748
730
  precision: number;
749
731
  unit: "minor";
750
732
  };
751
- receiptId: string;
752
- paidRequestId: string;
753
- paymentAttemptId: string;
754
- organizationId: string;
755
- agentId: string;
756
- merchantId: string;
757
733
  authorizationOutcome: "allowed";
734
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
758
735
  requestUrl: string;
759
736
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
760
737
  createdAt: string;
738
+ merchantId?: string | undefined;
739
+ confirmationSource?: "chain_observer" | undefined;
740
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
741
+ attributionBasis?: Record<string, unknown> | undefined;
742
+ attributionRuleVersion?: string | undefined;
743
+ confirmedAt?: string | undefined;
744
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
745
+ canonicalSettlementKey?: string | undefined;
761
746
  paymentReference?: string | undefined;
762
747
  evidenceSource?: "merchant" | "local_simulation" | undefined;
763
748
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
764
749
  settlementIdentifier?: string | undefined;
750
+ supersededByReceiptId?: string | undefined;
765
751
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
766
752
  completedAt?: string | undefined;
767
753
  }>;
@@ -772,7 +758,7 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
772
758
  settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
773
759
  fulfillmentStatus: "failed";
774
760
  outcome: "paid_fulfillment_failed";
775
- reasonCode: "merchant_rejected";
761
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
776
762
  reason: string;
777
763
  merchantResponse: {
778
764
  status: number;
@@ -780,7 +766,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
780
766
  body: string;
781
767
  };
782
768
  receipt: {
769
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
783
770
  protocol: "x402" | "l402";
771
+ receiptId: string;
772
+ paidRequestId: string;
773
+ paymentAttemptId: string;
774
+ organizationId: string;
775
+ agentId: string;
784
776
  money: {
785
777
  asset: string;
786
778
  amount: string;
@@ -788,20 +780,24 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
788
780
  precision: number;
789
781
  unit: "minor";
790
782
  };
791
- receiptId: string;
792
- paidRequestId: string;
793
- paymentAttemptId: string;
794
- organizationId: string;
795
- agentId: string;
796
- merchantId: string;
797
783
  authorizationOutcome: "allowed";
784
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
798
785
  requestUrl: string;
799
786
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
800
787
  createdAt: string;
788
+ merchantId?: string | undefined;
789
+ confirmationSource?: "chain_observer" | undefined;
790
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
791
+ attributionBasis?: Record<string, unknown> | undefined;
792
+ attributionRuleVersion?: string | undefined;
793
+ confirmedAt?: string | undefined;
794
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
795
+ canonicalSettlementKey?: string | undefined;
801
796
  paymentReference?: string | undefined;
802
797
  evidenceSource?: "merchant" | "local_simulation" | undefined;
803
798
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
804
799
  settlementIdentifier?: string | undefined;
800
+ supersededByReceiptId?: string | undefined;
805
801
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
806
802
  completedAt?: string | undefined;
807
803
  };
@@ -812,7 +808,7 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
812
808
  settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
813
809
  fulfillmentStatus: "failed";
814
810
  outcome: "paid_fulfillment_failed";
815
- reasonCode: "merchant_rejected";
811
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
816
812
  reason: string;
817
813
  merchantResponse: {
818
814
  status: number;
@@ -820,7 +816,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
820
816
  body?: string | undefined;
821
817
  };
822
818
  receipt: {
819
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
823
820
  protocol: "x402" | "l402";
821
+ receiptId: string;
822
+ paidRequestId: string;
823
+ paymentAttemptId: string;
824
+ organizationId: string;
825
+ agentId: string;
824
826
  money: {
825
827
  asset: string;
826
828
  amount: string;
@@ -828,20 +830,24 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
828
830
  precision: number;
829
831
  unit: "minor";
830
832
  };
831
- receiptId: string;
832
- paidRequestId: string;
833
- paymentAttemptId: string;
834
- organizationId: string;
835
- agentId: string;
836
- merchantId: string;
837
833
  authorizationOutcome: "allowed";
834
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
838
835
  requestUrl: string;
839
836
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
840
837
  createdAt: string;
838
+ merchantId?: string | undefined;
839
+ confirmationSource?: "chain_observer" | undefined;
840
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
841
+ attributionBasis?: Record<string, unknown> | undefined;
842
+ attributionRuleVersion?: string | undefined;
843
+ confirmedAt?: string | undefined;
844
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
845
+ canonicalSettlementKey?: string | undefined;
841
846
  paymentReference?: string | undefined;
842
847
  evidenceSource?: "merchant" | "local_simulation" | undefined;
843
848
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
844
849
  settlementIdentifier?: string | undefined;
850
+ supersededByReceiptId?: string | undefined;
845
851
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
846
852
  completedAt?: string | undefined;
847
853
  };
@@ -851,7 +857,7 @@ export declare const sdkPaymentDecisionExecutionFailedResponseSchema: z.ZodObjec
851
857
  outcome: z.ZodLiteral<"execution_failed">;
852
858
  paidRequestId: z.ZodString;
853
859
  paymentAttemptId: z.ZodString;
854
- reasonCode: z.ZodEnum<["merchant_rejected", "settlement_proof_conflict"]>;
860
+ reasonCode: z.ZodEnum<["merchant_rejected", "merchant_execution_failed"]>;
855
861
  reason: z.ZodString;
856
862
  merchantResponse: z.ZodObject<{
857
863
  status: z.ZodNumber;
@@ -871,7 +877,7 @@ export declare const sdkPaymentDecisionExecutionFailedResponseSchema: z.ZodObjec
871
877
  paidRequestId: string;
872
878
  paymentAttemptId: string;
873
879
  outcome: "execution_failed";
874
- reasonCode: "merchant_rejected" | "settlement_proof_conflict";
880
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
875
881
  reason: string;
876
882
  merchantResponse: {
877
883
  status: number;
@@ -883,7 +889,7 @@ export declare const sdkPaymentDecisionExecutionFailedResponseSchema: z.ZodObjec
883
889
  paidRequestId: string;
884
890
  paymentAttemptId: string;
885
891
  outcome: "execution_failed";
886
- reasonCode: "merchant_rejected" | "settlement_proof_conflict";
892
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
887
893
  reason: string;
888
894
  merchantResponse: {
889
895
  status: number;
@@ -958,18 +964,18 @@ export declare const sdkPaymentDecisionInconclusiveResponseSchema: z.ZodObject<{
958
964
  export declare const sdkPaymentDecisionDenyResponseSchema: z.ZodObject<{
959
965
  outcome: z.ZodLiteral<"deny">;
960
966
  paidRequestId: z.ZodOptional<z.ZodString>;
961
- reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
967
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "merchant_execution_failed", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
962
968
  reason: z.ZodString;
963
969
  policyReviewEventId: z.ZodOptional<z.ZodString>;
964
970
  }, "strip", z.ZodTypeAny, {
965
971
  outcome: "deny";
966
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
972
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
967
973
  reason: string;
968
974
  paidRequestId?: string | undefined;
969
975
  policyReviewEventId?: string | undefined;
970
976
  }, {
971
977
  outcome: "deny";
972
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
978
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
973
979
  reason: string;
974
980
  paidRequestId?: string | undefined;
975
981
  policyReviewEventId?: string | undefined;
@@ -978,7 +984,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
978
984
  outcome: z.ZodLiteral<"allow">;
979
985
  paidRequestId: z.ZodString;
980
986
  paymentAttemptId: z.ZodString;
981
- reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
987
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "merchant_execution_failed", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
982
988
  reason: z.ZodString;
983
989
  merchantResponse: z.ZodObject<{
984
990
  status: z.ZodNumber;
@@ -999,7 +1005,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
999
1005
  paymentAttemptId: z.ZodString;
1000
1006
  organizationId: z.ZodString;
1001
1007
  agentId: z.ZodString;
1002
- merchantId: z.ZodString;
1008
+ merchantId: z.ZodOptional<z.ZodString>;
1003
1009
  protocol: z.ZodEnum<["x402", "l402"]>;
1004
1010
  money: z.ZodEffects<z.ZodObject<{
1005
1011
  asset: z.ZodString;
@@ -1033,17 +1039,33 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1033
1039
  unit: "minor";
1034
1040
  }>;
1035
1041
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1042
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1043
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
1044
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
1045
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
1046
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1047
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
1048
+ confirmedAt: z.ZodOptional<z.ZodString>;
1049
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
1036
1050
  requestUrl: z.ZodString;
1037
1051
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1052
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
1038
1053
  paymentReference: z.ZodOptional<z.ZodString>;
1039
1054
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1040
1055
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1041
1056
  settlementIdentifier: z.ZodOptional<z.ZodString>;
1057
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
1042
1058
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1043
1059
  createdAt: z.ZodString;
1044
1060
  completedAt: z.ZodOptional<z.ZodString>;
1045
1061
  }, "strip", z.ZodTypeAny, {
1062
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1046
1063
  protocol: "x402" | "l402";
1064
+ receiptId: string;
1065
+ paidRequestId: string;
1066
+ paymentAttemptId: string;
1067
+ organizationId: string;
1068
+ agentId: string;
1047
1069
  money: {
1048
1070
  asset: string;
1049
1071
  amount: string;
@@ -1051,24 +1073,34 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1051
1073
  precision: number;
1052
1074
  unit: "minor";
1053
1075
  };
1054
- receiptId: string;
1055
- paidRequestId: string;
1056
- paymentAttemptId: string;
1057
- organizationId: string;
1058
- agentId: string;
1059
- merchantId: string;
1060
1076
  authorizationOutcome: "allowed";
1077
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1061
1078
  requestUrl: string;
1062
1079
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1063
1080
  createdAt: string;
1081
+ merchantId?: string | undefined;
1082
+ confirmationSource?: "chain_observer" | undefined;
1083
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1084
+ attributionBasis?: Record<string, unknown> | undefined;
1085
+ attributionRuleVersion?: string | undefined;
1086
+ confirmedAt?: string | undefined;
1087
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1088
+ canonicalSettlementKey?: string | undefined;
1064
1089
  paymentReference?: string | undefined;
1065
1090
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1066
1091
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1067
1092
  settlementIdentifier?: string | undefined;
1093
+ supersededByReceiptId?: string | undefined;
1068
1094
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1069
1095
  completedAt?: string | undefined;
1070
1096
  }, {
1097
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1071
1098
  protocol: "x402" | "l402";
1099
+ receiptId: string;
1100
+ paidRequestId: string;
1101
+ paymentAttemptId: string;
1102
+ organizationId: string;
1103
+ agentId: string;
1072
1104
  money: {
1073
1105
  asset: string;
1074
1106
  amount: string;
@@ -1076,20 +1108,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1076
1108
  precision: number;
1077
1109
  unit: "minor";
1078
1110
  };
1079
- receiptId: string;
1080
- paidRequestId: string;
1081
- paymentAttemptId: string;
1082
- organizationId: string;
1083
- agentId: string;
1084
- merchantId: string;
1085
1111
  authorizationOutcome: "allowed";
1112
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1086
1113
  requestUrl: string;
1087
1114
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1088
1115
  createdAt: string;
1116
+ merchantId?: string | undefined;
1117
+ confirmationSource?: "chain_observer" | undefined;
1118
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1119
+ attributionBasis?: Record<string, unknown> | undefined;
1120
+ attributionRuleVersion?: string | undefined;
1121
+ confirmedAt?: string | undefined;
1122
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1123
+ canonicalSettlementKey?: string | undefined;
1089
1124
  paymentReference?: string | undefined;
1090
1125
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1091
1126
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1092
1127
  settlementIdentifier?: string | undefined;
1128
+ supersededByReceiptId?: string | undefined;
1093
1129
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1094
1130
  completedAt?: string | undefined;
1095
1131
  }>;
@@ -1097,7 +1133,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1097
1133
  paidRequestId: string;
1098
1134
  paymentAttemptId: string;
1099
1135
  outcome: "allow";
1100
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1136
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1101
1137
  reason: string;
1102
1138
  merchantResponse: {
1103
1139
  status: number;
@@ -1105,7 +1141,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1105
1141
  body: string;
1106
1142
  };
1107
1143
  receipt: {
1144
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1108
1145
  protocol: "x402" | "l402";
1146
+ receiptId: string;
1147
+ paidRequestId: string;
1148
+ paymentAttemptId: string;
1149
+ organizationId: string;
1150
+ agentId: string;
1109
1151
  money: {
1110
1152
  asset: string;
1111
1153
  amount: string;
@@ -1113,20 +1155,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1113
1155
  precision: number;
1114
1156
  unit: "minor";
1115
1157
  };
1116
- receiptId: string;
1117
- paidRequestId: string;
1118
- paymentAttemptId: string;
1119
- organizationId: string;
1120
- agentId: string;
1121
- merchantId: string;
1122
1158
  authorizationOutcome: "allowed";
1159
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1123
1160
  requestUrl: string;
1124
1161
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1125
1162
  createdAt: string;
1163
+ merchantId?: string | undefined;
1164
+ confirmationSource?: "chain_observer" | undefined;
1165
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1166
+ attributionBasis?: Record<string, unknown> | undefined;
1167
+ attributionRuleVersion?: string | undefined;
1168
+ confirmedAt?: string | undefined;
1169
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1170
+ canonicalSettlementKey?: string | undefined;
1126
1171
  paymentReference?: string | undefined;
1127
1172
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1128
1173
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1129
1174
  settlementIdentifier?: string | undefined;
1175
+ supersededByReceiptId?: string | undefined;
1130
1176
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1131
1177
  completedAt?: string | undefined;
1132
1178
  };
@@ -1134,7 +1180,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1134
1180
  paidRequestId: string;
1135
1181
  paymentAttemptId: string;
1136
1182
  outcome: "allow";
1137
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1183
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1138
1184
  reason: string;
1139
1185
  merchantResponse: {
1140
1186
  status: number;
@@ -1142,7 +1188,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1142
1188
  body?: string | undefined;
1143
1189
  };
1144
1190
  receipt: {
1191
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1145
1192
  protocol: "x402" | "l402";
1193
+ receiptId: string;
1194
+ paidRequestId: string;
1195
+ paymentAttemptId: string;
1196
+ organizationId: string;
1197
+ agentId: string;
1146
1198
  money: {
1147
1199
  asset: string;
1148
1200
  amount: string;
@@ -1150,20 +1202,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1150
1202
  precision: number;
1151
1203
  unit: "minor";
1152
1204
  };
1153
- receiptId: string;
1154
- paidRequestId: string;
1155
- paymentAttemptId: string;
1156
- organizationId: string;
1157
- agentId: string;
1158
- merchantId: string;
1159
1205
  authorizationOutcome: "allowed";
1206
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1160
1207
  requestUrl: string;
1161
1208
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1162
1209
  createdAt: string;
1210
+ merchantId?: string | undefined;
1211
+ confirmationSource?: "chain_observer" | undefined;
1212
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1213
+ attributionBasis?: Record<string, unknown> | undefined;
1214
+ attributionRuleVersion?: string | undefined;
1215
+ confirmedAt?: string | undefined;
1216
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1217
+ canonicalSettlementKey?: string | undefined;
1163
1218
  paymentReference?: string | undefined;
1164
1219
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1165
1220
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1166
1221
  settlementIdentifier?: string | undefined;
1222
+ supersededByReceiptId?: string | undefined;
1167
1223
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1168
1224
  completedAt?: string | undefined;
1169
1225
  };
@@ -1171,7 +1227,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1171
1227
  outcome: z.ZodLiteral<"paid_fulfillment_failed">;
1172
1228
  paidRequestId: z.ZodString;
1173
1229
  paymentAttemptId: z.ZodString;
1174
- reasonCode: z.ZodLiteral<"merchant_rejected">;
1230
+ reasonCode: z.ZodEnum<["merchant_rejected", "merchant_execution_failed"]>;
1175
1231
  reason: z.ZodString;
1176
1232
  merchantResponse: z.ZodObject<{
1177
1233
  status: z.ZodNumber;
@@ -1194,7 +1250,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1194
1250
  paymentAttemptId: z.ZodString;
1195
1251
  organizationId: z.ZodString;
1196
1252
  agentId: z.ZodString;
1197
- merchantId: z.ZodString;
1253
+ merchantId: z.ZodOptional<z.ZodString>;
1198
1254
  protocol: z.ZodEnum<["x402", "l402"]>;
1199
1255
  money: z.ZodEffects<z.ZodObject<{
1200
1256
  asset: z.ZodString;
@@ -1228,17 +1284,33 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1228
1284
  unit: "minor";
1229
1285
  }>;
1230
1286
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1287
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1288
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
1289
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
1290
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
1291
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1292
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
1293
+ confirmedAt: z.ZodOptional<z.ZodString>;
1294
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
1231
1295
  requestUrl: z.ZodString;
1232
1296
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1297
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
1233
1298
  paymentReference: z.ZodOptional<z.ZodString>;
1234
1299
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1235
1300
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1236
1301
  settlementIdentifier: z.ZodOptional<z.ZodString>;
1302
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
1237
1303
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1238
1304
  createdAt: z.ZodString;
1239
1305
  completedAt: z.ZodOptional<z.ZodString>;
1240
1306
  }, "strip", z.ZodTypeAny, {
1307
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1241
1308
  protocol: "x402" | "l402";
1309
+ receiptId: string;
1310
+ paidRequestId: string;
1311
+ paymentAttemptId: string;
1312
+ organizationId: string;
1313
+ agentId: string;
1242
1314
  money: {
1243
1315
  asset: string;
1244
1316
  amount: string;
@@ -1246,24 +1318,34 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1246
1318
  precision: number;
1247
1319
  unit: "minor";
1248
1320
  };
1249
- receiptId: string;
1250
- paidRequestId: string;
1251
- paymentAttemptId: string;
1252
- organizationId: string;
1253
- agentId: string;
1254
- merchantId: string;
1255
1321
  authorizationOutcome: "allowed";
1322
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1256
1323
  requestUrl: string;
1257
1324
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1258
1325
  createdAt: string;
1326
+ merchantId?: string | undefined;
1327
+ confirmationSource?: "chain_observer" | undefined;
1328
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1329
+ attributionBasis?: Record<string, unknown> | undefined;
1330
+ attributionRuleVersion?: string | undefined;
1331
+ confirmedAt?: string | undefined;
1332
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1333
+ canonicalSettlementKey?: string | undefined;
1259
1334
  paymentReference?: string | undefined;
1260
1335
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1261
1336
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1262
1337
  settlementIdentifier?: string | undefined;
1338
+ supersededByReceiptId?: string | undefined;
1263
1339
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1264
1340
  completedAt?: string | undefined;
1265
1341
  }, {
1342
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1266
1343
  protocol: "x402" | "l402";
1344
+ receiptId: string;
1345
+ paidRequestId: string;
1346
+ paymentAttemptId: string;
1347
+ organizationId: string;
1348
+ agentId: string;
1267
1349
  money: {
1268
1350
  asset: string;
1269
1351
  amount: string;
@@ -1271,20 +1353,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1271
1353
  precision: number;
1272
1354
  unit: "minor";
1273
1355
  };
1274
- receiptId: string;
1275
- paidRequestId: string;
1276
- paymentAttemptId: string;
1277
- organizationId: string;
1278
- agentId: string;
1279
- merchantId: string;
1280
1356
  authorizationOutcome: "allowed";
1357
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1281
1358
  requestUrl: string;
1282
1359
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1283
1360
  createdAt: string;
1361
+ merchantId?: string | undefined;
1362
+ confirmationSource?: "chain_observer" | undefined;
1363
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1364
+ attributionBasis?: Record<string, unknown> | undefined;
1365
+ attributionRuleVersion?: string | undefined;
1366
+ confirmedAt?: string | undefined;
1367
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1368
+ canonicalSettlementKey?: string | undefined;
1284
1369
  paymentReference?: string | undefined;
1285
1370
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1286
1371
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1287
1372
  settlementIdentifier?: string | undefined;
1373
+ supersededByReceiptId?: string | undefined;
1288
1374
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1289
1375
  completedAt?: string | undefined;
1290
1376
  }>;
@@ -1295,7 +1381,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1295
1381
  settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
1296
1382
  fulfillmentStatus: "failed";
1297
1383
  outcome: "paid_fulfillment_failed";
1298
- reasonCode: "merchant_rejected";
1384
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
1299
1385
  reason: string;
1300
1386
  merchantResponse: {
1301
1387
  status: number;
@@ -1303,7 +1389,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1303
1389
  body: string;
1304
1390
  };
1305
1391
  receipt: {
1392
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1306
1393
  protocol: "x402" | "l402";
1394
+ receiptId: string;
1395
+ paidRequestId: string;
1396
+ paymentAttemptId: string;
1397
+ organizationId: string;
1398
+ agentId: string;
1307
1399
  money: {
1308
1400
  asset: string;
1309
1401
  amount: string;
@@ -1311,20 +1403,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1311
1403
  precision: number;
1312
1404
  unit: "minor";
1313
1405
  };
1314
- receiptId: string;
1315
- paidRequestId: string;
1316
- paymentAttemptId: string;
1317
- organizationId: string;
1318
- agentId: string;
1319
- merchantId: string;
1320
1406
  authorizationOutcome: "allowed";
1407
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1321
1408
  requestUrl: string;
1322
1409
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1323
1410
  createdAt: string;
1411
+ merchantId?: string | undefined;
1412
+ confirmationSource?: "chain_observer" | undefined;
1413
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1414
+ attributionBasis?: Record<string, unknown> | undefined;
1415
+ attributionRuleVersion?: string | undefined;
1416
+ confirmedAt?: string | undefined;
1417
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1418
+ canonicalSettlementKey?: string | undefined;
1324
1419
  paymentReference?: string | undefined;
1325
1420
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1326
1421
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1327
1422
  settlementIdentifier?: string | undefined;
1423
+ supersededByReceiptId?: string | undefined;
1328
1424
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1329
1425
  completedAt?: string | undefined;
1330
1426
  };
@@ -1335,7 +1431,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1335
1431
  settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
1336
1432
  fulfillmentStatus: "failed";
1337
1433
  outcome: "paid_fulfillment_failed";
1338
- reasonCode: "merchant_rejected";
1434
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
1339
1435
  reason: string;
1340
1436
  merchantResponse: {
1341
1437
  status: number;
@@ -1343,7 +1439,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1343
1439
  body?: string | undefined;
1344
1440
  };
1345
1441
  receipt: {
1442
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1346
1443
  protocol: "x402" | "l402";
1444
+ receiptId: string;
1445
+ paidRequestId: string;
1446
+ paymentAttemptId: string;
1447
+ organizationId: string;
1448
+ agentId: string;
1347
1449
  money: {
1348
1450
  asset: string;
1349
1451
  amount: string;
@@ -1351,20 +1453,24 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1351
1453
  precision: number;
1352
1454
  unit: "minor";
1353
1455
  };
1354
- receiptId: string;
1355
- paidRequestId: string;
1356
- paymentAttemptId: string;
1357
- organizationId: string;
1358
- agentId: string;
1359
- merchantId: string;
1360
1456
  authorizationOutcome: "allowed";
1457
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1361
1458
  requestUrl: string;
1362
1459
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1363
1460
  createdAt: string;
1461
+ merchantId?: string | undefined;
1462
+ confirmationSource?: "chain_observer" | undefined;
1463
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1464
+ attributionBasis?: Record<string, unknown> | undefined;
1465
+ attributionRuleVersion?: string | undefined;
1466
+ confirmedAt?: string | undefined;
1467
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1468
+ canonicalSettlementKey?: string | undefined;
1364
1469
  paymentReference?: string | undefined;
1365
1470
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1366
1471
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1367
1472
  settlementIdentifier?: string | undefined;
1473
+ supersededByReceiptId?: string | undefined;
1368
1474
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1369
1475
  completedAt?: string | undefined;
1370
1476
  };
@@ -1412,7 +1518,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1412
1518
  outcome: z.ZodLiteral<"execution_failed">;
1413
1519
  paidRequestId: z.ZodString;
1414
1520
  paymentAttemptId: z.ZodString;
1415
- reasonCode: z.ZodEnum<["merchant_rejected", "settlement_proof_conflict"]>;
1521
+ reasonCode: z.ZodEnum<["merchant_rejected", "merchant_execution_failed"]>;
1416
1522
  reason: z.ZodString;
1417
1523
  merchantResponse: z.ZodObject<{
1418
1524
  status: z.ZodNumber;
@@ -1432,7 +1538,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1432
1538
  paidRequestId: string;
1433
1539
  paymentAttemptId: string;
1434
1540
  outcome: "execution_failed";
1435
- reasonCode: "merchant_rejected" | "settlement_proof_conflict";
1541
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
1436
1542
  reason: string;
1437
1543
  merchantResponse: {
1438
1544
  status: number;
@@ -1444,7 +1550,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1444
1550
  paidRequestId: string;
1445
1551
  paymentAttemptId: string;
1446
1552
  outcome: "execution_failed";
1447
- reasonCode: "merchant_rejected" | "settlement_proof_conflict";
1553
+ reasonCode: "merchant_rejected" | "merchant_execution_failed";
1448
1554
  reason: string;
1449
1555
  merchantResponse: {
1450
1556
  status: number;
@@ -1476,18 +1582,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1476
1582
  }>, z.ZodObject<{
1477
1583
  outcome: z.ZodLiteral<"deny">;
1478
1584
  paidRequestId: z.ZodOptional<z.ZodString>;
1479
- reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
1585
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "merchant_execution_failed", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
1480
1586
  reason: z.ZodString;
1481
1587
  policyReviewEventId: z.ZodOptional<z.ZodString>;
1482
1588
  }, "strip", z.ZodTypeAny, {
1483
1589
  outcome: "deny";
1484
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1590
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1485
1591
  reason: string;
1486
1592
  paidRequestId?: string | undefined;
1487
1593
  policyReviewEventId?: string | undefined;
1488
1594
  }, {
1489
1595
  outcome: "deny";
1490
- reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1596
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "merchant_execution_failed" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1491
1597
  reason: string;
1492
1598
  paidRequestId?: string | undefined;
1493
1599
  policyReviewEventId?: string | undefined;
@@ -1500,7 +1606,7 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1500
1606
  paymentAttemptId: z.ZodString;
1501
1607
  organizationId: z.ZodString;
1502
1608
  agentId: z.ZodString;
1503
- merchantId: z.ZodString;
1609
+ merchantId: z.ZodOptional<z.ZodString>;
1504
1610
  protocol: z.ZodEnum<["x402", "l402"]>;
1505
1611
  money: z.ZodEffects<z.ZodObject<{
1506
1612
  asset: z.ZodString;
@@ -1534,17 +1640,33 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1534
1640
  unit: "minor";
1535
1641
  }>;
1536
1642
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1643
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1644
+ reconciliationStatus: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
1645
+ confirmationSource: z.ZodOptional<z.ZodEnum<["chain_observer"]>>;
1646
+ attributionStrength: z.ZodOptional<z.ZodEnum<["strong_request_scoped", "constrained_unique"]>>;
1647
+ attributionBasis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1648
+ attributionRuleVersion: z.ZodOptional<z.ZodString>;
1649
+ confirmedAt: z.ZodOptional<z.ZodString>;
1650
+ finalityLevelUsed: z.ZodOptional<z.ZodEnum<["evm_block_confirmations_12"]>>;
1537
1651
  requestUrl: z.ZodString;
1538
1652
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1653
+ canonicalSettlementKey: z.ZodOptional<z.ZodString>;
1539
1654
  paymentReference: z.ZodOptional<z.ZodString>;
1540
1655
  evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1541
1656
  settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1542
1657
  settlementIdentifier: z.ZodOptional<z.ZodString>;
1658
+ supersededByReceiptId: z.ZodOptional<z.ZodString>;
1543
1659
  fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1544
1660
  createdAt: z.ZodString;
1545
1661
  completedAt: z.ZodOptional<z.ZodString>;
1546
1662
  }, "strip", z.ZodTypeAny, {
1663
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1547
1664
  protocol: "x402" | "l402";
1665
+ receiptId: string;
1666
+ paidRequestId: string;
1667
+ paymentAttemptId: string;
1668
+ organizationId: string;
1669
+ agentId: string;
1548
1670
  money: {
1549
1671
  asset: string;
1550
1672
  amount: string;
@@ -1552,24 +1674,34 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1552
1674
  precision: number;
1553
1675
  unit: "minor";
1554
1676
  };
1555
- receiptId: string;
1556
- paidRequestId: string;
1557
- paymentAttemptId: string;
1558
- organizationId: string;
1559
- agentId: string;
1560
- merchantId: string;
1561
1677
  authorizationOutcome: "allowed";
1678
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1562
1679
  requestUrl: string;
1563
1680
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1564
1681
  createdAt: string;
1682
+ merchantId?: string | undefined;
1683
+ confirmationSource?: "chain_observer" | undefined;
1684
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1685
+ attributionBasis?: Record<string, unknown> | undefined;
1686
+ attributionRuleVersion?: string | undefined;
1687
+ confirmedAt?: string | undefined;
1688
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1689
+ canonicalSettlementKey?: string | undefined;
1565
1690
  paymentReference?: string | undefined;
1566
1691
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1567
1692
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1568
1693
  settlementIdentifier?: string | undefined;
1694
+ supersededByReceiptId?: string | undefined;
1569
1695
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1570
1696
  completedAt?: string | undefined;
1571
1697
  }, {
1698
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1572
1699
  protocol: "x402" | "l402";
1700
+ receiptId: string;
1701
+ paidRequestId: string;
1702
+ paymentAttemptId: string;
1703
+ organizationId: string;
1704
+ agentId: string;
1573
1705
  money: {
1574
1706
  asset: string;
1575
1707
  amount: string;
@@ -1577,26 +1709,36 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1577
1709
  precision: number;
1578
1710
  unit: "minor";
1579
1711
  };
1580
- receiptId: string;
1581
- paidRequestId: string;
1582
- paymentAttemptId: string;
1583
- organizationId: string;
1584
- agentId: string;
1585
- merchantId: string;
1586
1712
  authorizationOutcome: "allowed";
1713
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1587
1714
  requestUrl: string;
1588
1715
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1589
1716
  createdAt: string;
1717
+ merchantId?: string | undefined;
1718
+ confirmationSource?: "chain_observer" | undefined;
1719
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1720
+ attributionBasis?: Record<string, unknown> | undefined;
1721
+ attributionRuleVersion?: string | undefined;
1722
+ confirmedAt?: string | undefined;
1723
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1724
+ canonicalSettlementKey?: string | undefined;
1590
1725
  paymentReference?: string | undefined;
1591
1726
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1592
1727
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1593
1728
  settlementIdentifier?: string | undefined;
1729
+ supersededByReceiptId?: string | undefined;
1594
1730
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1595
1731
  completedAt?: string | undefined;
1596
1732
  }>;
1597
1733
  }, "strip", z.ZodTypeAny, {
1598
1734
  receipt: {
1735
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1599
1736
  protocol: "x402" | "l402";
1737
+ receiptId: string;
1738
+ paidRequestId: string;
1739
+ paymentAttemptId: string;
1740
+ organizationId: string;
1741
+ agentId: string;
1600
1742
  money: {
1601
1743
  asset: string;
1602
1744
  amount: string;
@@ -1604,26 +1746,36 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1604
1746
  precision: number;
1605
1747
  unit: "minor";
1606
1748
  };
1607
- receiptId: string;
1608
- paidRequestId: string;
1609
- paymentAttemptId: string;
1610
- organizationId: string;
1611
- agentId: string;
1612
- merchantId: string;
1613
1749
  authorizationOutcome: "allowed";
1750
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1614
1751
  requestUrl: string;
1615
1752
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1616
1753
  createdAt: string;
1754
+ merchantId?: string | undefined;
1755
+ confirmationSource?: "chain_observer" | undefined;
1756
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1757
+ attributionBasis?: Record<string, unknown> | undefined;
1758
+ attributionRuleVersion?: string | undefined;
1759
+ confirmedAt?: string | undefined;
1760
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1761
+ canonicalSettlementKey?: string | undefined;
1617
1762
  paymentReference?: string | undefined;
1618
1763
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1619
1764
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1620
1765
  settlementIdentifier?: string | undefined;
1766
+ supersededByReceiptId?: string | undefined;
1621
1767
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1622
1768
  completedAt?: string | undefined;
1623
1769
  };
1624
1770
  }, {
1625
1771
  receipt: {
1772
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1626
1773
  protocol: "x402" | "l402";
1774
+ receiptId: string;
1775
+ paidRequestId: string;
1776
+ paymentAttemptId: string;
1777
+ organizationId: string;
1778
+ agentId: string;
1627
1779
  money: {
1628
1780
  asset: string;
1629
1781
  amount: string;
@@ -1631,20 +1783,24 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1631
1783
  precision: number;
1632
1784
  unit: "minor";
1633
1785
  };
1634
- receiptId: string;
1635
- paidRequestId: string;
1636
- paymentAttemptId: string;
1637
- organizationId: string;
1638
- agentId: string;
1639
- merchantId: string;
1640
1786
  authorizationOutcome: "allowed";
1787
+ reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1641
1788
  requestUrl: string;
1642
1789
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1643
1790
  createdAt: string;
1791
+ merchantId?: string | undefined;
1792
+ confirmationSource?: "chain_observer" | undefined;
1793
+ attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1794
+ attributionBasis?: Record<string, unknown> | undefined;
1795
+ attributionRuleVersion?: string | undefined;
1796
+ confirmedAt?: string | undefined;
1797
+ finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1798
+ canonicalSettlementKey?: string | undefined;
1644
1799
  paymentReference?: string | undefined;
1645
1800
  evidenceSource?: "merchant" | "local_simulation" | undefined;
1646
1801
  settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1647
1802
  settlementIdentifier?: string | undefined;
1803
+ supersededByReceiptId?: string | undefined;
1648
1804
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1649
1805
  completedAt?: string | undefined;
1650
1806
  };