@402flow/sdk 0.1.0-alpha.7 → 0.1.0-alpha.9

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,12 +5,20 @@ 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", "refunded", "void"]>;
8
+ export declare const receiptStatusSchema: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
9
9
  export type ReceiptStatus = z.infer<typeof receiptStatusSchema>;
10
10
  export declare const receiptReconciliationStatusSchema: z.ZodEnum<["none", "required", "in_progress", "resolved", "refunded"]>;
11
11
  export type ReceiptReconciliationStatus = z.infer<typeof receiptReconciliationStatusSchema>;
12
12
  export declare const paymentProofSourceSchema: z.ZodEnum<["merchant", "local_simulation"]>;
13
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>;
14
22
  export declare const paidRequestProtocolSchema: z.ZodEnum<["x402", "l402"]>;
15
23
  export type PaidRequestProtocol = z.infer<typeof paidRequestProtocolSchema>;
16
24
  export declare const paidRequestHttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
@@ -96,64 +104,16 @@ export declare const paidRequestHttpRequestSchema: z.ZodObject<{
96
104
  export type PaidRequestHttpRequest = z.infer<typeof paidRequestHttpRequestSchema>;
97
105
  export declare const paidRequestChallengeSchema: z.ZodObject<{
98
106
  protocol: z.ZodEnum<["x402", "l402"]>;
99
- money: z.ZodEffects<z.ZodObject<{
100
- asset: z.ZodString;
101
- amount: z.ZodString;
102
- amountMinor: z.ZodString;
103
- precision: z.ZodNumber;
104
- unit: z.ZodLiteral<"minor">;
105
- }, "strip", z.ZodTypeAny, {
106
- asset: string;
107
- amount: string;
108
- amountMinor: string;
109
- precision: number;
110
- unit: "minor";
111
- }, {
112
- asset: string;
113
- amount: string;
114
- amountMinor: string;
115
- precision: number;
116
- unit: "minor";
117
- }>, {
118
- asset: string;
119
- amount: string;
120
- amountMinor: string;
121
- precision: number;
122
- unit: "minor";
123
- }, {
124
- asset: string;
125
- amount: string;
126
- amountMinor: string;
127
- precision: number;
128
- unit: "minor";
129
- }>;
130
- payee: z.ZodOptional<z.ZodString>;
131
- memo: z.ZodOptional<z.ZodString>;
132
- 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>;
133
109
  }, "strip", z.ZodTypeAny, {
110
+ headers: Record<string, string>;
134
111
  protocol: "x402" | "l402";
135
- money: {
136
- asset: string;
137
- amount: string;
138
- amountMinor: string;
139
- precision: number;
140
- unit: "minor";
141
- };
142
- raw: Record<string, unknown>;
143
- payee?: string | undefined;
144
- memo?: string | undefined;
112
+ body?: unknown;
145
113
  }, {
146
114
  protocol: "x402" | "l402";
147
- money: {
148
- asset: string;
149
- amount: string;
150
- amountMinor: string;
151
- precision: number;
152
- unit: "minor";
153
- };
154
- payee?: string | undefined;
155
- memo?: string | undefined;
156
- raw?: Record<string, unknown> | undefined;
115
+ headers?: Record<string, string> | undefined;
116
+ body?: unknown;
157
117
  }>;
158
118
  export type PaidRequestChallenge = z.infer<typeof paidRequestChallengeSchema>;
159
119
  export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
@@ -194,64 +154,16 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
194
154
  }>;
195
155
  challenge: z.ZodObject<{
196
156
  protocol: z.ZodEnum<["x402", "l402"]>;
197
- money: z.ZodEffects<z.ZodObject<{
198
- asset: z.ZodString;
199
- amount: z.ZodString;
200
- amountMinor: z.ZodString;
201
- precision: z.ZodNumber;
202
- unit: z.ZodLiteral<"minor">;
203
- }, "strip", z.ZodTypeAny, {
204
- asset: string;
205
- amount: string;
206
- amountMinor: string;
207
- precision: number;
208
- unit: "minor";
209
- }, {
210
- asset: string;
211
- amount: string;
212
- amountMinor: string;
213
- precision: number;
214
- unit: "minor";
215
- }>, {
216
- asset: string;
217
- amount: string;
218
- amountMinor: string;
219
- precision: number;
220
- unit: "minor";
221
- }, {
222
- asset: string;
223
- amount: string;
224
- amountMinor: string;
225
- precision: number;
226
- unit: "minor";
227
- }>;
228
- payee: z.ZodOptional<z.ZodString>;
229
- memo: z.ZodOptional<z.ZodString>;
230
- 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>;
231
159
  }, "strip", z.ZodTypeAny, {
160
+ headers: Record<string, string>;
232
161
  protocol: "x402" | "l402";
233
- money: {
234
- asset: string;
235
- amount: string;
236
- amountMinor: string;
237
- precision: number;
238
- unit: "minor";
239
- };
240
- raw: Record<string, unknown>;
241
- payee?: string | undefined;
242
- memo?: string | undefined;
162
+ body?: unknown;
243
163
  }, {
244
164
  protocol: "x402" | "l402";
245
- money: {
246
- asset: string;
247
- amount: string;
248
- amountMinor: string;
249
- precision: number;
250
- unit: "minor";
251
- };
252
- payee?: string | undefined;
253
- memo?: string | undefined;
254
- raw?: Record<string, unknown> | undefined;
165
+ headers?: Record<string, string> | undefined;
166
+ body?: unknown;
255
167
  }>;
