@402flow/sdk 0.1.0-alpha.12 → 0.1.0-alpha.14

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.
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Public wire-contract schemas for @402flow/sdk.
3
+ *
4
+ * These schemas serve two roles:
5
+ * 1. validate control-plane and merchant-facing data at runtime
6
+ * 2. define the exported TypeScript shapes the SDK exposes to callers
7
+ */
1
8
  import { z } from 'zod';
2
9
  export declare const receiptAuthorizationOutcomeSchema: z.ZodEnum<["allowed"]>;
3
10
  export type ReceiptAuthorizationOutcome = z.infer<typeof receiptAuthorizationOutcomeSchema>;
@@ -30,7 +37,13 @@ export declare const externalIdSchema: z.ZodString;
30
37
  export declare const monetaryAmountSchema: z.ZodString;
31
38
  export declare const currencyCodeSchema: z.ZodString;
32
39
  export declare const moneyUnitSchema: z.ZodLiteral<"minor">;
40
+ /**
41
+ * Convert a decimal amount into minor units using the declared precision.
42
+ * The SDK uses this when a merchant expresses payment terms in decimal form but
43
+ * downstream contracts require canonical minor-unit amounts.
44
+ */
33
45
  export declare function monetaryAmountToMinorUnits(amount: string, precision: number): string;
