@402flow/sdk 0.1.0-alpha.6 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/challenge-detection.d.ts +7 -5
- package/dist/challenge-detection.js +54 -102
- package/dist/challenge-detection.js.map +1 -1
- package/dist/contracts.d.ts +148 -260
- package/dist/contracts.js +2 -4
- package/dist/contracts.js.map +1 -1
- package/dist/index.d.ts +22 -5
- package/dist/index.js +104 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/challenge-types.d.ts +0 -57
- package/dist/challenge-types.js +0 -111
- package/dist/challenge-types.js.map +0 -1
- package/dist/x402-v1.d.ts +0 -4
- package/dist/x402-v1.js +0 -53
- package/dist/x402-v1.js.map +0 -1
- package/dist/x402-v2.d.ts +0 -4
- package/dist/x402-v2.js +0 -52
- package/dist/x402-v2.js.map +0 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -96,64 +96,16 @@ export declare const paidRequestHttpRequestSchema: z.ZodObject<{
|
|
|
96
96
|
export type PaidRequestHttpRequest = z.infer<typeof paidRequestHttpRequestSchema>;
|
|
97
97
|
export declare const paidRequestChallengeSchema: z.ZodObject<{
|
|
98
98
|
protocol: z.ZodEnum<["x402", "l402"]>;
|
|
99
|
-
|
|
100
|
-
|
|
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>>;
|
|
99
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
100
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
133
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
headers: Record<string, string>;
|
|
134
103
|
protocol: "x402" | "l402";
|
|
135
|
-
|
|
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;
|
|
104
|
+
body?: unknown;
|
|
145
105
|
}, {
|
|
146
106
|
protocol: "x402" | "l402";
|
|
147
|
-
|
|
148
|
-
|
|
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;
|
|
107
|
+
headers?: Record<string, string> | undefined;
|
|
108
|
+
body?: unknown;
|
|
157
109
|
}>;
|
|
158
110
|
export type PaidRequestChallenge = z.infer<typeof paidRequestChallengeSchema>;
|
|
159
111
|
export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
|
|
@@ -194,64 +146,16 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
|
|
|
194
146
|
}>;
|
|
195
147
|
challenge: z.ZodObject<{
|
|
196
148
|
protocol: z.ZodEnum<["x402", "l402"]>;
|
|
197
|
-
|
|
198
|
-
|
|
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>>;
|
|
149
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
231
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
headers: Record<string, string>;
|
|
232
153
|
protocol: "x402" | "l402";
|
|
233
|
-
|
|
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;
|
|
154
|
+
body?: unknown;
|
|
243
155
|
}, {
|
|
244
156
|
protocol: "x402" | "l402";
|
|
245
|
-
|
|
246
|
-
|
|
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;
|
|
157
|
+
headers?: Record<string, string> | undefined;
|
|
158
|
+
body?: unknown;
|
|
255
159
|
}>;
|
|
256
160
|
paymentRail: z.ZodOptional<z.ZodString>;
|
|
257
161
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -270,17 +174,9 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
|
|
|
270
174
|
bodyHash?: string | undefined;
|
|
271
175
|
};
|
|
272
176
|
challenge: {
|
|
177
|
+
headers: Record<string, string>;
|
|
273
178
|
protocol: "x402" | "l402";
|
|
274
|
-
|
|
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;
|
|
179
|
+
body?: unknown;
|
|
284
180
|
};
|
|
285
181
|
paymentRail?: string | undefined;
|
|
286
182
|
idempotencyKey?: string | undefined;
|
|
@@ -300,16 +196,8 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
|
|
|
300
196
|
};
|
|
301
197
|
challenge: {
|
|
302
198
|
protocol: "x402" | "l402";
|
|
303
|
-
|
|
304
|
-
|
|
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;
|
|
199
|
+
headers?: Record<string, string> | undefined;
|
|
200
|
+
body?: unknown;
|
|
313
201
|
};
|
|
314
202
|
paymentRail?: string | undefined;
|
|
315
203
|
idempotencyKey?: string | undefined;
|
|
@@ -371,6 +259,12 @@ export declare const sdkReceiptSchema: z.ZodObject<{
|
|
|
371
259
|
}, "strip", z.ZodTypeAny, {
|
|
372
260
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
373
261
|
protocol: "x402" | "l402";
|
|
262
|
+
receiptId: string;
|
|
263
|
+
paidRequestId: string;
|
|
264
|
+
paymentAttemptId: string;
|
|
265
|
+
organizationId: string;
|
|
266
|
+
agentId: string;
|
|
267
|
+
merchantId: string;
|
|
374
268
|
money: {
|
|
375
269
|
asset: string;
|
|
376
270
|
amount: string;
|
|
@@ -378,12 +272,6 @@ export declare const sdkReceiptSchema: z.ZodObject<{
|
|
|
378
272
|
precision: number;
|
|
379
273
|
unit: "minor";
|
|
380
274
|
};
|
|
381
|
-
receiptId: string;
|
|
382
|
-
paidRequestId: string;
|
|
383
|
-
paymentAttemptId: string;
|
|
384
|
-
organizationId: string;
|
|
385
|
-
agentId: string;
|
|
386
|
-
merchantId: string;
|
|
387
275
|
authorizationOutcome: "allowed";
|
|
388
276
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
389
277
|
requestUrl: string;
|
|
@@ -400,6 +288,12 @@ export declare const sdkReceiptSchema: z.ZodObject<{
|
|
|
400
288
|
}, {
|
|
401
289
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
402
290
|
protocol: "x402" | "l402";
|
|
291
|
+
receiptId: string;
|
|
292
|
+
paidRequestId: string;
|
|
293
|
+
paymentAttemptId: string;
|
|
294
|
+
organizationId: string;
|
|
295
|
+
agentId: string;
|
|
296
|
+
merchantId: string;
|
|
403
297
|
money: {
|
|
404
298
|
asset: string;
|
|
405
299
|
amount: string;
|
|
@@ -407,12 +301,6 @@ export declare const sdkReceiptSchema: z.ZodObject<{
|
|
|
407
301
|
precision: number;
|
|
408
302
|
unit: "minor";
|
|
409
303
|
};
|
|
410
|
-
receiptId: string;
|
|
411
|
-
paidRequestId: string;
|
|
412
|
-
paymentAttemptId: string;
|
|
413
|
-
organizationId: string;
|
|
414
|
-
agentId: string;
|
|
415
|
-
merchantId: string;
|
|
416
304
|
authorizationOutcome: "allowed";
|
|
417
305
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
418
306
|
requestUrl: string;
|
|
@@ -517,6 +405,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
517
405
|
}, "strip", z.ZodTypeAny, {
|
|
518
406
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
519
407
|
protocol: "x402" | "l402";
|
|
408
|
+
receiptId: string;
|
|
409
|
+
paidRequestId: string;
|
|
410
|
+
paymentAttemptId: string;
|
|
411
|
+
organizationId: string;
|
|
412
|
+
agentId: string;
|
|
413
|
+
merchantId: string;
|
|
520
414
|
money: {
|
|
521
415
|
asset: string;
|
|
522
416
|
amount: string;
|
|
@@ -524,12 +418,6 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
524
418
|
precision: number;
|
|
525
419
|
unit: "minor";
|
|
526
420
|
};
|
|
527
|
-
receiptId: string;
|
|
528
|
-
paidRequestId: string;
|
|
529
|
-
paymentAttemptId: string;
|
|
530
|
-
organizationId: string;
|
|
531
|
-
agentId: string;
|
|
532
|
-
merchantId: string;
|
|
533
421
|
authorizationOutcome: "allowed";
|
|
534
422
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
535
423
|
requestUrl: string;
|
|
@@ -546,6 +434,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
546
434
|
}, {
|
|
547
435
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
548
436
|
protocol: "x402" | "l402";
|
|
437
|
+
receiptId: string;
|
|
438
|
+
paidRequestId: string;
|
|
439
|
+
paymentAttemptId: string;
|
|
440
|
+
organizationId: string;
|
|
441
|
+
agentId: string;
|
|
442
|
+
merchantId: string;
|
|
549
443
|
money: {
|
|
550
444
|
asset: string;
|
|
551
445
|
amount: string;
|
|
@@ -553,12 +447,6 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
553
447
|
precision: number;
|
|
554
448
|
unit: "minor";
|
|
555
449
|
};
|
|
556
|
-
receiptId: string;
|
|
557
|
-
paidRequestId: string;
|
|
558
|
-
paymentAttemptId: string;
|
|
559
|
-
organizationId: string;
|
|
560
|
-
agentId: string;
|
|
561
|
-
merchantId: string;
|
|
562
450
|
authorizationOutcome: "allowed";
|
|
563
451
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
564
452
|
requestUrl: string;
|
|
@@ -587,6 +475,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
587
475
|
receipt: {
|
|
588
476
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
589
477
|
protocol: "x402" | "l402";
|
|
478
|
+
receiptId: string;
|
|
479
|
+
paidRequestId: string;
|
|
480
|
+
paymentAttemptId: string;
|
|
481
|
+
organizationId: string;
|
|
482
|
+
agentId: string;
|
|
483
|
+
merchantId: string;
|
|
590
484
|
money: {
|
|
591
485
|
asset: string;
|
|
592
486
|
amount: string;
|
|
@@ -594,12 +488,6 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
594
488
|
precision: number;
|
|
595
489
|
unit: "minor";
|
|
596
490
|
};
|
|
597
|
-
receiptId: string;
|
|
598
|
-
paidRequestId: string;
|
|
599
|
-
paymentAttemptId: string;
|
|
600
|
-
organizationId: string;
|
|
601
|
-
agentId: string;
|
|
602
|
-
merchantId: string;
|
|
603
491
|
authorizationOutcome: "allowed";
|
|
604
492
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
605
493
|
requestUrl: string;
|
|
@@ -628,6 +516,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
628
516
|
receipt: {
|
|
629
517
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
630
518
|
protocol: "x402" | "l402";
|
|
519
|
+
receiptId: string;
|
|
520
|
+
paidRequestId: string;
|
|
521
|
+
paymentAttemptId: string;
|
|
522
|
+
organizationId: string;
|
|
523
|
+
agentId: string;
|
|
524
|
+
merchantId: string;
|
|
631
525
|
money: {
|
|
632
526
|
asset: string;
|
|
633
527
|
amount: string;
|
|
@@ -635,12 +529,6 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
|
|
|
635
529
|
precision: number;
|
|
636
530
|
unit: "minor";
|
|
637
531
|
};
|
|
638
|
-
receiptId: string;
|
|
639
|
-
paidRequestId: string;
|
|
640
|
-
paymentAttemptId: string;
|
|
641
|
-
organizationId: string;
|
|
642
|
-
agentId: string;
|
|
643
|
-
merchantId: string;
|
|
644
532
|
authorizationOutcome: "allowed";
|
|
645
533
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
646
534
|
requestUrl: string;
|
|
@@ -733,6 +621,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
733
621
|
}, "strip", z.ZodTypeAny, {
|
|
734
622
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
735
623
|
protocol: "x402" | "l402";
|
|
624
|
+
receiptId: string;
|
|
625
|
+
paidRequestId: string;
|
|
626
|
+
paymentAttemptId: string;
|
|
627
|
+
organizationId: string;
|
|
628
|
+
agentId: string;
|
|
629
|
+
merchantId: string;
|
|
736
630
|
money: {
|
|
737
631
|
asset: string;
|
|
738
632
|
amount: string;
|
|
@@ -740,12 +634,6 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
740
634
|
precision: number;
|
|
741
635
|
unit: "minor";
|
|
742
636
|
};
|
|
743
|
-
receiptId: string;
|
|
744
|
-
paidRequestId: string;
|
|
745
|
-
paymentAttemptId: string;
|
|
746
|
-
organizationId: string;
|
|
747
|
-
agentId: string;
|
|
748
|
-
merchantId: string;
|
|
749
637
|
authorizationOutcome: "allowed";
|
|
750
638
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
751
639
|
requestUrl: string;
|
|
@@ -762,6 +650,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
762
650
|
}, {
|
|
763
651
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
764
652
|
protocol: "x402" | "l402";
|
|
653
|
+
receiptId: string;
|
|
654
|
+
paidRequestId: string;
|
|
655
|
+
paymentAttemptId: string;
|
|
656
|
+
organizationId: string;
|
|
657
|
+
agentId: string;
|
|
658
|
+
merchantId: string;
|
|
765
659
|
money: {
|
|
766
660
|
asset: string;
|
|
767
661
|
amount: string;
|
|
@@ -769,12 +663,6 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
769
663
|
precision: number;
|
|
770
664
|
unit: "minor";
|
|
771
665
|
};
|
|
772
|
-
receiptId: string;
|
|
773
|
-
paidRequestId: string;
|
|
774
|
-
paymentAttemptId: string;
|
|
775
|
-
organizationId: string;
|
|
776
|
-
agentId: string;
|
|
777
|
-
merchantId: string;
|
|
778
666
|
authorizationOutcome: "allowed";
|
|
779
667
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
780
668
|
requestUrl: string;
|
|
@@ -806,6 +694,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
806
694
|
receipt: {
|
|
807
695
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
808
696
|
protocol: "x402" | "l402";
|
|
697
|
+
receiptId: string;
|
|
698
|
+
paidRequestId: string;
|
|
699
|
+
paymentAttemptId: string;
|
|
700
|
+
organizationId: string;
|
|
701
|
+
agentId: string;
|
|
702
|
+
merchantId: string;
|
|
809
703
|
money: {
|
|
810
704
|
asset: string;
|
|
811
705
|
amount: string;
|
|
@@ -813,12 +707,6 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
813
707
|
precision: number;
|
|
814
708
|
unit: "minor";
|
|
815
709
|
};
|
|
816
|
-
receiptId: string;
|
|
817
|
-
paidRequestId: string;
|
|
818
|
-
paymentAttemptId: string;
|
|
819
|
-
organizationId: string;
|
|
820
|
-
agentId: string;
|
|
821
|
-
merchantId: string;
|
|
822
710
|
authorizationOutcome: "allowed";
|
|
823
711
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
824
712
|
requestUrl: string;
|
|
@@ -850,6 +738,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
850
738
|
receipt: {
|
|
851
739
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
852
740
|
protocol: "x402" | "l402";
|
|
741
|
+
receiptId: string;
|
|
742
|
+
paidRequestId: string;
|
|
743
|
+
paymentAttemptId: string;
|
|
744
|
+
organizationId: string;
|
|
745
|
+
agentId: string;
|
|
746
|
+
merchantId: string;
|
|
853
747
|
money: {
|
|
854
748
|
asset: string;
|
|
855
749
|
amount: string;
|
|
@@ -857,12 +751,6 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
|
|
|
857
751
|
precision: number;
|
|
858
752
|
unit: "minor";
|
|
859
753
|
};
|
|
860
|
-
receiptId: string;
|
|
861
|
-
paidRequestId: string;
|
|
862
|
-
paymentAttemptId: string;
|
|
863
|
-
organizationId: string;
|
|
864
|
-
agentId: string;
|
|
865
|
-
merchantId: string;
|
|
866
754
|
authorizationOutcome: "allowed";
|
|
867
755
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
868
756
|
requestUrl: string;
|
|
@@ -1081,6 +969,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1081
969
|
}, "strip", z.ZodTypeAny, {
|
|
1082
970
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1083
971
|
protocol: "x402" | "l402";
|
|
972
|
+
receiptId: string;
|
|
973
|
+
paidRequestId: string;
|
|
974
|
+
paymentAttemptId: string;
|
|
975
|
+
organizationId: string;
|
|
976
|
+
agentId: string;
|
|
977
|
+
merchantId: string;
|
|
1084
978
|
money: {
|
|
1085
979
|
asset: string;
|
|
1086
980
|
amount: string;
|
|
@@ -1088,12 +982,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1088
982
|
precision: number;
|
|
1089
983
|
unit: "minor";
|
|
1090
984
|
};
|
|
1091
|
-
receiptId: string;
|
|
1092
|
-
paidRequestId: string;
|
|
1093
|
-
paymentAttemptId: string;
|
|
1094
|
-
organizationId: string;
|
|
1095
|
-
agentId: string;
|
|
1096
|
-
merchantId: string;
|
|
1097
985
|
authorizationOutcome: "allowed";
|
|
1098
986
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1099
987
|
requestUrl: string;
|
|
@@ -1110,6 +998,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1110
998
|
}, {
|
|
1111
999
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1112
1000
|
protocol: "x402" | "l402";
|
|
1001
|
+
receiptId: string;
|
|
1002
|
+
paidRequestId: string;
|
|
1003
|
+
paymentAttemptId: string;
|
|
1004
|
+
organizationId: string;
|
|
1005
|
+
agentId: string;
|
|
1006
|
+
merchantId: string;
|
|
1113
1007
|
money: {
|
|
1114
1008
|
asset: string;
|
|
1115
1009
|
amount: string;
|
|
@@ -1117,12 +1011,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1117
1011
|
precision: number;
|
|
1118
1012
|
unit: "minor";
|
|
1119
1013
|
};
|
|
1120
|
-
receiptId: string;
|
|
1121
|
-
paidRequestId: string;
|
|
1122
|
-
paymentAttemptId: string;
|
|
1123
|
-
organizationId: string;
|
|
1124
|
-
agentId: string;
|
|
1125
|
-
merchantId: string;
|
|
1126
1014
|
authorizationOutcome: "allowed";
|
|
1127
1015
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1128
1016
|
requestUrl: string;
|
|
@@ -1151,6 +1039,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1151
1039
|
receipt: {
|
|
1152
1040
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1153
1041
|
protocol: "x402" | "l402";
|
|
1042
|
+
receiptId: string;
|
|
1043
|
+
paidRequestId: string;
|
|
1044
|
+
paymentAttemptId: string;
|
|
1045
|
+
organizationId: string;
|
|
1046
|
+
agentId: string;
|
|
1047
|
+
merchantId: string;
|
|
1154
1048
|
money: {
|
|
1155
1049
|
asset: string;
|
|
1156
1050
|
amount: string;
|
|
@@ -1158,12 +1052,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1158
1052
|
precision: number;
|
|
1159
1053
|
unit: "minor";
|
|
1160
1054
|
};
|
|
1161
|
-
receiptId: string;
|
|
1162
|
-
paidRequestId: string;
|
|
1163
|
-
paymentAttemptId: string;
|
|
1164
|
-
organizationId: string;
|
|
1165
|
-
agentId: string;
|
|
1166
|
-
merchantId: string;
|
|
1167
1055
|
authorizationOutcome: "allowed";
|
|
1168
1056
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1169
1057
|
requestUrl: string;
|
|
@@ -1192,6 +1080,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1192
1080
|
receipt: {
|
|
1193
1081
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1194
1082
|
protocol: "x402" | "l402";
|
|
1083
|
+
receiptId: string;
|
|
1084
|
+
paidRequestId: string;
|
|
1085
|
+
paymentAttemptId: string;
|
|
1086
|
+
organizationId: string;
|
|
1087
|
+
agentId: string;
|
|
1088
|
+
merchantId: string;
|
|
1195
1089
|
money: {
|
|
1196
1090
|
asset: string;
|
|
1197
1091
|
amount: string;
|
|
@@ -1199,12 +1093,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1199
1093
|
precision: number;
|
|
1200
1094
|
unit: "minor";
|
|
1201
1095
|
};
|
|
1202
|
-
receiptId: string;
|
|
1203
|
-
paidRequestId: string;
|
|
1204
|
-
paymentAttemptId: string;
|
|
1205
|
-
organizationId: string;
|
|
1206
|
-
agentId: string;
|
|
1207
|
-
merchantId: string;
|
|
1208
1096
|
authorizationOutcome: "allowed";
|
|
1209
1097
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1210
1098
|
requestUrl: string;
|
|
@@ -1296,6 +1184,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1296
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1297
1185
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1298
1186
|
protocol: "x402" | "l402";
|
|
1187
|
+
receiptId: string;
|
|
1188
|
+
paidRequestId: string;
|
|
1189
|
+
paymentAttemptId: string;
|
|
1190
|
+
organizationId: string;
|
|
1191
|
+
agentId: string;
|
|
1192
|
+
merchantId: string;
|
|
1299
1193
|
money: {
|
|
1300
1194
|
asset: string;
|
|
1301
1195
|
amount: string;
|
|
@@ -1303,12 +1197,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1303
1197
|
precision: number;
|
|
1304
1198
|
unit: "minor";
|
|
1305
1199
|
};
|
|
1306
|
-
receiptId: string;
|
|
1307
|
-
paidRequestId: string;
|
|
1308
|
-
paymentAttemptId: string;
|
|
1309
|
-
organizationId: string;
|
|
1310
|
-
agentId: string;
|
|
1311
|
-
merchantId: string;
|
|
1312
1200
|
authorizationOutcome: "allowed";
|
|
1313
1201
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1314
1202
|
requestUrl: string;
|
|
@@ -1325,6 +1213,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1325
1213
|
}, {
|
|
1326
1214
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1327
1215
|
protocol: "x402" | "l402";
|
|
1216
|
+
receiptId: string;
|
|
1217
|
+
paidRequestId: string;
|
|
1218
|
+
paymentAttemptId: string;
|
|
1219
|
+
organizationId: string;
|
|
1220
|
+
agentId: string;
|
|
1221
|
+
merchantId: string;
|
|
1328
1222
|
money: {
|
|
1329
1223
|
asset: string;
|
|
1330
1224
|
amount: string;
|
|
@@ -1332,12 +1226,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1332
1226
|
precision: number;
|
|
1333
1227
|
unit: "minor";
|
|
1334
1228
|
};
|
|
1335
|
-
receiptId: string;
|
|
1336
|
-
paidRequestId: string;
|
|
1337
|
-
paymentAttemptId: string;
|
|
1338
|
-
organizationId: string;
|
|
1339
|
-
agentId: string;
|
|
1340
|
-
merchantId: string;
|
|
1341
1229
|
authorizationOutcome: "allowed";
|
|
1342
1230
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1343
1231
|
requestUrl: string;
|
|
@@ -1369,6 +1257,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1369
1257
|
receipt: {
|
|
1370
1258
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1371
1259
|
protocol: "x402" | "l402";
|
|
1260
|
+
receiptId: string;
|
|
1261
|
+
paidRequestId: string;
|
|
1262
|
+
paymentAttemptId: string;
|
|
1263
|
+
organizationId: string;
|
|
1264
|
+
agentId: string;
|
|
1265
|
+
merchantId: string;
|
|
1372
1266
|
money: {
|
|
1373
1267
|
asset: string;
|
|
1374
1268
|
amount: string;
|
|
@@ -1376,12 +1270,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1376
1270
|
precision: number;
|
|
1377
1271
|
unit: "minor";
|
|
1378
1272
|
};
|
|
1379
|
-
receiptId: string;
|
|
1380
|
-
paidRequestId: string;
|
|
1381
|
-
paymentAttemptId: string;
|
|
1382
|
-
organizationId: string;
|
|
1383
|
-
agentId: string;
|
|
1384
|
-
merchantId: string;
|
|
1385
1273
|
authorizationOutcome: "allowed";
|
|
1386
1274
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1387
1275
|
requestUrl: string;
|
|
@@ -1413,6 +1301,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1413
1301
|
receipt: {
|
|
1414
1302
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1415
1303
|
protocol: "x402" | "l402";
|
|
1304
|
+
receiptId: string;
|
|
1305
|
+
paidRequestId: string;
|
|
1306
|
+
paymentAttemptId: string;
|
|
1307
|
+
organizationId: string;
|
|
1308
|
+
agentId: string;
|
|
1309
|
+
merchantId: string;
|
|
1416
1310
|
money: {
|
|
1417
1311
|
asset: string;
|
|
1418
1312
|
amount: string;
|
|
@@ -1420,12 +1314,6 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
|
|
|
1420
1314
|
precision: number;
|
|
1421
1315
|
unit: "minor";
|
|
1422
1316
|
};
|
|
1423
|
-
receiptId: string;
|
|
1424
|
-
paidRequestId: string;
|
|
1425
|
-
paymentAttemptId: string;
|
|
1426
|
-
organizationId: string;
|
|
1427
|
-
agentId: string;
|
|
1428
|
-
merchantId: string;
|
|
1429
1317
|
authorizationOutcome: "allowed";
|
|
1430
1318
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1431
1319
|
requestUrl: string;
|
|
@@ -1622,6 +1510,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1622
1510
|
}, "strip", z.ZodTypeAny, {
|
|
1623
1511
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1624
1512
|
protocol: "x402" | "l402";
|
|
1513
|
+
receiptId: string;
|
|
1514
|
+
paidRequestId: string;
|
|
1515
|
+
paymentAttemptId: string;
|
|
1516
|
+
organizationId: string;
|
|
1517
|
+
agentId: string;
|
|
1518
|
+
merchantId: string;
|
|
1625
1519
|
money: {
|
|
1626
1520
|
asset: string;
|
|
1627
1521
|
amount: string;
|
|
@@ -1629,12 +1523,6 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1629
1523
|
precision: number;
|
|
1630
1524
|
unit: "minor";
|
|
1631
1525
|
};
|
|
1632
|
-
receiptId: string;
|
|
1633
|
-
paidRequestId: string;
|
|
1634
|
-
paymentAttemptId: string;
|
|
1635
|
-
organizationId: string;
|
|
1636
|
-
agentId: string;
|
|
1637
|
-
merchantId: string;
|
|
1638
1526
|
authorizationOutcome: "allowed";
|
|
1639
1527
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1640
1528
|
requestUrl: string;
|
|
@@ -1651,6 +1539,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1651
1539
|
}, {
|
|
1652
1540
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1653
1541
|
protocol: "x402" | "l402";
|
|
1542
|
+
receiptId: string;
|
|
1543
|
+
paidRequestId: string;
|
|
1544
|
+
paymentAttemptId: string;
|
|
1545
|
+
organizationId: string;
|
|
1546
|
+
agentId: string;
|
|
1547
|
+
merchantId: string;
|
|
1654
1548
|
money: {
|
|
1655
1549
|
asset: string;
|
|
1656
1550
|
amount: string;
|
|
@@ -1658,12 +1552,6 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1658
1552
|
precision: number;
|
|
1659
1553
|
unit: "minor";
|
|
1660
1554
|
};
|
|
1661
|
-
receiptId: string;
|
|
1662
|
-
paidRequestId: string;
|
|
1663
|
-
paymentAttemptId: string;
|
|
1664
|
-
organizationId: string;
|
|
1665
|
-
agentId: string;
|
|
1666
|
-
merchantId: string;
|
|
1667
1555
|
authorizationOutcome: "allowed";
|
|
1668
1556
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1669
1557
|
requestUrl: string;
|
|
@@ -1682,6 +1570,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1682
1570
|
receipt: {
|
|
1683
1571
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1684
1572
|
protocol: "x402" | "l402";
|
|
1573
|
+
receiptId: string;
|
|
1574
|
+
paidRequestId: string;
|
|
1575
|
+
paymentAttemptId: string;
|
|
1576
|
+
organizationId: string;
|
|
1577
|
+
agentId: string;
|
|
1578
|
+
merchantId: string;
|
|
1685
1579
|
money: {
|
|
1686
1580
|
asset: string;
|
|
1687
1581
|
amount: string;
|
|
@@ -1689,12 +1583,6 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1689
1583
|
precision: number;
|
|
1690
1584
|
unit: "minor";
|
|
1691
1585
|
};
|
|
1692
|
-
receiptId: string;
|
|
1693
|
-
paidRequestId: string;
|
|
1694
|
-
paymentAttemptId: string;
|
|
1695
|
-
organizationId: string;
|
|
1696
|
-
agentId: string;
|
|
1697
|
-
merchantId: string;
|
|
1698
1586
|
authorizationOutcome: "allowed";
|
|
1699
1587
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1700
1588
|
requestUrl: string;
|
|
@@ -1713,6 +1601,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1713
1601
|
receipt: {
|
|
1714
1602
|
status: "confirmed" | "provisional" | "refunded" | "void";
|
|
1715
1603
|
protocol: "x402" | "l402";
|
|
1604
|
+
receiptId: string;
|
|
1605
|
+
paidRequestId: string;
|
|
1606
|
+
paymentAttemptId: string;
|
|
1607
|
+
organizationId: string;
|
|
1608
|
+
agentId: string;
|
|
1609
|
+
merchantId: string;
|
|
1716
1610
|
money: {
|
|
1717
1611
|
asset: string;
|
|
1718
1612
|
amount: string;
|
|
@@ -1720,12 +1614,6 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
|
|
|
1720
1614
|
precision: number;
|
|
1721
1615
|
unit: "minor";
|
|
1722
1616
|
};
|
|
1723
|
-
receiptId: string;
|
|
1724
|
-
paidRequestId: string;
|
|
1725
|
-
paymentAttemptId: string;
|
|
1726
|
-
organizationId: string;
|
|
1727
|
-
agentId: string;
|
|
1728
|
-
merchantId: string;
|
|
1729
1617
|
authorizationOutcome: "allowed";
|
|
1730
1618
|
reconciliationStatus: "none" | "refunded" | "required" | "in_progress" | "resolved";
|
|
1731
1619
|
requestUrl: string;
|