256
168
  paymentRail: z.ZodOptional<z.ZodString>;
257
169
  idempotencyKey: z.ZodOptional<z.ZodString>;
@@ -270,17 +182,9 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
270
182
  bodyHash?: string | undefined;
271
183
  };
272
184
  challenge: {
185
+ headers: Record<string, string>;
273
186
  protocol: "x402" | "l402";
274
- money: {
275
- asset: string;
276
- amount: string;
277
- amountMinor: string;
278
- precision: number;
279
- unit: "minor";
280
- };
281
- raw: Record<string, unknown>;
282
- payee?: string | undefined;
283
- memo?: string | undefined;
187
+ body?: unknown;
284
188
  };
285
189
  paymentRail?: string | undefined;
286
190
  idempotencyKey?: string | undefined;
@@ -300,16 +204,8 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
300
204
  };
301
205
  challenge: {
302
206
  protocol: "x402" | "l402";
303
- money: {
304
- asset: string;
305
- amount: string;
306
- amountMinor: string;
307
- precision: number;
308
- unit: "minor";
309
- };
310
- payee?: string | undefined;
311
- memo?: string | undefined;
312
- raw?: Record<string, unknown> | undefined;
207
+ headers?: Record<string, string> | undefined;
208
+ body?: unknown;
313
209
  };
314
210
  paymentRail?: string | undefined;
315
211
  idempotencyKey?: string | undefined;