46
+ /** Canonical normalized money shape used on receipts and payment requirements. */
34
47
  export declare const normalizedMoneySchema: z.ZodEffects<z.ZodObject<{
35
48
  asset: z.ZodString;
36
49
  amount: z.ZodString;
@@ -63,6 +76,7 @@ export declare const normalizedMoneySchema: z.ZodEffects<z.ZodObject<{
63
76
  unit: "minor";
64
77
  }>;
65
78
  export type NormalizedMoney = z.infer<typeof normalizedMoneySchema>;
79
+ /** Request-scoped context the control plane uses for policy, audit, and identity. */
66
80
  export declare const paidRequestContextSchema: z.ZodObject<{
67
81
  organization: z.ZodString;
68
82
  agent: z.ZodString;
@@ -80,6 +94,7 @@ export declare const paidRequestContextSchema: z.ZodObject<{
80
94
  metadata?: Record<string, unknown> | undefined;
81
95
  }>;
82
96
  export type PaidRequestContext = z.infer<typeof paidRequestContextSchema>;
97
+ /** Exact HTTP request shape that gets prepared, hashed, and later executed. */
83
98
  export declare const paidRequestHttpRequestSchema: z.ZodObject<{
84
99
  url: z.ZodString;
85
100
  method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
@@ -100,6 +115,7 @@ export declare const paidRequestHttpRequestSchema: z.ZodObject<{
100
115
  bodyHash?: string | undefined;
101
116
  }>;
102
117
  export type PaidRequestHttpRequest = z.infer<typeof paidRequestHttpRequestSchema>;
118
+ /** Merchant challenge evidence captured during prepare or fetchPaid flows. */
103
119
  export declare const paidRequestChallengeSchema: z.ZodObject<{
104
120
  protocol: z.ZodEnum<["x402", "l402"]>;
105
121
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -114,6 +130,4121 @@ export declare const paidRequestChallengeSchema: z.ZodObject<{
114
130
  body?: unknown;
115
131
  }>;
116
132
  export type PaidRequestChallenge = z.infer<typeof paidRequestChallengeSchema>;
133
+ export declare const sdkPreparationSourceSchema: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
134
+ export type SdkPreparationSource = z.infer<typeof sdkPreparationSourceSchema>;
135
+ export declare const sdkPreparationAuthoritySchema: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
136
+ export type SdkPreparationAuthority = z.infer<typeof sdkPreparationAuthoritySchema>;
137
+ export declare const sdkPreparationAttributionSchema: z.ZodObject<{
138
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
139
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
140
+ note: z.ZodOptional<z.ZodString>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
143
+ authority: "authoritative" | "confirmatory" | "advisory";
144
+ note?: string | undefined;
145
+ }, {
146
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
147
+ authority: "authoritative" | "confirmatory" | "advisory";
148
+ note?: string | undefined;
149
+ }>;
150
+ export type SdkPreparationAttribution = z.infer<typeof sdkPreparationAttributionSchema>;
151
+ export declare const sdkPreparationFieldSchema: z.ZodObject<{
152
+ name: z.ZodString;
153
+ type: z.ZodOptional<z.ZodString>;
154
+ description: z.ZodOptional<z.ZodString>;
155
+ required: z.ZodOptional<z.ZodBoolean>;
156
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
157
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ name: string;
160
+ type?: string | undefined;
161
+ required?: boolean | undefined;
162
+ description?: string | undefined;
163
+ defaultValue?: unknown;
164
+ enumValues?: string[] | undefined;
165
+ }, {
166
+ name: string;
167
+ type?: string | undefined;
168
+ required?: boolean | undefined;
169
+ description?: string | undefined;
170
+ defaultValue?: unknown;
171
+ enumValues?: string[] | undefined;
172
+ }>;
173
+ export type SdkPreparationField = z.infer<typeof sdkPreparationFieldSchema>;
174
+ /** Optional caller-supplied metadata used to enrich preparation hints. */
175
+ export declare const sdkPreparationMetadataSchema: z.ZodObject<{
176
+ description: z.ZodOptional<z.ZodString>;
177
+ requestBodyType: z.ZodOptional<z.ZodString>;
178
+ requestBodyExample: z.ZodOptional<z.ZodString>;
179
+ requestBodyFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
180
+ name: z.ZodString;
181
+ type: z.ZodOptional<z.ZodString>;
182
+ description: z.ZodOptional<z.ZodString>;
183
+ required: z.ZodOptional<z.ZodBoolean>;
184
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
185
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ name: string;
188
+ type?: string | undefined;
189
+ required?: boolean | undefined;
190
+ description?: string | undefined;
191
+ defaultValue?: unknown;
192
+ enumValues?: string[] | undefined;
193
+ }, {
194
+ name: string;
195
+ type?: string | undefined;
196
+ required?: boolean | undefined;
197
+ description?: string | undefined;
198
+ defaultValue?: unknown;
199
+ enumValues?: string[] | undefined;
200
+ }>, "many">>;
201
+ requestQueryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ name: z.ZodString;
203
+ type: z.ZodOptional<z.ZodString>;
204
+ description: z.ZodOptional<z.ZodString>;
205
+ required: z.ZodOptional<z.ZodBoolean>;
206
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
207
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ name: string;
210
+ type?: string | undefined;
211
+ required?: boolean | undefined;
212
+ description?: string | undefined;
213
+ defaultValue?: unknown;
214
+ enumValues?: string[] | undefined;
215
+ }, {
216
+ name: string;
217
+ type?: string | undefined;
218
+ required?: boolean | undefined;
219
+ description?: string | undefined;
220
+ defaultValue?: unknown;
221
+ enumValues?: string[] | undefined;
222
+ }>, "many">>;
223
+ requestPathParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
+ name: z.ZodString;
225
+ type: z.ZodOptional<z.ZodString>;
226
+ description: z.ZodOptional<z.ZodString>;
227
+ required: z.ZodOptional<z.ZodBoolean>;
228
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
229
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ name: string;
232
+ type?: string | undefined;
233
+ required?: boolean | undefined;
234
+ description?: string | undefined;
235
+ defaultValue?: unknown;
236
+ enumValues?: string[] | undefined;
237
+ }, {
238
+ name: string;
239
+ type?: string | undefined;
240
+ required?: boolean | undefined;
241
+ description?: string | undefined;
242
+ defaultValue?: unknown;
243
+ enumValues?: string[] | undefined;
244
+ }>, "many">>;
245
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ description?: string | undefined;
248
+ requestBodyType?: string | undefined;
249
+ requestBodyExample?: string | undefined;
250
+ requestBodyFields?: {
251
+ name: string;
252
+ type?: string | undefined;
253
+ required?: boolean | undefined;
254
+ description?: string | undefined;
255
+ defaultValue?: unknown;
256
+ enumValues?: string[] | undefined;
257
+ }[] | undefined;
258
+ requestQueryParams?: {
259
+ name: string;
260
+ type?: string | undefined;
261
+ required?: boolean | undefined;
262
+ description?: string | undefined;
263
+ defaultValue?: unknown;
264
+ enumValues?: string[] | undefined;
265
+ }[] | undefined;
266
+ requestPathParams?: {
267
+ name: string;
268
+ type?: string | undefined;
269
+ required?: boolean | undefined;
270
+ description?: string | undefined;
271
+ defaultValue?: unknown;
272
+ enumValues?: string[] | undefined;
273
+ }[] | undefined;
274
+ notes?: string[] | undefined;
275
+ }, {
276
+ description?: string | undefined;
277
+ requestBodyType?: string | undefined;
278
+ requestBodyExample?: string | undefined;
279
+ requestBodyFields?: {
280
+ name: string;
281
+ type?: string | undefined;
282
+ required?: boolean | undefined;
283
+ description?: string | undefined;
284
+ defaultValue?: unknown;
285
+ enumValues?: string[] | undefined;
286
+ }[] | undefined;
287
+ requestQueryParams?: {
288
+ name: string;
289
+ type?: string | undefined;
290
+ required?: boolean | undefined;
291
+ description?: string | undefined;
292
+ defaultValue?: unknown;
293
+ enumValues?: string[] | undefined;
294
+ }[] | undefined;
295
+ requestPathParams?: {
296
+ name: string;
297
+ type?: string | undefined;
298
+ required?: boolean | undefined;
299
+ description?: string | undefined;
300
+ defaultValue?: unknown;
301
+ enumValues?: string[] | undefined;
302
+ }[] | undefined;
303
+ notes?: string[] | undefined;
304
+ }>;
305
+ export type SdkPreparationMetadata = z.infer<typeof sdkPreparationMetadataSchema>;
306
+ /** Optional external metadata channels the SDK knows how to merge. */
307
+ export declare const sdkPreparationDiscoveryMetadataSchema: z.ZodObject<{
308
+ provider: z.ZodOptional<z.ZodObject<{
309
+ description: z.ZodOptional<z.ZodString>;
310
+ requestBodyType: z.ZodOptional<z.ZodString>;
311
+ requestBodyExample: z.ZodOptional<z.ZodString>;
312
+ requestBodyFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
+ name: z.ZodString;
314
+ type: z.ZodOptional<z.ZodString>;
315
+ description: z.ZodOptional<z.ZodString>;
316
+ required: z.ZodOptional<z.ZodBoolean>;
317
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
318
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ name: string;
321
+ type?: string | undefined;
322
+ required?: boolean | undefined;
323
+ description?: string | undefined;
324
+ defaultValue?: unknown;
325
+ enumValues?: string[] | undefined;
326
+ }, {
327
+ name: string;
328
+ type?: string | undefined;
329
+ required?: boolean | undefined;
330
+ description?: string | undefined;
331
+ defaultValue?: unknown;
332
+ enumValues?: string[] | undefined;
333
+ }>, "many">>;
334
+ requestQueryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ name: z.ZodString;
336
+ type: z.ZodOptional<z.ZodString>;
337
+ description: z.ZodOptional<z.ZodString>;
338
+ required: z.ZodOptional<z.ZodBoolean>;
339
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
340
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ name: string;
343
+ type?: string | undefined;
344
+ required?: boolean | undefined;
345
+ description?: string | undefined;
346
+ defaultValue?: unknown;
347
+ enumValues?: string[] | undefined;
348
+ }, {
349
+ name: string;
350
+ type?: string | undefined;
351
+ required?: boolean | undefined;
352
+ description?: string | undefined;
353
+ defaultValue?: unknown;
354
+ enumValues?: string[] | undefined;
355
+ }>, "many">>;
356
+ requestPathParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
+ name: z.ZodString;
358
+ type: z.ZodOptional<z.ZodString>;
359
+ description: z.ZodOptional<z.ZodString>;
360
+ required: z.ZodOptional<z.ZodBoolean>;
361
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
362
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ name: string;
365
+ type?: string | undefined;
366
+ required?: boolean | undefined;
367
+ description?: string | undefined;
368
+ defaultValue?: unknown;
369
+ enumValues?: string[] | undefined;
370
+ }, {
371
+ name: string;
372
+ type?: string | undefined;
373
+ required?: boolean | undefined;
374
+ description?: string | undefined;
375
+ defaultValue?: unknown;
376
+ enumValues?: string[] | undefined;
377
+ }>, "many">>;
378
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ description?: string | undefined;
381
+ requestBodyType?: string | undefined;
382
+ requestBodyExample?: string | undefined;
383
+ requestBodyFields?: {
384
+ name: string;
385
+ type?: string | undefined;
386
+ required?: boolean | undefined;
387
+ description?: string | undefined;
388
+ defaultValue?: unknown;
389
+ enumValues?: string[] | undefined;
390
+ }[] | undefined;
391
+ requestQueryParams?: {
392
+ name: string;
393
+ type?: string | undefined;
394
+ required?: boolean | undefined;
395
+ description?: string | undefined;
396
+ defaultValue?: unknown;
397
+ enumValues?: string[] | undefined;
398
+ }[] | undefined;
399
+ requestPathParams?: {
400
+ name: string;
401
+ type?: string | undefined;
402
+ required?: boolean | undefined;
403
+ description?: string | undefined;
404
+ defaultValue?: unknown;
405
+ enumValues?: string[] | undefined;
406
+ }[] | undefined;
407
+ notes?: string[] | undefined;
408
+ }, {
409
+ description?: string | undefined;
410
+ requestBodyType?: string | undefined;
411
+ requestBodyExample?: string | undefined;
412
+ requestBodyFields?: {
413
+ name: string;
414
+ type?: string | undefined;
415
+ required?: boolean | undefined;
416
+ description?: string | undefined;
417
+ defaultValue?: unknown;
418
+ enumValues?: string[] | undefined;
419
+ }[] | undefined;
420
+ requestQueryParams?: {
421
+ name: string;
422
+ type?: string | undefined;
423
+ required?: boolean | undefined;
424
+ description?: string | undefined;
425
+ defaultValue?: unknown;
426
+ enumValues?: string[] | undefined;
427
+ }[] | undefined;
428
+ requestPathParams?: {
429
+ name: string;
430
+ type?: string | undefined;
431
+ required?: boolean | undefined;
432
+ description?: string | undefined;
433
+ defaultValue?: unknown;
434
+ enumValues?: string[] | undefined;
435
+ }[] | undefined;
436
+ notes?: string[] | undefined;
437
+ }>>;
438
+ marketplace: z.ZodOptional<z.ZodObject<{
439
+ description: z.ZodOptional<z.ZodString>;
440
+ requestBodyType: z.ZodOptional<z.ZodString>;
441
+ requestBodyExample: z.ZodOptional<z.ZodString>;
442
+ requestBodyFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ name: z.ZodString;
444
+ type: z.ZodOptional<z.ZodString>;
445
+ description: z.ZodOptional<z.ZodString>;
446
+ required: z.ZodOptional<z.ZodBoolean>;
447
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
448
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ name: string;
451
+ type?: string | undefined;
452
+ required?: boolean | undefined;
453
+ description?: string | undefined;
454
+ defaultValue?: unknown;
455
+ enumValues?: string[] | undefined;
456
+ }, {
457
+ name: string;
458
+ type?: string | undefined;
459
+ required?: boolean | undefined;
460
+ description?: string | undefined;
461
+ defaultValue?: unknown;
462
+ enumValues?: string[] | undefined;
463
+ }>, "many">>;
464
+ requestQueryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
465
+ name: z.ZodString;
466
+ type: z.ZodOptional<z.ZodString>;
467
+ description: z.ZodOptional<z.ZodString>;
468
+ required: z.ZodOptional<z.ZodBoolean>;
469
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
470
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ name: string;
473
+ type?: string | undefined;
474
+ required?: boolean | undefined;
475
+ description?: string | undefined;
476
+ defaultValue?: unknown;
477
+ enumValues?: string[] | undefined;
478
+ }, {
479
+ name: string;
480
+ type?: string | undefined;
481
+ required?: boolean | undefined;
482
+ description?: string | undefined;
483
+ defaultValue?: unknown;
484
+ enumValues?: string[] | undefined;
485
+ }>, "many">>;
486
+ requestPathParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
487
+ name: z.ZodString;
488
+ type: z.ZodOptional<z.ZodString>;
489
+ description: z.ZodOptional<z.ZodString>;
490
+ required: z.ZodOptional<z.ZodBoolean>;
491
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
492
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ name: string;
495
+ type?: string | undefined;
496
+ required?: boolean | undefined;
497
+ description?: string | undefined;
498
+ defaultValue?: unknown;
499
+ enumValues?: string[] | undefined;
500
+ }, {
501
+ name: string;
502
+ type?: string | undefined;
503
+ required?: boolean | undefined;
504
+ description?: string | undefined;
505
+ defaultValue?: unknown;
506
+ enumValues?: string[] | undefined;
507
+ }>, "many">>;
508
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ description?: string | undefined;
511
+ requestBodyType?: string | undefined;
512
+ requestBodyExample?: string | undefined;
513
+ requestBodyFields?: {
514
+ name: string;
515
+ type?: string | undefined;
516
+ required?: boolean | undefined;
517
+ description?: string | undefined;
518
+ defaultValue?: unknown;
519
+ enumValues?: string[] | undefined;
520
+ }[] | undefined;
521
+ requestQueryParams?: {
522
+ name: string;
523
+ type?: string | undefined;
524
+ required?: boolean | undefined;
525
+ description?: string | undefined;
526
+ defaultValue?: unknown;
527
+ enumValues?: string[] | undefined;
528
+ }[] | undefined;
529
+ requestPathParams?: {
530
+ name: string;
531
+ type?: string | undefined;
532
+ required?: boolean | undefined;
533
+ description?: string | undefined;
534
+ defaultValue?: unknown;
535
+ enumValues?: string[] | undefined;
536
+ }[] | undefined;
537
+ notes?: string[] | undefined;
538
+ }, {
539
+ description?: string | undefined;
540
+ requestBodyType?: string | undefined;
541
+ requestBodyExample?: string | undefined;
542
+ requestBodyFields?: {
543
+ name: string;
544
+ type?: string | undefined;
545
+ required?: boolean | undefined;
546
+ description?: string | undefined;
547
+ defaultValue?: unknown;
548
+ enumValues?: string[] | undefined;
549
+ }[] | undefined;
550
+ requestQueryParams?: {
551
+ name: string;
552
+ type?: string | undefined;
553
+ required?: boolean | undefined;
554
+ description?: string | undefined;
555
+ defaultValue?: unknown;
556
+ enumValues?: string[] | undefined;
557
+ }[] | undefined;
558
+ requestPathParams?: {
559
+ name: string;
560
+ type?: string | undefined;
561
+ required?: boolean | undefined;
562
+ description?: string | undefined;
563
+ defaultValue?: unknown;
564
+ enumValues?: string[] | undefined;
565
+ }[] | undefined;
566
+ notes?: string[] | undefined;
567
+ }>>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ marketplace?: {
570
+ description?: string | undefined;
571
+ requestBodyType?: string | undefined;
572
+ requestBodyExample?: string | undefined;
573
+ requestBodyFields?: {
574
+ name: string;
575
+ type?: string | undefined;
576
+ required?: boolean | undefined;
577
+ description?: string | undefined;
578
+ defaultValue?: unknown;
579
+ enumValues?: string[] | undefined;
580
+ }[] | undefined;
581
+ requestQueryParams?: {
582
+ name: string;
583
+ type?: string | undefined;
584
+ required?: boolean | undefined;
585
+ description?: string | undefined;
586
+ defaultValue?: unknown;
587
+ enumValues?: string[] | undefined;
588
+ }[] | undefined;
589
+ requestPathParams?: {
590
+ name: string;
591
+ type?: string | undefined;
592
+ required?: boolean | undefined;
593
+ description?: string | undefined;
594
+ defaultValue?: unknown;
595
+ enumValues?: string[] | undefined;
596
+ }[] | undefined;
597
+ notes?: string[] | undefined;
598
+ } | undefined;
599
+ provider?: {
600
+ description?: string | undefined;
601
+ requestBodyType?: string | undefined;
602
+ requestBodyExample?: string | undefined;
603
+ requestBodyFields?: {
604
+ name: string;
605
+ type?: string | undefined;
606
+ required?: boolean | undefined;
607
+ description?: string | undefined;
608
+ defaultValue?: unknown;
609
+ enumValues?: string[] | undefined;
610
+ }[] | undefined;
611
+ requestQueryParams?: {
612
+ name: string;
613
+ type?: string | undefined;
614
+ required?: boolean | undefined;
615
+ description?: string | undefined;
616
+ defaultValue?: unknown;
617
+ enumValues?: string[] | undefined;
618
+ }[] | undefined;
619
+ requestPathParams?: {
620
+ name: string;
621
+ type?: string | undefined;
622
+ required?: boolean | undefined;
623
+ description?: string | undefined;
624
+ defaultValue?: unknown;
625
+ enumValues?: string[] | undefined;
626
+ }[] | undefined;
627
+ notes?: string[] | undefined;
628
+ } | undefined;
629
+ }, {
630
+ marketplace?: {
631
+ description?: string | undefined;
632
+ requestBodyType?: string | undefined;
633
+ requestBodyExample?: string | undefined;
634
+ requestBodyFields?: {
635
+ name: string;
636
+ type?: string | undefined;
637
+ required?: boolean | undefined;
638
+ description?: string | undefined;
639
+ defaultValue?: unknown;
640
+ enumValues?: string[] | undefined;
641
+ }[] | undefined;
642
+ requestQueryParams?: {
643
+ name: string;
644
+ type?: string | undefined;
645
+ required?: boolean | undefined;
646
+ description?: string | undefined;
647
+ defaultValue?: unknown;
648
+ enumValues?: string[] | undefined;
649
+ }[] | undefined;
650
+ requestPathParams?: {
651
+ name: string;
652
+ type?: string | undefined;
653
+ required?: boolean | undefined;
654
+ description?: string | undefined;
655
+ defaultValue?: unknown;
656
+ enumValues?: string[] | undefined;
657
+ }[] | undefined;
658
+ notes?: string[] | undefined;
659
+ } | undefined;
660
+ provider?: {
661
+ description?: string | undefined;
662
+ requestBodyType?: string | undefined;
663
+ requestBodyExample?: string | undefined;
664
+ requestBodyFields?: {
665
+ name: string;
666
+ type?: string | undefined;
667
+ required?: boolean | undefined;
668
+ description?: string | undefined;
669
+ defaultValue?: unknown;
670
+ enumValues?: string[] | undefined;
671
+ }[] | undefined;
672
+ requestQueryParams?: {
673
+ name: string;
674
+ type?: string | undefined;
675
+ required?: boolean | undefined;
676
+ description?: string | undefined;
677
+ defaultValue?: unknown;
678
+ enumValues?: string[] | undefined;
679
+ }[] | undefined;
680
+ requestPathParams?: {
681
+ name: string;
682
+ type?: string | undefined;
683
+ required?: boolean | undefined;
684
+ description?: string | undefined;
685
+ defaultValue?: unknown;
686
+ enumValues?: string[] | undefined;
687
+ }[] | undefined;
688
+ notes?: string[] | undefined;
689
+ } | undefined;
690
+ }>;
691
+ export type SdkPreparationDiscoveryMetadata = z.infer<typeof sdkPreparationDiscoveryMetadataSchema>;
692
+ export declare const sdkPreparedHintValueSchema: z.ZodObject<{
693
+ value: z.ZodString;
694
+ attribution: z.ZodObject<{
695
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
696
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
697
+ note: z.ZodOptional<z.ZodString>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
700
+ authority: "authoritative" | "confirmatory" | "advisory";
701
+ note?: string | undefined;
702
+ }, {
703
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
704
+ authority: "authoritative" | "confirmatory" | "advisory";
705
+ note?: string | undefined;
706
+ }>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ value: string;
709
+ attribution: {
710
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
711
+ authority: "authoritative" | "confirmatory" | "advisory";
712
+ note?: string | undefined;
713
+ };
714
+ }, {
715
+ value: string;
716
+ attribution: {
717
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
718
+ authority: "authoritative" | "confirmatory" | "advisory";
719
+ note?: string | undefined;
720
+ };
721
+ }>;
722
+ export type SdkPreparedHintValue = z.infer<typeof sdkPreparedHintValueSchema>;
723
+ export declare const sdkPreparedHintFieldSchema: z.ZodObject<{
724
+ name: z.ZodString;
725
+ type: z.ZodOptional<z.ZodString>;
726
+ description: z.ZodOptional<z.ZodString>;
727
+ required: z.ZodOptional<z.ZodBoolean>;
728
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
729
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
730
+ } & {
731
+ attribution: z.ZodObject<{
732
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
733
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
734
+ note: z.ZodOptional<z.ZodString>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
737
+ authority: "authoritative" | "confirmatory" | "advisory";
738
+ note?: string | undefined;
739
+ }, {
740
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
741
+ authority: "authoritative" | "confirmatory" | "advisory";
742
+ note?: string | undefined;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ name: string;
746
+ attribution: {
747
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
748
+ authority: "authoritative" | "confirmatory" | "advisory";
749
+ note?: string | undefined;
750
+ };
751
+ type?: string | undefined;
752
+ required?: boolean | undefined;
753
+ description?: string | undefined;
754
+ defaultValue?: unknown;
755
+ enumValues?: string[] | undefined;
756
+ }, {
757
+ name: string;
758
+ attribution: {
759
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
760
+ authority: "authoritative" | "confirmatory" | "advisory";
761
+ note?: string | undefined;
762
+ };
763
+ type?: string | undefined;
764
+ required?: boolean | undefined;
765
+ description?: string | undefined;
766
+ defaultValue?: unknown;
767
+ enumValues?: string[] | undefined;
768
+ }>;
769
+ export type SdkPreparedHintField = z.infer<typeof sdkPreparedHintFieldSchema>;
770
+ /**
771
+ * Consolidated request-shape hints returned by preparePaidRequest(). Every hint
772
+ * carries attribution so callers can distinguish advisory metadata from live
773
+ * merchant-authoritative evidence.
774
+ */
775
+ export declare const sdkPreparedRequestHintsSchema: z.ZodObject<{
776
+ description: z.ZodOptional<z.ZodObject<{
777
+ value: z.ZodString;
778
+ attribution: z.ZodObject<{
779
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
780
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
781
+ note: z.ZodOptional<z.ZodString>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
784
+ authority: "authoritative" | "confirmatory" | "advisory";
785
+ note?: string | undefined;
786
+ }, {
787
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
788
+ authority: "authoritative" | "confirmatory" | "advisory";
789
+ note?: string | undefined;
790
+ }>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ value: string;
793
+ attribution: {
794
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
795
+ authority: "authoritative" | "confirmatory" | "advisory";
796
+ note?: string | undefined;
797
+ };
798
+ }, {
799
+ value: string;
800
+ attribution: {
801
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
802
+ authority: "authoritative" | "confirmatory" | "advisory";
803
+ note?: string | undefined;
804
+ };
805
+ }>>;
806
+ requestBodyType: z.ZodOptional<z.ZodObject<{
807
+ value: z.ZodString;
808
+ attribution: z.ZodObject<{
809
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
810
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
811
+ note: z.ZodOptional<z.ZodString>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
814
+ authority: "authoritative" | "confirmatory" | "advisory";
815
+ note?: string | undefined;
816
+ }, {
817
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
818
+ authority: "authoritative" | "confirmatory" | "advisory";
819
+ note?: string | undefined;
820
+ }>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ value: string;
823
+ attribution: {
824
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
825
+ authority: "authoritative" | "confirmatory" | "advisory";
826
+ note?: string | undefined;
827
+ };
828
+ }, {
829
+ value: string;
830
+ attribution: {
831
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
832
+ authority: "authoritative" | "confirmatory" | "advisory";
833
+ note?: string | undefined;
834
+ };
835
+ }>>;
836
+ requestBodyExample: z.ZodOptional<z.ZodObject<{
837
+ value: z.ZodString;
838
+ attribution: z.ZodObject<{
839
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
840
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
841
+ note: z.ZodOptional<z.ZodString>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
844
+ authority: "authoritative" | "confirmatory" | "advisory";
845
+ note?: string | undefined;
846
+ }, {
847
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
848
+ authority: "authoritative" | "confirmatory" | "advisory";
849
+ note?: string | undefined;
850
+ }>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ value: string;
853
+ attribution: {
854
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
855
+ authority: "authoritative" | "confirmatory" | "advisory";
856
+ note?: string | undefined;
857
+ };
858
+ }, {
859
+ value: string;
860
+ attribution: {
861
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
862
+ authority: "authoritative" | "confirmatory" | "advisory";
863
+ note?: string | undefined;
864
+ };
865
+ }>>;
866
+ requestBodyFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
867
+ name: z.ZodString;
868
+ type: z.ZodOptional<z.ZodString>;
869
+ description: z.ZodOptional<z.ZodString>;
870
+ required: z.ZodOptional<z.ZodBoolean>;
871
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
872
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
873
+ } & {
874
+ attribution: z.ZodObject<{
875
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
876
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
877
+ note: z.ZodOptional<z.ZodString>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
880
+ authority: "authoritative" | "confirmatory" | "advisory";
881
+ note?: string | undefined;
882
+ }, {
883
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
884
+ authority: "authoritative" | "confirmatory" | "advisory";
885
+ note?: string | undefined;
886
+ }>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ name: string;
889
+ attribution: {
890
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
891
+ authority: "authoritative" | "confirmatory" | "advisory";
892
+ note?: string | undefined;
893
+ };
894
+ type?: string | undefined;
895
+ required?: boolean | undefined;
896
+ description?: string | undefined;
897
+ defaultValue?: unknown;
898
+ enumValues?: string[] | undefined;
899
+ }, {
900
+ name: string;
901
+ attribution: {
902
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
903
+ authority: "authoritative" | "confirmatory" | "advisory";
904
+ note?: string | undefined;
905
+ };
906
+ type?: string | undefined;
907
+ required?: boolean | undefined;
908
+ description?: string | undefined;
909
+ defaultValue?: unknown;
910
+ enumValues?: string[] | undefined;
911
+ }>, "many">>;
912
+ requestQueryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
913
+ name: z.ZodString;
914
+ type: z.ZodOptional<z.ZodString>;
915
+ description: z.ZodOptional<z.ZodString>;
916
+ required: z.ZodOptional<z.ZodBoolean>;
917
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
918
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
919
+ } & {
920
+ attribution: z.ZodObject<{
921
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
922
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
923
+ note: z.ZodOptional<z.ZodString>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
926
+ authority: "authoritative" | "confirmatory" | "advisory";
927
+ note?: string | undefined;
928
+ }, {
929
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
930
+ authority: "authoritative" | "confirmatory" | "advisory";
931
+ note?: string | undefined;
932
+ }>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ name: string;
935
+ attribution: {
936
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
937
+ authority: "authoritative" | "confirmatory" | "advisory";
938
+ note?: string | undefined;
939
+ };
940
+ type?: string | undefined;
941
+ required?: boolean | undefined;
942
+ description?: string | undefined;
943
+ defaultValue?: unknown;
944
+ enumValues?: string[] | undefined;
945
+ }, {
946
+ name: string;
947
+ attribution: {
948
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
949
+ authority: "authoritative" | "confirmatory" | "advisory";
950
+ note?: string | undefined;
951
+ };
952
+ type?: string | undefined;
953
+ required?: boolean | undefined;
954
+ description?: string | undefined;
955
+ defaultValue?: unknown;
956
+ enumValues?: string[] | undefined;
957
+ }>, "many">>;
958
+ requestPathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
959
+ name: z.ZodString;
960
+ type: z.ZodOptional<z.ZodString>;
961
+ description: z.ZodOptional<z.ZodString>;
962
+ required: z.ZodOptional<z.ZodBoolean>;
963
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
964
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
965
+ } & {
966
+ attribution: z.ZodObject<{
967
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
968
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
969
+ note: z.ZodOptional<z.ZodString>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
972
+ authority: "authoritative" | "confirmatory" | "advisory";
973
+ note?: string | undefined;
974
+ }, {
975
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
976
+ authority: "authoritative" | "confirmatory" | "advisory";
977
+ note?: string | undefined;
978
+ }>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ name: string;
981
+ attribution: {
982
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
983
+ authority: "authoritative" | "confirmatory" | "advisory";
984
+ note?: string | undefined;
985
+ };
986
+ type?: string | undefined;
987
+ required?: boolean | undefined;
988
+ description?: string | undefined;
989
+ defaultValue?: unknown;
990
+ enumValues?: string[] | undefined;
991
+ }, {
992
+ name: string;
993
+ attribution: {
994
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
995
+ authority: "authoritative" | "confirmatory" | "advisory";
996
+ note?: string | undefined;
997
+ };
998
+ type?: string | undefined;
999
+ required?: boolean | undefined;
1000
+ description?: string | undefined;
1001
+ defaultValue?: unknown;
1002
+ enumValues?: string[] | undefined;
1003
+ }>, "many">>;
1004
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1005
+ value: z.ZodString;
1006
+ attribution: z.ZodObject<{
1007
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1008
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1009
+ note: z.ZodOptional<z.ZodString>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1012
+ authority: "authoritative" | "confirmatory" | "advisory";
1013
+ note?: string | undefined;
1014
+ }, {
1015
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1016
+ authority: "authoritative" | "confirmatory" | "advisory";
1017
+ note?: string | undefined;
1018
+ }>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ value: string;
1021
+ attribution: {
1022
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1023
+ authority: "authoritative" | "confirmatory" | "advisory";
1024
+ note?: string | undefined;
1025
+ };
1026
+ }, {
1027
+ value: string;
1028
+ attribution: {
1029
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1030
+ authority: "authoritative" | "confirmatory" | "advisory";
1031
+ note?: string | undefined;
1032
+ };
1033
+ }>, "many">>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ requestBodyFields: {
1036
+ name: string;
1037
+ attribution: {
1038
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1039
+ authority: "authoritative" | "confirmatory" | "advisory";
1040
+ note?: string | undefined;
1041
+ };
1042
+ type?: string | undefined;
1043
+ required?: boolean | undefined;
1044
+ description?: string | undefined;
1045
+ defaultValue?: unknown;
1046
+ enumValues?: string[] | undefined;
1047
+ }[];
1048
+ requestQueryParams: {
1049
+ name: string;
1050
+ attribution: {
1051
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1052
+ authority: "authoritative" | "confirmatory" | "advisory";
1053
+ note?: string | undefined;
1054
+ };
1055
+ type?: string | undefined;
1056
+ required?: boolean | undefined;
1057
+ description?: string | undefined;
1058
+ defaultValue?: unknown;
1059
+ enumValues?: string[] | undefined;
1060
+ }[];
1061
+ requestPathParams: {
1062
+ name: string;
1063
+ attribution: {
1064
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1065
+ authority: "authoritative" | "confirmatory" | "advisory";
1066
+ note?: string | undefined;
1067
+ };
1068
+ type?: string | undefined;
1069
+ required?: boolean | undefined;
1070
+ description?: string | undefined;
1071
+ defaultValue?: unknown;
1072
+ enumValues?: string[] | undefined;
1073
+ }[];
1074
+ notes: {
1075
+ value: string;
1076
+ attribution: {
1077
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1078
+ authority: "authoritative" | "confirmatory" | "advisory";
1079
+ note?: string | undefined;
1080
+ };
1081
+ }[];
1082
+ description?: {
1083
+ value: string;
1084
+ attribution: {
1085
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1086
+ authority: "authoritative" | "confirmatory" | "advisory";
1087
+ note?: string | undefined;
1088
+ };
1089
+ } | undefined;
1090
+ requestBodyType?: {
1091
+ value: string;
1092
+ attribution: {
1093
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1094
+ authority: "authoritative" | "confirmatory" | "advisory";
1095
+ note?: string | undefined;
1096
+ };
1097
+ } | undefined;
1098
+ requestBodyExample?: {
1099
+ value: string;
1100
+ attribution: {
1101
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1102
+ authority: "authoritative" | "confirmatory" | "advisory";
1103
+ note?: string | undefined;
1104
+ };
1105
+ } | undefined;
1106
+ }, {
1107
+ description?: {
1108
+ value: string;
1109
+ attribution: {
1110
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1111
+ authority: "authoritative" | "confirmatory" | "advisory";
1112
+ note?: string | undefined;
1113
+ };
1114
+ } | undefined;
1115
+ requestBodyType?: {
1116
+ value: string;
1117
+ attribution: {
1118
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1119
+ authority: "authoritative" | "confirmatory" | "advisory";
1120
+ note?: string | undefined;
1121
+ };
1122
+ } | undefined;
1123
+ requestBodyExample?: {
1124
+ value: string;
1125
+ attribution: {
1126
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1127
+ authority: "authoritative" | "confirmatory" | "advisory";
1128
+ note?: string | undefined;
1129
+ };
1130
+ } | undefined;
1131
+ requestBodyFields?: {
1132
+ name: string;
1133
+ attribution: {
1134
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1135
+ authority: "authoritative" | "confirmatory" | "advisory";
1136
+ note?: string | undefined;
1137
+ };
1138
+ type?: string | undefined;
1139
+ required?: boolean | undefined;
1140
+ description?: string | undefined;
1141
+ defaultValue?: unknown;
1142
+ enumValues?: string[] | undefined;
1143
+ }[] | undefined;
1144
+ requestQueryParams?: {
1145
+ name: string;
1146
+ attribution: {
1147
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1148
+ authority: "authoritative" | "confirmatory" | "advisory";
1149
+ note?: string | undefined;
1150
+ };
1151
+ type?: string | undefined;
1152
+ required?: boolean | undefined;
1153
+ description?: string | undefined;
1154
+ defaultValue?: unknown;
1155
+ enumValues?: string[] | undefined;
1156
+ }[] | undefined;
1157
+ requestPathParams?: {
1158
+ name: string;
1159
+ attribution: {
1160
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1161
+ authority: "authoritative" | "confirmatory" | "advisory";
1162
+ note?: string | undefined;
1163
+ };
1164
+ type?: string | undefined;
1165
+ required?: boolean | undefined;
1166
+ description?: string | undefined;
1167
+ defaultValue?: unknown;
1168
+ enumValues?: string[] | undefined;
1169
+ }[] | undefined;
1170
+ notes?: {
1171
+ value: string;
1172
+ attribution: {
1173
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1174
+ authority: "authoritative" | "confirmatory" | "advisory";
1175
+ note?: string | undefined;
1176
+ };
1177
+ }[] | undefined;
1178
+ }>;
1179
+ export type SdkPreparedRequestHints = z.infer<typeof sdkPreparedRequestHintsSchema>;
1180
+ export declare const sdkPreparedPaymentRequirementAmountTypeSchema: z.ZodEnum<["exact", "max"]>;
1181
+ export type SdkPreparedPaymentRequirementAmountType = z.infer<typeof sdkPreparedPaymentRequirementAmountTypeSchema>;
1182
+ /** Normalized payment terms extracted from a merchant challenge when available. */
1183
+ export declare const sdkPreparedPaymentRequirementSchema: z.ZodObject<{
1184
+ protocol: z.ZodEnum<["x402", "l402"]>;
1185
+ description: z.ZodOptional<z.ZodString>;
1186
+ asset: z.ZodOptional<z.ZodString>;
1187
+ network: z.ZodOptional<z.ZodString>;
1188
+ payee: z.ZodOptional<z.ZodString>;
1189
+ amountType: z.ZodOptional<z.ZodEnum<["exact", "max"]>>;
1190
+ amount: z.ZodOptional<z.ZodString>;
1191
+ amountMinor: z.ZodOptional<z.ZodString>;
1192
+ precision: z.ZodOptional<z.ZodNumber>;
1193
+ provenance: z.ZodObject<{
1194
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1195
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1196
+ note: z.ZodOptional<z.ZodString>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1199
+ authority: "authoritative" | "confirmatory" | "advisory";
1200
+ note?: string | undefined;
1201
+ }, {
1202
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1203
+ authority: "authoritative" | "confirmatory" | "advisory";
1204
+ note?: string | undefined;
1205
+ }>;
1206
+ confirmation: z.ZodOptional<z.ZodObject<{
1207
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1208
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1209
+ note: z.ZodOptional<z.ZodString>;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1212
+ authority: "authoritative" | "confirmatory" | "advisory";
1213
+ note?: string | undefined;
1214
+ }, {
1215
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1216
+ authority: "authoritative" | "confirmatory" | "advisory";
1217
+ note?: string | undefined;
1218
+ }>>;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ protocol: "x402" | "l402";
1221
+ provenance: {
1222
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1223
+ authority: "authoritative" | "confirmatory" | "advisory";
1224
+ note?: string | undefined;
1225
+ };
1226
+ asset?: string | undefined;
1227
+ amount?: string | undefined;
1228
+ amountMinor?: string | undefined;
1229
+ precision?: number | undefined;
1230
+ description?: string | undefined;
1231
+ network?: string | undefined;
1232
+ payee?: string | undefined;
1233
+ amountType?: "exact" | "max" | undefined;
1234
+ confirmation?: {
1235
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1236
+ authority: "authoritative" | "confirmatory" | "advisory";
1237
+ note?: string | undefined;
1238
+ } | undefined;
1239
+ }, {
1240
+ protocol: "x402" | "l402";
1241
+ provenance: {
1242
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1243
+ authority: "authoritative" | "confirmatory" | "advisory";
1244
+ note?: string | undefined;
1245
+ };
1246
+ asset?: string | undefined;
1247
+ amount?: string | undefined;
1248
+ amountMinor?: string | undefined;
1249
+ precision?: number | undefined;
1250
+ description?: string | undefined;
1251
+ network?: string | undefined;
1252
+ payee?: string | undefined;
1253
+ amountType?: "exact" | "max" | undefined;
1254
+ confirmation?: {
1255
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1256
+ authority: "authoritative" | "confirmatory" | "advisory";
1257
+ note?: string | undefined;
1258
+ } | undefined;
1259
+ }>;
1260
+ export type SdkPreparedPaymentRequirement = z.infer<typeof sdkPreparedPaymentRequirementSchema>;
1261
+ /** Evidence that the SDK performed an unpaid live probe before preparation. */
1262
+ export declare const sdkPreparedProbeResultSchema: z.ZodObject<{
1263
+ responseStatus: z.ZodNumber;
1264
+ confirmedAt: z.ZodString;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ responseStatus: number;
1267
+ confirmedAt: string;
1268
+ }, {
1269
+ responseStatus: number;
1270
+ confirmedAt: string;
1271
+ }>;
1272
+ export type SdkPreparedProbeResult = z.infer<typeof sdkPreparedProbeResultSchema>;
1273
+ export declare const sdkPreparedValidationIssueLocationSchema: z.ZodEnum<["body", "query", "path", "headers"]>;
1274
+ export type SdkPreparedValidationIssueLocation = z.infer<typeof sdkPreparedValidationIssueLocationSchema>;
1275
+ export declare const sdkPreparedValidationSeveritySchema: z.ZodEnum<["error", "warning"]>;
1276
+ export type SdkPreparedValidationSeverity = z.infer<typeof sdkPreparedValidationSeveritySchema>;
1277
+ /** Structured remediation guidance derived from hints and the candidate request. */
1278
+ export declare const sdkPreparedValidationIssueSchema: z.ZodObject<{
1279
+ location: z.ZodEnum<["body", "query", "path", "headers"]>;
1280
+ field: z.ZodString;
1281
+ code: z.ZodString;
1282
+ message: z.ZodString;
1283
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1284
+ blocking: z.ZodBoolean;
1285
+ severity: z.ZodEnum<["error", "warning"]>;
1286
+ suggestedFix: z.ZodOptional<z.ZodString>;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ code: string;
1289
+ message: string;
1290
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1291
+ location: "path" | "headers" | "body" | "query";
1292
+ field: string;
1293
+ blocking: boolean;
1294
+ severity: "error" | "warning";
1295
+ suggestedFix?: string | undefined;
1296
+ }, {
1297
+ code: string;
1298
+ message: string;
1299
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1300
+ location: "path" | "headers" | "body" | "query";
1301
+ field: string;
1302
+ blocking: boolean;
1303
+ severity: "error" | "warning";
1304
+ suggestedFix?: string | undefined;
1305
+ }>;
1306
+ export type SdkPreparedValidationIssue = z.infer<typeof sdkPreparedValidationIssueSchema>;
1307
+ /** Narrow action summary the caller should take after preparation. */
1308
+ export declare const sdkPreparedNextActionSchema: z.ZodEnum<["execute", "revise_request", "treat_as_passthrough", "manual_review"]>;
1309
+ export type SdkPreparedNextAction = z.infer<typeof sdkPreparedNextActionSchema>;
1310
+ /** Preparation result when this exact request does not currently require payment. */
1311
+ export declare const sdkPreparedPaidRequestPassthroughSchema: z.ZodObject<{
1312
+ kind: z.ZodLiteral<"passthrough">;
1313
+ protocol: z.ZodLiteral<"none">;
1314
+ request: z.ZodObject<{
1315
+ url: z.ZodString;
1316
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1317
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1318
+ body: z.ZodOptional<z.ZodString>;
1319
+ bodyHash: z.ZodOptional<z.ZodString>;
1320
+ }, "strip", z.ZodTypeAny, {
1321
+ url: string;
1322
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1323
+ headers?: Record<string, string> | undefined;
1324
+ body?: string | undefined;
1325
+ bodyHash?: string | undefined;
1326
+ }, {
1327
+ url: string;
1328
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1329
+ headers?: Record<string, string> | undefined;
1330
+ body?: string | undefined;
1331
+ bodyHash?: string | undefined;
1332
+ }>;
1333
+ hints: z.ZodObject<{
1334
+ description: z.ZodOptional<z.ZodObject<{
1335
+ value: z.ZodString;
1336
+ attribution: z.ZodObject<{
1337
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1338
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1339
+ note: z.ZodOptional<z.ZodString>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1342
+ authority: "authoritative" | "confirmatory" | "advisory";
1343
+ note?: string | undefined;
1344
+ }, {
1345
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1346
+ authority: "authoritative" | "confirmatory" | "advisory";
1347
+ note?: string | undefined;
1348
+ }>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ value: string;
1351
+ attribution: {
1352
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1353
+ authority: "authoritative" | "confirmatory" | "advisory";
1354
+ note?: string | undefined;
1355
+ };
1356
+ }, {
1357
+ value: string;
1358
+ attribution: {
1359
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1360
+ authority: "authoritative" | "confirmatory" | "advisory";
1361
+ note?: string | undefined;
1362
+ };
1363
+ }>>;
1364
+ requestBodyType: z.ZodOptional<z.ZodObject<{
1365
+ value: z.ZodString;
1366
+ attribution: z.ZodObject<{
1367
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1368
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1369
+ note: z.ZodOptional<z.ZodString>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1372
+ authority: "authoritative" | "confirmatory" | "advisory";
1373
+ note?: string | undefined;
1374
+ }, {
1375
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1376
+ authority: "authoritative" | "confirmatory" | "advisory";
1377
+ note?: string | undefined;
1378
+ }>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ value: string;
1381
+ attribution: {
1382
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1383
+ authority: "authoritative" | "confirmatory" | "advisory";
1384
+ note?: string | undefined;
1385
+ };
1386
+ }, {
1387
+ value: string;
1388
+ attribution: {
1389
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1390
+ authority: "authoritative" | "confirmatory" | "advisory";
1391
+ note?: string | undefined;
1392
+ };
1393
+ }>>;
1394
+ requestBodyExample: z.ZodOptional<z.ZodObject<{
1395
+ value: z.ZodString;
1396
+ attribution: z.ZodObject<{
1397
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1398
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1399
+ note: z.ZodOptional<z.ZodString>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1402
+ authority: "authoritative" | "confirmatory" | "advisory";
1403
+ note?: string | undefined;
1404
+ }, {
1405
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1406
+ authority: "authoritative" | "confirmatory" | "advisory";
1407
+ note?: string | undefined;
1408
+ }>;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ value: string;
1411
+ attribution: {
1412
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1413
+ authority: "authoritative" | "confirmatory" | "advisory";
1414
+ note?: string | undefined;
1415
+ };
1416
+ }, {
1417
+ value: string;
1418
+ attribution: {
1419
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1420
+ authority: "authoritative" | "confirmatory" | "advisory";
1421
+ note?: string | undefined;
1422
+ };
1423
+ }>>;
1424
+ requestBodyFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
1425
+ name: z.ZodString;
1426
+ type: z.ZodOptional<z.ZodString>;
1427
+ description: z.ZodOptional<z.ZodString>;
1428
+ required: z.ZodOptional<z.ZodBoolean>;
1429
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
1430
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1431
+ } & {
1432
+ attribution: z.ZodObject<{
1433
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1434
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1435
+ note: z.ZodOptional<z.ZodString>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1438
+ authority: "authoritative" | "confirmatory" | "advisory";
1439
+ note?: string | undefined;
1440
+ }, {
1441
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1442
+ authority: "authoritative" | "confirmatory" | "advisory";
1443
+ note?: string | undefined;
1444
+ }>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ name: string;
1447
+ attribution: {
1448
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1449
+ authority: "authoritative" | "confirmatory" | "advisory";
1450
+ note?: string | undefined;
1451
+ };
1452
+ type?: string | undefined;
1453
+ required?: boolean | undefined;
1454
+ description?: string | undefined;
1455
+ defaultValue?: unknown;
1456
+ enumValues?: string[] | undefined;
1457
+ }, {
1458
+ name: string;
1459
+ attribution: {
1460
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1461
+ authority: "authoritative" | "confirmatory" | "advisory";
1462
+ note?: string | undefined;
1463
+ };
1464
+ type?: string | undefined;
1465
+ required?: boolean | undefined;
1466
+ description?: string | undefined;
1467
+ defaultValue?: unknown;
1468
+ enumValues?: string[] | undefined;
1469
+ }>, "many">>;
1470
+ requestQueryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
1471
+ name: z.ZodString;
1472
+ type: z.ZodOptional<z.ZodString>;
1473
+ description: z.ZodOptional<z.ZodString>;
1474
+ required: z.ZodOptional<z.ZodBoolean>;
1475
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
1476
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1477
+ } & {
1478
+ attribution: z.ZodObject<{
1479
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1480
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1481
+ note: z.ZodOptional<z.ZodString>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1484
+ authority: "authoritative" | "confirmatory" | "advisory";
1485
+ note?: string | undefined;
1486
+ }, {
1487
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1488
+ authority: "authoritative" | "confirmatory" | "advisory";
1489
+ note?: string | undefined;
1490
+ }>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ name: string;
1493
+ attribution: {
1494
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1495
+ authority: "authoritative" | "confirmatory" | "advisory";
1496
+ note?: string | undefined;
1497
+ };
1498
+ type?: string | undefined;
1499
+ required?: boolean | undefined;
1500
+ description?: string | undefined;
1501
+ defaultValue?: unknown;
1502
+ enumValues?: string[] | undefined;
1503
+ }, {
1504
+ name: string;
1505
+ attribution: {
1506
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1507
+ authority: "authoritative" | "confirmatory" | "advisory";
1508
+ note?: string | undefined;
1509
+ };
1510
+ type?: string | undefined;
1511
+ required?: boolean | undefined;
1512
+ description?: string | undefined;
1513
+ defaultValue?: unknown;
1514
+ enumValues?: string[] | undefined;
1515
+ }>, "many">>;
1516
+ requestPathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
1517
+ name: z.ZodString;
1518
+ type: z.ZodOptional<z.ZodString>;
1519
+ description: z.ZodOptional<z.ZodString>;
1520
+ required: z.ZodOptional<z.ZodBoolean>;
1521
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
1522
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1523
+ } & {
1524
+ attribution: z.ZodObject<{
1525
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1526
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1527
+ note: z.ZodOptional<z.ZodString>;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1530
+ authority: "authoritative" | "confirmatory" | "advisory";
1531
+ note?: string | undefined;
1532
+ }, {
1533
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1534
+ authority: "authoritative" | "confirmatory" | "advisory";
1535
+ note?: string | undefined;
1536
+ }>;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ name: string;
1539
+ attribution: {
1540
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1541
+ authority: "authoritative" | "confirmatory" | "advisory";
1542
+ note?: string | undefined;
1543
+ };
1544
+ type?: string | undefined;
1545
+ required?: boolean | undefined;
1546
+ description?: string | undefined;
1547
+ defaultValue?: unknown;
1548
+ enumValues?: string[] | undefined;
1549
+ }, {
1550
+ name: string;
1551
+ attribution: {
1552
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1553
+ authority: "authoritative" | "confirmatory" | "advisory";
1554
+ note?: string | undefined;
1555
+ };
1556
+ type?: string | undefined;
1557
+ required?: boolean | undefined;
1558
+ description?: string | undefined;
1559
+ defaultValue?: unknown;
1560
+ enumValues?: string[] | undefined;
1561
+ }>, "many">>;
1562
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1563
+ value: z.ZodString;
1564
+ attribution: z.ZodObject<{
1565
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1566
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
1567
+ note: z.ZodOptional<z.ZodString>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1570
+ authority: "authoritative" | "confirmatory" | "advisory";
1571
+ note?: string | undefined;
1572
+ }, {
1573
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1574
+ authority: "authoritative" | "confirmatory" | "advisory";
1575
+ note?: string | undefined;
1576
+ }>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ value: string;
1579
+ attribution: {
1580
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1581
+ authority: "authoritative" | "confirmatory" | "advisory";
1582
+ note?: string | undefined;
1583
+ };
1584
+ }, {
1585
+ value: string;
1586
+ attribution: {
1587
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1588
+ authority: "authoritative" | "confirmatory" | "advisory";
1589
+ note?: string | undefined;
1590
+ };
1591
+ }>, "many">>;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ requestBodyFields: {
1594
+ name: string;
1595
+ attribution: {
1596
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1597
+ authority: "authoritative" | "confirmatory" | "advisory";
1598
+ note?: string | undefined;
1599
+ };
1600
+ type?: string | undefined;
1601
+ required?: boolean | undefined;
1602
+ description?: string | undefined;
1603
+ defaultValue?: unknown;
1604
+ enumValues?: string[] | undefined;
1605
+ }[];
1606
+ requestQueryParams: {
1607
+ name: string;
1608
+ attribution: {
1609
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1610
+ authority: "authoritative" | "confirmatory" | "advisory";
1611
+ note?: string | undefined;
1612
+ };
1613
+ type?: string | undefined;
1614
+ required?: boolean | undefined;
1615
+ description?: string | undefined;
1616
+ defaultValue?: unknown;
1617
+ enumValues?: string[] | undefined;
1618
+ }[];
1619
+ requestPathParams: {
1620
+ name: string;
1621
+ attribution: {
1622
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1623
+ authority: "authoritative" | "confirmatory" | "advisory";
1624
+ note?: string | undefined;
1625
+ };
1626
+ type?: string | undefined;
1627
+ required?: boolean | undefined;
1628
+ description?: string | undefined;
1629
+ defaultValue?: unknown;
1630
+ enumValues?: string[] | undefined;
1631
+ }[];
1632
+ notes: {
1633
+ value: string;
1634
+ attribution: {
1635
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1636
+ authority: "authoritative" | "confirmatory" | "advisory";
1637
+ note?: string | undefined;
1638
+ };
1639
+ }[];
1640
+ description?: {
1641
+ value: string;
1642
+ attribution: {
1643
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1644
+ authority: "authoritative" | "confirmatory" | "advisory";
1645
+ note?: string | undefined;
1646
+ };
1647
+ } | undefined;
1648
+ requestBodyType?: {
1649
+ value: string;
1650
+ attribution: {
1651
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1652
+ authority: "authoritative" | "confirmatory" | "advisory";
1653
+ note?: string | undefined;
1654
+ };
1655
+ } | undefined;
1656
+ requestBodyExample?: {
1657
+ value: string;
1658
+ attribution: {
1659
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1660
+ authority: "authoritative" | "confirmatory" | "advisory";
1661
+ note?: string | undefined;
1662
+ };
1663
+ } | undefined;
1664
+ }, {
1665
+ description?: {
1666
+ value: string;
1667
+ attribution: {
1668
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1669
+ authority: "authoritative" | "confirmatory" | "advisory";
1670
+ note?: string | undefined;
1671
+ };
1672
+ } | undefined;
1673
+ requestBodyType?: {
1674
+ value: string;
1675
+ attribution: {
1676
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1677
+ authority: "authoritative" | "confirmatory" | "advisory";
1678
+ note?: string | undefined;
1679
+ };
1680
+ } | undefined;
1681
+ requestBodyExample?: {
1682
+ value: string;
1683
+ attribution: {
1684
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1685
+ authority: "authoritative" | "confirmatory" | "advisory";
1686
+ note?: string | undefined;
1687
+ };
1688
+ } | undefined;
1689
+ requestBodyFields?: {
1690
+ name: string;
1691
+ attribution: {
1692
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1693
+ authority: "authoritative" | "confirmatory" | "advisory";
1694
+ note?: string | undefined;
1695
+ };
1696
+ type?: string | undefined;
1697
+ required?: boolean | undefined;
1698
+ description?: string | undefined;
1699
+ defaultValue?: unknown;
1700
+ enumValues?: string[] | undefined;
1701
+ }[] | undefined;
1702
+ requestQueryParams?: {
1703
+ name: string;
1704
+ attribution: {
1705
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1706
+ authority: "authoritative" | "confirmatory" | "advisory";
1707
+ note?: string | undefined;
1708
+ };
1709
+ type?: string | undefined;
1710
+ required?: boolean | undefined;
1711
+ description?: string | undefined;
1712
+ defaultValue?: unknown;
1713
+ enumValues?: string[] | undefined;
1714
+ }[] | undefined;
1715
+ requestPathParams?: {
1716
+ name: string;
1717
+ attribution: {
1718
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1719
+ authority: "authoritative" | "confirmatory" | "advisory";
1720
+ note?: string | undefined;
1721
+ };
1722
+ type?: string | undefined;
1723
+ required?: boolean | undefined;
1724
+ description?: string | undefined;
1725
+ defaultValue?: unknown;
1726
+ enumValues?: string[] | undefined;
1727
+ }[] | undefined;
1728
+ notes?: {
1729
+ value: string;
1730
+ attribution: {
1731
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1732
+ authority: "authoritative" | "confirmatory" | "advisory";
1733
+ note?: string | undefined;
1734
+ };
1735
+ }[] | undefined;
1736
+ }>;
1737
+ probe: z.ZodOptional<z.ZodObject<{
1738
+ responseStatus: z.ZodNumber;
1739
+ confirmedAt: z.ZodString;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ responseStatus: number;
1742
+ confirmedAt: string;
1743
+ }, {
1744
+ responseStatus: number;
1745
+ confirmedAt: string;
1746
+ }>>;
1747
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1748
+ location: z.ZodEnum<["body", "query", "path", "headers"]>;
1749
+ field: z.ZodString;
1750
+ code: z.ZodString;
1751
+ message: z.ZodString;
1752
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
1753
+ blocking: z.ZodBoolean;
1754
+ severity: z.ZodEnum<["error", "warning"]>;
1755
+ suggestedFix: z.ZodOptional<z.ZodString>;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ code: string;
1758
+ message: string;
1759
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1760
+ location: "path" | "headers" | "body" | "query";
1761
+ field: string;
1762
+ blocking: boolean;
1763
+ severity: "error" | "warning";
1764
+ suggestedFix?: string | undefined;
1765
+ }, {
1766
+ code: string;
1767
+ message: string;
1768
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1769
+ location: "path" | "headers" | "body" | "query";
1770
+ field: string;
1771
+ blocking: boolean;
1772
+ severity: "error" | "warning";
1773
+ suggestedFix?: string | undefined;
1774
+ }>, "many">>;
1775
+ nextAction: z.ZodEnum<["execute", "revise_request", "treat_as_passthrough", "manual_review"]>;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ protocol: "none";
1778
+ kind: "passthrough";
1779
+ request: {
1780
+ url: string;
1781
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1782
+ headers?: Record<string, string> | undefined;
1783
+ body?: string | undefined;
1784
+ bodyHash?: string | undefined;
1785
+ };
1786
+ hints: {
1787
+ requestBodyFields: {
1788
+ name: string;
1789
+ attribution: {
1790
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1791
+ authority: "authoritative" | "confirmatory" | "advisory";
1792
+ note?: string | undefined;
1793
+ };
1794
+ type?: string | undefined;
1795
+ required?: boolean | undefined;
1796
+ description?: string | undefined;
1797
+ defaultValue?: unknown;
1798
+ enumValues?: string[] | undefined;
1799
+ }[];
1800
+ requestQueryParams: {
1801
+ name: string;
1802
+ attribution: {
1803
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1804
+ authority: "authoritative" | "confirmatory" | "advisory";
1805
+ note?: string | undefined;
1806
+ };
1807
+ type?: string | undefined;
1808
+ required?: boolean | undefined;
1809
+ description?: string | undefined;
1810
+ defaultValue?: unknown;
1811
+ enumValues?: string[] | undefined;
1812
+ }[];
1813
+ requestPathParams: {
1814
+ name: string;
1815
+ attribution: {
1816
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1817
+ authority: "authoritative" | "confirmatory" | "advisory";
1818
+ note?: string | undefined;
1819
+ };
1820
+ type?: string | undefined;
1821
+ required?: boolean | undefined;
1822
+ description?: string | undefined;
1823
+ defaultValue?: unknown;
1824
+ enumValues?: string[] | undefined;
1825
+ }[];
1826
+ notes: {
1827
+ value: string;
1828
+ attribution: {
1829
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1830
+ authority: "authoritative" | "confirmatory" | "advisory";
1831
+ note?: string | undefined;
1832
+ };
1833
+ }[];
1834
+ description?: {
1835
+ value: string;
1836
+ attribution: {
1837
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1838
+ authority: "authoritative" | "confirmatory" | "advisory";
1839
+ note?: string | undefined;
1840
+ };
1841
+ } | undefined;
1842
+ requestBodyType?: {
1843
+ value: string;
1844
+ attribution: {
1845
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1846
+ authority: "authoritative" | "confirmatory" | "advisory";
1847
+ note?: string | undefined;
1848
+ };
1849
+ } | undefined;
1850
+ requestBodyExample?: {
1851
+ value: string;
1852
+ attribution: {
1853
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1854
+ authority: "authoritative" | "confirmatory" | "advisory";
1855
+ note?: string | undefined;
1856
+ };
1857
+ } | undefined;
1858
+ };
1859
+ validationIssues: {
1860
+ code: string;
1861
+ message: string;
1862
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1863
+ location: "path" | "headers" | "body" | "query";
1864
+ field: string;
1865
+ blocking: boolean;
1866
+ severity: "error" | "warning";
1867
+ suggestedFix?: string | undefined;
1868
+ }[];
1869
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
1870
+ probe?: {
1871
+ responseStatus: number;
1872
+ confirmedAt: string;
1873
+ } | undefined;
1874
+ }, {
1875
+ protocol: "none";
1876
+ kind: "passthrough";
1877
+ request: {
1878
+ url: string;
1879
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1880
+ headers?: Record<string, string> | undefined;
1881
+ body?: string | undefined;
1882
+ bodyHash?: string | undefined;
1883
+ };
1884
+ hints: {
1885
+ description?: {
1886
+ value: string;
1887
+ attribution: {
1888
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1889
+ authority: "authoritative" | "confirmatory" | "advisory";
1890
+ note?: string | undefined;
1891
+ };
1892
+ } | undefined;
1893
+ requestBodyType?: {
1894
+ value: string;
1895
+ attribution: {
1896
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1897
+ authority: "authoritative" | "confirmatory" | "advisory";
1898
+ note?: string | undefined;
1899
+ };
1900
+ } | undefined;
1901
+ requestBodyExample?: {
1902
+ value: string;
1903
+ attribution: {
1904
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1905
+ authority: "authoritative" | "confirmatory" | "advisory";
1906
+ note?: string | undefined;
1907
+ };
1908
+ } | undefined;
1909
+ requestBodyFields?: {
1910
+ name: string;
1911
+ attribution: {
1912
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1913
+ authority: "authoritative" | "confirmatory" | "advisory";
1914
+ note?: string | undefined;
1915
+ };
1916
+ type?: string | undefined;
1917
+ required?: boolean | undefined;
1918
+ description?: string | undefined;
1919
+ defaultValue?: unknown;
1920
+ enumValues?: string[] | undefined;
1921
+ }[] | undefined;
1922
+ requestQueryParams?: {
1923
+ name: string;
1924
+ attribution: {
1925
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1926
+ authority: "authoritative" | "confirmatory" | "advisory";
1927
+ note?: string | undefined;
1928
+ };
1929
+ type?: string | undefined;
1930
+ required?: boolean | undefined;
1931
+ description?: string | undefined;
1932
+ defaultValue?: unknown;
1933
+ enumValues?: string[] | undefined;
1934
+ }[] | undefined;
1935
+ requestPathParams?: {
1936
+ name: string;
1937
+ attribution: {
1938
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1939
+ authority: "authoritative" | "confirmatory" | "advisory";
1940
+ note?: string | undefined;
1941
+ };
1942
+ type?: string | undefined;
1943
+ required?: boolean | undefined;
1944
+ description?: string | undefined;
1945
+ defaultValue?: unknown;
1946
+ enumValues?: string[] | undefined;
1947
+ }[] | undefined;
1948
+ notes?: {
1949
+ value: string;
1950
+ attribution: {
1951
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1952
+ authority: "authoritative" | "confirmatory" | "advisory";
1953
+ note?: string | undefined;
1954
+ };
1955
+ }[] | undefined;
1956
+ };
1957
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
1958
+ probe?: {
1959
+ responseStatus: number;
1960
+ confirmedAt: string;
1961
+ } | undefined;
1962
+ validationIssues?: {
1963
+ code: string;
1964
+ message: string;
1965
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
1966
+ location: "path" | "headers" | "body" | "query";
1967
+ field: string;
1968
+ blocking: boolean;
1969
+ severity: "error" | "warning";
1970
+ suggestedFix?: string | undefined;
1971
+ }[] | undefined;
1972
+ }>;
1973
+ export type SdkPreparedPaidRequestPassthrough = z.infer<typeof sdkPreparedPaidRequestPassthroughSchema>;
1974
+ /** Preparation result when this exact request is payable and executable. */
1975
+ export declare const sdkPreparedPaidRequestReadySchema: z.ZodObject<{
1976
+ kind: z.ZodLiteral<"ready">;
1977
+ protocol: z.ZodEnum<["x402", "l402"]>;
1978
+ request: z.ZodObject<{
1979
+ url: z.ZodString;
1980
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1981
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1982
+ body: z.ZodOptional<z.ZodString>;
1983
+ bodyHash: z.ZodOptional<z.ZodString>;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ url: string;
1986
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1987
+ headers?: Record<string, string> | undefined;
1988
+ body?: string | undefined;
1989
+ bodyHash?: string | undefined;
1990
+ }, {
1991
+ url: string;
1992
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1993
+ headers?: Record<string, string> | undefined;
1994
+ body?: string | undefined;
1995
+ bodyHash?: string | undefined;
1996
+ }>;
1997
+ challenge: z.ZodObject<{
1998
+ protocol: z.ZodEnum<["x402", "l402"]>;
1999
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2000
+ body: z.ZodOptional<z.ZodUnknown>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ headers: Record<string, string>;
2003
+ protocol: "x402" | "l402";
2004
+ body?: unknown;
2005
+ }, {
2006
+ protocol: "x402" | "l402";
2007
+ headers?: Record<string, string> | undefined;
2008
+ body?: unknown;
2009
+ }>;
2010
+ paymentRequirement: z.ZodOptional<z.ZodObject<{
2011
+ protocol: z.ZodEnum<["x402", "l402"]>;
2012
+ description: z.ZodOptional<z.ZodString>;
2013
+ asset: z.ZodOptional<z.ZodString>;
2014
+ network: z.ZodOptional<z.ZodString>;
2015
+ payee: z.ZodOptional<z.ZodString>;
2016
+ amountType: z.ZodOptional<z.ZodEnum<["exact", "max"]>>;
2017
+ amount: z.ZodOptional<z.ZodString>;
2018
+ amountMinor: z.ZodOptional<z.ZodString>;
2019
+ precision: z.ZodOptional<z.ZodNumber>;
2020
+ provenance: z.ZodObject<{
2021
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2022
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2023
+ note: z.ZodOptional<z.ZodString>;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2026
+ authority: "authoritative" | "confirmatory" | "advisory";
2027
+ note?: string | undefined;
2028
+ }, {
2029
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2030
+ authority: "authoritative" | "confirmatory" | "advisory";
2031
+ note?: string | undefined;
2032
+ }>;
2033
+ confirmation: z.ZodOptional<z.ZodObject<{
2034
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2035
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2036
+ note: z.ZodOptional<z.ZodString>;
2037
+ }, "strip", z.ZodTypeAny, {
2038
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2039
+ authority: "authoritative" | "confirmatory" | "advisory";
2040
+ note?: string | undefined;
2041
+ }, {
2042
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2043
+ authority: "authoritative" | "confirmatory" | "advisory";
2044
+ note?: string | undefined;
2045
+ }>>;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ protocol: "x402" | "l402";
2048
+ provenance: {
2049
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2050
+ authority: "authoritative" | "confirmatory" | "advisory";
2051
+ note?: string | undefined;
2052
+ };
2053
+ asset?: string | undefined;
2054
+ amount?: string | undefined;
2055
+ amountMinor?: string | undefined;
2056
+ precision?: number | undefined;
2057
+ description?: string | undefined;
2058
+ network?: string | undefined;
2059
+ payee?: string | undefined;
2060
+ amountType?: "exact" | "max" | undefined;
2061
+ confirmation?: {
2062
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2063
+ authority: "authoritative" | "confirmatory" | "advisory";
2064
+ note?: string | undefined;
2065
+ } | undefined;
2066
+ }, {
2067
+ protocol: "x402" | "l402";
2068
+ provenance: {
2069
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2070
+ authority: "authoritative" | "confirmatory" | "advisory";
2071
+ note?: string | undefined;
2072
+ };
2073
+ asset?: string | undefined;
2074
+ amount?: string | undefined;
2075
+ amountMinor?: string | undefined;
2076
+ precision?: number | undefined;
2077
+ description?: string | undefined;
2078
+ network?: string | undefined;
2079
+ payee?: string | undefined;
2080
+ amountType?: "exact" | "max" | undefined;
2081
+ confirmation?: {
2082
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2083
+ authority: "authoritative" | "confirmatory" | "advisory";
2084
+ note?: string | undefined;
2085
+ } | undefined;
2086
+ }>>;
2087
+ hints: z.ZodObject<{
2088
+ description: z.ZodOptional<z.ZodObject<{
2089
+ value: z.ZodString;
2090
+ attribution: z.ZodObject<{
2091
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2092
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2093
+ note: z.ZodOptional<z.ZodString>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2096
+ authority: "authoritative" | "confirmatory" | "advisory";
2097
+ note?: string | undefined;
2098
+ }, {
2099
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2100
+ authority: "authoritative" | "confirmatory" | "advisory";
2101
+ note?: string | undefined;
2102
+ }>;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ value: string;
2105
+ attribution: {
2106
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2107
+ authority: "authoritative" | "confirmatory" | "advisory";
2108
+ note?: string | undefined;
2109
+ };
2110
+ }, {
2111
+ value: string;
2112
+ attribution: {
2113
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2114
+ authority: "authoritative" | "confirmatory" | "advisory";
2115
+ note?: string | undefined;
2116
+ };
2117
+ }>>;
2118
+ requestBodyType: z.ZodOptional<z.ZodObject<{
2119
+ value: z.ZodString;
2120
+ attribution: z.ZodObject<{
2121
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2122
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2123
+ note: z.ZodOptional<z.ZodString>;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2126
+ authority: "authoritative" | "confirmatory" | "advisory";
2127
+ note?: string | undefined;
2128
+ }, {
2129
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2130
+ authority: "authoritative" | "confirmatory" | "advisory";
2131
+ note?: string | undefined;
2132
+ }>;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ value: string;
2135
+ attribution: {
2136
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2137
+ authority: "authoritative" | "confirmatory" | "advisory";
2138
+ note?: string | undefined;
2139
+ };
2140
+ }, {
2141
+ value: string;
2142
+ attribution: {
2143
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2144
+ authority: "authoritative" | "confirmatory" | "advisory";
2145
+ note?: string | undefined;
2146
+ };
2147
+ }>>;
2148
+ requestBodyExample: z.ZodOptional<z.ZodObject<{
2149
+ value: z.ZodString;
2150
+ attribution: z.ZodObject<{
2151
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2152
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2153
+ note: z.ZodOptional<z.ZodString>;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2156
+ authority: "authoritative" | "confirmatory" | "advisory";
2157
+ note?: string | undefined;
2158
+ }, {
2159
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2160
+ authority: "authoritative" | "confirmatory" | "advisory";
2161
+ note?: string | undefined;
2162
+ }>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ value: string;
2165
+ attribution: {
2166
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2167
+ authority: "authoritative" | "confirmatory" | "advisory";
2168
+ note?: string | undefined;
2169
+ };
2170
+ }, {
2171
+ value: string;
2172
+ attribution: {
2173
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2174
+ authority: "authoritative" | "confirmatory" | "advisory";
2175
+ note?: string | undefined;
2176
+ };
2177
+ }>>;
2178
+ requestBodyFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
2179
+ name: z.ZodString;
2180
+ type: z.ZodOptional<z.ZodString>;
2181
+ description: z.ZodOptional<z.ZodString>;
2182
+ required: z.ZodOptional<z.ZodBoolean>;
2183
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2184
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2185
+ } & {
2186
+ attribution: z.ZodObject<{
2187
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2188
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2189
+ note: z.ZodOptional<z.ZodString>;
2190
+ }, "strip", z.ZodTypeAny, {
2191
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2192
+ authority: "authoritative" | "confirmatory" | "advisory";
2193
+ note?: string | undefined;
2194
+ }, {
2195
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2196
+ authority: "authoritative" | "confirmatory" | "advisory";
2197
+ note?: string | undefined;
2198
+ }>;
2199
+ }, "strip", z.ZodTypeAny, {
2200
+ name: string;
2201
+ attribution: {
2202
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2203
+ authority: "authoritative" | "confirmatory" | "advisory";
2204
+ note?: string | undefined;
2205
+ };
2206
+ type?: string | undefined;
2207
+ required?: boolean | undefined;
2208
+ description?: string | undefined;
2209
+ defaultValue?: unknown;
2210
+ enumValues?: string[] | undefined;
2211
+ }, {
2212
+ name: string;
2213
+ attribution: {
2214
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2215
+ authority: "authoritative" | "confirmatory" | "advisory";
2216
+ note?: string | undefined;
2217
+ };
2218
+ type?: string | undefined;
2219
+ required?: boolean | undefined;
2220
+ description?: string | undefined;
2221
+ defaultValue?: unknown;
2222
+ enumValues?: string[] | undefined;
2223
+ }>, "many">>;
2224
+ requestQueryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
2225
+ name: z.ZodString;
2226
+ type: z.ZodOptional<z.ZodString>;
2227
+ description: z.ZodOptional<z.ZodString>;
2228
+ required: z.ZodOptional<z.ZodBoolean>;
2229
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2230
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2231
+ } & {
2232
+ attribution: z.ZodObject<{
2233
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2234
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2235
+ note: z.ZodOptional<z.ZodString>;
2236
+ }, "strip", z.ZodTypeAny, {
2237
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2238
+ authority: "authoritative" | "confirmatory" | "advisory";
2239
+ note?: string | undefined;
2240
+ }, {
2241
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2242
+ authority: "authoritative" | "confirmatory" | "advisory";
2243
+ note?: string | undefined;
2244
+ }>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ name: string;
2247
+ attribution: {
2248
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2249
+ authority: "authoritative" | "confirmatory" | "advisory";
2250
+ note?: string | undefined;
2251
+ };
2252
+ type?: string | undefined;
2253
+ required?: boolean | undefined;
2254
+ description?: string | undefined;
2255
+ defaultValue?: unknown;
2256
+ enumValues?: string[] | undefined;
2257
+ }, {
2258
+ name: string;
2259
+ attribution: {
2260
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2261
+ authority: "authoritative" | "confirmatory" | "advisory";
2262
+ note?: string | undefined;
2263
+ };
2264
+ type?: string | undefined;
2265
+ required?: boolean | undefined;
2266
+ description?: string | undefined;
2267
+ defaultValue?: unknown;
2268
+ enumValues?: string[] | undefined;
2269
+ }>, "many">>;
2270
+ requestPathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
2271
+ name: z.ZodString;
2272
+ type: z.ZodOptional<z.ZodString>;
2273
+ description: z.ZodOptional<z.ZodString>;
2274
+ required: z.ZodOptional<z.ZodBoolean>;
2275
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2276
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2277
+ } & {
2278
+ attribution: z.ZodObject<{
2279
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2280
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2281
+ note: z.ZodOptional<z.ZodString>;
2282
+ }, "strip", z.ZodTypeAny, {
2283
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2284
+ authority: "authoritative" | "confirmatory" | "advisory";
2285
+ note?: string | undefined;
2286
+ }, {
2287
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2288
+ authority: "authoritative" | "confirmatory" | "advisory";
2289
+ note?: string | undefined;
2290
+ }>;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ name: string;
2293
+ attribution: {
2294
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2295
+ authority: "authoritative" | "confirmatory" | "advisory";
2296
+ note?: string | undefined;
2297
+ };
2298
+ type?: string | undefined;
2299
+ required?: boolean | undefined;
2300
+ description?: string | undefined;
2301
+ defaultValue?: unknown;
2302
+ enumValues?: string[] | undefined;
2303
+ }, {
2304
+ name: string;
2305
+ attribution: {
2306
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2307
+ authority: "authoritative" | "confirmatory" | "advisory";
2308
+ note?: string | undefined;
2309
+ };
2310
+ type?: string | undefined;
2311
+ required?: boolean | undefined;
2312
+ description?: string | undefined;
2313
+ defaultValue?: unknown;
2314
+ enumValues?: string[] | undefined;
2315
+ }>, "many">>;
2316
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2317
+ value: z.ZodString;
2318
+ attribution: z.ZodObject<{
2319
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2320
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2321
+ note: z.ZodOptional<z.ZodString>;
2322
+ }, "strip", z.ZodTypeAny, {
2323
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2324
+ authority: "authoritative" | "confirmatory" | "advisory";
2325
+ note?: string | undefined;
2326
+ }, {
2327
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2328
+ authority: "authoritative" | "confirmatory" | "advisory";
2329
+ note?: string | undefined;
2330
+ }>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ value: string;
2333
+ attribution: {
2334
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2335
+ authority: "authoritative" | "confirmatory" | "advisory";
2336
+ note?: string | undefined;
2337
+ };
2338
+ }, {
2339
+ value: string;
2340
+ attribution: {
2341
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2342
+ authority: "authoritative" | "confirmatory" | "advisory";
2343
+ note?: string | undefined;
2344
+ };
2345
+ }>, "many">>;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ requestBodyFields: {
2348
+ name: string;
2349
+ attribution: {
2350
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2351
+ authority: "authoritative" | "confirmatory" | "advisory";
2352
+ note?: string | undefined;
2353
+ };
2354
+ type?: string | undefined;
2355
+ required?: boolean | undefined;
2356
+ description?: string | undefined;
2357
+ defaultValue?: unknown;
2358
+ enumValues?: string[] | undefined;
2359
+ }[];
2360
+ requestQueryParams: {
2361
+ name: string;
2362
+ attribution: {
2363
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2364
+ authority: "authoritative" | "confirmatory" | "advisory";
2365
+ note?: string | undefined;
2366
+ };
2367
+ type?: string | undefined;
2368
+ required?: boolean | undefined;
2369
+ description?: string | undefined;
2370
+ defaultValue?: unknown;
2371
+ enumValues?: string[] | undefined;
2372
+ }[];
2373
+ requestPathParams: {
2374
+ name: string;
2375
+ attribution: {
2376
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2377
+ authority: "authoritative" | "confirmatory" | "advisory";
2378
+ note?: string | undefined;
2379
+ };
2380
+ type?: string | undefined;
2381
+ required?: boolean | undefined;
2382
+ description?: string | undefined;
2383
+ defaultValue?: unknown;
2384
+ enumValues?: string[] | undefined;
2385
+ }[];
2386
+ notes: {
2387
+ value: string;
2388
+ attribution: {
2389
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2390
+ authority: "authoritative" | "confirmatory" | "advisory";
2391
+ note?: string | undefined;
2392
+ };
2393
+ }[];
2394
+ description?: {
2395
+ value: string;
2396
+ attribution: {
2397
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2398
+ authority: "authoritative" | "confirmatory" | "advisory";
2399
+ note?: string | undefined;
2400
+ };
2401
+ } | undefined;
2402
+ requestBodyType?: {
2403
+ value: string;
2404
+ attribution: {
2405
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2406
+ authority: "authoritative" | "confirmatory" | "advisory";
2407
+ note?: string | undefined;
2408
+ };
2409
+ } | undefined;
2410
+ requestBodyExample?: {
2411
+ value: string;
2412
+ attribution: {
2413
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2414
+ authority: "authoritative" | "confirmatory" | "advisory";
2415
+ note?: string | undefined;
2416
+ };
2417
+ } | undefined;
2418
+ }, {
2419
+ description?: {
2420
+ value: string;
2421
+ attribution: {
2422
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2423
+ authority: "authoritative" | "confirmatory" | "advisory";
2424
+ note?: string | undefined;
2425
+ };
2426
+ } | undefined;
2427
+ requestBodyType?: {
2428
+ value: string;
2429
+ attribution: {
2430
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2431
+ authority: "authoritative" | "confirmatory" | "advisory";
2432
+ note?: string | undefined;
2433
+ };
2434
+ } | undefined;
2435
+ requestBodyExample?: {
2436
+ value: string;
2437
+ attribution: {
2438
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2439
+ authority: "authoritative" | "confirmatory" | "advisory";
2440
+ note?: string | undefined;
2441
+ };
2442
+ } | undefined;
2443
+ requestBodyFields?: {
2444
+ name: string;
2445
+ attribution: {
2446
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2447
+ authority: "authoritative" | "confirmatory" | "advisory";
2448
+ note?: string | undefined;
2449
+ };
2450
+ type?: string | undefined;
2451
+ required?: boolean | undefined;
2452
+ description?: string | undefined;
2453
+ defaultValue?: unknown;
2454
+ enumValues?: string[] | undefined;
2455
+ }[] | undefined;
2456
+ requestQueryParams?: {
2457
+ name: string;
2458
+ attribution: {
2459
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2460
+ authority: "authoritative" | "confirmatory" | "advisory";
2461
+ note?: string | undefined;
2462
+ };
2463
+ type?: string | undefined;
2464
+ required?: boolean | undefined;
2465
+ description?: string | undefined;
2466
+ defaultValue?: unknown;
2467
+ enumValues?: string[] | undefined;
2468
+ }[] | undefined;
2469
+ requestPathParams?: {
2470
+ name: string;
2471
+ attribution: {
2472
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2473
+ authority: "authoritative" | "confirmatory" | "advisory";
2474
+ note?: string | undefined;
2475
+ };
2476
+ type?: string | undefined;
2477
+ required?: boolean | undefined;
2478
+ description?: string | undefined;
2479
+ defaultValue?: unknown;
2480
+ enumValues?: string[] | undefined;
2481
+ }[] | undefined;
2482
+ notes?: {
2483
+ value: string;
2484
+ attribution: {
2485
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2486
+ authority: "authoritative" | "confirmatory" | "advisory";
2487
+ note?: string | undefined;
2488
+ };
2489
+ }[] | undefined;
2490
+ }>;
2491
+ probe: z.ZodOptional<z.ZodObject<{
2492
+ responseStatus: z.ZodNumber;
2493
+ confirmedAt: z.ZodString;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ responseStatus: number;
2496
+ confirmedAt: string;
2497
+ }, {
2498
+ responseStatus: number;
2499
+ confirmedAt: string;
2500
+ }>>;
2501
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
2502
+ location: z.ZodEnum<["body", "query", "path", "headers"]>;
2503
+ field: z.ZodString;
2504
+ code: z.ZodString;
2505
+ message: z.ZodString;
2506
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2507
+ blocking: z.ZodBoolean;
2508
+ severity: z.ZodEnum<["error", "warning"]>;
2509
+ suggestedFix: z.ZodOptional<z.ZodString>;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ code: string;
2512
+ message: string;
2513
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2514
+ location: "path" | "headers" | "body" | "query";
2515
+ field: string;
2516
+ blocking: boolean;
2517
+ severity: "error" | "warning";
2518
+ suggestedFix?: string | undefined;
2519
+ }, {
2520
+ code: string;
2521
+ message: string;
2522
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2523
+ location: "path" | "headers" | "body" | "query";
2524
+ field: string;
2525
+ blocking: boolean;
2526
+ severity: "error" | "warning";
2527
+ suggestedFix?: string | undefined;
2528
+ }>, "many">>;
2529
+ nextAction: z.ZodEnum<["execute", "revise_request", "treat_as_passthrough", "manual_review"]>;
2530
+ }, "strip", z.ZodTypeAny, {
2531
+ protocol: "x402" | "l402";
2532
+ kind: "ready";
2533
+ request: {
2534
+ url: string;
2535
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
2536
+ headers?: Record<string, string> | undefined;
2537
+ body?: string | undefined;
2538
+ bodyHash?: string | undefined;
2539
+ };
2540
+ hints: {
2541
+ requestBodyFields: {
2542
+ name: string;
2543
+ attribution: {
2544
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2545
+ authority: "authoritative" | "confirmatory" | "advisory";
2546
+ note?: string | undefined;
2547
+ };
2548
+ type?: string | undefined;
2549
+ required?: boolean | undefined;
2550
+ description?: string | undefined;
2551
+ defaultValue?: unknown;
2552
+ enumValues?: string[] | undefined;
2553
+ }[];
2554
+ requestQueryParams: {
2555
+ name: string;
2556
+ attribution: {
2557
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2558
+ authority: "authoritative" | "confirmatory" | "advisory";
2559
+ note?: string | undefined;
2560
+ };
2561
+ type?: string | undefined;
2562
+ required?: boolean | undefined;
2563
+ description?: string | undefined;
2564
+ defaultValue?: unknown;
2565
+ enumValues?: string[] | undefined;
2566
+ }[];
2567
+ requestPathParams: {
2568
+ name: string;
2569
+ attribution: {
2570
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2571
+ authority: "authoritative" | "confirmatory" | "advisory";
2572
+ note?: string | undefined;
2573
+ };
2574
+ type?: string | undefined;
2575
+ required?: boolean | undefined;
2576
+ description?: string | undefined;
2577
+ defaultValue?: unknown;
2578
+ enumValues?: string[] | undefined;
2579
+ }[];
2580
+ notes: {
2581
+ value: string;
2582
+ attribution: {
2583
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2584
+ authority: "authoritative" | "confirmatory" | "advisory";
2585
+ note?: string | undefined;
2586
+ };
2587
+ }[];
2588
+ description?: {
2589
+ value: string;
2590
+ attribution: {
2591
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2592
+ authority: "authoritative" | "confirmatory" | "advisory";
2593
+ note?: string | undefined;
2594
+ };
2595
+ } | undefined;
2596
+ requestBodyType?: {
2597
+ value: string;
2598
+ attribution: {
2599
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2600
+ authority: "authoritative" | "confirmatory" | "advisory";
2601
+ note?: string | undefined;
2602
+ };
2603
+ } | undefined;
2604
+ requestBodyExample?: {
2605
+ value: string;
2606
+ attribution: {
2607
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2608
+ authority: "authoritative" | "confirmatory" | "advisory";
2609
+ note?: string | undefined;
2610
+ };
2611
+ } | undefined;
2612
+ };
2613
+ validationIssues: {
2614
+ code: string;
2615
+ message: string;
2616
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2617
+ location: "path" | "headers" | "body" | "query";
2618
+ field: string;
2619
+ blocking: boolean;
2620
+ severity: "error" | "warning";
2621
+ suggestedFix?: string | undefined;
2622
+ }[];
2623
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
2624
+ challenge: {
2625
+ headers: Record<string, string>;
2626
+ protocol: "x402" | "l402";
2627
+ body?: unknown;
2628
+ };
2629
+ probe?: {
2630
+ responseStatus: number;
2631
+ confirmedAt: string;
2632
+ } | undefined;
2633
+ paymentRequirement?: {
2634
+ protocol: "x402" | "l402";
2635
+ provenance: {
2636
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2637
+ authority: "authoritative" | "confirmatory" | "advisory";
2638
+ note?: string | undefined;
2639
+ };
2640
+ asset?: string | undefined;
2641
+ amount?: string | undefined;
2642
+ amountMinor?: string | undefined;
2643
+ precision?: number | undefined;
2644
+ description?: string | undefined;
2645
+ network?: string | undefined;
2646
+ payee?: string | undefined;
2647
+ amountType?: "exact" | "max" | undefined;
2648
+ confirmation?: {
2649
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2650
+ authority: "authoritative" | "confirmatory" | "advisory";
2651
+ note?: string | undefined;
2652
+ } | undefined;
2653
+ } | undefined;
2654
+ }, {
2655
+ protocol: "x402" | "l402";
2656
+ kind: "ready";
2657
+ request: {
2658
+ url: string;
2659
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
2660
+ headers?: Record<string, string> | undefined;
2661
+ body?: string | undefined;
2662
+ bodyHash?: string | undefined;
2663
+ };
2664
+ hints: {
2665
+ description?: {
2666
+ value: string;
2667
+ attribution: {
2668
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2669
+ authority: "authoritative" | "confirmatory" | "advisory";
2670
+ note?: string | undefined;
2671
+ };
2672
+ } | undefined;
2673
+ requestBodyType?: {
2674
+ value: string;
2675
+ attribution: {
2676
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2677
+ authority: "authoritative" | "confirmatory" | "advisory";
2678
+ note?: string | undefined;
2679
+ };
2680
+ } | undefined;
2681
+ requestBodyExample?: {
2682
+ value: string;
2683
+ attribution: {
2684
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2685
+ authority: "authoritative" | "confirmatory" | "advisory";
2686
+ note?: string | undefined;
2687
+ };
2688
+ } | undefined;
2689
+ requestBodyFields?: {
2690
+ name: string;
2691
+ attribution: {
2692
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2693
+ authority: "authoritative" | "confirmatory" | "advisory";
2694
+ note?: string | undefined;
2695
+ };
2696
+ type?: string | undefined;
2697
+ required?: boolean | undefined;
2698
+ description?: string | undefined;
2699
+ defaultValue?: unknown;
2700
+ enumValues?: string[] | undefined;
2701
+ }[] | undefined;
2702
+ requestQueryParams?: {
2703
+ name: string;
2704
+ attribution: {
2705
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2706
+ authority: "authoritative" | "confirmatory" | "advisory";
2707
+ note?: string | undefined;
2708
+ };
2709
+ type?: string | undefined;
2710
+ required?: boolean | undefined;
2711
+ description?: string | undefined;
2712
+ defaultValue?: unknown;
2713
+ enumValues?: string[] | undefined;
2714
+ }[] | undefined;
2715
+ requestPathParams?: {
2716
+ name: string;
2717
+ attribution: {
2718
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2719
+ authority: "authoritative" | "confirmatory" | "advisory";
2720
+ note?: string | undefined;
2721
+ };
2722
+ type?: string | undefined;
2723
+ required?: boolean | undefined;
2724
+ description?: string | undefined;
2725
+ defaultValue?: unknown;
2726
+ enumValues?: string[] | undefined;
2727
+ }[] | undefined;
2728
+ notes?: {
2729
+ value: string;
2730
+ attribution: {
2731
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2732
+ authority: "authoritative" | "confirmatory" | "advisory";
2733
+ note?: string | undefined;
2734
+ };
2735
+ }[] | undefined;
2736
+ };
2737
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
2738
+ challenge: {
2739
+ protocol: "x402" | "l402";
2740
+ headers?: Record<string, string> | undefined;
2741
+ body?: unknown;
2742
+ };
2743
+ probe?: {
2744
+ responseStatus: number;
2745
+ confirmedAt: string;
2746
+ } | undefined;
2747
+ validationIssues?: {
2748
+ code: string;
2749
+ message: string;
2750
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2751
+ location: "path" | "headers" | "body" | "query";
2752
+ field: string;
2753
+ blocking: boolean;
2754
+ severity: "error" | "warning";
2755
+ suggestedFix?: string | undefined;
2756
+ }[] | undefined;
2757
+ paymentRequirement?: {
2758
+ protocol: "x402" | "l402";
2759
+ provenance: {
2760
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2761
+ authority: "authoritative" | "confirmatory" | "advisory";
2762
+ note?: string | undefined;
2763
+ };
2764
+ asset?: string | undefined;
2765
+ amount?: string | undefined;
2766
+ amountMinor?: string | undefined;
2767
+ precision?: number | undefined;
2768
+ description?: string | undefined;
2769
+ network?: string | undefined;
2770
+ payee?: string | undefined;
2771
+ amountType?: "exact" | "max" | undefined;
2772
+ confirmation?: {
2773
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2774
+ authority: "authoritative" | "confirmatory" | "advisory";
2775
+ note?: string | undefined;
2776
+ } | undefined;
2777
+ } | undefined;
2778
+ }>;
2779
+ export type SdkPreparedPaidRequestReady = z.infer<typeof sdkPreparedPaidRequestReadySchema>;
2780
+ /** Discriminated union returned by AgentPayClient.preparePaidRequest(). */
2781
+ export declare const sdkPreparedPaidRequestSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2782
+ kind: z.ZodLiteral<"passthrough">;
2783
+ protocol: z.ZodLiteral<"none">;
2784
+ request: z.ZodObject<{
2785
+ url: z.ZodString;
2786
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
2787
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2788
+ body: z.ZodOptional<z.ZodString>;
2789
+ bodyHash: z.ZodOptional<z.ZodString>;
2790
+ }, "strip", z.ZodTypeAny, {
2791
+ url: string;
2792
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
2793
+ headers?: Record<string, string> | undefined;
2794
+ body?: string | undefined;
2795
+ bodyHash?: string | undefined;
2796
+ }, {
2797
+ url: string;
2798
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
2799
+ headers?: Record<string, string> | undefined;
2800
+ body?: string | undefined;
2801
+ bodyHash?: string | undefined;
2802
+ }>;
2803
+ hints: z.ZodObject<{
2804
+ description: z.ZodOptional<z.ZodObject<{
2805
+ value: z.ZodString;
2806
+ attribution: z.ZodObject<{
2807
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2808
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2809
+ note: z.ZodOptional<z.ZodString>;
2810
+ }, "strip", z.ZodTypeAny, {
2811
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2812
+ authority: "authoritative" | "confirmatory" | "advisory";
2813
+ note?: string | undefined;
2814
+ }, {
2815
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2816
+ authority: "authoritative" | "confirmatory" | "advisory";
2817
+ note?: string | undefined;
2818
+ }>;
2819
+ }, "strip", z.ZodTypeAny, {
2820
+ value: string;
2821
+ attribution: {
2822
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2823
+ authority: "authoritative" | "confirmatory" | "advisory";
2824
+ note?: string | undefined;
2825
+ };
2826
+ }, {
2827
+ value: string;
2828
+ attribution: {
2829
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2830
+ authority: "authoritative" | "confirmatory" | "advisory";
2831
+ note?: string | undefined;
2832
+ };
2833
+ }>>;
2834
+ requestBodyType: z.ZodOptional<z.ZodObject<{
2835
+ value: z.ZodString;
2836
+ attribution: z.ZodObject<{
2837
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2838
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2839
+ note: z.ZodOptional<z.ZodString>;
2840
+ }, "strip", z.ZodTypeAny, {
2841
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2842
+ authority: "authoritative" | "confirmatory" | "advisory";
2843
+ note?: string | undefined;
2844
+ }, {
2845
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2846
+ authority: "authoritative" | "confirmatory" | "advisory";
2847
+ note?: string | undefined;
2848
+ }>;
2849
+ }, "strip", z.ZodTypeAny, {
2850
+ value: string;
2851
+ attribution: {
2852
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2853
+ authority: "authoritative" | "confirmatory" | "advisory";
2854
+ note?: string | undefined;
2855
+ };
2856
+ }, {
2857
+ value: string;
2858
+ attribution: {
2859
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2860
+ authority: "authoritative" | "confirmatory" | "advisory";
2861
+ note?: string | undefined;
2862
+ };
2863
+ }>>;
2864
+ requestBodyExample: z.ZodOptional<z.ZodObject<{
2865
+ value: z.ZodString;
2866
+ attribution: z.ZodObject<{
2867
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2868
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2869
+ note: z.ZodOptional<z.ZodString>;
2870
+ }, "strip", z.ZodTypeAny, {
2871
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2872
+ authority: "authoritative" | "confirmatory" | "advisory";
2873
+ note?: string | undefined;
2874
+ }, {
2875
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2876
+ authority: "authoritative" | "confirmatory" | "advisory";
2877
+ note?: string | undefined;
2878
+ }>;
2879
+ }, "strip", z.ZodTypeAny, {
2880
+ value: string;
2881
+ attribution: {
2882
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2883
+ authority: "authoritative" | "confirmatory" | "advisory";
2884
+ note?: string | undefined;
2885
+ };
2886
+ }, {
2887
+ value: string;
2888
+ attribution: {
2889
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2890
+ authority: "authoritative" | "confirmatory" | "advisory";
2891
+ note?: string | undefined;
2892
+ };
2893
+ }>>;
2894
+ requestBodyFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
2895
+ name: z.ZodString;
2896
+ type: z.ZodOptional<z.ZodString>;
2897
+ description: z.ZodOptional<z.ZodString>;
2898
+ required: z.ZodOptional<z.ZodBoolean>;
2899
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2900
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2901
+ } & {
2902
+ attribution: z.ZodObject<{
2903
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2904
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2905
+ note: z.ZodOptional<z.ZodString>;
2906
+ }, "strip", z.ZodTypeAny, {
2907
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2908
+ authority: "authoritative" | "confirmatory" | "advisory";
2909
+ note?: string | undefined;
2910
+ }, {
2911
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2912
+ authority: "authoritative" | "confirmatory" | "advisory";
2913
+ note?: string | undefined;
2914
+ }>;
2915
+ }, "strip", z.ZodTypeAny, {
2916
+ name: string;
2917
+ attribution: {
2918
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2919
+ authority: "authoritative" | "confirmatory" | "advisory";
2920
+ note?: string | undefined;
2921
+ };
2922
+ type?: string | undefined;
2923
+ required?: boolean | undefined;
2924
+ description?: string | undefined;
2925
+ defaultValue?: unknown;
2926
+ enumValues?: string[] | undefined;
2927
+ }, {
2928
+ name: string;
2929
+ attribution: {
2930
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2931
+ authority: "authoritative" | "confirmatory" | "advisory";
2932
+ note?: string | undefined;
2933
+ };
2934
+ type?: string | undefined;
2935
+ required?: boolean | undefined;
2936
+ description?: string | undefined;
2937
+ defaultValue?: unknown;
2938
+ enumValues?: string[] | undefined;
2939
+ }>, "many">>;
2940
+ requestQueryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
2941
+ name: z.ZodString;
2942
+ type: z.ZodOptional<z.ZodString>;
2943
+ description: z.ZodOptional<z.ZodString>;
2944
+ required: z.ZodOptional<z.ZodBoolean>;
2945
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2946
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2947
+ } & {
2948
+ attribution: z.ZodObject<{
2949
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2950
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2951
+ note: z.ZodOptional<z.ZodString>;
2952
+ }, "strip", z.ZodTypeAny, {
2953
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2954
+ authority: "authoritative" | "confirmatory" | "advisory";
2955
+ note?: string | undefined;
2956
+ }, {
2957
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2958
+ authority: "authoritative" | "confirmatory" | "advisory";
2959
+ note?: string | undefined;
2960
+ }>;
2961
+ }, "strip", z.ZodTypeAny, {
2962
+ name: string;
2963
+ attribution: {
2964
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2965
+ authority: "authoritative" | "confirmatory" | "advisory";
2966
+ note?: string | undefined;
2967
+ };
2968
+ type?: string | undefined;
2969
+ required?: boolean | undefined;
2970
+ description?: string | undefined;
2971
+ defaultValue?: unknown;
2972
+ enumValues?: string[] | undefined;
2973
+ }, {
2974
+ name: string;
2975
+ attribution: {
2976
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
2977
+ authority: "authoritative" | "confirmatory" | "advisory";
2978
+ note?: string | undefined;
2979
+ };
2980
+ type?: string | undefined;
2981
+ required?: boolean | undefined;
2982
+ description?: string | undefined;
2983
+ defaultValue?: unknown;
2984
+ enumValues?: string[] | undefined;
2985
+ }>, "many">>;
2986
+ requestPathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
2987
+ name: z.ZodString;
2988
+ type: z.ZodOptional<z.ZodString>;
2989
+ description: z.ZodOptional<z.ZodString>;
2990
+ required: z.ZodOptional<z.ZodBoolean>;
2991
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
2992
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2993
+ } & {
2994
+ attribution: z.ZodObject<{
2995
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
2996
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
2997
+ note: z.ZodOptional<z.ZodString>;
2998
+ }, "strip", z.ZodTypeAny, {
2999
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3000
+ authority: "authoritative" | "confirmatory" | "advisory";
3001
+ note?: string | undefined;
3002
+ }, {
3003
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3004
+ authority: "authoritative" | "confirmatory" | "advisory";
3005
+ note?: string | undefined;
3006
+ }>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ name: string;
3009
+ attribution: {
3010
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3011
+ authority: "authoritative" | "confirmatory" | "advisory";
3012
+ note?: string | undefined;
3013
+ };
3014
+ type?: string | undefined;
3015
+ required?: boolean | undefined;
3016
+ description?: string | undefined;
3017
+ defaultValue?: unknown;
3018
+ enumValues?: string[] | undefined;
3019
+ }, {
3020
+ name: string;
3021
+ attribution: {
3022
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3023
+ authority: "authoritative" | "confirmatory" | "advisory";
3024
+ note?: string | undefined;
3025
+ };
3026
+ type?: string | undefined;
3027
+ required?: boolean | undefined;
3028
+ description?: string | undefined;
3029
+ defaultValue?: unknown;
3030
+ enumValues?: string[] | undefined;
3031
+ }>, "many">>;
3032
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
3033
+ value: z.ZodString;
3034
+ attribution: z.ZodObject<{
3035
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3036
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3037
+ note: z.ZodOptional<z.ZodString>;
3038
+ }, "strip", z.ZodTypeAny, {
3039
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3040
+ authority: "authoritative" | "confirmatory" | "advisory";
3041
+ note?: string | undefined;
3042
+ }, {
3043
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3044
+ authority: "authoritative" | "confirmatory" | "advisory";
3045
+ note?: string | undefined;
3046
+ }>;
3047
+ }, "strip", z.ZodTypeAny, {
3048
+ value: string;
3049
+ attribution: {
3050
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3051
+ authority: "authoritative" | "confirmatory" | "advisory";
3052
+ note?: string | undefined;
3053
+ };
3054
+ }, {
3055
+ value: string;
3056
+ attribution: {
3057
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3058
+ authority: "authoritative" | "confirmatory" | "advisory";
3059
+ note?: string | undefined;
3060
+ };
3061
+ }>, "many">>;
3062
+ }, "strip", z.ZodTypeAny, {
3063
+ requestBodyFields: {
3064
+ name: string;
3065
+ attribution: {
3066
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3067
+ authority: "authoritative" | "confirmatory" | "advisory";
3068
+ note?: string | undefined;
3069
+ };
3070
+ type?: string | undefined;
3071
+ required?: boolean | undefined;
3072
+ description?: string | undefined;
3073
+ defaultValue?: unknown;
3074
+ enumValues?: string[] | undefined;
3075
+ }[];
3076
+ requestQueryParams: {
3077
+ name: string;
3078
+ attribution: {
3079
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3080
+ authority: "authoritative" | "confirmatory" | "advisory";
3081
+ note?: string | undefined;
3082
+ };
3083
+ type?: string | undefined;
3084
+ required?: boolean | undefined;
3085
+ description?: string | undefined;
3086
+ defaultValue?: unknown;
3087
+ enumValues?: string[] | undefined;
3088
+ }[];
3089
+ requestPathParams: {
3090
+ name: string;
3091
+ attribution: {
3092
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3093
+ authority: "authoritative" | "confirmatory" | "advisory";
3094
+ note?: string | undefined;
3095
+ };
3096
+ type?: string | undefined;
3097
+ required?: boolean | undefined;
3098
+ description?: string | undefined;
3099
+ defaultValue?: unknown;
3100
+ enumValues?: string[] | undefined;
3101
+ }[];
3102
+ notes: {
3103
+ value: string;
3104
+ attribution: {
3105
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3106
+ authority: "authoritative" | "confirmatory" | "advisory";
3107
+ note?: string | undefined;
3108
+ };
3109
+ }[];
3110
+ description?: {
3111
+ value: string;
3112
+ attribution: {
3113
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3114
+ authority: "authoritative" | "confirmatory" | "advisory";
3115
+ note?: string | undefined;
3116
+ };
3117
+ } | undefined;
3118
+ requestBodyType?: {
3119
+ value: string;
3120
+ attribution: {
3121
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3122
+ authority: "authoritative" | "confirmatory" | "advisory";
3123
+ note?: string | undefined;
3124
+ };
3125
+ } | undefined;
3126
+ requestBodyExample?: {
3127
+ value: string;
3128
+ attribution: {
3129
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3130
+ authority: "authoritative" | "confirmatory" | "advisory";
3131
+ note?: string | undefined;
3132
+ };
3133
+ } | undefined;
3134
+ }, {
3135
+ description?: {
3136
+ value: string;
3137
+ attribution: {
3138
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3139
+ authority: "authoritative" | "confirmatory" | "advisory";
3140
+ note?: string | undefined;
3141
+ };
3142
+ } | undefined;
3143
+ requestBodyType?: {
3144
+ value: string;
3145
+ attribution: {
3146
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3147
+ authority: "authoritative" | "confirmatory" | "advisory";
3148
+ note?: string | undefined;
3149
+ };
3150
+ } | undefined;
3151
+ requestBodyExample?: {
3152
+ value: string;
3153
+ attribution: {
3154
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3155
+ authority: "authoritative" | "confirmatory" | "advisory";
3156
+ note?: string | undefined;
3157
+ };
3158
+ } | undefined;
3159
+ requestBodyFields?: {
3160
+ name: string;
3161
+ attribution: {
3162
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3163
+ authority: "authoritative" | "confirmatory" | "advisory";
3164
+ note?: string | undefined;
3165
+ };
3166
+ type?: string | undefined;
3167
+ required?: boolean | undefined;
3168
+ description?: string | undefined;
3169
+ defaultValue?: unknown;
3170
+ enumValues?: string[] | undefined;
3171
+ }[] | undefined;
3172
+ requestQueryParams?: {
3173
+ name: string;
3174
+ attribution: {
3175
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3176
+ authority: "authoritative" | "confirmatory" | "advisory";
3177
+ note?: string | undefined;
3178
+ };
3179
+ type?: string | undefined;
3180
+ required?: boolean | undefined;
3181
+ description?: string | undefined;
3182
+ defaultValue?: unknown;
3183
+ enumValues?: string[] | undefined;
3184
+ }[] | undefined;
3185
+ requestPathParams?: {
3186
+ name: string;
3187
+ attribution: {
3188
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3189
+ authority: "authoritative" | "confirmatory" | "advisory";
3190
+ note?: string | undefined;
3191
+ };
3192
+ type?: string | undefined;
3193
+ required?: boolean | undefined;
3194
+ description?: string | undefined;
3195
+ defaultValue?: unknown;
3196
+ enumValues?: string[] | undefined;
3197
+ }[] | undefined;
3198
+ notes?: {
3199
+ value: string;
3200
+ attribution: {
3201
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3202
+ authority: "authoritative" | "confirmatory" | "advisory";
3203
+ note?: string | undefined;
3204
+ };
3205
+ }[] | undefined;
3206
+ }>;
3207
+ probe: z.ZodOptional<z.ZodObject<{
3208
+ responseStatus: z.ZodNumber;
3209
+ confirmedAt: z.ZodString;
3210
+ }, "strip", z.ZodTypeAny, {
3211
+ responseStatus: number;
3212
+ confirmedAt: string;
3213
+ }, {
3214
+ responseStatus: number;
3215
+ confirmedAt: string;
3216
+ }>>;
3217
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
3218
+ location: z.ZodEnum<["body", "query", "path", "headers"]>;
3219
+ field: z.ZodString;
3220
+ code: z.ZodString;
3221
+ message: z.ZodString;
3222
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3223
+ blocking: z.ZodBoolean;
3224
+ severity: z.ZodEnum<["error", "warning"]>;
3225
+ suggestedFix: z.ZodOptional<z.ZodString>;
3226
+ }, "strip", z.ZodTypeAny, {
3227
+ code: string;
3228
+ message: string;
3229
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3230
+ location: "path" | "headers" | "body" | "query";
3231
+ field: string;
3232
+ blocking: boolean;
3233
+ severity: "error" | "warning";
3234
+ suggestedFix?: string | undefined;
3235
+ }, {
3236
+ code: string;
3237
+ message: string;
3238
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3239
+ location: "path" | "headers" | "body" | "query";
3240
+ field: string;
3241
+ blocking: boolean;
3242
+ severity: "error" | "warning";
3243
+ suggestedFix?: string | undefined;
3244
+ }>, "many">>;
3245
+ nextAction: z.ZodEnum<["execute", "revise_request", "treat_as_passthrough", "manual_review"]>;
3246
+ }, "strip", z.ZodTypeAny, {
3247
+ protocol: "none";
3248
+ kind: "passthrough";
3249
+ request: {
3250
+ url: string;
3251
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
3252
+ headers?: Record<string, string> | undefined;
3253
+ body?: string | undefined;
3254
+ bodyHash?: string | undefined;
3255
+ };
3256
+ hints: {
3257
+ requestBodyFields: {
3258
+ name: string;
3259
+ attribution: {
3260
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3261
+ authority: "authoritative" | "confirmatory" | "advisory";
3262
+ note?: string | undefined;
3263
+ };
3264
+ type?: string | undefined;
3265
+ required?: boolean | undefined;
3266
+ description?: string | undefined;
3267
+ defaultValue?: unknown;
3268
+ enumValues?: string[] | undefined;
3269
+ }[];
3270
+ requestQueryParams: {
3271
+ name: string;
3272
+ attribution: {
3273
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3274
+ authority: "authoritative" | "confirmatory" | "advisory";
3275
+ note?: string | undefined;
3276
+ };
3277
+ type?: string | undefined;
3278
+ required?: boolean | undefined;
3279
+ description?: string | undefined;
3280
+ defaultValue?: unknown;
3281
+ enumValues?: string[] | undefined;
3282
+ }[];
3283
+ requestPathParams: {
3284
+ name: string;
3285
+ attribution: {
3286
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3287
+ authority: "authoritative" | "confirmatory" | "advisory";
3288
+ note?: string | undefined;
3289
+ };
3290
+ type?: string | undefined;
3291
+ required?: boolean | undefined;
3292
+ description?: string | undefined;
3293
+ defaultValue?: unknown;
3294
+ enumValues?: string[] | undefined;
3295
+ }[];
3296
+ notes: {
3297
+ value: string;
3298
+ attribution: {
3299
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3300
+ authority: "authoritative" | "confirmatory" | "advisory";
3301
+ note?: string | undefined;
3302
+ };
3303
+ }[];
3304
+ description?: {
3305
+ value: string;
3306
+ attribution: {
3307
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3308
+ authority: "authoritative" | "confirmatory" | "advisory";
3309
+ note?: string | undefined;
3310
+ };
3311
+ } | undefined;
3312
+ requestBodyType?: {
3313
+ value: string;
3314
+ attribution: {
3315
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3316
+ authority: "authoritative" | "confirmatory" | "advisory";
3317
+ note?: string | undefined;
3318
+ };
3319
+ } | undefined;
3320
+ requestBodyExample?: {
3321
+ value: string;
3322
+ attribution: {
3323
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3324
+ authority: "authoritative" | "confirmatory" | "advisory";
3325
+ note?: string | undefined;
3326
+ };
3327
+ } | undefined;
3328
+ };
3329
+ validationIssues: {
3330
+ code: string;
3331
+ message: string;
3332
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3333
+ location: "path" | "headers" | "body" | "query";
3334
+ field: string;
3335
+ blocking: boolean;
3336
+ severity: "error" | "warning";
3337
+ suggestedFix?: string | undefined;
3338
+ }[];
3339
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
3340
+ probe?: {
3341
+ responseStatus: number;
3342
+ confirmedAt: string;
3343
+ } | undefined;
3344
+ }, {
3345
+ protocol: "none";
3346
+ kind: "passthrough";
3347
+ request: {
3348
+ url: string;
3349
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
3350
+ headers?: Record<string, string> | undefined;
3351
+ body?: string | undefined;
3352
+ bodyHash?: string | undefined;
3353
+ };
3354
+ hints: {
3355
+ description?: {
3356
+ value: string;
3357
+ attribution: {
3358
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3359
+ authority: "authoritative" | "confirmatory" | "advisory";
3360
+ note?: string | undefined;
3361
+ };
3362
+ } | undefined;
3363
+ requestBodyType?: {
3364
+ value: string;
3365
+ attribution: {
3366
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3367
+ authority: "authoritative" | "confirmatory" | "advisory";
3368
+ note?: string | undefined;
3369
+ };
3370
+ } | undefined;
3371
+ requestBodyExample?: {
3372
+ value: string;
3373
+ attribution: {
3374
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3375
+ authority: "authoritative" | "confirmatory" | "advisory";
3376
+ note?: string | undefined;
3377
+ };
3378
+ } | undefined;
3379
+ requestBodyFields?: {
3380
+ name: string;
3381
+ attribution: {
3382
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3383
+ authority: "authoritative" | "confirmatory" | "advisory";
3384
+ note?: string | undefined;
3385
+ };
3386
+ type?: string | undefined;
3387
+ required?: boolean | undefined;
3388
+ description?: string | undefined;
3389
+ defaultValue?: unknown;
3390
+ enumValues?: string[] | undefined;
3391
+ }[] | undefined;
3392
+ requestQueryParams?: {
3393
+ name: string;
3394
+ attribution: {
3395
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3396
+ authority: "authoritative" | "confirmatory" | "advisory";
3397
+ note?: string | undefined;
3398
+ };
3399
+ type?: string | undefined;
3400
+ required?: boolean | undefined;
3401
+ description?: string | undefined;
3402
+ defaultValue?: unknown;
3403
+ enumValues?: string[] | undefined;
3404
+ }[] | undefined;
3405
+ requestPathParams?: {
3406
+ name: string;
3407
+ attribution: {
3408
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3409
+ authority: "authoritative" | "confirmatory" | "advisory";
3410
+ note?: string | undefined;
3411
+ };
3412
+ type?: string | undefined;
3413
+ required?: boolean | undefined;
3414
+ description?: string | undefined;
3415
+ defaultValue?: unknown;
3416
+ enumValues?: string[] | undefined;
3417
+ }[] | undefined;
3418
+ notes?: {
3419
+ value: string;
3420
+ attribution: {
3421
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3422
+ authority: "authoritative" | "confirmatory" | "advisory";
3423
+ note?: string | undefined;
3424
+ };
3425
+ }[] | undefined;
3426
+ };
3427
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
3428
+ probe?: {
3429
+ responseStatus: number;
3430
+ confirmedAt: string;
3431
+ } | undefined;
3432
+ validationIssues?: {
3433
+ code: string;
3434
+ message: string;
3435
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3436
+ location: "path" | "headers" | "body" | "query";
3437
+ field: string;
3438
+ blocking: boolean;
3439
+ severity: "error" | "warning";
3440
+ suggestedFix?: string | undefined;
3441
+ }[] | undefined;
3442
+ }>, z.ZodObject<{
3443
+ kind: z.ZodLiteral<"ready">;
3444
+ protocol: z.ZodEnum<["x402", "l402"]>;
3445
+ request: z.ZodObject<{
3446
+ url: z.ZodString;
3447
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
3448
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3449
+ body: z.ZodOptional<z.ZodString>;
3450
+ bodyHash: z.ZodOptional<z.ZodString>;
3451
+ }, "strip", z.ZodTypeAny, {
3452
+ url: string;
3453
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
3454
+ headers?: Record<string, string> | undefined;
3455
+ body?: string | undefined;
3456
+ bodyHash?: string | undefined;
3457
+ }, {
3458
+ url: string;
3459
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
3460
+ headers?: Record<string, string> | undefined;
3461
+ body?: string | undefined;
3462
+ bodyHash?: string | undefined;
3463
+ }>;
3464
+ challenge: z.ZodObject<{
3465
+ protocol: z.ZodEnum<["x402", "l402"]>;
3466
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
3467
+ body: z.ZodOptional<z.ZodUnknown>;
3468
+ }, "strip", z.ZodTypeAny, {
3469
+ headers: Record<string, string>;
3470
+ protocol: "x402" | "l402";
3471
+ body?: unknown;
3472
+ }, {
3473
+ protocol: "x402" | "l402";
3474
+ headers?: Record<string, string> | undefined;
3475
+ body?: unknown;
3476
+ }>;
3477
+ paymentRequirement: z.ZodOptional<z.ZodObject<{
3478
+ protocol: z.ZodEnum<["x402", "l402"]>;
3479
+ description: z.ZodOptional<z.ZodString>;
3480
+ asset: z.ZodOptional<z.ZodString>;
3481
+ network: z.ZodOptional<z.ZodString>;
3482
+ payee: z.ZodOptional<z.ZodString>;
3483
+ amountType: z.ZodOptional<z.ZodEnum<["exact", "max"]>>;
3484
+ amount: z.ZodOptional<z.ZodString>;
3485
+ amountMinor: z.ZodOptional<z.ZodString>;
3486
+ precision: z.ZodOptional<z.ZodNumber>;
3487
+ provenance: z.ZodObject<{
3488
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3489
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3490
+ note: z.ZodOptional<z.ZodString>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3493
+ authority: "authoritative" | "confirmatory" | "advisory";
3494
+ note?: string | undefined;
3495
+ }, {
3496
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3497
+ authority: "authoritative" | "confirmatory" | "advisory";
3498
+ note?: string | undefined;
3499
+ }>;
3500
+ confirmation: z.ZodOptional<z.ZodObject<{
3501
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3502
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3503
+ note: z.ZodOptional<z.ZodString>;
3504
+ }, "strip", z.ZodTypeAny, {
3505
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3506
+ authority: "authoritative" | "confirmatory" | "advisory";
3507
+ note?: string | undefined;
3508
+ }, {
3509
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3510
+ authority: "authoritative" | "confirmatory" | "advisory";
3511
+ note?: string | undefined;
3512
+ }>>;
3513
+ }, "strip", z.ZodTypeAny, {
3514
+ protocol: "x402" | "l402";
3515
+ provenance: {
3516
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3517
+ authority: "authoritative" | "confirmatory" | "advisory";
3518
+ note?: string | undefined;
3519
+ };
3520
+ asset?: string | undefined;
3521
+ amount?: string | undefined;
3522
+ amountMinor?: string | undefined;
3523
+ precision?: number | undefined;
3524
+ description?: string | undefined;
3525
+ network?: string | undefined;
3526
+ payee?: string | undefined;
3527
+ amountType?: "exact" | "max" | undefined;
3528
+ confirmation?: {
3529
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3530
+ authority: "authoritative" | "confirmatory" | "advisory";
3531
+ note?: string | undefined;
3532
+ } | undefined;
3533
+ }, {
3534
+ protocol: "x402" | "l402";
3535
+ provenance: {
3536
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3537
+ authority: "authoritative" | "confirmatory" | "advisory";
3538
+ note?: string | undefined;
3539
+ };
3540
+ asset?: string | undefined;
3541
+ amount?: string | undefined;
3542
+ amountMinor?: string | undefined;
3543
+ precision?: number | undefined;
3544
+ description?: string | undefined;
3545
+ network?: string | undefined;
3546
+ payee?: string | undefined;
3547
+ amountType?: "exact" | "max" | undefined;
3548
+ confirmation?: {
3549
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3550
+ authority: "authoritative" | "confirmatory" | "advisory";
3551
+ note?: string | undefined;
3552
+ } | undefined;
3553
+ }>>;
3554
+ hints: z.ZodObject<{
3555
+ description: z.ZodOptional<z.ZodObject<{
3556
+ value: z.ZodString;
3557
+ attribution: z.ZodObject<{
3558
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3559
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3560
+ note: z.ZodOptional<z.ZodString>;
3561
+ }, "strip", z.ZodTypeAny, {
3562
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3563
+ authority: "authoritative" | "confirmatory" | "advisory";
3564
+ note?: string | undefined;
3565
+ }, {
3566
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3567
+ authority: "authoritative" | "confirmatory" | "advisory";
3568
+ note?: string | undefined;
3569
+ }>;
3570
+ }, "strip", z.ZodTypeAny, {
3571
+ value: string;
3572
+ attribution: {
3573
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3574
+ authority: "authoritative" | "confirmatory" | "advisory";
3575
+ note?: string | undefined;
3576
+ };
3577
+ }, {
3578
+ value: string;
3579
+ attribution: {
3580
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3581
+ authority: "authoritative" | "confirmatory" | "advisory";
3582
+ note?: string | undefined;
3583
+ };
3584
+ }>>;
3585
+ requestBodyType: z.ZodOptional<z.ZodObject<{
3586
+ value: z.ZodString;
3587
+ attribution: z.ZodObject<{
3588
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3589
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3590
+ note: z.ZodOptional<z.ZodString>;
3591
+ }, "strip", z.ZodTypeAny, {
3592
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3593
+ authority: "authoritative" | "confirmatory" | "advisory";
3594
+ note?: string | undefined;
3595
+ }, {
3596
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3597
+ authority: "authoritative" | "confirmatory" | "advisory";
3598
+ note?: string | undefined;
3599
+ }>;
3600
+ }, "strip", z.ZodTypeAny, {
3601
+ value: string;
3602
+ attribution: {
3603
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3604
+ authority: "authoritative" | "confirmatory" | "advisory";
3605
+ note?: string | undefined;
3606
+ };
3607
+ }, {
3608
+ value: string;
3609
+ attribution: {
3610
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3611
+ authority: "authoritative" | "confirmatory" | "advisory";
3612
+ note?: string | undefined;
3613
+ };
3614
+ }>>;
3615
+ requestBodyExample: z.ZodOptional<z.ZodObject<{
3616
+ value: z.ZodString;
3617
+ attribution: z.ZodObject<{
3618
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3619
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3620
+ note: z.ZodOptional<z.ZodString>;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3623
+ authority: "authoritative" | "confirmatory" | "advisory";
3624
+ note?: string | undefined;
3625
+ }, {
3626
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3627
+ authority: "authoritative" | "confirmatory" | "advisory";
3628
+ note?: string | undefined;
3629
+ }>;
3630
+ }, "strip", z.ZodTypeAny, {
3631
+ value: string;
3632
+ attribution: {
3633
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3634
+ authority: "authoritative" | "confirmatory" | "advisory";
3635
+ note?: string | undefined;
3636
+ };
3637
+ }, {
3638
+ value: string;
3639
+ attribution: {
3640
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3641
+ authority: "authoritative" | "confirmatory" | "advisory";
3642
+ note?: string | undefined;
3643
+ };
3644
+ }>>;
3645
+ requestBodyFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
3646
+ name: z.ZodString;
3647
+ type: z.ZodOptional<z.ZodString>;
3648
+ description: z.ZodOptional<z.ZodString>;
3649
+ required: z.ZodOptional<z.ZodBoolean>;
3650
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
3651
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3652
+ } & {
3653
+ attribution: z.ZodObject<{
3654
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3655
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3656
+ note: z.ZodOptional<z.ZodString>;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3659
+ authority: "authoritative" | "confirmatory" | "advisory";
3660
+ note?: string | undefined;
3661
+ }, {
3662
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3663
+ authority: "authoritative" | "confirmatory" | "advisory";
3664
+ note?: string | undefined;
3665
+ }>;
3666
+ }, "strip", z.ZodTypeAny, {
3667
+ name: string;
3668
+ attribution: {
3669
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3670
+ authority: "authoritative" | "confirmatory" | "advisory";
3671
+ note?: string | undefined;
3672
+ };
3673
+ type?: string | undefined;
3674
+ required?: boolean | undefined;
3675
+ description?: string | undefined;
3676
+ defaultValue?: unknown;
3677
+ enumValues?: string[] | undefined;
3678
+ }, {
3679
+ name: string;
3680
+ attribution: {
3681
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3682
+ authority: "authoritative" | "confirmatory" | "advisory";
3683
+ note?: string | undefined;
3684
+ };
3685
+ type?: string | undefined;
3686
+ required?: boolean | undefined;
3687
+ description?: string | undefined;
3688
+ defaultValue?: unknown;
3689
+ enumValues?: string[] | undefined;
3690
+ }>, "many">>;
3691
+ requestQueryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
3692
+ name: z.ZodString;
3693
+ type: z.ZodOptional<z.ZodString>;
3694
+ description: z.ZodOptional<z.ZodString>;
3695
+ required: z.ZodOptional<z.ZodBoolean>;
3696
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
3697
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3698
+ } & {
3699
+ attribution: z.ZodObject<{
3700
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3701
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3702
+ note: z.ZodOptional<z.ZodString>;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3705
+ authority: "authoritative" | "confirmatory" | "advisory";
3706
+ note?: string | undefined;
3707
+ }, {
3708
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3709
+ authority: "authoritative" | "confirmatory" | "advisory";
3710
+ note?: string | undefined;
3711
+ }>;
3712
+ }, "strip", z.ZodTypeAny, {
3713
+ name: string;
3714
+ attribution: {
3715
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3716
+ authority: "authoritative" | "confirmatory" | "advisory";
3717
+ note?: string | undefined;
3718
+ };
3719
+ type?: string | undefined;
3720
+ required?: boolean | undefined;
3721
+ description?: string | undefined;
3722
+ defaultValue?: unknown;
3723
+ enumValues?: string[] | undefined;
3724
+ }, {
3725
+ name: string;
3726
+ attribution: {
3727
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3728
+ authority: "authoritative" | "confirmatory" | "advisory";
3729
+ note?: string | undefined;
3730
+ };
3731
+ type?: string | undefined;
3732
+ required?: boolean | undefined;
3733
+ description?: string | undefined;
3734
+ defaultValue?: unknown;
3735
+ enumValues?: string[] | undefined;
3736
+ }>, "many">>;
3737
+ requestPathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
3738
+ name: z.ZodString;
3739
+ type: z.ZodOptional<z.ZodString>;
3740
+ description: z.ZodOptional<z.ZodString>;
3741
+ required: z.ZodOptional<z.ZodBoolean>;
3742
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
3743
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3744
+ } & {
3745
+ attribution: z.ZodObject<{
3746
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3747
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3748
+ note: z.ZodOptional<z.ZodString>;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3751
+ authority: "authoritative" | "confirmatory" | "advisory";
3752
+ note?: string | undefined;
3753
+ }, {
3754
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3755
+ authority: "authoritative" | "confirmatory" | "advisory";
3756
+ note?: string | undefined;
3757
+ }>;
3758
+ }, "strip", z.ZodTypeAny, {
3759
+ name: string;
3760
+ attribution: {
3761
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3762
+ authority: "authoritative" | "confirmatory" | "advisory";
3763
+ note?: string | undefined;
3764
+ };
3765
+ type?: string | undefined;
3766
+ required?: boolean | undefined;
3767
+ description?: string | undefined;
3768
+ defaultValue?: unknown;
3769
+ enumValues?: string[] | undefined;
3770
+ }, {
3771
+ name: string;
3772
+ attribution: {
3773
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3774
+ authority: "authoritative" | "confirmatory" | "advisory";
3775
+ note?: string | undefined;
3776
+ };
3777
+ type?: string | undefined;
3778
+ required?: boolean | undefined;
3779
+ description?: string | undefined;
3780
+ defaultValue?: unknown;
3781
+ enumValues?: string[] | undefined;
3782
+ }>, "many">>;
3783
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
3784
+ value: z.ZodString;
3785
+ attribution: z.ZodObject<{
3786
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3787
+ authority: z.ZodEnum<["authoritative", "confirmatory", "advisory"]>;
3788
+ note: z.ZodOptional<z.ZodString>;
3789
+ }, "strip", z.ZodTypeAny, {
3790
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3791
+ authority: "authoritative" | "confirmatory" | "advisory";
3792
+ note?: string | undefined;
3793
+ }, {
3794
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3795
+ authority: "authoritative" | "confirmatory" | "advisory";
3796
+ note?: string | undefined;
3797
+ }>;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ value: string;
3800
+ attribution: {
3801
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3802
+ authority: "authoritative" | "confirmatory" | "advisory";
3803
+ note?: string | undefined;
3804
+ };
3805
+ }, {
3806
+ value: string;
3807
+ attribution: {
3808
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3809
+ authority: "authoritative" | "confirmatory" | "advisory";
3810
+ note?: string | undefined;
3811
+ };
3812
+ }>, "many">>;
3813
+ }, "strip", z.ZodTypeAny, {
3814
+ requestBodyFields: {
3815
+ name: string;
3816
+ attribution: {
3817
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3818
+ authority: "authoritative" | "confirmatory" | "advisory";
3819
+ note?: string | undefined;
3820
+ };
3821
+ type?: string | undefined;
3822
+ required?: boolean | undefined;
3823
+ description?: string | undefined;
3824
+ defaultValue?: unknown;
3825
+ enumValues?: string[] | undefined;
3826
+ }[];
3827
+ requestQueryParams: {
3828
+ name: string;
3829
+ attribution: {
3830
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3831
+ authority: "authoritative" | "confirmatory" | "advisory";
3832
+ note?: string | undefined;
3833
+ };
3834
+ type?: string | undefined;
3835
+ required?: boolean | undefined;
3836
+ description?: string | undefined;
3837
+ defaultValue?: unknown;
3838
+ enumValues?: string[] | undefined;
3839
+ }[];
3840
+ requestPathParams: {
3841
+ name: string;
3842
+ attribution: {
3843
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3844
+ authority: "authoritative" | "confirmatory" | "advisory";
3845
+ note?: string | undefined;
3846
+ };
3847
+ type?: string | undefined;
3848
+ required?: boolean | undefined;
3849
+ description?: string | undefined;
3850
+ defaultValue?: unknown;
3851
+ enumValues?: string[] | undefined;
3852
+ }[];
3853
+ notes: {
3854
+ value: string;
3855
+ attribution: {
3856
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3857
+ authority: "authoritative" | "confirmatory" | "advisory";
3858
+ note?: string | undefined;
3859
+ };
3860
+ }[];
3861
+ description?: {
3862
+ value: string;
3863
+ attribution: {
3864
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3865
+ authority: "authoritative" | "confirmatory" | "advisory";
3866
+ note?: string | undefined;
3867
+ };
3868
+ } | undefined;
3869
+ requestBodyType?: {
3870
+ value: string;
3871
+ attribution: {
3872
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3873
+ authority: "authoritative" | "confirmatory" | "advisory";
3874
+ note?: string | undefined;
3875
+ };
3876
+ } | undefined;
3877
+ requestBodyExample?: {
3878
+ value: string;
3879
+ attribution: {
3880
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3881
+ authority: "authoritative" | "confirmatory" | "advisory";
3882
+ note?: string | undefined;
3883
+ };
3884
+ } | undefined;
3885
+ }, {
3886
+ description?: {
3887
+ value: string;
3888
+ attribution: {
3889
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3890
+ authority: "authoritative" | "confirmatory" | "advisory";
3891
+ note?: string | undefined;
3892
+ };
3893
+ } | undefined;
3894
+ requestBodyType?: {
3895
+ value: string;
3896
+ attribution: {
3897
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3898
+ authority: "authoritative" | "confirmatory" | "advisory";
3899
+ note?: string | undefined;
3900
+ };
3901
+ } | undefined;
3902
+ requestBodyExample?: {
3903
+ value: string;
3904
+ attribution: {
3905
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3906
+ authority: "authoritative" | "confirmatory" | "advisory";
3907
+ note?: string | undefined;
3908
+ };
3909
+ } | undefined;
3910
+ requestBodyFields?: {
3911
+ name: string;
3912
+ attribution: {
3913
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3914
+ authority: "authoritative" | "confirmatory" | "advisory";
3915
+ note?: string | undefined;
3916
+ };
3917
+ type?: string | undefined;
3918
+ required?: boolean | undefined;
3919
+ description?: string | undefined;
3920
+ defaultValue?: unknown;
3921
+ enumValues?: string[] | undefined;
3922
+ }[] | undefined;
3923
+ requestQueryParams?: {
3924
+ name: string;
3925
+ attribution: {
3926
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3927
+ authority: "authoritative" | "confirmatory" | "advisory";
3928
+ note?: string | undefined;
3929
+ };
3930
+ type?: string | undefined;
3931
+ required?: boolean | undefined;
3932
+ description?: string | undefined;
3933
+ defaultValue?: unknown;
3934
+ enumValues?: string[] | undefined;
3935
+ }[] | undefined;
3936
+ requestPathParams?: {
3937
+ name: string;
3938
+ attribution: {
3939
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3940
+ authority: "authoritative" | "confirmatory" | "advisory";
3941
+ note?: string | undefined;
3942
+ };
3943
+ type?: string | undefined;
3944
+ required?: boolean | undefined;
3945
+ description?: string | undefined;
3946
+ defaultValue?: unknown;
3947
+ enumValues?: string[] | undefined;
3948
+ }[] | undefined;
3949
+ notes?: {
3950
+ value: string;
3951
+ attribution: {
3952
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3953
+ authority: "authoritative" | "confirmatory" | "advisory";
3954
+ note?: string | undefined;
3955
+ };
3956
+ }[] | undefined;
3957
+ }>;
3958
+ probe: z.ZodOptional<z.ZodObject<{
3959
+ responseStatus: z.ZodNumber;
3960
+ confirmedAt: z.ZodString;
3961
+ }, "strip", z.ZodTypeAny, {
3962
+ responseStatus: number;
3963
+ confirmedAt: string;
3964
+ }, {
3965
+ responseStatus: number;
3966
+ confirmedAt: string;
3967
+ }>>;
3968
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
3969
+ location: z.ZodEnum<["body", "query", "path", "headers"]>;
3970
+ field: z.ZodString;
3971
+ code: z.ZodString;
3972
+ message: z.ZodString;
3973
+ source: z.ZodEnum<["marketplace", "provider", "merchant_challenge", "runtime_probe"]>;
3974
+ blocking: z.ZodBoolean;
3975
+ severity: z.ZodEnum<["error", "warning"]>;
3976
+ suggestedFix: z.ZodOptional<z.ZodString>;
3977
+ }, "strip", z.ZodTypeAny, {
3978
+ code: string;
3979
+ message: string;
3980
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3981
+ location: "path" | "headers" | "body" | "query";
3982
+ field: string;
3983
+ blocking: boolean;
3984
+ severity: "error" | "warning";
3985
+ suggestedFix?: string | undefined;
3986
+ }, {
3987
+ code: string;
3988
+ message: string;
3989
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
3990
+ location: "path" | "headers" | "body" | "query";
3991
+ field: string;
3992
+ blocking: boolean;
3993
+ severity: "error" | "warning";
3994
+ suggestedFix?: string | undefined;
3995
+ }>, "many">>;
3996
+ nextAction: z.ZodEnum<["execute", "revise_request", "treat_as_passthrough", "manual_review"]>;
3997
+ }, "strip", z.ZodTypeAny, {
3998
+ protocol: "x402" | "l402";
3999
+ kind: "ready";
4000
+ request: {
4001
+ url: string;
4002
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
4003
+ headers?: Record<string, string> | undefined;
4004
+ body?: string | undefined;
4005
+ bodyHash?: string | undefined;
4006
+ };
4007
+ hints: {
4008
+ requestBodyFields: {
4009
+ name: string;
4010
+ attribution: {
4011
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4012
+ authority: "authoritative" | "confirmatory" | "advisory";
4013
+ note?: string | undefined;
4014
+ };
4015
+ type?: string | undefined;
4016
+ required?: boolean | undefined;
4017
+ description?: string | undefined;
4018
+ defaultValue?: unknown;
4019
+ enumValues?: string[] | undefined;
4020
+ }[];
4021
+ requestQueryParams: {
4022
+ name: string;
4023
+ attribution: {
4024
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4025
+ authority: "authoritative" | "confirmatory" | "advisory";
4026
+ note?: string | undefined;
4027
+ };
4028
+ type?: string | undefined;
4029
+ required?: boolean | undefined;
4030
+ description?: string | undefined;
4031
+ defaultValue?: unknown;
4032
+ enumValues?: string[] | undefined;
4033
+ }[];
4034
+ requestPathParams: {
4035
+ name: string;
4036
+ attribution: {
4037
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4038
+ authority: "authoritative" | "confirmatory" | "advisory";
4039
+ note?: string | undefined;
4040
+ };
4041
+ type?: string | undefined;
4042
+ required?: boolean | undefined;
4043
+ description?: string | undefined;
4044
+ defaultValue?: unknown;
4045
+ enumValues?: string[] | undefined;
4046
+ }[];
4047
+ notes: {
4048
+ value: string;
4049
+ attribution: {
4050
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4051
+ authority: "authoritative" | "confirmatory" | "advisory";
4052
+ note?: string | undefined;
4053
+ };
4054
+ }[];
4055
+ description?: {
4056
+ value: string;
4057
+ attribution: {
4058
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4059
+ authority: "authoritative" | "confirmatory" | "advisory";
4060
+ note?: string | undefined;
4061
+ };
4062
+ } | undefined;
4063
+ requestBodyType?: {
4064
+ value: string;
4065
+ attribution: {
4066
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4067
+ authority: "authoritative" | "confirmatory" | "advisory";
4068
+ note?: string | undefined;
4069
+ };
4070
+ } | undefined;
4071
+ requestBodyExample?: {
4072
+ value: string;
4073
+ attribution: {
4074
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4075
+ authority: "authoritative" | "confirmatory" | "advisory";
4076
+ note?: string | undefined;
4077
+ };
4078
+ } | undefined;
4079
+ };
4080
+ validationIssues: {
4081
+ code: string;
4082
+ message: string;
4083
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4084
+ location: "path" | "headers" | "body" | "query";
4085
+ field: string;
4086
+ blocking: boolean;
4087
+ severity: "error" | "warning";
4088
+ suggestedFix?: string | undefined;
4089
+ }[];
4090
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
4091
+ challenge: {
4092
+ headers: Record<string, string>;
4093
+ protocol: "x402" | "l402";
4094
+ body?: unknown;
4095
+ };
4096
+ probe?: {
4097
+ responseStatus: number;
4098
+ confirmedAt: string;
4099
+ } | undefined;
4100
+ paymentRequirement?: {
4101
+ protocol: "x402" | "l402";
4102
+ provenance: {
4103
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4104
+ authority: "authoritative" | "confirmatory" | "advisory";
4105
+ note?: string | undefined;
4106
+ };
4107
+ asset?: string | undefined;
4108
+ amount?: string | undefined;
4109
+ amountMinor?: string | undefined;
4110
+ precision?: number | undefined;
4111
+ description?: string | undefined;
4112
+ network?: string | undefined;
4113
+ payee?: string | undefined;
4114
+ amountType?: "exact" | "max" | undefined;
4115
+ confirmation?: {
4116
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4117
+ authority: "authoritative" | "confirmatory" | "advisory";
4118
+ note?: string | undefined;
4119
+ } | undefined;
4120
+ } | undefined;
4121
+ }, {
4122
+ protocol: "x402" | "l402";
4123
+ kind: "ready";
4124
+ request: {
4125
+ url: string;
4126
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
4127
+ headers?: Record<string, string> | undefined;
4128
+ body?: string | undefined;
4129
+ bodyHash?: string | undefined;
4130
+ };
4131
+ hints: {
4132
+ description?: {
4133
+ value: string;
4134
+ attribution: {
4135
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4136
+ authority: "authoritative" | "confirmatory" | "advisory";
4137
+ note?: string | undefined;
4138
+ };
4139
+ } | undefined;
4140
+ requestBodyType?: {
4141
+ value: string;
4142
+ attribution: {
4143
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4144
+ authority: "authoritative" | "confirmatory" | "advisory";
4145
+ note?: string | undefined;
4146
+ };
4147
+ } | undefined;
4148
+ requestBodyExample?: {
4149
+ value: string;
4150
+ attribution: {
4151
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4152
+ authority: "authoritative" | "confirmatory" | "advisory";
4153
+ note?: string | undefined;
4154
+ };
4155
+ } | undefined;
4156
+ requestBodyFields?: {
4157
+ name: string;
4158
+ attribution: {
4159
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4160
+ authority: "authoritative" | "confirmatory" | "advisory";
4161
+ note?: string | undefined;
4162
+ };
4163
+ type?: string | undefined;
4164
+ required?: boolean | undefined;
4165
+ description?: string | undefined;
4166
+ defaultValue?: unknown;
4167
+ enumValues?: string[] | undefined;
4168
+ }[] | undefined;
4169
+ requestQueryParams?: {
4170
+ name: string;
4171
+ attribution: {
4172
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4173
+ authority: "authoritative" | "confirmatory" | "advisory";
4174
+ note?: string | undefined;
4175
+ };
4176
+ type?: string | undefined;
4177
+ required?: boolean | undefined;
4178
+ description?: string | undefined;
4179
+ defaultValue?: unknown;
4180
+ enumValues?: string[] | undefined;
4181
+ }[] | undefined;
4182
+ requestPathParams?: {
4183
+ name: string;
4184
+ attribution: {
4185
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4186
+ authority: "authoritative" | "confirmatory" | "advisory";
4187
+ note?: string | undefined;
4188
+ };
4189
+ type?: string | undefined;
4190
+ required?: boolean | undefined;
4191
+ description?: string | undefined;
4192
+ defaultValue?: unknown;
4193
+ enumValues?: string[] | undefined;
4194
+ }[] | undefined;
4195
+ notes?: {
4196
+ value: string;
4197
+ attribution: {
4198
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4199
+ authority: "authoritative" | "confirmatory" | "advisory";
4200
+ note?: string | undefined;
4201
+ };
4202
+ }[] | undefined;
4203
+ };
4204
+ nextAction: "execute" | "revise_request" | "treat_as_passthrough" | "manual_review";
4205
+ challenge: {
4206
+ protocol: "x402" | "l402";
4207
+ headers?: Record<string, string> | undefined;
4208
+ body?: unknown;
4209
+ };
4210
+ probe?: {
4211
+ responseStatus: number;
4212
+ confirmedAt: string;
4213
+ } | undefined;
4214
+ validationIssues?: {
4215
+ code: string;
4216
+ message: string;
4217
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4218
+ location: "path" | "headers" | "body" | "query";
4219
+ field: string;
4220
+ blocking: boolean;
4221
+ severity: "error" | "warning";
4222
+ suggestedFix?: string | undefined;
4223
+ }[] | undefined;
4224
+ paymentRequirement?: {
4225
+ protocol: "x402" | "l402";
4226
+ provenance: {
4227
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4228
+ authority: "authoritative" | "confirmatory" | "advisory";
4229
+ note?: string | undefined;
4230
+ };
4231
+ asset?: string | undefined;
4232
+ amount?: string | undefined;
4233
+ amountMinor?: string | undefined;
4234
+ precision?: number | undefined;
4235
+ description?: string | undefined;
4236
+ network?: string | undefined;
4237
+ payee?: string | undefined;
4238
+ amountType?: "exact" | "max" | undefined;
4239
+ confirmation?: {
4240
+ source: "marketplace" | "provider" | "merchant_challenge" | "runtime_probe";
4241
+ authority: "authoritative" | "confirmatory" | "advisory";
4242
+ note?: string | undefined;
4243
+ } | undefined;
4244
+ } | undefined;
4245
+ }>]>;
4246
+ export type SdkPreparedPaidRequest = z.infer<typeof sdkPreparedPaidRequestSchema>;
4247
+ /** Control-plane request shape used for governed paid execution decisions. */
117
4248
  export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