@@ -321,7 +217,7 @@ export declare const sdkReceiptSchema: z.ZodObject<{
321
217
  paymentAttemptId: z.ZodString;
322
218
  organizationId: z.ZodString;
323
219
  agentId: z.ZodString;
324
- merchantId: z.ZodString;
220
+ merchantId: z.ZodOptional<z.ZodString>;
325
221
  protocol: z.ZodEnum<["x402", "l402"]>;
326
222
  money: z.ZodEffects<z.ZodObject<{
327
223
  asset: z.ZodString;
@@ -355,8 +251,14 @@ export declare const sdkReceiptSchema: z.ZodObject<{
355
251
  unit: "minor";
356
252
  }>;
357
253
  authorizationOutcome: z.ZodEnum<["allowed"]>;
358
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
254
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
359
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"]>>;
360
262
  requestUrl: z.ZodString;
361
263
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
362
264
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -369,8 +271,13 @@ export declare const sdkReceiptSchema: z.ZodObject<{
369
271
  createdAt: z.ZodString;
370
272
  completedAt: z.ZodOptional<z.ZodString>;
371
273
  }, "strip", z.ZodTypeAny, {
372
- status: "confirmed" | "provisional" | "refunded" | "void";
274
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
373
275
  protocol: "x402" | "l402";
276
+ receiptId: string;
277
+ paidRequestId: string;
278
+ paymentAttemptId: string;
279
+ organizationId: string;
280
+ agentId: string;
374
281
  money: {
375
282
  asset: string;
376
283
  amount: string;
@@ -378,17 +285,18 @@ export declare const sdkReceiptSchema: z.ZodObject<{
378
285
  precision: number;
379
286
  unit: "minor";
380
287
  };
381
- receiptId: string;
382
- paidRequestId: string;
383
- paymentAttemptId: string;
384
- organizationId: string;
385
- agentId: string;
386
- merchantId: string;
387
288
  authorizationOutcome: "allowed";
388
289
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
389
290
  requestUrl: string;
390
291
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
391
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;
392
300
  canonicalSettlementKey?: string | undefined;
393
301
  paymentReference?: string | undefined;
394
302
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -398,8 +306,13 @@ export declare const sdkReceiptSchema: z.ZodObject<{
398
306
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
399
307
  completedAt?: string | undefined;
400
308
  }, {
401
- status: "confirmed" | "provisional" | "refunded" | "void";
309
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
402
310
  protocol: "x402" | "l402";
311
+ receiptId: string;
312
+ paidRequestId: string;
313
+ paymentAttemptId: string;
314
+ organizationId: string;
315
+ agentId: string;
403
316
  money: {
404
317
  asset: string;
405
318
  amount: string;
@@ -407,17 +320,18 @@ export declare const sdkReceiptSchema: z.ZodObject<{
407
320
  precision: number;
408
321
  unit: "minor";
409
322
  };
410
- receiptId: string;
411
- paidRequestId: string;
412
- paymentAttemptId: string;
413
- organizationId: string;
414
- agentId: string;
415
- merchantId: string;
416
323
  authorizationOutcome: "allowed";
417
324
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
418
325
  requestUrl: string;
419
326
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
420
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;
421
335
  canonicalSettlementKey?: string | undefined;
422
336
  paymentReference?: string | undefined;
423
337
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -467,7 +381,7 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
467
381
  paymentAttemptId: z.ZodString;
468
382
  organizationId: z.ZodString;
469
383
  agentId: z.ZodString;
470
- merchantId: z.ZodString;
384
+ merchantId: z.ZodOptional<z.ZodString>;
471
385
  protocol: z.ZodEnum<["x402", "l402"]>;
472
386
  money: z.ZodEffects<z.ZodObject<{
473
387
  asset: z.ZodString;
@@ -501,8 +415,14 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
501
415
  unit: "minor";
502
416
  }>;
503
417
  authorizationOutcome: z.ZodEnum<["allowed"]>;
504
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
418
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
505
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"]>>;
506
426
  requestUrl: z.ZodString;
507
427
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
508
428
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -515,8 +435,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
515
435
  createdAt: z.ZodString;
516
436
  completedAt: z.ZodOptional<z.ZodString>;
517
437
  }, "strip", z.ZodTypeAny, {
518
- status: "confirmed" | "provisional" | "refunded" | "void";
438
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
519
439
  protocol: "x402" | "l402";
440
+ receiptId: string;
441
+ paidRequestId: string;
442
+ paymentAttemptId: string;
443
+ organizationId: string;
444
+ agentId: string;
520
445
  money: {
521
446
  asset: string;
522
447
  amount: string;
@@ -524,17 +449,18 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
524
449
  precision: number;
525
450
  unit: "minor";
526
451
  };
527
- receiptId: string;
528
- paidRequestId: string;
529
- paymentAttemptId: string;
530
- organizationId: string;
531
- agentId: string;
532
- merchantId: string;
533
452
  authorizationOutcome: "allowed";
534
453
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
535
454
  requestUrl: string;
536
455
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
537
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;
538
464
  canonicalSettlementKey?: string | undefined;
539
465
  paymentReference?: string | undefined;
540
466
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -544,8 +470,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
544
470
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
545
471
  completedAt?: string | undefined;
546
472
  }, {
547
- status: "confirmed" | "provisional" | "refunded" | "void";
473
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
548
474
  protocol: "x402" | "l402";
475
+ receiptId: string;
476
+ paidRequestId: string;
477
+ paymentAttemptId: string;
478
+ organizationId: string;
479
+ agentId: string;
549
480
  money: {
550
481
  asset: string;
551
482
  amount: string;
@@ -553,17 +484,18 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
553
484
  precision: number;
554
485
  unit: "minor";
555
486
  };
556
- receiptId: string;
557
- paidRequestId: string;
558
- paymentAttemptId: string;
559
- organizationId: string;
560
- agentId: string;
561
- merchantId: string;
562
487
  authorizationOutcome: "allowed";
563
488
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
564
489
  requestUrl: string;
565
490
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
566
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;
567
499
  canonicalSettlementKey?: string | undefined;
568
500
  paymentReference?: string | undefined;
569
501
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -585,8 +517,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
585
517
  body: string;
586
518
  };
587
519
  receipt: {
588
- status: "confirmed" | "provisional" | "refunded" | "void";
520
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
589
521
  protocol: "x402" | "l402";
522
+ receiptId: string;
523
+ paidRequestId: string;
524
+ paymentAttemptId: string;
525
+ organizationId: string;
526
+ agentId: string;
590
527
  money: {
591
528
  asset: string;
592
529
  amount: string;
@@ -594,17 +531,18 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
594
531
  precision: number;
595
532
  unit: "minor";
596
533
  };
597
- receiptId: string;
598
- paidRequestId: string;
599
- paymentAttemptId: string;
600
- organizationId: string;
601
- agentId: string;
602
- merchantId: string;
603
534
  authorizationOutcome: "allowed";
604
535
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
605
536
  requestUrl: string;
606
537
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
607
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;
608
546
  canonicalSettlementKey?: string | undefined;
609
547
  paymentReference?: string | undefined;
610
548
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -626,8 +564,13 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
626
564
  body?: string | undefined;
627
565
  };
628
566
  receipt: {
629
- status: "confirmed" | "provisional" | "refunded" | "void";
567
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
630
568
  protocol: "x402" | "l402";
569
+ receiptId: string;
570
+ paidRequestId: string;
571
+ paymentAttemptId: string;
572
+ organizationId: string;
573
+ agentId: string;
631
574
  money: {
632
575
  asset: string;
633
576
  amount: string;
@@ -635,17 +578,18 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
635
578
  precision: number;
636
579
  unit: "minor";
637
580
  };
638
- receiptId: string;
639
- paidRequestId: string;
640
- paymentAttemptId: string;
641
- organizationId: string;
642
- agentId: string;
643
- merchantId: string;
644
581
  authorizationOutcome: "allowed";
645
582
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
646
583
  requestUrl: string;
647
584
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
648
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;
649
593
  canonicalSettlementKey?: string | undefined;
650
594
  paymentReference?: string | undefined;
651
595
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -683,7 +627,7 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
683
627
  paymentAttemptId: z.ZodString;
684
628
  organizationId: z.ZodString;
685
629
  agentId: z.ZodString;
686
- merchantId: z.ZodString;
630
+ merchantId: z.ZodOptional<z.ZodString>;
687
631
  protocol: z.ZodEnum<["x402", "l402"]>;
688
632
  money: z.ZodEffects<z.ZodObject<{
689
633
  asset: z.ZodString;
@@ -717,8 +661,14 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
717
661
  unit: "minor";
718
662
  }>;
719
663
  authorizationOutcome: z.ZodEnum<["allowed"]>;
720
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
664
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
721
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"]>>;
722
672
  requestUrl: z.ZodString;
723
673
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
724
674
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -731,8 +681,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
731
681
  createdAt: z.ZodString;
732
682
  completedAt: z.ZodOptional<z.ZodString>;
733
683
  }, "strip", z.ZodTypeAny, {
734
- status: "confirmed" | "provisional" | "refunded" | "void";
684
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
735
685
  protocol: "x402" | "l402";
686
+ receiptId: string;
687
+ paidRequestId: string;
688
+ paymentAttemptId: string;
689
+ organizationId: string;
690
+ agentId: string;
736
691
  money: {
737
692
  asset: string;
738
693
  amount: string;
@@ -740,17 +695,18 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
740
695
  precision: number;
741
696
  unit: "minor";
742
697
  };
743
- receiptId: string;
744
- paidRequestId: string;
745
- paymentAttemptId: string;
746
- organizationId: string;
747
- agentId: string;
748
- merchantId: string;
749
698
  authorizationOutcome: "allowed";
750
699
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
751
700
  requestUrl: string;
752
701
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
753
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;
754
710
  canonicalSettlementKey?: string | undefined;
755
711
  paymentReference?: string | undefined;
756
712
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -760,8 +716,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
760
716
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
761
717
  completedAt?: string | undefined;
762
718
  }, {
763
- status: "confirmed" | "provisional" | "refunded" | "void";
719
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
764
720
  protocol: "x402" | "l402";
721
+ receiptId: string;
722
+ paidRequestId: string;
723
+ paymentAttemptId: string;
724
+ organizationId: string;
725
+ agentId: string;
765
726
  money: {
766
727
  asset: string;
767
728
  amount: string;
@@ -769,17 +730,18 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
769
730
  precision: number;
770
731
  unit: "minor";
771
732
  };
772
- receiptId: string;
773
- paidRequestId: string;
774
- paymentAttemptId: string;
775
- organizationId: string;
776
- agentId: string;
777
- merchantId: string;
778
733
  authorizationOutcome: "allowed";
779
734
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
780
735
  requestUrl: string;
781
736
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
782
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;
783
745
  canonicalSettlementKey?: string | undefined;
784
746
  paymentReference?: string | undefined;
785
747
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -804,8 +766,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
804
766
  body: string;
805
767
  };
806
768
  receipt: {
807
- status: "confirmed" | "provisional" | "refunded" | "void";
769
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
808
770
  protocol: "x402" | "l402";
771
+ receiptId: string;
772
+ paidRequestId: string;
773
+ paymentAttemptId: string;
774
+ organizationId: string;
775
+ agentId: string;
809
776
  money: {
810
777
  asset: string;
811
778
  amount: string;
@@ -813,17 +780,18 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
813
780
  precision: number;
814
781
  unit: "minor";
815
782
  };
816
- receiptId: string;
817
- paidRequestId: string;
818
- paymentAttemptId: string;
819
- organizationId: string;
820
- agentId: string;
821
- merchantId: string;
822
783
  authorizationOutcome: "allowed";
823
784
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
824
785
  requestUrl: string;
825
786
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
826
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;
827
795
  canonicalSettlementKey?: string | undefined;
828
796
  paymentReference?: string | undefined;
829
797
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -848,8 +816,13 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
848
816
  body?: string | undefined;
849
817
  };
850
818
  receipt: {
851
- status: "confirmed" | "provisional" | "refunded" | "void";
819
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
852
820
  protocol: "x402" | "l402";
821
+ receiptId: string;
822
+ paidRequestId: string;
823
+ paymentAttemptId: string;
824
+ organizationId: string;
825
+ agentId: string;
853
826
  money: {
854
827
  asset: string;
855
828
  amount: string;
@@ -857,17 +830,18 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
857
830
  precision: number;
858
831
  unit: "minor";
859
832
  };
860
- receiptId: string;
861
- paidRequestId: string;
862
- paymentAttemptId: string;
863
- organizationId: string;
864
- agentId: string;
865
- merchantId: string;
866
833
  authorizationOutcome: "allowed";
867
834
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
868
835
  requestUrl: string;
869
836
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
870
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;
871
845
  canonicalSettlementKey?: string | undefined;
872
846
  paymentReference?: string | undefined;
873
847
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1031,7 +1005,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1031
1005
  paymentAttemptId: z.ZodString;
1032
1006
  organizationId: z.ZodString;
1033
1007
  agentId: z.ZodString;
1034
- merchantId: z.ZodString;
1008
+ merchantId: z.ZodOptional<z.ZodString>;
1035
1009
  protocol: z.ZodEnum<["x402", "l402"]>;
1036
1010
  money: z.ZodEffects<z.ZodObject<{
1037
1011
  asset: z.ZodString;
@@ -1065,8 +1039,14 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1065
1039
  unit: "minor";
1066
1040
  }>;
1067
1041
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1068
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
1042
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1069
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"]>>;
1070
1050
  requestUrl: z.ZodString;
1071
1051
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1072
1052
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -1079,8 +1059,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1079
1059
  createdAt: z.ZodString;
1080
1060
  completedAt: z.ZodOptional<z.ZodString>;
1081
1061
  }, "strip", z.ZodTypeAny, {
1082
- status: "confirmed" | "provisional" | "refunded" | "void";
1062
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1083
1063
  protocol: "x402" | "l402";
1064
+ receiptId: string;
1065
+ paidRequestId: string;
1066
+ paymentAttemptId: string;
1067
+ organizationId: string;
1068
+ agentId: string;
1084
1069
  money: {
1085
1070
  asset: string;
1086
1071
  amount: string;
@@ -1088,17 +1073,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1088
1073
  precision: number;
1089
1074
  unit: "minor";
1090
1075
  };
1091
- receiptId: string;
1092
- paidRequestId: string;
1093
- paymentAttemptId: string;
1094
- organizationId: string;
1095
- agentId: string;
1096
- merchantId: string;
1097
1076
  authorizationOutcome: "allowed";
1098
1077
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1099
1078
  requestUrl: string;
1100
1079
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1101
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;
1102
1088
  canonicalSettlementKey?: string | undefined;
1103
1089
  paymentReference?: string | undefined;
1104
1090
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1108,8 +1094,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1108
1094
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1109
1095
  completedAt?: string | undefined;
1110
1096
  }, {
1111
- status: "confirmed" | "provisional" | "refunded" | "void";
1097
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1112
1098
  protocol: "x402" | "l402";
1099
+ receiptId: string;
1100
+ paidRequestId: string;
1101
+ paymentAttemptId: string;
1102
+ organizationId: string;
1103
+ agentId: string;
1113
1104
  money: {
1114
1105
  asset: string;
1115
1106
  amount: string;
@@ -1117,17 +1108,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1117
1108
  precision: number;
1118
1109
  unit: "minor";
1119
1110
  };
1120
- receiptId: string;
1121
- paidRequestId: string;
1122
- paymentAttemptId: string;
1123
- organizationId: string;
1124
- agentId: string;
1125
- merchantId: string;
1126
1111
  authorizationOutcome: "allowed";
1127
1112
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1128
1113
  requestUrl: string;
1129
1114
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1130
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;
1131
1123
  canonicalSettlementKey?: string | undefined;
1132
1124
  paymentReference?: string | undefined;
1133
1125
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1149,8 +1141,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1149
1141
  body: string;
1150
1142
  };
1151
1143
  receipt: {
1152
- status: "confirmed" | "provisional" | "refunded" | "void";
1144
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1153
1145
  protocol: "x402" | "l402";
1146
+ receiptId: string;
1147
+ paidRequestId: string;
1148
+ paymentAttemptId: string;
1149
+ organizationId: string;
1150
+ agentId: string;
1154
1151
  money: {
1155
1152
  asset: string;
1156
1153
  amount: string;
@@ -1158,17 +1155,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1158
1155
  precision: number;
1159
1156
  unit: "minor";
1160
1157
  };
1161
- receiptId: string;
1162
- paidRequestId: string;
1163
- paymentAttemptId: string;
1164
- organizationId: string;
1165
- agentId: string;
1166
- merchantId: string;
1167
1158
  authorizationOutcome: "allowed";
1168
1159
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1169
1160
  requestUrl: string;
1170
1161
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1171
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;
1172
1170
  canonicalSettlementKey?: string | undefined;
1173
1171
  paymentReference?: string | undefined;
1174
1172
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1190,8 +1188,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1190
1188
  body?: string | undefined;
1191
1189
  };
1192
1190
  receipt: {
1193
- status: "confirmed" | "provisional" | "refunded" | "void";
1191
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1194
1192
  protocol: "x402" | "l402";
1193
+ receiptId: string;
1194
+ paidRequestId: string;
1195
+ paymentAttemptId: string;
1196
+ organizationId: string;
1197
+ agentId: string;
1195
1198
  money: {
1196
1199
  asset: string;
1197
1200
  amount: string;
@@ -1199,17 +1202,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1199
1202
  precision: number;
1200
1203
  unit: "minor";
1201
1204
  };
1202
- receiptId: string;
1203
- paidRequestId: string;
1204
- paymentAttemptId: string;
1205
- organizationId: string;
1206
- agentId: string;
1207
- merchantId: string;
1208
1205
  authorizationOutcome: "allowed";
1209
1206
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1210
1207
  requestUrl: string;
1211
1208
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1212
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;
1213
1217
  canonicalSettlementKey?: string | undefined;
1214
1218
  paymentReference?: string | undefined;
1215
1219
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1246,7 +1250,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1246
1250
  paymentAttemptId: z.ZodString;
1247
1251
  organizationId: z.ZodString;
1248
1252
  agentId: z.ZodString;
1249
- merchantId: z.ZodString;
1253
+ merchantId: z.ZodOptional<z.ZodString>;
1250
1254
  protocol: z.ZodEnum<["x402", "l402"]>;
1251
1255
  money: z.ZodEffects<z.ZodObject<{
1252
1256
  asset: z.ZodString;
@@ -1280,8 +1284,14 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1280
1284
  unit: "minor";
1281
1285
  }>;
1282
1286
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1283
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
1287
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1284
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"]>>;
1285
1295
  requestUrl: z.ZodString;
1286
1296
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1287
1297
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -1294,8 +1304,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1294
1304
  createdAt: z.ZodString;
1295
1305
  completedAt: z.ZodOptional<z.ZodString>;
1296
1306
  }, "strip", z.ZodTypeAny, {
1297
- status: "confirmed" | "provisional" | "refunded" | "void";
1307
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1298
1308
  protocol: "x402" | "l402";
1309
+ receiptId: string;
1310
+ paidRequestId: string;
1311
+ paymentAttemptId: string;
1312
+ organizationId: string;
1313
+ agentId: string;
1299
1314
  money: {
1300
1315
  asset: string;
1301
1316
  amount: string;
@@ -1303,17 +1318,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1303
1318
  precision: number;
1304
1319
  unit: "minor";
1305
1320
  };
1306
- receiptId: string;
1307
- paidRequestId: string;
1308
- paymentAttemptId: string;
1309
- organizationId: string;
1310
- agentId: string;
1311
- merchantId: string;
1312
1321
  authorizationOutcome: "allowed";
1313
1322
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1314
1323
  requestUrl: string;
1315
1324
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1316
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;
1317
1333
  canonicalSettlementKey?: string | undefined;
1318
1334
  paymentReference?: string | undefined;
1319
1335
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1323,8 +1339,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1323
1339
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1324
1340
  completedAt?: string | undefined;
1325
1341
  }, {
1326
- status: "confirmed" | "provisional" | "refunded" | "void";
1342
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1327
1343
  protocol: "x402" | "l402";
1344
+ receiptId: string;
1345
+ paidRequestId: string;
1346
+ paymentAttemptId: string;
1347
+ organizationId: string;
1348
+ agentId: string;
1328
1349
  money: {
1329
1350
  asset: string;
1330
1351
  amount: string;
@@ -1332,17 +1353,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1332
1353
  precision: number;
1333
1354
  unit: "minor";
1334
1355
  };
1335
- receiptId: string;
1336
- paidRequestId: string;
1337
- paymentAttemptId: string;
1338
- organizationId: string;
1339
- agentId: string;
1340
- merchantId: string;
1341
1356
  authorizationOutcome: "allowed";
1342
1357
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1343
1358
  requestUrl: string;
1344
1359
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1345
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;
1346
1368
  canonicalSettlementKey?: string | undefined;
1347
1369
  paymentReference?: string | undefined;
1348
1370
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1367,8 +1389,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1367
1389
  body: string;
1368
1390
  };
1369
1391
  receipt: {
1370
- status: "confirmed" | "provisional" | "refunded" | "void";
1392
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1371
1393
  protocol: "x402" | "l402";
1394
+ receiptId: string;
1395
+ paidRequestId: string;
1396
+ paymentAttemptId: string;
1397
+ organizationId: string;
1398
+ agentId: string;
1372
1399
  money: {
1373
1400
  asset: string;
1374
1401
  amount: string;
@@ -1376,17 +1403,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1376
1403
  precision: number;
1377
1404
  unit: "minor";
1378
1405
  };
1379
- receiptId: string;
1380
- paidRequestId: string;
1381
- paymentAttemptId: string;
1382
- organizationId: string;
1383
- agentId: string;
1384
- merchantId: string;
1385
1406
  authorizationOutcome: "allowed";
1386
1407
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1387
1408
  requestUrl: string;
1388
1409
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1389
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;
1390
1418
  canonicalSettlementKey?: string | undefined;
1391
1419
  paymentReference?: string | undefined;
1392
1420
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1411,8 +1439,13 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1411
1439
  body?: string | undefined;
1412
1440
  };
1413
1441
  receipt: {
1414
- status: "confirmed" | "provisional" | "refunded" | "void";
1442
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1415
1443
  protocol: "x402" | "l402";
1444
+ receiptId: string;
1445
+ paidRequestId: string;
1446
+ paymentAttemptId: string;
1447
+ organizationId: string;
1448
+ agentId: string;
1416
1449
  money: {
1417
1450
  asset: string;
1418
1451
  amount: string;
@@ -1420,17 +1453,18 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1420
1453
  precision: number;
1421
1454
  unit: "minor";
1422
1455
  };
1423
- receiptId: string;
1424
- paidRequestId: string;
1425
- paymentAttemptId: string;
1426
- organizationId: string;
1427
- agentId: string;
1428
- merchantId: string;
1429
1456
  authorizationOutcome: "allowed";
1430
1457
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1431
1458
  requestUrl: string;
1432
1459
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1433
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;
1434
1468
  canonicalSettlementKey?: string | undefined;
1435
1469
  paymentReference?: string | undefined;
1436
1470
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1572,7 +1606,7 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1572
1606
  paymentAttemptId: z.ZodString;
1573
1607
  organizationId: z.ZodString;
1574
1608
  agentId: z.ZodString;
1575
- merchantId: z.ZodString;
1609
+ merchantId: z.ZodOptional<z.ZodString>;
1576
1610
  protocol: z.ZodEnum<["x402", "l402"]>;
1577
1611
  money: z.ZodEffects<z.ZodObject<{
1578
1612
  asset: z.ZodString;
@@ -1606,8 +1640,14 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1606
1640
  unit: "minor";
1607
1641
  }>;
1608
1642
  authorizationOutcome: z.ZodEnum<["allowed"]>;
1609
- status: z.ZodEnum<["confirmed", "provisional", "refunded", "void"]>;
1643
+ status: z.ZodEnum<["confirmed", "provisional", "expired_unconfirmed", "refunded", "void"]>;
1610
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"]>>;
1611
1651
  requestUrl: z.ZodString;
1612
1652
  requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1613
1653
  canonicalSettlementKey: z.ZodOptional<z.ZodString>;
@@ -1620,8 +1660,13 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1620
1660
  createdAt: z.ZodString;
1621
1661
  completedAt: z.ZodOptional<z.ZodString>;
1622
1662
  }, "strip", z.ZodTypeAny, {
1623
- status: "confirmed" | "provisional" | "refunded" | "void";
1663
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1624
1664
  protocol: "x402" | "l402";
1665
+ receiptId: string;
1666
+ paidRequestId: string;
1667
+ paymentAttemptId: string;
1668
+ organizationId: string;
1669
+ agentId: string;
1625
1670
  money: {
1626
1671
  asset: string;
1627
1672
  amount: string;
@@ -1629,17 +1674,18 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1629
1674
  precision: number;
1630
1675
  unit: "minor";
1631
1676
  };
1632
- receiptId: string;
1633
- paidRequestId: string;
1634
- paymentAttemptId: string;
1635
- organizationId: string;
1636
- agentId: string;
1637
- merchantId: string;
1638
1677
  authorizationOutcome: "allowed";
1639
1678
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1640
1679
  requestUrl: string;
1641
1680
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1642
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;
1643
1689
  canonicalSettlementKey?: string | undefined;
1644
1690
  paymentReference?: string | undefined;
1645
1691
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1649,8 +1695,13 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1649
1695
  fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1650
1696
  completedAt?: string | undefined;
1651
1697
  }, {
1652
- status: "confirmed" | "provisional" | "refunded" | "void";
1698
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1653
1699
  protocol: "x402" | "l402";
1700
+ receiptId: string;
1701
+ paidRequestId: string;
1702
+ paymentAttemptId: string;
1703
+ organizationId: string;
1704
+ agentId: string;
1654
1705
  money: {
1655
1706
  asset: string;
1656
1707
  amount: string;
@@ -1658,17 +1709,18 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1658
1709
  precision: number;
1659
1710
  unit: "minor";
1660
1711
  };
1661
- receiptId: string;
1662
- paidRequestId: string;
1663
- paymentAttemptId: string;
1664
- organizationId: string;
1665
- agentId: string;
1666
- merchantId: string;
1667
1712
  authorizationOutcome: "allowed";
1668
1713
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1669
1714
  requestUrl: string;
1670
1715
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1671
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;
1672
1724
  canonicalSettlementKey?: string | undefined;
1673
1725
  paymentReference?: string | undefined;
1674
1726
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1680,8 +1732,13 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1680
1732
  }>;
1681
1733
  }, "strip", z.ZodTypeAny, {
1682
1734
  receipt: {
1683
- status: "confirmed" | "provisional" | "refunded" | "void";
1735
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1684
1736
  protocol: "x402" | "l402";
1737
+ receiptId: string;
1738
+ paidRequestId: string;
1739
+ paymentAttemptId: string;
1740
+ organizationId: string;
1741
+ agentId: string;
1685
1742
  money: {
1686
1743
  asset: string;
1687
1744
  amount: string;
@@ -1689,17 +1746,18 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1689
1746
  precision: number;
1690
1747
  unit: "minor";
1691
1748
  };
1692
- receiptId: string;
1693
- paidRequestId: string;
1694
- paymentAttemptId: string;
1695
- organizationId: string;
1696
- agentId: string;
1697
- merchantId: string;
1698
1749
  authorizationOutcome: "allowed";
1699
1750
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1700
1751
  requestUrl: string;
1701
1752
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1702
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;
1703
1761
  canonicalSettlementKey?: string | undefined;
1704
1762
  paymentReference?: string | undefined;
1705
1763
  evidenceSource?: "merchant" | "local_simulation" | undefined;
@@ -1711,8 +1769,13 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1711
1769
  };
1712
1770
  }, {
1713
1771
  receipt: {
1714
- status: "confirmed" | "provisional" | "refunded" | "void";
1772
+ status: "confirmed" | "provisional" | "expired_unconfirmed" | "refunded" | "void";
1715
1773
  protocol: "x402" | "l402";
1774
+ receiptId: string;
1775
+ paidRequestId: string;
1776
+ paymentAttemptId: string;
1777
+ organizationId: string;
1778
+ agentId: string;
1716
1779
  money: {
1717
1780
  asset: string;
1718
1781
  amount: string;
@@ -1720,17 +1783,18 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1720
1783
  precision: number;
1721
1784
  unit: "minor";
1722
1785
  };
1723
- receiptId: string;
1724
- paidRequestId: string;
1725
- paymentAttemptId: string;
1726
- organizationId: string;
1727
- agentId: string;
1728
- merchantId: string;
1729
1786
  authorizationOutcome: "allowed";
1730
1787
  reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
1731
1788
  requestUrl: string;
1732
1789
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1733
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;
1734
1798
  canonicalSettlementKey?: string | undefined;
1735
1799
  paymentReference?: string | undefined;
1736
1800
  evidenceSource?: "merchant" | "local_simulation" | undefined;