118
4249
  context: z.ZodObject<{
119
4250
  organization: z.ZodString;
@@ -165,12 +4296,6 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
165
4296
  }>;
166
4297
  idempotencyKey: z.ZodOptional<z.ZodString>;
167
4298
  }, "strip", z.ZodTypeAny, {
168
- context: {
169
- organization: string;
170
- agent: string;
171
- description?: string | undefined;
172
- metadata?: Record<string, unknown> | undefined;
173
- };
174
4299
  request: {
175
4300
  url: string;
176
4301
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
@@ -183,14 +4308,14 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
183
4308
  protocol: "x402" | "l402";
184
4309
  body?: unknown;
185
4310
  };
186
- idempotencyKey?: string | undefined;
187
- }, {
188
4311
  context: {
189
4312
  organization: string;
190
4313
  agent: string;
191
4314
  description?: string | undefined;
192
4315
  metadata?: Record<string, unknown> | undefined;
193
4316
  };
4317
+ idempotencyKey?: string | undefined;
4318
+ }, {
194
4319
  request: {
195
4320
  url: string;
196
4321
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
@@ -203,9 +4328,16 @@ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
203
4328
  headers?: Record<string, string> | undefined;
204
4329
  body?: unknown;
205
4330
  };
4331
+ context: {
4332
+ organization: string;
4333
+ agent: string;
4334
+ description?: string | undefined;
4335
+ metadata?: Record<string, unknown> | undefined;
4336
+ };
206
4337
  idempotencyKey?: string | undefined;
207
4338
  }>;
208
4339
  export type SdkPaymentDecisionRequest = z.infer<typeof sdkPaymentDecisionRequestSchema>;
4340
+ /** Durable receipt shape returned after the control plane records an outcome. */
209
4341
  export declare const sdkReceiptSchema: z.ZodObject<{
210
4342
  receiptId: z.ZodString;
211
4343
  paidRequestId: z.ZodString;
@@ -285,12 +4417,12 @@ export declare const sdkReceiptSchema: z.ZodObject<{
285
4417
  requestUrl: string;
286
4418
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
287
4419
  createdAt: string;
4420
+ confirmedAt?: string | undefined;
288
4421
  merchantId?: string | undefined;
289
4422
  confirmationSource?: "chain_observer" | undefined;
290
4423
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
291
4424
  attributionBasis?: Record<string, unknown> | undefined;
292
4425
  attributionRuleVersion?: string | undefined;
293
- confirmedAt?: string | undefined;
294
4426
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
295
4427
  canonicalSettlementKey?: string | undefined;
296
4428
  paymentReference?: string | undefined;
@@ -320,12 +4452,12 @@ export declare const sdkReceiptSchema: z.ZodObject<{
320
4452
  requestUrl: string;
321
4453
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
322
4454
  createdAt: string;
4455
+ confirmedAt?: string | undefined;
323
4456
  merchantId?: string | undefined;
324
4457
  confirmationSource?: "chain_observer" | undefined;
325
4458
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
326
4459
  attributionBasis?: Record<string, unknown> | undefined;
327
4460
  attributionRuleVersion?: string | undefined;
328
- confirmedAt?: string | undefined;
329
4461
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
330
4462
  canonicalSettlementKey?: string | undefined;
331
4463
  paymentReference?: string | undefined;
@@ -337,6 +4469,7 @@ export declare const sdkReceiptSchema: z.ZodObject<{
337
4469
  completedAt?: string | undefined;
338
4470
  }>;
339
4471
  export type SdkReceipt = z.infer<typeof sdkReceiptSchema>;
4472
+ /** Normalized merchant HTTP response embedded in SDK results and decisions. */
340
4473
  export declare const sdkMerchantResponseSchema: z.ZodObject<{
341
4474
  status: z.ZodNumber;
342
4475
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -449,12 +4582,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
449
4582
  requestUrl: string;
450
4583
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
451
4584
  createdAt: string;
4585
+ confirmedAt?: string | undefined;
452
4586
  merchantId?: string | undefined;
453
4587
  confirmationSource?: "chain_observer" | undefined;
454
4588
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
455
4589
  attributionBasis?: Record<string, unknown> | undefined;
456
4590
  attributionRuleVersion?: string | undefined;
457
- confirmedAt?: string | undefined;
458
4591
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
459
4592
  canonicalSettlementKey?: string | undefined;
460
4593
  paymentReference?: string | undefined;
@@ -484,12 +4617,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
484
4617
  requestUrl: string;
485
4618
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
486
4619
  createdAt: string;
4620
+ confirmedAt?: string | undefined;
487
4621
  merchantId?: string | undefined;
488
4622
  confirmationSource?: "chain_observer" | undefined;
489
4623
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
490
4624
  attributionBasis?: Record<string, unknown> | undefined;
491
4625
  attributionRuleVersion?: string | undefined;
492
- confirmedAt?: string | undefined;
493
4626
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
494
4627
  canonicalSettlementKey?: string | undefined;
495
4628
  paymentReference?: string | undefined;
@@ -531,12 +4664,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
531
4664
  requestUrl: string;
532
4665
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
533
4666
  createdAt: string;
4667
+ confirmedAt?: string | undefined;
534
4668
  merchantId?: string | undefined;
535
4669
  confirmationSource?: "chain_observer" | undefined;
536
4670
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
537
4671
  attributionBasis?: Record<string, unknown> | undefined;
538
4672
  attributionRuleVersion?: string | undefined;
539
- confirmedAt?: string | undefined;
540
4673
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
541
4674
  canonicalSettlementKey?: string | undefined;
542
4675
  paymentReference?: string | undefined;
@@ -578,12 +4711,12 @@ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
578
4711
  requestUrl: string;
579
4712
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
580
4713
  createdAt: string;
4714
+ confirmedAt?: string | undefined;
581
4715
  merchantId?: string | undefined;
582
4716
  confirmationSource?: "chain_observer" | undefined;
583
4717
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
584
4718
  attributionBasis?: Record<string, unknown> | undefined;
585
4719
  attributionRuleVersion?: string | undefined;
586
- confirmedAt?: string | undefined;
587
4720
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
588
4721
  canonicalSettlementKey?: string | undefined;
589
4722
  paymentReference?: string | undefined;
@@ -695,12 +4828,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
695
4828
  requestUrl: string;
696
4829
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
697
4830
  createdAt: string;
4831
+ confirmedAt?: string | undefined;
698
4832
  merchantId?: string | undefined;
699
4833
  confirmationSource?: "chain_observer" | undefined;
700
4834
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
701
4835
  attributionBasis?: Record<string, unknown> | undefined;
702
4836
  attributionRuleVersion?: string | undefined;
703
- confirmedAt?: string | undefined;
704
4837
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
705
4838
  canonicalSettlementKey?: string | undefined;
706
4839
  paymentReference?: string | undefined;
@@ -730,12 +4863,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
730
4863
  requestUrl: string;
731
4864
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
732
4865
  createdAt: string;
4866
+ confirmedAt?: string | undefined;
733
4867
  merchantId?: string | undefined;
734
4868
  confirmationSource?: "chain_observer" | undefined;
735
4869
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
736
4870
  attributionBasis?: Record<string, unknown> | undefined;
737
4871
  attributionRuleVersion?: string | undefined;
738
- confirmedAt?: string | undefined;
739
4872
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
740
4873
  canonicalSettlementKey?: string | undefined;
741
4874
  paymentReference?: string | undefined;
@@ -780,12 +4913,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
780
4913
  requestUrl: string;
781
4914
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
782
4915
  createdAt: string;
4916
+ confirmedAt?: string | undefined;
783
4917
  merchantId?: string | undefined;
784
4918
  confirmationSource?: "chain_observer" | undefined;
785
4919
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
786
4920
  attributionBasis?: Record<string, unknown> | undefined;
787
4921
  attributionRuleVersion?: string | undefined;
788
- confirmedAt?: string | undefined;
789
4922
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
790
4923
  canonicalSettlementKey?: string | undefined;
791
4924
  paymentReference?: string | undefined;
@@ -830,12 +4963,12 @@ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.Zo
830
4963
  requestUrl: string;
831
4964
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
832
4965
  createdAt: string;
4966
+ confirmedAt?: string | undefined;
833
4967
  merchantId?: string | undefined;
834
4968
  confirmationSource?: "chain_observer" | undefined;
835
4969
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
836
4970
  attributionBasis?: Record<string, unknown> | undefined;
837
4971
  attributionRuleVersion?: string | undefined;
838
- confirmedAt?: string | undefined;
839
4972
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
840
4973
  canonicalSettlementKey?: string | undefined;
841
4974
  paymentReference?: string | undefined;
@@ -975,6 +5108,7 @@ export declare const sdkPaymentDecisionDenyResponseSchema: z.ZodObject<{
975
5108
  paidRequestId?: string | undefined;
976
5109
  policyReviewEventId?: string | undefined;
977
5110
  }>;
5111
+ /** Full union of decision outcomes the control plane can return to the SDK. */
978
5112
  export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"outcome", [z.ZodObject<{
979
5113
  outcome: z.ZodLiteral<"allow">;
980
5114
  paidRequestId: z.ZodString;
@@ -1073,12 +5207,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1073
5207
  requestUrl: string;
1074
5208
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1075
5209
  createdAt: string;
5210
+ confirmedAt?: string | undefined;
1076
5211
  merchantId?: string | undefined;
1077
5212
  confirmationSource?: "chain_observer" | undefined;
1078
5213
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1079
5214
  attributionBasis?: Record<string, unknown> | undefined;
1080
5215
  attributionRuleVersion?: string | undefined;
1081
- confirmedAt?: string | undefined;
1082
5216
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1083
5217
  canonicalSettlementKey?: string | undefined;
1084
5218
  paymentReference?: string | undefined;
@@ -1108,12 +5242,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1108
5242
  requestUrl: string;
1109
5243
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1110
5244
  createdAt: string;
5245
+ confirmedAt?: string | undefined;
1111
5246
  merchantId?: string | undefined;
1112
5247
  confirmationSource?: "chain_observer" | undefined;
1113
5248
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1114
5249
  attributionBasis?: Record<string, unknown> | undefined;
1115
5250
  attributionRuleVersion?: string | undefined;
1116
- confirmedAt?: string | undefined;
1117
5251
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1118
5252
  canonicalSettlementKey?: string | undefined;
1119
5253
  paymentReference?: string | undefined;
@@ -1155,12 +5289,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1155
5289
  requestUrl: string;
1156
5290
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1157
5291
  createdAt: string;
5292
+ confirmedAt?: string | undefined;
1158
5293
  merchantId?: string | undefined;
1159
5294
  confirmationSource?: "chain_observer" | undefined;
1160
5295
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1161
5296
  attributionBasis?: Record<string, unknown> | undefined;
1162
5297
  attributionRuleVersion?: string | undefined;
1163
- confirmedAt?: string | undefined;
1164
5298
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1165
5299
  canonicalSettlementKey?: string | undefined;
1166
5300
  paymentReference?: string | undefined;
@@ -1202,12 +5336,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1202
5336
  requestUrl: string;
1203
5337
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1204
5338
  createdAt: string;
5339
+ confirmedAt?: string | undefined;
1205
5340
  merchantId?: string | undefined;
1206
5341
  confirmationSource?: "chain_observer" | undefined;
1207
5342
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1208
5343
  attributionBasis?: Record<string, unknown> | undefined;
1209
5344
  attributionRuleVersion?: string | undefined;
1210
- confirmedAt?: string | undefined;
1211
5345
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1212
5346
  canonicalSettlementKey?: string | undefined;
1213
5347
  paymentReference?: string | undefined;
@@ -1318,12 +5452,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1318
5452
  requestUrl: string;
1319
5453
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1320
5454
  createdAt: string;
5455
+ confirmedAt?: string | undefined;
1321
5456
  merchantId?: string | undefined;
1322
5457
  confirmationSource?: "chain_observer" | undefined;
1323
5458
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1324
5459
  attributionBasis?: Record<string, unknown> | undefined;
1325
5460
  attributionRuleVersion?: string | undefined;
1326
- confirmedAt?: string | undefined;
1327
5461
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1328
5462
  canonicalSettlementKey?: string | undefined;
1329
5463
  paymentReference?: string | undefined;
@@ -1353,12 +5487,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1353
5487
  requestUrl: string;
1354
5488
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1355
5489
  createdAt: string;
5490
+ confirmedAt?: string | undefined;
1356
5491
  merchantId?: string | undefined;
1357
5492
  confirmationSource?: "chain_observer" | undefined;
1358
5493
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1359
5494
  attributionBasis?: Record<string, unknown> | undefined;
1360
5495
  attributionRuleVersion?: string | undefined;
1361
- confirmedAt?: string | undefined;
1362
5496
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1363
5497
  canonicalSettlementKey?: string | undefined;
1364
5498
  paymentReference?: string | undefined;
@@ -1403,12 +5537,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1403
5537
  requestUrl: string;
1404
5538
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1405
5539
  createdAt: string;
5540
+ confirmedAt?: string | undefined;
1406
5541
  merchantId?: string | undefined;
1407
5542
  confirmationSource?: "chain_observer" | undefined;
1408
5543
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1409
5544
  attributionBasis?: Record<string, unknown> | undefined;
1410
5545
  attributionRuleVersion?: string | undefined;
1411
- confirmedAt?: string | undefined;
1412
5546
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1413
5547
  canonicalSettlementKey?: string | undefined;
1414
5548
  paymentReference?: string | undefined;
@@ -1453,12 +5587,12 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1453
5587
  requestUrl: string;
1454
5588
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1455
5589
  createdAt: string;
5590
+ confirmedAt?: string | undefined;
1456
5591
  merchantId?: string | undefined;
1457
5592
  confirmationSource?: "chain_observer" | undefined;
1458
5593
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1459
5594
  attributionBasis?: Record<string, unknown> | undefined;
1460
5595
  attributionRuleVersion?: string | undefined;
1461
- confirmedAt?: string | undefined;
1462
5596
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1463
5597
  canonicalSettlementKey?: string | undefined;
1464
5598
  paymentReference?: string | undefined;
@@ -1594,6 +5728,7 @@ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"
1594
5728
  policyReviewEventId?: string | undefined;
1595
5729
  }>]>;
1596
5730
  export type SdkPaymentDecisionResponse = z.infer<typeof sdkPaymentDecisionResponseSchema>;
5731
+ /** Receipt lookup response returned by AgentPayClient.lookupReceipt(). */
1597
5732
  export declare const sdkReceiptResponseSchema: z.ZodObject<{
1598
5733
  receipt: z.ZodObject<{
1599
5734
  receiptId: z.ZodString;
@@ -1674,12 +5809,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1674
5809
  requestUrl: string;
1675
5810
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1676
5811
  createdAt: string;
5812
+ confirmedAt?: string | undefined;
1677
5813
  merchantId?: string | undefined;
1678
5814
  confirmationSource?: "chain_observer" | undefined;
1679
5815
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1680
5816
  attributionBasis?: Record<string, unknown> | undefined;
1681
5817
  attributionRuleVersion?: string | undefined;
1682
- confirmedAt?: string | undefined;
1683
5818
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1684
5819
  canonicalSettlementKey?: string | undefined;
1685
5820
  paymentReference?: string | undefined;
@@ -1709,12 +5844,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1709
5844
  requestUrl: string;
1710
5845
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1711
5846
  createdAt: string;
5847
+ confirmedAt?: string | undefined;
1712
5848
  merchantId?: string | undefined;
1713
5849
  confirmationSource?: "chain_observer" | undefined;
1714
5850
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1715
5851
  attributionBasis?: Record<string, unknown> | undefined;
1716
5852
  attributionRuleVersion?: string | undefined;
1717
- confirmedAt?: string | undefined;
1718
5853
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1719
5854
  canonicalSettlementKey?: string | undefined;
1720
5855
  paymentReference?: string | undefined;
@@ -1746,12 +5881,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1746
5881
  requestUrl: string;
1747
5882
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1748
5883
  createdAt: string;
5884
+ confirmedAt?: string | undefined;
1749
5885
  merchantId?: string | undefined;
1750
5886
  confirmationSource?: "chain_observer" | undefined;
1751
5887
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1752
5888
  attributionBasis?: Record<string, unknown> | undefined;
1753
5889
  attributionRuleVersion?: string | undefined;
1754
- confirmedAt?: string | undefined;
1755
5890
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1756
5891
  canonicalSettlementKey?: string | undefined;
1757
5892
  paymentReference?: string | undefined;
@@ -1783,12 +5918,12 @@ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1783
5918
  requestUrl: string;
1784
5919
  requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1785
5920
  createdAt: string;
5921
+ confirmedAt?: string | undefined;
1786
5922
  merchantId?: string | undefined;
1787
5923
  confirmationSource?: "chain_observer" | undefined;
1788
5924
  attributionStrength?: "strong_request_scoped" | "constrained_unique" | undefined;
1789
5925
  attributionBasis?: Record<string, unknown> | undefined;
1790
5926
  attributionRuleVersion?: string | undefined;
1791
- confirmedAt?: string | undefined;
1792
5927
  finalityLevelUsed?: "evm_block_confirmations_12" | undefined;
1793
5928
  canonicalSettlementKey?: string | undefined;
1794
5929
  paymentReference?: string | undefined;