@omnixhq/ucp-client 2.3.0 → 2.5.0

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.
@@ -0,0 +1,4775 @@
1
+ import * as zod0 from "zod";
2
+ import { ZodType, z } from "zod";
3
+ import { AccountInfoSchema, AdjustmentSchema, AdjustmentStatusEnumSchema, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential, CardCredentialCardNumberTypeEnumSchema, CardCredentialSchema, CardPaymentInstrumentSchema, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutResponseSchema, CheckoutResponseStatus, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutStatusEnumSchema, CheckoutUpdateRequestSchema, ContextSchema, DiscountAllocationSchema, DiscountAppliedDiscountMethodEnumSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ExpectationMethodTypeEnumSchema, ExpectationSchema, FulfillmentAvailableMethodSchema, FulfillmentAvailableMethodTypeEnumSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodTypeEnumSchema, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, ItemResponseSchema, ItemSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdateRequestSchema, LinkSchema, MerchantFulfillmentConfigSchema, MessageErrorContentTypeEnumSchema, MessageErrorSchema, MessageErrorSeverityEnumSchema, MessageInfoContentTypeEnumSchema, MessageInfoSchema, MessageSchema, MessageWarningContentTypeEnumSchema, MessageWarningSchema, OrderConfirmationSchema, OrderLineItemSchema, OrderLineItemStatusEnumSchema, OrderSchema, OrderUpdateSchema, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformFulfillmentConfigSchema, PostalAddressSchema, ProfileSchemaBaseSchema, ProfileSchemaBusinessProfileSchema, ProfileSchemaPlatformProfileSchema, ProfileSchemaSigningKeySchema, ProfileSchemaSigningKeyUseEnumSchema, RetailLocationSchema, ServiceBaseSchema, ServiceBaseTransportEnumSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, TokenCredential, TokenCredentialSchema, TotalResponseSchema, TotalSchema, TotalTypeEnumSchema, UcpBaseSchema, UcpBusinessSchema, UcpDiscoveryBusinessProfileSchema, UcpDiscoveryPlatformProfileSchema, UcpEntitySchema, UcpPlatformSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpReverseDomainNameSchema, UcpSigningKeySchema, UcpVersionSchema } from "@omnixhq/ucp-js-sdk";
4
+
5
+ //#region src/http.d.ts
6
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
7
+ type LogFn = (message: string, detail?: string) => void;
8
+ interface HttpClientConfig {
9
+ readonly gatewayUrl: string;
10
+ readonly agentProfileUrl: string;
11
+ readonly ucpVersion: string;
12
+ readonly requestSignature?: string;
13
+ readonly accessToken?: string;
14
+ readonly onValidationWarning?: LogFn;
15
+ }
16
+ declare class HttpClient {
17
+ private readonly gatewayUrl;
18
+ private readonly agentProfileUrl;
19
+ private readonly ucpVersion;
20
+ private readonly requestSignature;
21
+ private readonly accessToken;
22
+ private readonly onValidationWarning;
23
+ constructor(config: HttpClientConfig);
24
+ withAccessToken(token: string): HttpClient;
25
+ request(method: HttpMethod, path: string, body?: unknown): Promise<unknown>;
26
+ validate<Output, Def extends zod0.ZodTypeDef, Input>(data: unknown, schema: ZodType<Output, Def, Input>): Output;
27
+ private throwFromResponse;
28
+ } //#endregion
29
+ //#region src/schemas.d.ts
30
+ declare const CheckoutSessionSchema: z.ZodObject<{
31
+ ucp: z.ZodIntersection<z.ZodObject<{
32
+ version: z.ZodString;
33
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
34
+ version: z.ZodString;
35
+ spec: z.ZodOptional<z.ZodString>;
36
+ schema: z.ZodOptional<z.ZodString>;
37
+ id: z.ZodOptional<z.ZodString>;
38
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ version: string;
41
+ spec?: string | undefined;
42
+ schema?: string | undefined;
43
+ id?: string | undefined;
44
+ config?: Record<string, unknown> | undefined;
45
+ }, {
46
+ version: string;
47
+ spec?: string | undefined;
48
+ schema?: string | undefined;
49
+ id?: string | undefined;
50
+ config?: Record<string, unknown> | undefined;
51
+ }>, z.ZodObject<{
52
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
53
+ endpoint: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ transport: "rest" | "mcp" | "a2a" | "embedded";
56
+ endpoint?: string | undefined;
57
+ }, {
58
+ transport: "rest" | "mcp" | "a2a" | "embedded";
59
+ endpoint?: string | undefined;
60
+ }>>, "many">>>;
61
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
62
+ version: z.ZodString;
63
+ spec: z.ZodOptional<z.ZodString>;
64
+ schema: z.ZodOptional<z.ZodString>;
65
+ id: z.ZodOptional<z.ZodString>;
66
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ version: string;
69
+ spec?: string | undefined;
70
+ schema?: string | undefined;
71
+ id?: string | undefined;
72
+ config?: Record<string, unknown> | undefined;
73
+ }, {
74
+ version: string;
75
+ spec?: string | undefined;
76
+ schema?: string | undefined;
77
+ id?: string | undefined;
78
+ config?: Record<string, unknown> | undefined;
79
+ }>, z.ZodObject<{
80
+ extends: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ extends?: string | undefined;
83
+ }, {
84
+ extends?: string | undefined;
85
+ }>>, "many">>>;
86
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
87
+ version: z.ZodString;
88
+ spec: z.ZodOptional<z.ZodString>;
89
+ schema: z.ZodOptional<z.ZodString>;
90
+ id: z.ZodOptional<z.ZodString>;
91
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ version: string;
94
+ spec?: string | undefined;
95
+ schema?: string | undefined;
96
+ id?: string | undefined;
97
+ config?: Record<string, unknown> | undefined;
98
+ }, {
99
+ version: string;
100
+ spec?: string | undefined;
101
+ schema?: string | undefined;
102
+ id?: string | undefined;
103
+ config?: Record<string, unknown> | undefined;
104
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ version: string;
107
+ services?: Record<string, ({
108
+ version: string;
109
+ spec?: string | undefined;
110
+ schema?: string | undefined;
111
+ id?: string | undefined;
112
+ config?: Record<string, unknown> | undefined;
113
+ } & {
114
+ transport: "rest" | "mcp" | "a2a" | "embedded";
115
+ endpoint?: string | undefined;
116
+ })[]> | undefined;
117
+ capabilities?: Record<string, ({
118
+ version: string;
119
+ spec?: string | undefined;
120
+ schema?: string | undefined;
121
+ id?: string | undefined;
122
+ config?: Record<string, unknown> | undefined;
123
+ } & {
124
+ extends?: string | undefined;
125
+ })[]> | undefined;
126
+ payment_handlers?: Record<string, ({
127
+ version: string;
128
+ spec?: string | undefined;
129
+ schema?: string | undefined;
130
+ id?: string | undefined;
131
+ config?: Record<string, unknown> | undefined;
132
+ } & Record<string, unknown>)[]> | undefined;
133
+ }, {
134
+ version: string;
135
+ services?: Record<string, ({
136
+ version: string;
137
+ spec?: string | undefined;
138
+ schema?: string | undefined;
139
+ id?: string | undefined;
140
+ config?: Record<string, unknown> | undefined;
141
+ } & {
142
+ transport: "rest" | "mcp" | "a2a" | "embedded";
143
+ endpoint?: string | undefined;
144
+ })[]> | undefined;
145
+ capabilities?: Record<string, ({
146
+ version: string;
147
+ spec?: string | undefined;
148
+ schema?: string | undefined;
149
+ id?: string | undefined;
150
+ config?: Record<string, unknown> | undefined;
151
+ } & {
152
+ extends?: string | undefined;
153
+ })[]> | undefined;
154
+ payment_handlers?: Record<string, ({
155
+ version: string;
156
+ spec?: string | undefined;
157
+ schema?: string | undefined;
158
+ id?: string | undefined;
159
+ config?: Record<string, unknown> | undefined;
160
+ } & Record<string, unknown>)[]> | undefined;
161
+ }>, z.ZodObject<{
162
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
163
+ version: z.ZodString;
164
+ spec: z.ZodOptional<z.ZodString>;
165
+ schema: z.ZodOptional<z.ZodString>;
166
+ id: z.ZodOptional<z.ZodString>;
167
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ version: string;
170
+ spec?: string | undefined;
171
+ schema?: string | undefined;
172
+ id?: string | undefined;
173
+ config?: Record<string, unknown> | undefined;
174
+ }, {
175
+ version: string;
176
+ spec?: string | undefined;
177
+ schema?: string | undefined;
178
+ id?: string | undefined;
179
+ config?: Record<string, unknown> | undefined;
180
+ }>, z.ZodObject<{
181
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
182
+ endpoint: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ transport: "rest" | "mcp" | "a2a" | "embedded";
185
+ endpoint?: string | undefined;
186
+ }, {
187
+ transport: "rest" | "mcp" | "a2a" | "embedded";
188
+ endpoint?: string | undefined;
189
+ }>>, z.ZodUnion<[z.ZodObject<{
190
+ transport: z.ZodOptional<z.ZodLiteral<"rest">>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ transport?: "rest" | undefined;
193
+ }, {
194
+ transport?: "rest" | undefined;
195
+ }>, z.ZodObject<{
196
+ transport: z.ZodOptional<z.ZodLiteral<"mcp">>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ transport?: "mcp" | undefined;
199
+ }, {
200
+ transport?: "mcp" | undefined;
201
+ }>, z.ZodObject<{
202
+ transport: z.ZodOptional<z.ZodLiteral<"a2a">>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ transport?: "a2a" | undefined;
205
+ }, {
206
+ transport?: "a2a" | undefined;
207
+ }>, z.ZodObject<{
208
+ transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
209
+ config: z.ZodOptional<z.ZodObject<{
210
+ delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ delegate?: string[] | undefined;
213
+ }, {
214
+ delegate?: string[] | undefined;
215
+ }>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ config?: {
218
+ delegate?: string[] | undefined;
219
+ } | undefined;
220
+ transport?: "embedded" | undefined;
221
+ }, {
222
+ config?: {
223
+ delegate?: string[] | undefined;
224
+ } | undefined;
225
+ transport?: "embedded" | undefined;
226
+ }>]>>, "many">>>;
227
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
228
+ version: z.ZodString;
229
+ spec: z.ZodOptional<z.ZodString>;
230
+ schema: z.ZodOptional<z.ZodString>;
231
+ id: z.ZodOptional<z.ZodString>;
232
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ version: string;
235
+ spec?: string | undefined;
236
+ schema?: string | undefined;
237
+ id?: string | undefined;
238
+ config?: Record<string, unknown> | undefined;
239
+ }, {
240
+ version: string;
241
+ spec?: string | undefined;
242
+ schema?: string | undefined;
243
+ id?: string | undefined;
244
+ config?: Record<string, unknown> | undefined;
245
+ }>, z.ZodObject<{
246
+ extends: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ extends?: string | undefined;
249
+ }, {
250
+ extends?: string | undefined;
251
+ }>>, "many">>>;
252
+ payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
253
+ version: z.ZodString;
254
+ spec: z.ZodOptional<z.ZodString>;
255
+ schema: z.ZodOptional<z.ZodString>;
256
+ id: z.ZodOptional<z.ZodString>;
257
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ version: string;
260
+ spec?: string | undefined;
261
+ schema?: string | undefined;
262
+ id?: string | undefined;
263
+ config?: Record<string, unknown> | undefined;
264
+ }, {
265
+ version: string;
266
+ spec?: string | undefined;
267
+ schema?: string | undefined;
268
+ id?: string | undefined;
269
+ config?: Record<string, unknown> | undefined;
270
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ payment_handlers: Record<string, ({
273
+ version: string;
274
+ spec?: string | undefined;
275
+ schema?: string | undefined;
276
+ id?: string | undefined;
277
+ config?: Record<string, unknown> | undefined;
278
+ } & Record<string, unknown>)[]>;
279
+ services?: Record<string, ({
280
+ version: string;
281
+ spec?: string | undefined;
282
+ schema?: string | undefined;
283
+ id?: string | undefined;
284
+ config?: Record<string, unknown> | undefined;
285
+ } & {
286
+ transport: "rest" | "mcp" | "a2a" | "embedded";
287
+ endpoint?: string | undefined;
288
+ } & ({
289
+ transport?: "rest" | undefined;
290
+ } | {
291
+ transport?: "mcp" | undefined;
292
+ } | {
293
+ transport?: "a2a" | undefined;
294
+ } | {
295
+ config?: {
296
+ delegate?: string[] | undefined;
297
+ } | undefined;
298
+ transport?: "embedded" | undefined;
299
+ }))[]> | undefined;
300
+ capabilities?: Record<string, ({
301
+ version: string;
302
+ spec?: string | undefined;
303
+ schema?: string | undefined;
304
+ id?: string | undefined;
305
+ config?: Record<string, unknown> | undefined;
306
+ } & {
307
+ extends?: string | undefined;
308
+ })[]> | undefined;
309
+ }, {
310
+ payment_handlers: Record<string, ({
311
+ version: string;
312
+ spec?: string | undefined;
313
+ schema?: string | undefined;
314
+ id?: string | undefined;
315
+ config?: Record<string, unknown> | undefined;
316
+ } & Record<string, unknown>)[]>;
317
+ services?: Record<string, ({
318
+ version: string;
319
+ spec?: string | undefined;
320
+ schema?: string | undefined;
321
+ id?: string | undefined;
322
+ config?: Record<string, unknown> | undefined;
323
+ } & {
324
+ transport: "rest" | "mcp" | "a2a" | "embedded";
325
+ endpoint?: string | undefined;
326
+ } & ({
327
+ transport?: "rest" | undefined;
328
+ } | {
329
+ transport?: "mcp" | undefined;
330
+ } | {
331
+ transport?: "a2a" | undefined;
332
+ } | {
333
+ config?: {
334
+ delegate?: string[] | undefined;
335
+ } | undefined;
336
+ transport?: "embedded" | undefined;
337
+ }))[]> | undefined;
338
+ capabilities?: Record<string, ({
339
+ version: string;
340
+ spec?: string | undefined;
341
+ schema?: string | undefined;
342
+ id?: string | undefined;
343
+ config?: Record<string, unknown> | undefined;
344
+ } & {
345
+ extends?: string | undefined;
346
+ })[]> | undefined;
347
+ }>>;
348
+ id: z.ZodString;
349
+ line_items: z.ZodArray<z.ZodObject<{
350
+ id: z.ZodString;
351
+ item: z.ZodObject<{
352
+ id: z.ZodString;
353
+ title: z.ZodString;
354
+ price: z.ZodNumber;
355
+ image_url: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ title: string;
359
+ price: number;
360
+ image_url?: string | undefined;
361
+ }, {
362
+ id: string;
363
+ title: string;
364
+ price: number;
365
+ image_url?: string | undefined;
366
+ }>;
367
+ quantity: z.ZodNumber;
368
+ totals: z.ZodArray<z.ZodObject<{
369
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
370
+ display_text: z.ZodOptional<z.ZodString>;
371
+ amount: z.ZodNumber;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
374
+ amount: number;
375
+ display_text?: string | undefined;
376
+ }, {
377
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
378
+ amount: number;
379
+ display_text?: string | undefined;
380
+ }>, "many">;
381
+ parent_id: z.ZodOptional<z.ZodString>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ id: string;
384
+ item: {
385
+ id: string;
386
+ title: string;
387
+ price: number;
388
+ image_url?: string | undefined;
389
+ };
390
+ quantity: number;
391
+ totals: {
392
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
393
+ amount: number;
394
+ display_text?: string | undefined;
395
+ }[];
396
+ parent_id?: string | undefined;
397
+ }, {
398
+ id: string;
399
+ item: {
400
+ id: string;
401
+ title: string;
402
+ price: number;
403
+ image_url?: string | undefined;
404
+ };
405
+ quantity: number;
406
+ totals: {
407
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
408
+ amount: number;
409
+ display_text?: string | undefined;
410
+ }[];
411
+ parent_id?: string | undefined;
412
+ }>, "many">;
413
+ buyer: z.ZodOptional<z.ZodObject<{
414
+ first_name: z.ZodOptional<z.ZodString>;
415
+ last_name: z.ZodOptional<z.ZodString>;
416
+ email: z.ZodOptional<z.ZodString>;
417
+ phone_number: z.ZodOptional<z.ZodString>;
418
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
419
+ first_name: z.ZodOptional<z.ZodString>;
420
+ last_name: z.ZodOptional<z.ZodString>;
421
+ email: z.ZodOptional<z.ZodString>;
422
+ phone_number: z.ZodOptional<z.ZodString>;
423
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
424
+ first_name: z.ZodOptional<z.ZodString>;
425
+ last_name: z.ZodOptional<z.ZodString>;
426
+ email: z.ZodOptional<z.ZodString>;
427
+ phone_number: z.ZodOptional<z.ZodString>;
428
+ }, z.ZodTypeAny, "passthrough">>>;
429
+ context: z.ZodOptional<z.ZodObject<{
430
+ address_country: z.ZodOptional<z.ZodString>;
431
+ address_region: z.ZodOptional<z.ZodString>;
432
+ postal_code: z.ZodOptional<z.ZodString>;
433
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
434
+ address_country: z.ZodOptional<z.ZodString>;
435
+ address_region: z.ZodOptional<z.ZodString>;
436
+ postal_code: z.ZodOptional<z.ZodString>;
437
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
438
+ address_country: z.ZodOptional<z.ZodString>;
439
+ address_region: z.ZodOptional<z.ZodString>;
440
+ postal_code: z.ZodOptional<z.ZodString>;
441
+ }, z.ZodTypeAny, "passthrough">>>;
442
+ status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
443
+ currency: z.ZodString;
444
+ totals: z.ZodArray<z.ZodObject<{
445
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
446
+ display_text: z.ZodOptional<z.ZodString>;
447
+ amount: z.ZodNumber;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
450
+ amount: number;
451
+ display_text?: string | undefined;
452
+ }, {
453
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
454
+ amount: number;
455
+ display_text?: string | undefined;
456
+ }>, "many">;
457
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
458
+ links: z.ZodArray<z.ZodObject<{
459
+ type: z.ZodString;
460
+ url: z.ZodString;
461
+ title: z.ZodOptional<z.ZodString>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ type: string;
464
+ url: string;
465
+ title?: string | undefined;
466
+ }, {
467
+ type: string;
468
+ url: string;
469
+ title?: string | undefined;
470
+ }>, "many">;
471
+ expires_at: z.ZodOptional<z.ZodString>;
472
+ continue_url: z.ZodOptional<z.ZodString>;
473
+ payment: z.ZodOptional<z.ZodObject<{
474
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
475
+ id: z.ZodString;
476
+ handler_id: z.ZodString;
477
+ type: z.ZodString;
478
+ billing_address: z.ZodOptional<z.ZodObject<{
479
+ extended_address: z.ZodOptional<z.ZodString>;
480
+ street_address: z.ZodOptional<z.ZodString>;
481
+ address_locality: z.ZodOptional<z.ZodString>;
482
+ address_region: z.ZodOptional<z.ZodString>;
483
+ address_country: z.ZodOptional<z.ZodString>;
484
+ postal_code: z.ZodOptional<z.ZodString>;
485
+ first_name: z.ZodOptional<z.ZodString>;
486
+ last_name: z.ZodOptional<z.ZodString>;
487
+ phone_number: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ first_name?: string | undefined;
490
+ last_name?: string | undefined;
491
+ phone_number?: string | undefined;
492
+ address_country?: string | undefined;
493
+ address_region?: string | undefined;
494
+ postal_code?: string | undefined;
495
+ extended_address?: string | undefined;
496
+ street_address?: string | undefined;
497
+ address_locality?: string | undefined;
498
+ }, {
499
+ first_name?: string | undefined;
500
+ last_name?: string | undefined;
501
+ phone_number?: string | undefined;
502
+ address_country?: string | undefined;
503
+ address_region?: string | undefined;
504
+ postal_code?: string | undefined;
505
+ extended_address?: string | undefined;
506
+ street_address?: string | undefined;
507
+ address_locality?: string | undefined;
508
+ }>>;
509
+ credential: z.ZodOptional<z.ZodObject<{
510
+ type: z.ZodString;
511
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
512
+ type: z.ZodString;
513
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
514
+ type: z.ZodString;
515
+ }, z.ZodTypeAny, "passthrough">>>;
516
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
518
+ id: z.ZodString;
519
+ handler_id: z.ZodString;
520
+ type: z.ZodString;
521
+ billing_address: z.ZodOptional<z.ZodObject<{
522
+ extended_address: z.ZodOptional<z.ZodString>;
523
+ street_address: z.ZodOptional<z.ZodString>;
524
+ address_locality: z.ZodOptional<z.ZodString>;
525
+ address_region: z.ZodOptional<z.ZodString>;
526
+ address_country: z.ZodOptional<z.ZodString>;
527
+ postal_code: z.ZodOptional<z.ZodString>;
528
+ first_name: z.ZodOptional<z.ZodString>;
529
+ last_name: z.ZodOptional<z.ZodString>;
530
+ phone_number: z.ZodOptional<z.ZodString>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ first_name?: string | undefined;
533
+ last_name?: string | undefined;
534
+ phone_number?: string | undefined;
535
+ address_country?: string | undefined;
536
+ address_region?: string | undefined;
537
+ postal_code?: string | undefined;
538
+ extended_address?: string | undefined;
539
+ street_address?: string | undefined;
540
+ address_locality?: string | undefined;
541
+ }, {
542
+ first_name?: string | undefined;
543
+ last_name?: string | undefined;
544
+ phone_number?: string | undefined;
545
+ address_country?: string | undefined;
546
+ address_region?: string | undefined;
547
+ postal_code?: string | undefined;
548
+ extended_address?: string | undefined;
549
+ street_address?: string | undefined;
550
+ address_locality?: string | undefined;
551
+ }>>;
552
+ credential: z.ZodOptional<z.ZodObject<{
553
+ type: z.ZodString;
554
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
555
+ type: z.ZodString;
556
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
557
+ type: z.ZodString;
558
+ }, z.ZodTypeAny, "passthrough">>>;
559
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
560
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
561
+ id: z.ZodString;
562
+ handler_id: z.ZodString;
563
+ type: z.ZodString;
564
+ billing_address: z.ZodOptional<z.ZodObject<{
565
+ extended_address: z.ZodOptional<z.ZodString>;
566
+ street_address: z.ZodOptional<z.ZodString>;
567
+ address_locality: z.ZodOptional<z.ZodString>;
568
+ address_region: z.ZodOptional<z.ZodString>;
569
+ address_country: z.ZodOptional<z.ZodString>;
570
+ postal_code: z.ZodOptional<z.ZodString>;
571
+ first_name: z.ZodOptional<z.ZodString>;
572
+ last_name: z.ZodOptional<z.ZodString>;
573
+ phone_number: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ first_name?: string | undefined;
576
+ last_name?: string | undefined;
577
+ phone_number?: string | undefined;
578
+ address_country?: string | undefined;
579
+ address_region?: string | undefined;
580
+ postal_code?: string | undefined;
581
+ extended_address?: string | undefined;
582
+ street_address?: string | undefined;
583
+ address_locality?: string | undefined;
584
+ }, {
585
+ first_name?: string | undefined;
586
+ last_name?: string | undefined;
587
+ phone_number?: string | undefined;
588
+ address_country?: string | undefined;
589
+ address_region?: string | undefined;
590
+ postal_code?: string | undefined;
591
+ extended_address?: string | undefined;
592
+ street_address?: string | undefined;
593
+ address_locality?: string | undefined;
594
+ }>>;
595
+ credential: z.ZodOptional<z.ZodObject<{
596
+ type: z.ZodString;
597
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
598
+ type: z.ZodString;
599
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
600
+ type: z.ZodString;
601
+ }, z.ZodTypeAny, "passthrough">>>;
602
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
603
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
604
+ selected: z.ZodOptional<z.ZodBoolean>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ selected?: boolean | undefined;
607
+ }, {
608
+ selected?: boolean | undefined;
609
+ }>>, "many">>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ instruments?: ({
612
+ id: string;
613
+ type: string;
614
+ handler_id: string;
615
+ billing_address?: {
616
+ first_name?: string | undefined;
617
+ last_name?: string | undefined;
618
+ phone_number?: string | undefined;
619
+ address_country?: string | undefined;
620
+ address_region?: string | undefined;
621
+ postal_code?: string | undefined;
622
+ extended_address?: string | undefined;
623
+ street_address?: string | undefined;
624
+ address_locality?: string | undefined;
625
+ } | undefined;
626
+ credential?: z.objectOutputType<{
627
+ type: z.ZodString;
628
+ }, z.ZodTypeAny, "passthrough"> | undefined;
629
+ display?: Record<string, unknown> | undefined;
630
+ } & {
631
+ [k: string]: unknown;
632
+ } & {
633
+ selected?: boolean | undefined;
634
+ })[] | undefined;
635
+ }, {
636
+ instruments?: ({
637
+ id: string;
638
+ type: string;
639
+ handler_id: string;
640
+ billing_address?: {
641
+ first_name?: string | undefined;
642
+ last_name?: string | undefined;
643
+ phone_number?: string | undefined;
644
+ address_country?: string | undefined;
645
+ address_region?: string | undefined;
646
+ postal_code?: string | undefined;
647
+ extended_address?: string | undefined;
648
+ street_address?: string | undefined;
649
+ address_locality?: string | undefined;
650
+ } | undefined;
651
+ credential?: z.objectInputType<{
652
+ type: z.ZodString;
653
+ }, z.ZodTypeAny, "passthrough"> | undefined;
654
+ display?: Record<string, unknown> | undefined;
655
+ } & {
656
+ [k: string]: unknown;
657
+ } & {
658
+ selected?: boolean | undefined;
659
+ })[] | undefined;
660
+ }>>;
661
+ order: z.ZodOptional<z.ZodObject<{
662
+ id: z.ZodString;
663
+ permalink_url: z.ZodString;
664
+ }, "strip", z.ZodTypeAny, {
665
+ id: string;
666
+ permalink_url: string;
667
+ }, {
668
+ id: string;
669
+ permalink_url: string;
670
+ }>>;
671
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
672
+ ucp: z.ZodIntersection<z.ZodObject<{
673
+ version: z.ZodString;
674
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
675
+ version: z.ZodString;
676
+ spec: z.ZodOptional<z.ZodString>;
677
+ schema: z.ZodOptional<z.ZodString>;
678
+ id: z.ZodOptional<z.ZodString>;
679
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ version: string;
682
+ spec?: string | undefined;
683
+ schema?: string | undefined;
684
+ id?: string | undefined;
685
+ config?: Record<string, unknown> | undefined;
686
+ }, {
687
+ version: string;
688
+ spec?: string | undefined;
689
+ schema?: string | undefined;
690
+ id?: string | undefined;
691
+ config?: Record<string, unknown> | undefined;
692
+ }>, z.ZodObject<{
693
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
694
+ endpoint: z.ZodOptional<z.ZodString>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ transport: "rest" | "mcp" | "a2a" | "embedded";
697
+ endpoint?: string | undefined;
698
+ }, {
699
+ transport: "rest" | "mcp" | "a2a" | "embedded";
700
+ endpoint?: string | undefined;
701
+ }>>, "many">>>;
702
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
703
+ version: z.ZodString;
704
+ spec: z.ZodOptional<z.ZodString>;
705
+ schema: z.ZodOptional<z.ZodString>;
706
+ id: z.ZodOptional<z.ZodString>;
707
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ version: string;
710
+ spec?: string | undefined;
711
+ schema?: string | undefined;
712
+ id?: string | undefined;
713
+ config?: Record<string, unknown> | undefined;
714
+ }, {
715
+ version: string;
716
+ spec?: string | undefined;
717
+ schema?: string | undefined;
718
+ id?: string | undefined;
719
+ config?: Record<string, unknown> | undefined;
720
+ }>, z.ZodObject<{
721
+ extends: z.ZodOptional<z.ZodString>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ extends?: string | undefined;
724
+ }, {
725
+ extends?: string | undefined;
726
+ }>>, "many">>>;
727
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
728
+ version: z.ZodString;
729
+ spec: z.ZodOptional<z.ZodString>;
730
+ schema: z.ZodOptional<z.ZodString>;
731
+ id: z.ZodOptional<z.ZodString>;
732
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ version: string;
735
+ spec?: string | undefined;
736
+ schema?: string | undefined;
737
+ id?: string | undefined;
738
+ config?: Record<string, unknown> | undefined;
739
+ }, {
740
+ version: string;
741
+ spec?: string | undefined;
742
+ schema?: string | undefined;
743
+ id?: string | undefined;
744
+ config?: Record<string, unknown> | undefined;
745
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ version: string;
748
+ services?: Record<string, ({
749
+ version: string;
750
+ spec?: string | undefined;
751
+ schema?: string | undefined;
752
+ id?: string | undefined;
753
+ config?: Record<string, unknown> | undefined;
754
+ } & {
755
+ transport: "rest" | "mcp" | "a2a" | "embedded";
756
+ endpoint?: string | undefined;
757
+ })[]> | undefined;
758
+ capabilities?: Record<string, ({
759
+ version: string;
760
+ spec?: string | undefined;
761
+ schema?: string | undefined;
762
+ id?: string | undefined;
763
+ config?: Record<string, unknown> | undefined;
764
+ } & {
765
+ extends?: string | undefined;
766
+ })[]> | undefined;
767
+ payment_handlers?: Record<string, ({
768
+ version: string;
769
+ spec?: string | undefined;
770
+ schema?: string | undefined;
771
+ id?: string | undefined;
772
+ config?: Record<string, unknown> | undefined;
773
+ } & Record<string, unknown>)[]> | undefined;
774
+ }, {
775
+ version: string;
776
+ services?: Record<string, ({
777
+ version: string;
778
+ spec?: string | undefined;
779
+ schema?: string | undefined;
780
+ id?: string | undefined;
781
+ config?: Record<string, unknown> | undefined;
782
+ } & {
783
+ transport: "rest" | "mcp" | "a2a" | "embedded";
784
+ endpoint?: string | undefined;
785
+ })[]> | undefined;
786
+ capabilities?: Record<string, ({
787
+ version: string;
788
+ spec?: string | undefined;
789
+ schema?: string | undefined;
790
+ id?: string | undefined;
791
+ config?: Record<string, unknown> | undefined;
792
+ } & {
793
+ extends?: string | undefined;
794
+ })[]> | undefined;
795
+ payment_handlers?: Record<string, ({
796
+ version: string;
797
+ spec?: string | undefined;
798
+ schema?: string | undefined;
799
+ id?: string | undefined;
800
+ config?: Record<string, unknown> | undefined;
801
+ } & Record<string, unknown>)[]> | undefined;
802
+ }>, z.ZodObject<{
803
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
804
+ version: z.ZodString;
805
+ spec: z.ZodOptional<z.ZodString>;
806
+ schema: z.ZodOptional<z.ZodString>;
807
+ id: z.ZodOptional<z.ZodString>;
808
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ version: string;
811
+ spec?: string | undefined;
812
+ schema?: string | undefined;
813
+ id?: string | undefined;
814
+ config?: Record<string, unknown> | undefined;
815
+ }, {
816
+ version: string;
817
+ spec?: string | undefined;
818
+ schema?: string | undefined;
819
+ id?: string | undefined;
820
+ config?: Record<string, unknown> | undefined;
821
+ }>, z.ZodObject<{
822
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
823
+ endpoint: z.ZodOptional<z.ZodString>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ transport: "rest" | "mcp" | "a2a" | "embedded";
826
+ endpoint?: string | undefined;
827
+ }, {
828
+ transport: "rest" | "mcp" | "a2a" | "embedded";
829
+ endpoint?: string | undefined;
830
+ }>>, z.ZodUnion<[z.ZodObject<{
831
+ transport: z.ZodOptional<z.ZodLiteral<"rest">>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ transport?: "rest" | undefined;
834
+ }, {
835
+ transport?: "rest" | undefined;
836
+ }>, z.ZodObject<{
837
+ transport: z.ZodOptional<z.ZodLiteral<"mcp">>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ transport?: "mcp" | undefined;
840
+ }, {
841
+ transport?: "mcp" | undefined;
842
+ }>, z.ZodObject<{
843
+ transport: z.ZodOptional<z.ZodLiteral<"a2a">>;
844
+ }, "strip", z.ZodTypeAny, {
845
+ transport?: "a2a" | undefined;
846
+ }, {
847
+ transport?: "a2a" | undefined;
848
+ }>, z.ZodObject<{
849
+ transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
850
+ config: z.ZodOptional<z.ZodObject<{
851
+ delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ delegate?: string[] | undefined;
854
+ }, {
855
+ delegate?: string[] | undefined;
856
+ }>>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ config?: {
859
+ delegate?: string[] | undefined;
860
+ } | undefined;
861
+ transport?: "embedded" | undefined;
862
+ }, {
863
+ config?: {
864
+ delegate?: string[] | undefined;
865
+ } | undefined;
866
+ transport?: "embedded" | undefined;
867
+ }>]>>, "many">>>;
868
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
869
+ version: z.ZodString;
870
+ spec: z.ZodOptional<z.ZodString>;
871
+ schema: z.ZodOptional<z.ZodString>;
872
+ id: z.ZodOptional<z.ZodString>;
873
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ version: string;
876
+ spec?: string | undefined;
877
+ schema?: string | undefined;
878
+ id?: string | undefined;
879
+ config?: Record<string, unknown> | undefined;
880
+ }, {
881
+ version: string;
882
+ spec?: string | undefined;
883
+ schema?: string | undefined;
884
+ id?: string | undefined;
885
+ config?: Record<string, unknown> | undefined;
886
+ }>, z.ZodObject<{
887
+ extends: z.ZodOptional<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ extends?: string | undefined;
890
+ }, {
891
+ extends?: string | undefined;
892
+ }>>, "many">>>;
893
+ payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
894
+ version: z.ZodString;
895
+ spec: z.ZodOptional<z.ZodString>;
896
+ schema: z.ZodOptional<z.ZodString>;
897
+ id: z.ZodOptional<z.ZodString>;
898
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ version: string;
901
+ spec?: string | undefined;
902
+ schema?: string | undefined;
903
+ id?: string | undefined;
904
+ config?: Record<string, unknown> | undefined;
905
+ }, {
906
+ version: string;
907
+ spec?: string | undefined;
908
+ schema?: string | undefined;
909
+ id?: string | undefined;
910
+ config?: Record<string, unknown> | undefined;
911
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ payment_handlers: Record<string, ({
914
+ version: string;
915
+ spec?: string | undefined;
916
+ schema?: string | undefined;
917
+ id?: string | undefined;
918
+ config?: Record<string, unknown> | undefined;
919
+ } & Record<string, unknown>)[]>;
920
+ services?: Record<string, ({
921
+ version: string;
922
+ spec?: string | undefined;
923
+ schema?: string | undefined;
924
+ id?: string | undefined;
925
+ config?: Record<string, unknown> | undefined;
926
+ } & {
927
+ transport: "rest" | "mcp" | "a2a" | "embedded";
928
+ endpoint?: string | undefined;
929
+ } & ({
930
+ transport?: "rest" | undefined;
931
+ } | {
932
+ transport?: "mcp" | undefined;
933
+ } | {
934
+ transport?: "a2a" | undefined;
935
+ } | {
936
+ config?: {
937
+ delegate?: string[] | undefined;
938
+ } | undefined;
939
+ transport?: "embedded" | undefined;
940
+ }))[]> | undefined;
941
+ capabilities?: Record<string, ({
942
+ version: string;
943
+ spec?: string | undefined;
944
+ schema?: string | undefined;
945
+ id?: string | undefined;
946
+ config?: Record<string, unknown> | undefined;
947
+ } & {
948
+ extends?: string | undefined;
949
+ })[]> | undefined;
950
+ }, {
951
+ payment_handlers: Record<string, ({
952
+ version: string;
953
+ spec?: string | undefined;
954
+ schema?: string | undefined;
955
+ id?: string | undefined;
956
+ config?: Record<string, unknown> | undefined;
957
+ } & Record<string, unknown>)[]>;
958
+ services?: Record<string, ({
959
+ version: string;
960
+ spec?: string | undefined;
961
+ schema?: string | undefined;
962
+ id?: string | undefined;
963
+ config?: Record<string, unknown> | undefined;
964
+ } & {
965
+ transport: "rest" | "mcp" | "a2a" | "embedded";
966
+ endpoint?: string | undefined;
967
+ } & ({
968
+ transport?: "rest" | undefined;
969
+ } | {
970
+ transport?: "mcp" | undefined;
971
+ } | {
972
+ transport?: "a2a" | undefined;
973
+ } | {
974
+ config?: {
975
+ delegate?: string[] | undefined;
976
+ } | undefined;
977
+ transport?: "embedded" | undefined;
978
+ }))[]> | undefined;
979
+ capabilities?: Record<string, ({
980
+ version: string;
981
+ spec?: string | undefined;
982
+ schema?: string | undefined;
983
+ id?: string | undefined;
984
+ config?: Record<string, unknown> | undefined;
985
+ } & {
986
+ extends?: string | undefined;
987
+ })[]> | undefined;
988
+ }>>;
989
+ id: z.ZodString;
990
+ line_items: z.ZodArray<z.ZodObject<{
991
+ id: z.ZodString;
992
+ item: z.ZodObject<{
993
+ id: z.ZodString;
994
+ title: z.ZodString;
995
+ price: z.ZodNumber;
996
+ image_url: z.ZodOptional<z.ZodString>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ id: string;
999
+ title: string;
1000
+ price: number;
1001
+ image_url?: string | undefined;
1002
+ }, {
1003
+ id: string;
1004
+ title: string;
1005
+ price: number;
1006
+ image_url?: string | undefined;
1007
+ }>;
1008
+ quantity: z.ZodNumber;
1009
+ totals: z.ZodArray<z.ZodObject<{
1010
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1011
+ display_text: z.ZodOptional<z.ZodString>;
1012
+ amount: z.ZodNumber;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1015
+ amount: number;
1016
+ display_text?: string | undefined;
1017
+ }, {
1018
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1019
+ amount: number;
1020
+ display_text?: string | undefined;
1021
+ }>, "many">;
1022
+ parent_id: z.ZodOptional<z.ZodString>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ id: string;
1025
+ item: {
1026
+ id: string;
1027
+ title: string;
1028
+ price: number;
1029
+ image_url?: string | undefined;
1030
+ };
1031
+ quantity: number;
1032
+ totals: {
1033
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1034
+ amount: number;
1035
+ display_text?: string | undefined;
1036
+ }[];
1037
+ parent_id?: string | undefined;
1038
+ }, {
1039
+ id: string;
1040
+ item: {
1041
+ id: string;
1042
+ title: string;
1043
+ price: number;
1044
+ image_url?: string | undefined;
1045
+ };
1046
+ quantity: number;
1047
+ totals: {
1048
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1049
+ amount: number;
1050
+ display_text?: string | undefined;
1051
+ }[];
1052
+ parent_id?: string | undefined;
1053
+ }>, "many">;
1054
+ buyer: z.ZodOptional<z.ZodObject<{
1055
+ first_name: z.ZodOptional<z.ZodString>;
1056
+ last_name: z.ZodOptional<z.ZodString>;
1057
+ email: z.ZodOptional<z.ZodString>;
1058
+ phone_number: z.ZodOptional<z.ZodString>;
1059
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1060
+ first_name: z.ZodOptional<z.ZodString>;
1061
+ last_name: z.ZodOptional<z.ZodString>;
1062
+ email: z.ZodOptional<z.ZodString>;
1063
+ phone_number: z.ZodOptional<z.ZodString>;
1064
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1065
+ first_name: z.ZodOptional<z.ZodString>;
1066
+ last_name: z.ZodOptional<z.ZodString>;
1067
+ email: z.ZodOptional<z.ZodString>;
1068
+ phone_number: z.ZodOptional<z.ZodString>;
1069
+ }, z.ZodTypeAny, "passthrough">>>;
1070
+ context: z.ZodOptional<z.ZodObject<{
1071
+ address_country: z.ZodOptional<z.ZodString>;
1072
+ address_region: z.ZodOptional<z.ZodString>;
1073
+ postal_code: z.ZodOptional<z.ZodString>;
1074
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1075
+ address_country: z.ZodOptional<z.ZodString>;
1076
+ address_region: z.ZodOptional<z.ZodString>;
1077
+ postal_code: z.ZodOptional<z.ZodString>;
1078
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1079
+ address_country: z.ZodOptional<z.ZodString>;
1080
+ address_region: z.ZodOptional<z.ZodString>;
1081
+ postal_code: z.ZodOptional<z.ZodString>;
1082
+ }, z.ZodTypeAny, "passthrough">>>;
1083
+ status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
1084
+ currency: z.ZodString;
1085
+ totals: z.ZodArray<z.ZodObject<{
1086
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1087
+ display_text: z.ZodOptional<z.ZodString>;
1088
+ amount: z.ZodNumber;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1091
+ amount: number;
1092
+ display_text?: string | undefined;
1093
+ }, {
1094
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1095
+ amount: number;
1096
+ display_text?: string | undefined;
1097
+ }>, "many">;
1098
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
1099
+ links: z.ZodArray<z.ZodObject<{
1100
+ type: z.ZodString;
1101
+ url: z.ZodString;
1102
+ title: z.ZodOptional<z.ZodString>;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ type: string;
1105
+ url: string;
1106
+ title?: string | undefined;
1107
+ }, {
1108
+ type: string;
1109
+ url: string;
1110
+ title?: string | undefined;
1111
+ }>, "many">;
1112
+ expires_at: z.ZodOptional<z.ZodString>;
1113
+ continue_url: z.ZodOptional<z.ZodString>;
1114
+ payment: z.ZodOptional<z.ZodObject<{
1115
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ handler_id: z.ZodString;
1118
+ type: z.ZodString;
1119
+ billing_address: z.ZodOptional<z.ZodObject<{
1120
+ extended_address: z.ZodOptional<z.ZodString>;
1121
+ street_address: z.ZodOptional<z.ZodString>;
1122
+ address_locality: z.ZodOptional<z.ZodString>;
1123
+ address_region: z.ZodOptional<z.ZodString>;
1124
+ address_country: z.ZodOptional<z.ZodString>;
1125
+ postal_code: z.ZodOptional<z.ZodString>;
1126
+ first_name: z.ZodOptional<z.ZodString>;
1127
+ last_name: z.ZodOptional<z.ZodString>;
1128
+ phone_number: z.ZodOptional<z.ZodString>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ first_name?: string | undefined;
1131
+ last_name?: string | undefined;
1132
+ phone_number?: string | undefined;
1133
+ address_country?: string | undefined;
1134
+ address_region?: string | undefined;
1135
+ postal_code?: string | undefined;
1136
+ extended_address?: string | undefined;
1137
+ street_address?: string | undefined;
1138
+ address_locality?: string | undefined;
1139
+ }, {
1140
+ first_name?: string | undefined;
1141
+ last_name?: string | undefined;
1142
+ phone_number?: string | undefined;
1143
+ address_country?: string | undefined;
1144
+ address_region?: string | undefined;
1145
+ postal_code?: string | undefined;
1146
+ extended_address?: string | undefined;
1147
+ street_address?: string | undefined;
1148
+ address_locality?: string | undefined;
1149
+ }>>;
1150
+ credential: z.ZodOptional<z.ZodObject<{
1151
+ type: z.ZodString;
1152
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1153
+ type: z.ZodString;
1154
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1155
+ type: z.ZodString;
1156
+ }, z.ZodTypeAny, "passthrough">>>;
1157
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1158
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1159
+ id: z.ZodString;
1160
+ handler_id: z.ZodString;
1161
+ type: z.ZodString;
1162
+ billing_address: z.ZodOptional<z.ZodObject<{
1163
+ extended_address: z.ZodOptional<z.ZodString>;
1164
+ street_address: z.ZodOptional<z.ZodString>;
1165
+ address_locality: z.ZodOptional<z.ZodString>;
1166
+ address_region: z.ZodOptional<z.ZodString>;
1167
+ address_country: z.ZodOptional<z.ZodString>;
1168
+ postal_code: z.ZodOptional<z.ZodString>;
1169
+ first_name: z.ZodOptional<z.ZodString>;
1170
+ last_name: z.ZodOptional<z.ZodString>;
1171
+ phone_number: z.ZodOptional<z.ZodString>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ first_name?: string | undefined;
1174
+ last_name?: string | undefined;
1175
+ phone_number?: string | undefined;
1176
+ address_country?: string | undefined;
1177
+ address_region?: string | undefined;
1178
+ postal_code?: string | undefined;
1179
+ extended_address?: string | undefined;
1180
+ street_address?: string | undefined;
1181
+ address_locality?: string | undefined;
1182
+ }, {
1183
+ first_name?: string | undefined;
1184
+ last_name?: string | undefined;
1185
+ phone_number?: string | undefined;
1186
+ address_country?: string | undefined;
1187
+ address_region?: string | undefined;
1188
+ postal_code?: string | undefined;
1189
+ extended_address?: string | undefined;
1190
+ street_address?: string | undefined;
1191
+ address_locality?: string | undefined;
1192
+ }>>;
1193
+ credential: z.ZodOptional<z.ZodObject<{
1194
+ type: z.ZodString;
1195
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1196
+ type: z.ZodString;
1197
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1198
+ type: z.ZodString;
1199
+ }, z.ZodTypeAny, "passthrough">>>;
1200
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1201
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1202
+ id: z.ZodString;
1203
+ handler_id: z.ZodString;
1204
+ type: z.ZodString;
1205
+ billing_address: z.ZodOptional<z.ZodObject<{
1206
+ extended_address: z.ZodOptional<z.ZodString>;
1207
+ street_address: z.ZodOptional<z.ZodString>;
1208
+ address_locality: z.ZodOptional<z.ZodString>;
1209
+ address_region: z.ZodOptional<z.ZodString>;
1210
+ address_country: z.ZodOptional<z.ZodString>;
1211
+ postal_code: z.ZodOptional<z.ZodString>;
1212
+ first_name: z.ZodOptional<z.ZodString>;
1213
+ last_name: z.ZodOptional<z.ZodString>;
1214
+ phone_number: z.ZodOptional<z.ZodString>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ first_name?: string | undefined;
1217
+ last_name?: string | undefined;
1218
+ phone_number?: string | undefined;
1219
+ address_country?: string | undefined;
1220
+ address_region?: string | undefined;
1221
+ postal_code?: string | undefined;
1222
+ extended_address?: string | undefined;
1223
+ street_address?: string | undefined;
1224
+ address_locality?: string | undefined;
1225
+ }, {
1226
+ first_name?: string | undefined;
1227
+ last_name?: string | undefined;
1228
+ phone_number?: string | undefined;
1229
+ address_country?: string | undefined;
1230
+ address_region?: string | undefined;
1231
+ postal_code?: string | undefined;
1232
+ extended_address?: string | undefined;
1233
+ street_address?: string | undefined;
1234
+ address_locality?: string | undefined;
1235
+ }>>;
1236
+ credential: z.ZodOptional<z.ZodObject<{
1237
+ type: z.ZodString;
1238
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1239
+ type: z.ZodString;
1240
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1241
+ type: z.ZodString;
1242
+ }, z.ZodTypeAny, "passthrough">>>;
1243
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1244
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1245
+ selected: z.ZodOptional<z.ZodBoolean>;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ selected?: boolean | undefined;
1248
+ }, {
1249
+ selected?: boolean | undefined;
1250
+ }>>, "many">>;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ instruments?: ({
1253
+ id: string;
1254
+ type: string;
1255
+ handler_id: string;
1256
+ billing_address?: {
1257
+ first_name?: string | undefined;
1258
+ last_name?: string | undefined;
1259
+ phone_number?: string | undefined;
1260
+ address_country?: string | undefined;
1261
+ address_region?: string | undefined;
1262
+ postal_code?: string | undefined;
1263
+ extended_address?: string | undefined;
1264
+ street_address?: string | undefined;
1265
+ address_locality?: string | undefined;
1266
+ } | undefined;
1267
+ credential?: z.objectOutputType<{
1268
+ type: z.ZodString;
1269
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1270
+ display?: Record<string, unknown> | undefined;
1271
+ } & {
1272
+ [k: string]: unknown;
1273
+ } & {
1274
+ selected?: boolean | undefined;
1275
+ })[] | undefined;
1276
+ }, {
1277
+ instruments?: ({
1278
+ id: string;
1279
+ type: string;
1280
+ handler_id: string;
1281
+ billing_address?: {
1282
+ first_name?: string | undefined;
1283
+ last_name?: string | undefined;
1284
+ phone_number?: string | undefined;
1285
+ address_country?: string | undefined;
1286
+ address_region?: string | undefined;
1287
+ postal_code?: string | undefined;
1288
+ extended_address?: string | undefined;
1289
+ street_address?: string | undefined;
1290
+ address_locality?: string | undefined;
1291
+ } | undefined;
1292
+ credential?: z.objectInputType<{
1293
+ type: z.ZodString;
1294
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1295
+ display?: Record<string, unknown> | undefined;
1296
+ } & {
1297
+ [k: string]: unknown;
1298
+ } & {
1299
+ selected?: boolean | undefined;
1300
+ })[] | undefined;
1301
+ }>>;
1302
+ order: z.ZodOptional<z.ZodObject<{
1303
+ id: z.ZodString;
1304
+ permalink_url: z.ZodString;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ id: string;
1307
+ permalink_url: string;
1308
+ }, {
1309
+ id: string;
1310
+ permalink_url: string;
1311
+ }>>;
1312
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1313
+ ucp: z.ZodIntersection<z.ZodObject<{
1314
+ version: z.ZodString;
1315
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1316
+ version: z.ZodString;
1317
+ spec: z.ZodOptional<z.ZodString>;
1318
+ schema: z.ZodOptional<z.ZodString>;
1319
+ id: z.ZodOptional<z.ZodString>;
1320
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ version: string;
1323
+ spec?: string | undefined;
1324
+ schema?: string | undefined;
1325
+ id?: string | undefined;
1326
+ config?: Record<string, unknown> | undefined;
1327
+ }, {
1328
+ version: string;
1329
+ spec?: string | undefined;
1330
+ schema?: string | undefined;
1331
+ id?: string | undefined;
1332
+ config?: Record<string, unknown> | undefined;
1333
+ }>, z.ZodObject<{
1334
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
1335
+ endpoint: z.ZodOptional<z.ZodString>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1338
+ endpoint?: string | undefined;
1339
+ }, {
1340
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1341
+ endpoint?: string | undefined;
1342
+ }>>, "many">>>;
1343
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1344
+ version: z.ZodString;
1345
+ spec: z.ZodOptional<z.ZodString>;
1346
+ schema: z.ZodOptional<z.ZodString>;
1347
+ id: z.ZodOptional<z.ZodString>;
1348
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ version: string;
1351
+ spec?: string | undefined;
1352
+ schema?: string | undefined;
1353
+ id?: string | undefined;
1354
+ config?: Record<string, unknown> | undefined;
1355
+ }, {
1356
+ version: string;
1357
+ spec?: string | undefined;
1358
+ schema?: string | undefined;
1359
+ id?: string | undefined;
1360
+ config?: Record<string, unknown> | undefined;
1361
+ }>, z.ZodObject<{
1362
+ extends: z.ZodOptional<z.ZodString>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ extends?: string | undefined;
1365
+ }, {
1366
+ extends?: string | undefined;
1367
+ }>>, "many">>>;
1368
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1369
+ version: z.ZodString;
1370
+ spec: z.ZodOptional<z.ZodString>;
1371
+ schema: z.ZodOptional<z.ZodString>;
1372
+ id: z.ZodOptional<z.ZodString>;
1373
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ version: string;
1376
+ spec?: string | undefined;
1377
+ schema?: string | undefined;
1378
+ id?: string | undefined;
1379
+ config?: Record<string, unknown> | undefined;
1380
+ }, {
1381
+ version: string;
1382
+ spec?: string | undefined;
1383
+ schema?: string | undefined;
1384
+ id?: string | undefined;
1385
+ config?: Record<string, unknown> | undefined;
1386
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ version: string;
1389
+ services?: Record<string, ({
1390
+ version: string;
1391
+ spec?: string | undefined;
1392
+ schema?: string | undefined;
1393
+ id?: string | undefined;
1394
+ config?: Record<string, unknown> | undefined;
1395
+ } & {
1396
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1397
+ endpoint?: string | undefined;
1398
+ })[]> | undefined;
1399
+ capabilities?: Record<string, ({
1400
+ version: string;
1401
+ spec?: string | undefined;
1402
+ schema?: string | undefined;
1403
+ id?: string | undefined;
1404
+ config?: Record<string, unknown> | undefined;
1405
+ } & {
1406
+ extends?: string | undefined;
1407
+ })[]> | undefined;
1408
+ payment_handlers?: Record<string, ({
1409
+ version: string;
1410
+ spec?: string | undefined;
1411
+ schema?: string | undefined;
1412
+ id?: string | undefined;
1413
+ config?: Record<string, unknown> | undefined;
1414
+ } & Record<string, unknown>)[]> | undefined;
1415
+ }, {
1416
+ version: string;
1417
+ services?: Record<string, ({
1418
+ version: string;
1419
+ spec?: string | undefined;
1420
+ schema?: string | undefined;
1421
+ id?: string | undefined;
1422
+ config?: Record<string, unknown> | undefined;
1423
+ } & {
1424
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1425
+ endpoint?: string | undefined;
1426
+ })[]> | undefined;
1427
+ capabilities?: Record<string, ({
1428
+ version: string;
1429
+ spec?: string | undefined;
1430
+ schema?: string | undefined;
1431
+ id?: string | undefined;
1432
+ config?: Record<string, unknown> | undefined;
1433
+ } & {
1434
+ extends?: string | undefined;
1435
+ })[]> | undefined;
1436
+ payment_handlers?: Record<string, ({
1437
+ version: string;
1438
+ spec?: string | undefined;
1439
+ schema?: string | undefined;
1440
+ id?: string | undefined;
1441
+ config?: Record<string, unknown> | undefined;
1442
+ } & Record<string, unknown>)[]> | undefined;
1443
+ }>, z.ZodObject<{
1444
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1445
+ version: z.ZodString;
1446
+ spec: z.ZodOptional<z.ZodString>;
1447
+ schema: z.ZodOptional<z.ZodString>;
1448
+ id: z.ZodOptional<z.ZodString>;
1449
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ version: string;
1452
+ spec?: string | undefined;
1453
+ schema?: string | undefined;
1454
+ id?: string | undefined;
1455
+ config?: Record<string, unknown> | undefined;
1456
+ }, {
1457
+ version: string;
1458
+ spec?: string | undefined;
1459
+ schema?: string | undefined;
1460
+ id?: string | undefined;
1461
+ config?: Record<string, unknown> | undefined;
1462
+ }>, z.ZodObject<{
1463
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
1464
+ endpoint: z.ZodOptional<z.ZodString>;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1467
+ endpoint?: string | undefined;
1468
+ }, {
1469
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1470
+ endpoint?: string | undefined;
1471
+ }>>, z.ZodUnion<[z.ZodObject<{
1472
+ transport: z.ZodOptional<z.ZodLiteral<"rest">>;
1473
+ }, "strip", z.ZodTypeAny, {
1474
+ transport?: "rest" | undefined;
1475
+ }, {
1476
+ transport?: "rest" | undefined;
1477
+ }>, z.ZodObject<{
1478
+ transport: z.ZodOptional<z.ZodLiteral<"mcp">>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ transport?: "mcp" | undefined;
1481
+ }, {
1482
+ transport?: "mcp" | undefined;
1483
+ }>, z.ZodObject<{
1484
+ transport: z.ZodOptional<z.ZodLiteral<"a2a">>;
1485
+ }, "strip", z.ZodTypeAny, {
1486
+ transport?: "a2a" | undefined;
1487
+ }, {
1488
+ transport?: "a2a" | undefined;
1489
+ }>, z.ZodObject<{
1490
+ transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
1491
+ config: z.ZodOptional<z.ZodObject<{
1492
+ delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ delegate?: string[] | undefined;
1495
+ }, {
1496
+ delegate?: string[] | undefined;
1497
+ }>>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ config?: {
1500
+ delegate?: string[] | undefined;
1501
+ } | undefined;
1502
+ transport?: "embedded" | undefined;
1503
+ }, {
1504
+ config?: {
1505
+ delegate?: string[] | undefined;
1506
+ } | undefined;
1507
+ transport?: "embedded" | undefined;
1508
+ }>]>>, "many">>>;
1509
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1510
+ version: z.ZodString;
1511
+ spec: z.ZodOptional<z.ZodString>;
1512
+ schema: z.ZodOptional<z.ZodString>;
1513
+ id: z.ZodOptional<z.ZodString>;
1514
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ version: string;
1517
+ spec?: string | undefined;
1518
+ schema?: string | undefined;
1519
+ id?: string | undefined;
1520
+ config?: Record<string, unknown> | undefined;
1521
+ }, {
1522
+ version: string;
1523
+ spec?: string | undefined;
1524
+ schema?: string | undefined;
1525
+ id?: string | undefined;
1526
+ config?: Record<string, unknown> | undefined;
1527
+ }>, z.ZodObject<{
1528
+ extends: z.ZodOptional<z.ZodString>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ extends?: string | undefined;
1531
+ }, {
1532
+ extends?: string | undefined;
1533
+ }>>, "many">>>;
1534
+ payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1535
+ version: z.ZodString;
1536
+ spec: z.ZodOptional<z.ZodString>;
1537
+ schema: z.ZodOptional<z.ZodString>;
1538
+ id: z.ZodOptional<z.ZodString>;
1539
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ version: string;
1542
+ spec?: string | undefined;
1543
+ schema?: string | undefined;
1544
+ id?: string | undefined;
1545
+ config?: Record<string, unknown> | undefined;
1546
+ }, {
1547
+ version: string;
1548
+ spec?: string | undefined;
1549
+ schema?: string | undefined;
1550
+ id?: string | undefined;
1551
+ config?: Record<string, unknown> | undefined;
1552
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ payment_handlers: Record<string, ({
1555
+ version: string;
1556
+ spec?: string | undefined;
1557
+ schema?: string | undefined;
1558
+ id?: string | undefined;
1559
+ config?: Record<string, unknown> | undefined;
1560
+ } & Record<string, unknown>)[]>;
1561
+ services?: Record<string, ({
1562
+ version: string;
1563
+ spec?: string | undefined;
1564
+ schema?: string | undefined;
1565
+ id?: string | undefined;
1566
+ config?: Record<string, unknown> | undefined;
1567
+ } & {
1568
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1569
+ endpoint?: string | undefined;
1570
+ } & ({
1571
+ transport?: "rest" | undefined;
1572
+ } | {
1573
+ transport?: "mcp" | undefined;
1574
+ } | {
1575
+ transport?: "a2a" | undefined;
1576
+ } | {
1577
+ config?: {
1578
+ delegate?: string[] | undefined;
1579
+ } | undefined;
1580
+ transport?: "embedded" | undefined;
1581
+ }))[]> | undefined;
1582
+ capabilities?: Record<string, ({
1583
+ version: string;
1584
+ spec?: string | undefined;
1585
+ schema?: string | undefined;
1586
+ id?: string | undefined;
1587
+ config?: Record<string, unknown> | undefined;
1588
+ } & {
1589
+ extends?: string | undefined;
1590
+ })[]> | undefined;
1591
+ }, {
1592
+ payment_handlers: Record<string, ({
1593
+ version: string;
1594
+ spec?: string | undefined;
1595
+ schema?: string | undefined;
1596
+ id?: string | undefined;
1597
+ config?: Record<string, unknown> | undefined;
1598
+ } & Record<string, unknown>)[]>;
1599
+ services?: Record<string, ({
1600
+ version: string;
1601
+ spec?: string | undefined;
1602
+ schema?: string | undefined;
1603
+ id?: string | undefined;
1604
+ config?: Record<string, unknown> | undefined;
1605
+ } & {
1606
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1607
+ endpoint?: string | undefined;
1608
+ } & ({
1609
+ transport?: "rest" | undefined;
1610
+ } | {
1611
+ transport?: "mcp" | undefined;
1612
+ } | {
1613
+ transport?: "a2a" | undefined;
1614
+ } | {
1615
+ config?: {
1616
+ delegate?: string[] | undefined;
1617
+ } | undefined;
1618
+ transport?: "embedded" | undefined;
1619
+ }))[]> | undefined;
1620
+ capabilities?: Record<string, ({
1621
+ version: string;
1622
+ spec?: string | undefined;
1623
+ schema?: string | undefined;
1624
+ id?: string | undefined;
1625
+ config?: Record<string, unknown> | undefined;
1626
+ } & {
1627
+ extends?: string | undefined;
1628
+ })[]> | undefined;
1629
+ }>>;
1630
+ id: z.ZodString;
1631
+ line_items: z.ZodArray<z.ZodObject<{
1632
+ id: z.ZodString;
1633
+ item: z.ZodObject<{
1634
+ id: z.ZodString;
1635
+ title: z.ZodString;
1636
+ price: z.ZodNumber;
1637
+ image_url: z.ZodOptional<z.ZodString>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ id: string;
1640
+ title: string;
1641
+ price: number;
1642
+ image_url?: string | undefined;
1643
+ }, {
1644
+ id: string;
1645
+ title: string;
1646
+ price: number;
1647
+ image_url?: string | undefined;
1648
+ }>;
1649
+ quantity: z.ZodNumber;
1650
+ totals: z.ZodArray<z.ZodObject<{
1651
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1652
+ display_text: z.ZodOptional<z.ZodString>;
1653
+ amount: z.ZodNumber;
1654
+ }, "strip", z.ZodTypeAny, {
1655
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1656
+ amount: number;
1657
+ display_text?: string | undefined;
1658
+ }, {
1659
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1660
+ amount: number;
1661
+ display_text?: string | undefined;
1662
+ }>, "many">;
1663
+ parent_id: z.ZodOptional<z.ZodString>;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ id: string;
1666
+ item: {
1667
+ id: string;
1668
+ title: string;
1669
+ price: number;
1670
+ image_url?: string | undefined;
1671
+ };
1672
+ quantity: number;
1673
+ totals: {
1674
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1675
+ amount: number;
1676
+ display_text?: string | undefined;
1677
+ }[];
1678
+ parent_id?: string | undefined;
1679
+ }, {
1680
+ id: string;
1681
+ item: {
1682
+ id: string;
1683
+ title: string;
1684
+ price: number;
1685
+ image_url?: string | undefined;
1686
+ };
1687
+ quantity: number;
1688
+ totals: {
1689
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1690
+ amount: number;
1691
+ display_text?: string | undefined;
1692
+ }[];
1693
+ parent_id?: string | undefined;
1694
+ }>, "many">;
1695
+ buyer: z.ZodOptional<z.ZodObject<{
1696
+ first_name: z.ZodOptional<z.ZodString>;
1697
+ last_name: z.ZodOptional<z.ZodString>;
1698
+ email: z.ZodOptional<z.ZodString>;
1699
+ phone_number: z.ZodOptional<z.ZodString>;
1700
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1701
+ first_name: z.ZodOptional<z.ZodString>;
1702
+ last_name: z.ZodOptional<z.ZodString>;
1703
+ email: z.ZodOptional<z.ZodString>;
1704
+ phone_number: z.ZodOptional<z.ZodString>;
1705
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1706
+ first_name: z.ZodOptional<z.ZodString>;
1707
+ last_name: z.ZodOptional<z.ZodString>;
1708
+ email: z.ZodOptional<z.ZodString>;
1709
+ phone_number: z.ZodOptional<z.ZodString>;
1710
+ }, z.ZodTypeAny, "passthrough">>>;
1711
+ context: z.ZodOptional<z.ZodObject<{
1712
+ address_country: z.ZodOptional<z.ZodString>;
1713
+ address_region: z.ZodOptional<z.ZodString>;
1714
+ postal_code: z.ZodOptional<z.ZodString>;
1715
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1716
+ address_country: z.ZodOptional<z.ZodString>;
1717
+ address_region: z.ZodOptional<z.ZodString>;
1718
+ postal_code: z.ZodOptional<z.ZodString>;
1719
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1720
+ address_country: z.ZodOptional<z.ZodString>;
1721
+ address_region: z.ZodOptional<z.ZodString>;
1722
+ postal_code: z.ZodOptional<z.ZodString>;
1723
+ }, z.ZodTypeAny, "passthrough">>>;
1724
+ status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
1725
+ currency: z.ZodString;
1726
+ totals: z.ZodArray<z.ZodObject<{
1727
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1728
+ display_text: z.ZodOptional<z.ZodString>;
1729
+ amount: z.ZodNumber;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1732
+ amount: number;
1733
+ display_text?: string | undefined;
1734
+ }, {
1735
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1736
+ amount: number;
1737
+ display_text?: string | undefined;
1738
+ }>, "many">;
1739
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
1740
+ links: z.ZodArray<z.ZodObject<{
1741
+ type: z.ZodString;
1742
+ url: z.ZodString;
1743
+ title: z.ZodOptional<z.ZodString>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ type: string;
1746
+ url: string;
1747
+ title?: string | undefined;
1748
+ }, {
1749
+ type: string;
1750
+ url: string;
1751
+ title?: string | undefined;
1752
+ }>, "many">;
1753
+ expires_at: z.ZodOptional<z.ZodString>;
1754
+ continue_url: z.ZodOptional<z.ZodString>;
1755
+ payment: z.ZodOptional<z.ZodObject<{
1756
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ handler_id: z.ZodString;
1759
+ type: z.ZodString;
1760
+ billing_address: z.ZodOptional<z.ZodObject<{
1761
+ extended_address: z.ZodOptional<z.ZodString>;
1762
+ street_address: z.ZodOptional<z.ZodString>;
1763
+ address_locality: z.ZodOptional<z.ZodString>;
1764
+ address_region: z.ZodOptional<z.ZodString>;
1765
+ address_country: z.ZodOptional<z.ZodString>;
1766
+ postal_code: z.ZodOptional<z.ZodString>;
1767
+ first_name: z.ZodOptional<z.ZodString>;
1768
+ last_name: z.ZodOptional<z.ZodString>;
1769
+ phone_number: z.ZodOptional<z.ZodString>;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ first_name?: string | undefined;
1772
+ last_name?: string | undefined;
1773
+ phone_number?: string | undefined;
1774
+ address_country?: string | undefined;
1775
+ address_region?: string | undefined;
1776
+ postal_code?: string | undefined;
1777
+ extended_address?: string | undefined;
1778
+ street_address?: string | undefined;
1779
+ address_locality?: string | undefined;
1780
+ }, {
1781
+ first_name?: string | undefined;
1782
+ last_name?: string | undefined;
1783
+ phone_number?: string | undefined;
1784
+ address_country?: string | undefined;
1785
+ address_region?: string | undefined;
1786
+ postal_code?: string | undefined;
1787
+ extended_address?: string | undefined;
1788
+ street_address?: string | undefined;
1789
+ address_locality?: string | undefined;
1790
+ }>>;
1791
+ credential: z.ZodOptional<z.ZodObject<{
1792
+ type: z.ZodString;
1793
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1794
+ type: z.ZodString;
1795
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1796
+ type: z.ZodString;
1797
+ }, z.ZodTypeAny, "passthrough">>>;
1798
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1799
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1800
+ id: z.ZodString;
1801
+ handler_id: z.ZodString;
1802
+ type: z.ZodString;
1803
+ billing_address: z.ZodOptional<z.ZodObject<{
1804
+ extended_address: z.ZodOptional<z.ZodString>;
1805
+ street_address: z.ZodOptional<z.ZodString>;
1806
+ address_locality: z.ZodOptional<z.ZodString>;
1807
+ address_region: z.ZodOptional<z.ZodString>;
1808
+ address_country: z.ZodOptional<z.ZodString>;
1809
+ postal_code: z.ZodOptional<z.ZodString>;
1810
+ first_name: z.ZodOptional<z.ZodString>;
1811
+ last_name: z.ZodOptional<z.ZodString>;
1812
+ phone_number: z.ZodOptional<z.ZodString>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ first_name?: string | undefined;
1815
+ last_name?: string | undefined;
1816
+ phone_number?: string | undefined;
1817
+ address_country?: string | undefined;
1818
+ address_region?: string | undefined;
1819
+ postal_code?: string | undefined;
1820
+ extended_address?: string | undefined;
1821
+ street_address?: string | undefined;
1822
+ address_locality?: string | undefined;
1823
+ }, {
1824
+ first_name?: string | undefined;
1825
+ last_name?: string | undefined;
1826
+ phone_number?: string | undefined;
1827
+ address_country?: string | undefined;
1828
+ address_region?: string | undefined;
1829
+ postal_code?: string | undefined;
1830
+ extended_address?: string | undefined;
1831
+ street_address?: string | undefined;
1832
+ address_locality?: string | undefined;
1833
+ }>>;
1834
+ credential: z.ZodOptional<z.ZodObject<{
1835
+ type: z.ZodString;
1836
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1837
+ type: z.ZodString;
1838
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1839
+ type: z.ZodString;
1840
+ }, z.ZodTypeAny, "passthrough">>>;
1841
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1842
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1843
+ id: z.ZodString;
1844
+ handler_id: z.ZodString;
1845
+ type: z.ZodString;
1846
+ billing_address: z.ZodOptional<z.ZodObject<{
1847
+ extended_address: z.ZodOptional<z.ZodString>;
1848
+ street_address: z.ZodOptional<z.ZodString>;
1849
+ address_locality: z.ZodOptional<z.ZodString>;
1850
+ address_region: z.ZodOptional<z.ZodString>;
1851
+ address_country: z.ZodOptional<z.ZodString>;
1852
+ postal_code: z.ZodOptional<z.ZodString>;
1853
+ first_name: z.ZodOptional<z.ZodString>;
1854
+ last_name: z.ZodOptional<z.ZodString>;
1855
+ phone_number: z.ZodOptional<z.ZodString>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ first_name?: string | undefined;
1858
+ last_name?: string | undefined;
1859
+ phone_number?: string | undefined;
1860
+ address_country?: string | undefined;
1861
+ address_region?: string | undefined;
1862
+ postal_code?: string | undefined;
1863
+ extended_address?: string | undefined;
1864
+ street_address?: string | undefined;
1865
+ address_locality?: string | undefined;
1866
+ }, {
1867
+ first_name?: string | undefined;
1868
+ last_name?: string | undefined;
1869
+ phone_number?: string | undefined;
1870
+ address_country?: string | undefined;
1871
+ address_region?: string | undefined;
1872
+ postal_code?: string | undefined;
1873
+ extended_address?: string | undefined;
1874
+ street_address?: string | undefined;
1875
+ address_locality?: string | undefined;
1876
+ }>>;
1877
+ credential: z.ZodOptional<z.ZodObject<{
1878
+ type: z.ZodString;
1879
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1880
+ type: z.ZodString;
1881
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1882
+ type: z.ZodString;
1883
+ }, z.ZodTypeAny, "passthrough">>>;
1884
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1885
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1886
+ selected: z.ZodOptional<z.ZodBoolean>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ selected?: boolean | undefined;
1889
+ }, {
1890
+ selected?: boolean | undefined;
1891
+ }>>, "many">>;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ instruments?: ({
1894
+ id: string;
1895
+ type: string;
1896
+ handler_id: string;
1897
+ billing_address?: {
1898
+ first_name?: string | undefined;
1899
+ last_name?: string | undefined;
1900
+ phone_number?: string | undefined;
1901
+ address_country?: string | undefined;
1902
+ address_region?: string | undefined;
1903
+ postal_code?: string | undefined;
1904
+ extended_address?: string | undefined;
1905
+ street_address?: string | undefined;
1906
+ address_locality?: string | undefined;
1907
+ } | undefined;
1908
+ credential?: z.objectOutputType<{
1909
+ type: z.ZodString;
1910
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1911
+ display?: Record<string, unknown> | undefined;
1912
+ } & {
1913
+ [k: string]: unknown;
1914
+ } & {
1915
+ selected?: boolean | undefined;
1916
+ })[] | undefined;
1917
+ }, {
1918
+ instruments?: ({
1919
+ id: string;
1920
+ type: string;
1921
+ handler_id: string;
1922
+ billing_address?: {
1923
+ first_name?: string | undefined;
1924
+ last_name?: string | undefined;
1925
+ phone_number?: string | undefined;
1926
+ address_country?: string | undefined;
1927
+ address_region?: string | undefined;
1928
+ postal_code?: string | undefined;
1929
+ extended_address?: string | undefined;
1930
+ street_address?: string | undefined;
1931
+ address_locality?: string | undefined;
1932
+ } | undefined;
1933
+ credential?: z.objectInputType<{
1934
+ type: z.ZodString;
1935
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1936
+ display?: Record<string, unknown> | undefined;
1937
+ } & {
1938
+ [k: string]: unknown;
1939
+ } & {
1940
+ selected?: boolean | undefined;
1941
+ })[] | undefined;
1942
+ }>>;
1943
+ order: z.ZodOptional<z.ZodObject<{
1944
+ id: z.ZodString;
1945
+ permalink_url: z.ZodString;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ id: string;
1948
+ permalink_url: string;
1949
+ }, {
1950
+ id: string;
1951
+ permalink_url: string;
1952
+ }>>;
1953
+ }, z.ZodTypeAny, "passthrough">>;
1954
+ declare const UCPProfileSchema: z.ZodObject<{
1955
+ ucp: z.ZodObject<{
1956
+ version: z.ZodString;
1957
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1958
+ version: z.ZodString;
1959
+ spec: z.ZodOptional<z.ZodString>;
1960
+ schema: z.ZodOptional<z.ZodString>;
1961
+ id: z.ZodOptional<z.ZodString>;
1962
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ version: string;
1965
+ spec?: string | undefined;
1966
+ schema?: string | undefined;
1967
+ id?: string | undefined;
1968
+ config?: Record<string, unknown> | undefined;
1969
+ }, {
1970
+ version: string;
1971
+ spec?: string | undefined;
1972
+ schema?: string | undefined;
1973
+ id?: string | undefined;
1974
+ config?: Record<string, unknown> | undefined;
1975
+ }>, z.ZodObject<{
1976
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
1977
+ endpoint: z.ZodOptional<z.ZodString>;
1978
+ }, "strip", z.ZodTypeAny, {
1979
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1980
+ endpoint?: string | undefined;
1981
+ }, {
1982
+ transport: "rest" | "mcp" | "a2a" | "embedded";
1983
+ endpoint?: string | undefined;
1984
+ }>>, "many">>>;
1985
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1986
+ version: z.ZodString;
1987
+ spec: z.ZodOptional<z.ZodString>;
1988
+ schema: z.ZodOptional<z.ZodString>;
1989
+ id: z.ZodOptional<z.ZodString>;
1990
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ version: string;
1993
+ spec?: string | undefined;
1994
+ schema?: string | undefined;
1995
+ id?: string | undefined;
1996
+ config?: Record<string, unknown> | undefined;
1997
+ }, {
1998
+ version: string;
1999
+ spec?: string | undefined;
2000
+ schema?: string | undefined;
2001
+ id?: string | undefined;
2002
+ config?: Record<string, unknown> | undefined;
2003
+ }>, z.ZodObject<{
2004
+ extends: z.ZodOptional<z.ZodString>;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ extends?: string | undefined;
2007
+ }, {
2008
+ extends?: string | undefined;
2009
+ }>>, "many">>>;
2010
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2011
+ version: z.ZodString;
2012
+ spec: z.ZodOptional<z.ZodString>;
2013
+ schema: z.ZodOptional<z.ZodString>;
2014
+ id: z.ZodOptional<z.ZodString>;
2015
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ version: string;
2018
+ spec?: string | undefined;
2019
+ schema?: string | undefined;
2020
+ id?: string | undefined;
2021
+ config?: Record<string, unknown> | undefined;
2022
+ }, {
2023
+ version: string;
2024
+ spec?: string | undefined;
2025
+ schema?: string | undefined;
2026
+ id?: string | undefined;
2027
+ config?: Record<string, unknown> | undefined;
2028
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ version: string;
2031
+ services?: Record<string, ({
2032
+ version: string;
2033
+ spec?: string | undefined;
2034
+ schema?: string | undefined;
2035
+ id?: string | undefined;
2036
+ config?: Record<string, unknown> | undefined;
2037
+ } & {
2038
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2039
+ endpoint?: string | undefined;
2040
+ })[]> | undefined;
2041
+ capabilities?: Record<string, ({
2042
+ version: string;
2043
+ spec?: string | undefined;
2044
+ schema?: string | undefined;
2045
+ id?: string | undefined;
2046
+ config?: Record<string, unknown> | undefined;
2047
+ } & {
2048
+ extends?: string | undefined;
2049
+ })[]> | undefined;
2050
+ payment_handlers?: Record<string, ({
2051
+ version: string;
2052
+ spec?: string | undefined;
2053
+ schema?: string | undefined;
2054
+ id?: string | undefined;
2055
+ config?: Record<string, unknown> | undefined;
2056
+ } & Record<string, unknown>)[]> | undefined;
2057
+ }, {
2058
+ version: string;
2059
+ services?: Record<string, ({
2060
+ version: string;
2061
+ spec?: string | undefined;
2062
+ schema?: string | undefined;
2063
+ id?: string | undefined;
2064
+ config?: Record<string, unknown> | undefined;
2065
+ } & {
2066
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2067
+ endpoint?: string | undefined;
2068
+ })[]> | undefined;
2069
+ capabilities?: Record<string, ({
2070
+ version: string;
2071
+ spec?: string | undefined;
2072
+ schema?: string | undefined;
2073
+ id?: string | undefined;
2074
+ config?: Record<string, unknown> | undefined;
2075
+ } & {
2076
+ extends?: string | undefined;
2077
+ })[]> | undefined;
2078
+ payment_handlers?: Record<string, ({
2079
+ version: string;
2080
+ spec?: string | undefined;
2081
+ schema?: string | undefined;
2082
+ id?: string | undefined;
2083
+ config?: Record<string, unknown> | undefined;
2084
+ } & Record<string, unknown>)[]> | undefined;
2085
+ }>;
2086
+ signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2087
+ kid: z.ZodString;
2088
+ kty: z.ZodString;
2089
+ crv: z.ZodOptional<z.ZodString>;
2090
+ x: z.ZodOptional<z.ZodString>;
2091
+ y: z.ZodOptional<z.ZodString>;
2092
+ n: z.ZodOptional<z.ZodString>;
2093
+ e: z.ZodOptional<z.ZodString>;
2094
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2095
+ alg: z.ZodOptional<z.ZodString>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ kid: string;
2098
+ kty: string;
2099
+ crv?: string | undefined;
2100
+ x?: string | undefined;
2101
+ y?: string | undefined;
2102
+ n?: string | undefined;
2103
+ e?: string | undefined;
2104
+ use?: "sig" | "enc" | undefined;
2105
+ alg?: string | undefined;
2106
+ }, {
2107
+ kid: string;
2108
+ kty: string;
2109
+ crv?: string | undefined;
2110
+ x?: string | undefined;
2111
+ y?: string | undefined;
2112
+ n?: string | undefined;
2113
+ e?: string | undefined;
2114
+ use?: "sig" | "enc" | undefined;
2115
+ alg?: string | undefined;
2116
+ }>, "many">>;
2117
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2118
+ ucp: z.ZodObject<{
2119
+ version: z.ZodString;
2120
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2121
+ version: z.ZodString;
2122
+ spec: z.ZodOptional<z.ZodString>;
2123
+ schema: z.ZodOptional<z.ZodString>;
2124
+ id: z.ZodOptional<z.ZodString>;
2125
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ version: string;
2128
+ spec?: string | undefined;
2129
+ schema?: string | undefined;
2130
+ id?: string | undefined;
2131
+ config?: Record<string, unknown> | undefined;
2132
+ }, {
2133
+ version: string;
2134
+ spec?: string | undefined;
2135
+ schema?: string | undefined;
2136
+ id?: string | undefined;
2137
+ config?: Record<string, unknown> | undefined;
2138
+ }>, z.ZodObject<{
2139
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
2140
+ endpoint: z.ZodOptional<z.ZodString>;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2143
+ endpoint?: string | undefined;
2144
+ }, {
2145
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2146
+ endpoint?: string | undefined;
2147
+ }>>, "many">>>;
2148
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2149
+ version: z.ZodString;
2150
+ spec: z.ZodOptional<z.ZodString>;
2151
+ schema: z.ZodOptional<z.ZodString>;
2152
+ id: z.ZodOptional<z.ZodString>;
2153
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ version: string;
2156
+ spec?: string | undefined;
2157
+ schema?: string | undefined;
2158
+ id?: string | undefined;
2159
+ config?: Record<string, unknown> | undefined;
2160
+ }, {
2161
+ version: string;
2162
+ spec?: string | undefined;
2163
+ schema?: string | undefined;
2164
+ id?: string | undefined;
2165
+ config?: Record<string, unknown> | undefined;
2166
+ }>, z.ZodObject<{
2167
+ extends: z.ZodOptional<z.ZodString>;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ extends?: string | undefined;
2170
+ }, {
2171
+ extends?: string | undefined;
2172
+ }>>, "many">>>;
2173
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2174
+ version: z.ZodString;
2175
+ spec: z.ZodOptional<z.ZodString>;
2176
+ schema: z.ZodOptional<z.ZodString>;
2177
+ id: z.ZodOptional<z.ZodString>;
2178
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ version: string;
2181
+ spec?: string | undefined;
2182
+ schema?: string | undefined;
2183
+ id?: string | undefined;
2184
+ config?: Record<string, unknown> | undefined;
2185
+ }, {
2186
+ version: string;
2187
+ spec?: string | undefined;
2188
+ schema?: string | undefined;
2189
+ id?: string | undefined;
2190
+ config?: Record<string, unknown> | undefined;
2191
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ version: string;
2194
+ services?: Record<string, ({
2195
+ version: string;
2196
+ spec?: string | undefined;
2197
+ schema?: string | undefined;
2198
+ id?: string | undefined;
2199
+ config?: Record<string, unknown> | undefined;
2200
+ } & {
2201
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2202
+ endpoint?: string | undefined;
2203
+ })[]> | undefined;
2204
+ capabilities?: Record<string, ({
2205
+ version: string;
2206
+ spec?: string | undefined;
2207
+ schema?: string | undefined;
2208
+ id?: string | undefined;
2209
+ config?: Record<string, unknown> | undefined;
2210
+ } & {
2211
+ extends?: string | undefined;
2212
+ })[]> | undefined;
2213
+ payment_handlers?: Record<string, ({
2214
+ version: string;
2215
+ spec?: string | undefined;
2216
+ schema?: string | undefined;
2217
+ id?: string | undefined;
2218
+ config?: Record<string, unknown> | undefined;
2219
+ } & Record<string, unknown>)[]> | undefined;
2220
+ }, {
2221
+ version: string;
2222
+ services?: Record<string, ({
2223
+ version: string;
2224
+ spec?: string | undefined;
2225
+ schema?: string | undefined;
2226
+ id?: string | undefined;
2227
+ config?: Record<string, unknown> | undefined;
2228
+ } & {
2229
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2230
+ endpoint?: string | undefined;
2231
+ })[]> | undefined;
2232
+ capabilities?: Record<string, ({
2233
+ version: string;
2234
+ spec?: string | undefined;
2235
+ schema?: string | undefined;
2236
+ id?: string | undefined;
2237
+ config?: Record<string, unknown> | undefined;
2238
+ } & {
2239
+ extends?: string | undefined;
2240
+ })[]> | undefined;
2241
+ payment_handlers?: Record<string, ({
2242
+ version: string;
2243
+ spec?: string | undefined;
2244
+ schema?: string | undefined;
2245
+ id?: string | undefined;
2246
+ config?: Record<string, unknown> | undefined;
2247
+ } & Record<string, unknown>)[]> | undefined;
2248
+ }>;
2249
+ signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
+ kid: z.ZodString;
2251
+ kty: z.ZodString;
2252
+ crv: z.ZodOptional<z.ZodString>;
2253
+ x: z.ZodOptional<z.ZodString>;
2254
+ y: z.ZodOptional<z.ZodString>;
2255
+ n: z.ZodOptional<z.ZodString>;
2256
+ e: z.ZodOptional<z.ZodString>;
2257
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2258
+ alg: z.ZodOptional<z.ZodString>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ kid: string;
2261
+ kty: string;
2262
+ crv?: string | undefined;
2263
+ x?: string | undefined;
2264
+ y?: string | undefined;
2265
+ n?: string | undefined;
2266
+ e?: string | undefined;
2267
+ use?: "sig" | "enc" | undefined;
2268
+ alg?: string | undefined;
2269
+ }, {
2270
+ kid: string;
2271
+ kty: string;
2272
+ crv?: string | undefined;
2273
+ x?: string | undefined;
2274
+ y?: string | undefined;
2275
+ n?: string | undefined;
2276
+ e?: string | undefined;
2277
+ use?: "sig" | "enc" | undefined;
2278
+ alg?: string | undefined;
2279
+ }>, "many">>;
2280
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2281
+ ucp: z.ZodObject<{
2282
+ version: z.ZodString;
2283
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2284
+ version: z.ZodString;
2285
+ spec: z.ZodOptional<z.ZodString>;
2286
+ schema: z.ZodOptional<z.ZodString>;
2287
+ id: z.ZodOptional<z.ZodString>;
2288
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2289
+ }, "strip", z.ZodTypeAny, {
2290
+ version: string;
2291
+ spec?: string | undefined;
2292
+ schema?: string | undefined;
2293
+ id?: string | undefined;
2294
+ config?: Record<string, unknown> | undefined;
2295
+ }, {
2296
+ version: string;
2297
+ spec?: string | undefined;
2298
+ schema?: string | undefined;
2299
+ id?: string | undefined;
2300
+ config?: Record<string, unknown> | undefined;
2301
+ }>, z.ZodObject<{
2302
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
2303
+ endpoint: z.ZodOptional<z.ZodString>;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2306
+ endpoint?: string | undefined;
2307
+ }, {
2308
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2309
+ endpoint?: string | undefined;
2310
+ }>>, "many">>>;
2311
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2312
+ version: z.ZodString;
2313
+ spec: z.ZodOptional<z.ZodString>;
2314
+ schema: z.ZodOptional<z.ZodString>;
2315
+ id: z.ZodOptional<z.ZodString>;
2316
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ version: string;
2319
+ spec?: string | undefined;
2320
+ schema?: string | undefined;
2321
+ id?: string | undefined;
2322
+ config?: Record<string, unknown> | undefined;
2323
+ }, {
2324
+ version: string;
2325
+ spec?: string | undefined;
2326
+ schema?: string | undefined;
2327
+ id?: string | undefined;
2328
+ config?: Record<string, unknown> | undefined;
2329
+ }>, z.ZodObject<{
2330
+ extends: z.ZodOptional<z.ZodString>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ extends?: string | undefined;
2333
+ }, {
2334
+ extends?: string | undefined;
2335
+ }>>, "many">>>;
2336
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2337
+ version: z.ZodString;
2338
+ spec: z.ZodOptional<z.ZodString>;
2339
+ schema: z.ZodOptional<z.ZodString>;
2340
+ id: z.ZodOptional<z.ZodString>;
2341
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2342
+ }, "strip", z.ZodTypeAny, {
2343
+ version: string;
2344
+ spec?: string | undefined;
2345
+ schema?: string | undefined;
2346
+ id?: string | undefined;
2347
+ config?: Record<string, unknown> | undefined;
2348
+ }, {
2349
+ version: string;
2350
+ spec?: string | undefined;
2351
+ schema?: string | undefined;
2352
+ id?: string | undefined;
2353
+ config?: Record<string, unknown> | undefined;
2354
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ version: string;
2357
+ services?: Record<string, ({
2358
+ version: string;
2359
+ spec?: string | undefined;
2360
+ schema?: string | undefined;
2361
+ id?: string | undefined;
2362
+ config?: Record<string, unknown> | undefined;
2363
+ } & {
2364
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2365
+ endpoint?: string | undefined;
2366
+ })[]> | undefined;
2367
+ capabilities?: Record<string, ({
2368
+ version: string;
2369
+ spec?: string | undefined;
2370
+ schema?: string | undefined;
2371
+ id?: string | undefined;
2372
+ config?: Record<string, unknown> | undefined;
2373
+ } & {
2374
+ extends?: string | undefined;
2375
+ })[]> | undefined;
2376
+ payment_handlers?: Record<string, ({
2377
+ version: string;
2378
+ spec?: string | undefined;
2379
+ schema?: string | undefined;
2380
+ id?: string | undefined;
2381
+ config?: Record<string, unknown> | undefined;
2382
+ } & Record<string, unknown>)[]> | undefined;
2383
+ }, {
2384
+ version: string;
2385
+ services?: Record<string, ({
2386
+ version: string;
2387
+ spec?: string | undefined;
2388
+ schema?: string | undefined;
2389
+ id?: string | undefined;
2390
+ config?: Record<string, unknown> | undefined;
2391
+ } & {
2392
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2393
+ endpoint?: string | undefined;
2394
+ })[]> | undefined;
2395
+ capabilities?: Record<string, ({
2396
+ version: string;
2397
+ spec?: string | undefined;
2398
+ schema?: string | undefined;
2399
+ id?: string | undefined;
2400
+ config?: Record<string, unknown> | undefined;
2401
+ } & {
2402
+ extends?: string | undefined;
2403
+ })[]> | undefined;
2404
+ payment_handlers?: Record<string, ({
2405
+ version: string;
2406
+ spec?: string | undefined;
2407
+ schema?: string | undefined;
2408
+ id?: string | undefined;
2409
+ config?: Record<string, unknown> | undefined;
2410
+ } & Record<string, unknown>)[]> | undefined;
2411
+ }>;
2412
+ signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2413
+ kid: z.ZodString;
2414
+ kty: z.ZodString;
2415
+ crv: z.ZodOptional<z.ZodString>;
2416
+ x: z.ZodOptional<z.ZodString>;
2417
+ y: z.ZodOptional<z.ZodString>;
2418
+ n: z.ZodOptional<z.ZodString>;
2419
+ e: z.ZodOptional<z.ZodString>;
2420
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2421
+ alg: z.ZodOptional<z.ZodString>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ kid: string;
2424
+ kty: string;
2425
+ crv?: string | undefined;
2426
+ x?: string | undefined;
2427
+ y?: string | undefined;
2428
+ n?: string | undefined;
2429
+ e?: string | undefined;
2430
+ use?: "sig" | "enc" | undefined;
2431
+ alg?: string | undefined;
2432
+ }, {
2433
+ kid: string;
2434
+ kty: string;
2435
+ crv?: string | undefined;
2436
+ x?: string | undefined;
2437
+ y?: string | undefined;
2438
+ n?: string | undefined;
2439
+ e?: string | undefined;
2440
+ use?: "sig" | "enc" | undefined;
2441
+ alg?: string | undefined;
2442
+ }>, "many">>;
2443
+ }, z.ZodTypeAny, "passthrough">>;
2444
+ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2445
+ line_items: z.ZodArray<z.ZodObject<{
2446
+ id: z.ZodString;
2447
+ item: z.ZodObject<{
2448
+ id: z.ZodString;
2449
+ title: z.ZodString;
2450
+ price: z.ZodNumber;
2451
+ image_url: z.ZodOptional<z.ZodString>;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ id: string;
2454
+ title: string;
2455
+ price: number;
2456
+ image_url?: string | undefined;
2457
+ }, {
2458
+ id: string;
2459
+ title: string;
2460
+ price: number;
2461
+ image_url?: string | undefined;
2462
+ }>;
2463
+ quantity: z.ZodNumber;
2464
+ totals: z.ZodArray<z.ZodObject<{
2465
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
2466
+ display_text: z.ZodOptional<z.ZodString>;
2467
+ amount: z.ZodNumber;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2470
+ amount: number;
2471
+ display_text?: string | undefined;
2472
+ }, {
2473
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2474
+ amount: number;
2475
+ display_text?: string | undefined;
2476
+ }>, "many">;
2477
+ parent_id: z.ZodOptional<z.ZodString>;
2478
+ }, "strip", z.ZodTypeAny, {
2479
+ id: string;
2480
+ item: {
2481
+ id: string;
2482
+ title: string;
2483
+ price: number;
2484
+ image_url?: string | undefined;
2485
+ };
2486
+ quantity: number;
2487
+ totals: {
2488
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2489
+ amount: number;
2490
+ display_text?: string | undefined;
2491
+ }[];
2492
+ parent_id?: string | undefined;
2493
+ }, {
2494
+ id: string;
2495
+ item: {
2496
+ id: string;
2497
+ title: string;
2498
+ price: number;
2499
+ image_url?: string | undefined;
2500
+ };
2501
+ quantity: number;
2502
+ totals: {
2503
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2504
+ amount: number;
2505
+ display_text?: string | undefined;
2506
+ }[];
2507
+ parent_id?: string | undefined;
2508
+ }>, "many">;
2509
+ buyer: z.ZodOptional<z.ZodObject<{
2510
+ first_name: z.ZodOptional<z.ZodString>;
2511
+ last_name: z.ZodOptional<z.ZodString>;
2512
+ email: z.ZodOptional<z.ZodString>;
2513
+ phone_number: z.ZodOptional<z.ZodString>;
2514
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2515
+ first_name: z.ZodOptional<z.ZodString>;
2516
+ last_name: z.ZodOptional<z.ZodString>;
2517
+ email: z.ZodOptional<z.ZodString>;
2518
+ phone_number: z.ZodOptional<z.ZodString>;
2519
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2520
+ first_name: z.ZodOptional<z.ZodString>;
2521
+ last_name: z.ZodOptional<z.ZodString>;
2522
+ email: z.ZodOptional<z.ZodString>;
2523
+ phone_number: z.ZodOptional<z.ZodString>;
2524
+ }, z.ZodTypeAny, "passthrough">>>;
2525
+ context: z.ZodOptional<z.ZodObject<{
2526
+ address_country: z.ZodOptional<z.ZodString>;
2527
+ address_region: z.ZodOptional<z.ZodString>;
2528
+ postal_code: z.ZodOptional<z.ZodString>;
2529
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2530
+ address_country: z.ZodOptional<z.ZodString>;
2531
+ address_region: z.ZodOptional<z.ZodString>;
2532
+ postal_code: z.ZodOptional<z.ZodString>;
2533
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2534
+ address_country: z.ZodOptional<z.ZodString>;
2535
+ address_region: z.ZodOptional<z.ZodString>;
2536
+ postal_code: z.ZodOptional<z.ZodString>;
2537
+ }, z.ZodTypeAny, "passthrough">>>;
2538
+ payment: z.ZodOptional<z.ZodObject<{
2539
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2540
+ id: z.ZodString;
2541
+ handler_id: z.ZodString;
2542
+ type: z.ZodString;
2543
+ billing_address: z.ZodOptional<z.ZodObject<{
2544
+ extended_address: z.ZodOptional<z.ZodString>;
2545
+ street_address: z.ZodOptional<z.ZodString>;
2546
+ address_locality: z.ZodOptional<z.ZodString>;
2547
+ address_region: z.ZodOptional<z.ZodString>;
2548
+ address_country: z.ZodOptional<z.ZodString>;
2549
+ postal_code: z.ZodOptional<z.ZodString>;
2550
+ first_name: z.ZodOptional<z.ZodString>;
2551
+ last_name: z.ZodOptional<z.ZodString>;
2552
+ phone_number: z.ZodOptional<z.ZodString>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ first_name?: string | undefined;
2555
+ last_name?: string | undefined;
2556
+ phone_number?: string | undefined;
2557
+ address_country?: string | undefined;
2558
+ address_region?: string | undefined;
2559
+ postal_code?: string | undefined;
2560
+ extended_address?: string | undefined;
2561
+ street_address?: string | undefined;
2562
+ address_locality?: string | undefined;
2563
+ }, {
2564
+ first_name?: string | undefined;
2565
+ last_name?: string | undefined;
2566
+ phone_number?: string | undefined;
2567
+ address_country?: string | undefined;
2568
+ address_region?: string | undefined;
2569
+ postal_code?: string | undefined;
2570
+ extended_address?: string | undefined;
2571
+ street_address?: string | undefined;
2572
+ address_locality?: string | undefined;
2573
+ }>>;
2574
+ credential: z.ZodOptional<z.ZodObject<{
2575
+ type: z.ZodString;
2576
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2577
+ type: z.ZodString;
2578
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2579
+ type: z.ZodString;
2580
+ }, z.ZodTypeAny, "passthrough">>>;
2581
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2582
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2583
+ id: z.ZodString;
2584
+ handler_id: z.ZodString;
2585
+ type: z.ZodString;
2586
+ billing_address: z.ZodOptional<z.ZodObject<{
2587
+ extended_address: z.ZodOptional<z.ZodString>;
2588
+ street_address: z.ZodOptional<z.ZodString>;
2589
+ address_locality: z.ZodOptional<z.ZodString>;
2590
+ address_region: z.ZodOptional<z.ZodString>;
2591
+ address_country: z.ZodOptional<z.ZodString>;
2592
+ postal_code: z.ZodOptional<z.ZodString>;
2593
+ first_name: z.ZodOptional<z.ZodString>;
2594
+ last_name: z.ZodOptional<z.ZodString>;
2595
+ phone_number: z.ZodOptional<z.ZodString>;
2596
+ }, "strip", z.ZodTypeAny, {
2597
+ first_name?: string | undefined;
2598
+ last_name?: string | undefined;
2599
+ phone_number?: string | undefined;
2600
+ address_country?: string | undefined;
2601
+ address_region?: string | undefined;
2602
+ postal_code?: string | undefined;
2603
+ extended_address?: string | undefined;
2604
+ street_address?: string | undefined;
2605
+ address_locality?: string | undefined;
2606
+ }, {
2607
+ first_name?: string | undefined;
2608
+ last_name?: string | undefined;
2609
+ phone_number?: string | undefined;
2610
+ address_country?: string | undefined;
2611
+ address_region?: string | undefined;
2612
+ postal_code?: string | undefined;
2613
+ extended_address?: string | undefined;
2614
+ street_address?: string | undefined;
2615
+ address_locality?: string | undefined;
2616
+ }>>;
2617
+ credential: z.ZodOptional<z.ZodObject<{
2618
+ type: z.ZodString;
2619
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2620
+ type: z.ZodString;
2621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2622
+ type: z.ZodString;
2623
+ }, z.ZodTypeAny, "passthrough">>>;
2624
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2625
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2626
+ id: z.ZodString;
2627
+ handler_id: z.ZodString;
2628
+ type: z.ZodString;
2629
+ billing_address: z.ZodOptional<z.ZodObject<{
2630
+ extended_address: z.ZodOptional<z.ZodString>;
2631
+ street_address: z.ZodOptional<z.ZodString>;
2632
+ address_locality: z.ZodOptional<z.ZodString>;
2633
+ address_region: z.ZodOptional<z.ZodString>;
2634
+ address_country: z.ZodOptional<z.ZodString>;
2635
+ postal_code: z.ZodOptional<z.ZodString>;
2636
+ first_name: z.ZodOptional<z.ZodString>;
2637
+ last_name: z.ZodOptional<z.ZodString>;
2638
+ phone_number: z.ZodOptional<z.ZodString>;
2639
+ }, "strip", z.ZodTypeAny, {
2640
+ first_name?: string | undefined;
2641
+ last_name?: string | undefined;
2642
+ phone_number?: string | undefined;
2643
+ address_country?: string | undefined;
2644
+ address_region?: string | undefined;
2645
+ postal_code?: string | undefined;
2646
+ extended_address?: string | undefined;
2647
+ street_address?: string | undefined;
2648
+ address_locality?: string | undefined;
2649
+ }, {
2650
+ first_name?: string | undefined;
2651
+ last_name?: string | undefined;
2652
+ phone_number?: string | undefined;
2653
+ address_country?: string | undefined;
2654
+ address_region?: string | undefined;
2655
+ postal_code?: string | undefined;
2656
+ extended_address?: string | undefined;
2657
+ street_address?: string | undefined;
2658
+ address_locality?: string | undefined;
2659
+ }>>;
2660
+ credential: z.ZodOptional<z.ZodObject<{
2661
+ type: z.ZodString;
2662
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2663
+ type: z.ZodString;
2664
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2665
+ type: z.ZodString;
2666
+ }, z.ZodTypeAny, "passthrough">>>;
2667
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2668
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2669
+ selected: z.ZodOptional<z.ZodBoolean>;
2670
+ }, "strip", z.ZodTypeAny, {
2671
+ selected?: boolean | undefined;
2672
+ }, {
2673
+ selected?: boolean | undefined;
2674
+ }>>, "many">>;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ instruments?: ({
2677
+ id: string;
2678
+ type: string;
2679
+ handler_id: string;
2680
+ billing_address?: {
2681
+ first_name?: string | undefined;
2682
+ last_name?: string | undefined;
2683
+ phone_number?: string | undefined;
2684
+ address_country?: string | undefined;
2685
+ address_region?: string | undefined;
2686
+ postal_code?: string | undefined;
2687
+ extended_address?: string | undefined;
2688
+ street_address?: string | undefined;
2689
+ address_locality?: string | undefined;
2690
+ } | undefined;
2691
+ credential?: z.objectOutputType<{
2692
+ type: z.ZodString;
2693
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2694
+ display?: Record<string, unknown> | undefined;
2695
+ } & {
2696
+ [k: string]: unknown;
2697
+ } & {
2698
+ selected?: boolean | undefined;
2699
+ })[] | undefined;
2700
+ }, {
2701
+ instruments?: ({
2702
+ id: string;
2703
+ type: string;
2704
+ handler_id: string;
2705
+ billing_address?: {
2706
+ first_name?: string | undefined;
2707
+ last_name?: string | undefined;
2708
+ phone_number?: string | undefined;
2709
+ address_country?: string | undefined;
2710
+ address_region?: string | undefined;
2711
+ postal_code?: string | undefined;
2712
+ extended_address?: string | undefined;
2713
+ street_address?: string | undefined;
2714
+ address_locality?: string | undefined;
2715
+ } | undefined;
2716
+ credential?: z.objectInputType<{
2717
+ type: z.ZodString;
2718
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2719
+ display?: Record<string, unknown> | undefined;
2720
+ } & {
2721
+ [k: string]: unknown;
2722
+ } & {
2723
+ selected?: boolean | undefined;
2724
+ })[] | undefined;
2725
+ }>>;
2726
+ }, "strict", z.ZodTypeAny, {
2727
+ line_items: {
2728
+ id: string;
2729
+ item: {
2730
+ id: string;
2731
+ title: string;
2732
+ price: number;
2733
+ image_url?: string | undefined;
2734
+ };
2735
+ quantity: number;
2736
+ totals: {
2737
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2738
+ amount: number;
2739
+ display_text?: string | undefined;
2740
+ }[];
2741
+ parent_id?: string | undefined;
2742
+ }[];
2743
+ buyer?: z.objectOutputType<{
2744
+ first_name: z.ZodOptional<z.ZodString>;
2745
+ last_name: z.ZodOptional<z.ZodString>;
2746
+ email: z.ZodOptional<z.ZodString>;
2747
+ phone_number: z.ZodOptional<z.ZodString>;
2748
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2749
+ context?: z.objectOutputType<{
2750
+ address_country: z.ZodOptional<z.ZodString>;
2751
+ address_region: z.ZodOptional<z.ZodString>;
2752
+ postal_code: z.ZodOptional<z.ZodString>;
2753
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2754
+ payment?: {
2755
+ instruments?: ({
2756
+ id: string;
2757
+ type: string;
2758
+ handler_id: string;
2759
+ billing_address?: {
2760
+ first_name?: string | undefined;
2761
+ last_name?: string | undefined;
2762
+ phone_number?: string | undefined;
2763
+ address_country?: string | undefined;
2764
+ address_region?: string | undefined;
2765
+ postal_code?: string | undefined;
2766
+ extended_address?: string | undefined;
2767
+ street_address?: string | undefined;
2768
+ address_locality?: string | undefined;
2769
+ } | undefined;
2770
+ credential?: z.objectOutputType<{
2771
+ type: z.ZodString;
2772
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2773
+ display?: Record<string, unknown> | undefined;
2774
+ } & {
2775
+ [k: string]: unknown;
2776
+ } & {
2777
+ selected?: boolean | undefined;
2778
+ })[] | undefined;
2779
+ } | undefined;
2780
+ }, {
2781
+ line_items: {
2782
+ id: string;
2783
+ item: {
2784
+ id: string;
2785
+ title: string;
2786
+ price: number;
2787
+ image_url?: string | undefined;
2788
+ };
2789
+ quantity: number;
2790
+ totals: {
2791
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2792
+ amount: number;
2793
+ display_text?: string | undefined;
2794
+ }[];
2795
+ parent_id?: string | undefined;
2796
+ }[];
2797
+ buyer?: z.objectInputType<{
2798
+ first_name: z.ZodOptional<z.ZodString>;
2799
+ last_name: z.ZodOptional<z.ZodString>;
2800
+ email: z.ZodOptional<z.ZodString>;
2801
+ phone_number: z.ZodOptional<z.ZodString>;
2802
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2803
+ context?: z.objectInputType<{
2804
+ address_country: z.ZodOptional<z.ZodString>;
2805
+ address_region: z.ZodOptional<z.ZodString>;
2806
+ postal_code: z.ZodOptional<z.ZodString>;
2807
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2808
+ payment?: {
2809
+ instruments?: ({
2810
+ id: string;
2811
+ type: string;
2812
+ handler_id: string;
2813
+ billing_address?: {
2814
+ first_name?: string | undefined;
2815
+ last_name?: string | undefined;
2816
+ phone_number?: string | undefined;
2817
+ address_country?: string | undefined;
2818
+ address_region?: string | undefined;
2819
+ postal_code?: string | undefined;
2820
+ extended_address?: string | undefined;
2821
+ street_address?: string | undefined;
2822
+ address_locality?: string | undefined;
2823
+ } | undefined;
2824
+ credential?: z.objectInputType<{
2825
+ type: z.ZodString;
2826
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2827
+ display?: Record<string, unknown> | undefined;
2828
+ } & {
2829
+ [k: string]: unknown;
2830
+ } & {
2831
+ selected?: boolean | undefined;
2832
+ })[] | undefined;
2833
+ } | undefined;
2834
+ }>;
2835
+ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2836
+ id: z.ZodString;
2837
+ line_items: z.ZodArray<z.ZodObject<{
2838
+ id: z.ZodString;
2839
+ item: z.ZodObject<{
2840
+ id: z.ZodString;
2841
+ title: z.ZodString;
2842
+ price: z.ZodNumber;
2843
+ image_url: z.ZodOptional<z.ZodString>;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ id: string;
2846
+ title: string;
2847
+ price: number;
2848
+ image_url?: string | undefined;
2849
+ }, {
2850
+ id: string;
2851
+ title: string;
2852
+ price: number;
2853
+ image_url?: string | undefined;
2854
+ }>;
2855
+ quantity: z.ZodNumber;
2856
+ totals: z.ZodArray<z.ZodObject<{
2857
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
2858
+ display_text: z.ZodOptional<z.ZodString>;
2859
+ amount: z.ZodNumber;
2860
+ }, "strip", z.ZodTypeAny, {
2861
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2862
+ amount: number;
2863
+ display_text?: string | undefined;
2864
+ }, {
2865
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2866
+ amount: number;
2867
+ display_text?: string | undefined;
2868
+ }>, "many">;
2869
+ parent_id: z.ZodOptional<z.ZodString>;
2870
+ }, "strip", z.ZodTypeAny, {
2871
+ id: string;
2872
+ item: {
2873
+ id: string;
2874
+ title: string;
2875
+ price: number;
2876
+ image_url?: string | undefined;
2877
+ };
2878
+ quantity: number;
2879
+ totals: {
2880
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2881
+ amount: number;
2882
+ display_text?: string | undefined;
2883
+ }[];
2884
+ parent_id?: string | undefined;
2885
+ }, {
2886
+ id: string;
2887
+ item: {
2888
+ id: string;
2889
+ title: string;
2890
+ price: number;
2891
+ image_url?: string | undefined;
2892
+ };
2893
+ quantity: number;
2894
+ totals: {
2895
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2896
+ amount: number;
2897
+ display_text?: string | undefined;
2898
+ }[];
2899
+ parent_id?: string | undefined;
2900
+ }>, "many">;
2901
+ buyer: z.ZodOptional<z.ZodObject<{
2902
+ first_name: z.ZodOptional<z.ZodString>;
2903
+ last_name: z.ZodOptional<z.ZodString>;
2904
+ email: z.ZodOptional<z.ZodString>;
2905
+ phone_number: z.ZodOptional<z.ZodString>;
2906
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2907
+ first_name: z.ZodOptional<z.ZodString>;
2908
+ last_name: z.ZodOptional<z.ZodString>;
2909
+ email: z.ZodOptional<z.ZodString>;
2910
+ phone_number: z.ZodOptional<z.ZodString>;
2911
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2912
+ first_name: z.ZodOptional<z.ZodString>;
2913
+ last_name: z.ZodOptional<z.ZodString>;
2914
+ email: z.ZodOptional<z.ZodString>;
2915
+ phone_number: z.ZodOptional<z.ZodString>;
2916
+ }, z.ZodTypeAny, "passthrough">>>;
2917
+ context: z.ZodOptional<z.ZodObject<{
2918
+ address_country: z.ZodOptional<z.ZodString>;
2919
+ address_region: z.ZodOptional<z.ZodString>;
2920
+ postal_code: z.ZodOptional<z.ZodString>;
2921
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2922
+ address_country: z.ZodOptional<z.ZodString>;
2923
+ address_region: z.ZodOptional<z.ZodString>;
2924
+ postal_code: z.ZodOptional<z.ZodString>;
2925
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2926
+ address_country: z.ZodOptional<z.ZodString>;
2927
+ address_region: z.ZodOptional<z.ZodString>;
2928
+ postal_code: z.ZodOptional<z.ZodString>;
2929
+ }, z.ZodTypeAny, "passthrough">>>;
2930
+ payment: z.ZodOptional<z.ZodObject<{
2931
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2932
+ id: z.ZodString;
2933
+ handler_id: z.ZodString;
2934
+ type: z.ZodString;
2935
+ billing_address: z.ZodOptional<z.ZodObject<{
2936
+ extended_address: z.ZodOptional<z.ZodString>;
2937
+ street_address: z.ZodOptional<z.ZodString>;
2938
+ address_locality: z.ZodOptional<z.ZodString>;
2939
+ address_region: z.ZodOptional<z.ZodString>;
2940
+ address_country: z.ZodOptional<z.ZodString>;
2941
+ postal_code: z.ZodOptional<z.ZodString>;
2942
+ first_name: z.ZodOptional<z.ZodString>;
2943
+ last_name: z.ZodOptional<z.ZodString>;
2944
+ phone_number: z.ZodOptional<z.ZodString>;
2945
+ }, "strip", z.ZodTypeAny, {
2946
+ first_name?: string | undefined;
2947
+ last_name?: string | undefined;
2948
+ phone_number?: string | undefined;
2949
+ address_country?: string | undefined;
2950
+ address_region?: string | undefined;
2951
+ postal_code?: string | undefined;
2952
+ extended_address?: string | undefined;
2953
+ street_address?: string | undefined;
2954
+ address_locality?: string | undefined;
2955
+ }, {
2956
+ first_name?: string | undefined;
2957
+ last_name?: string | undefined;
2958
+ phone_number?: string | undefined;
2959
+ address_country?: string | undefined;
2960
+ address_region?: string | undefined;
2961
+ postal_code?: string | undefined;
2962
+ extended_address?: string | undefined;
2963
+ street_address?: string | undefined;
2964
+ address_locality?: string | undefined;
2965
+ }>>;
2966
+ credential: z.ZodOptional<z.ZodObject<{
2967
+ type: z.ZodString;
2968
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2969
+ type: z.ZodString;
2970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2971
+ type: z.ZodString;
2972
+ }, z.ZodTypeAny, "passthrough">>>;
2973
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2974
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2975
+ id: z.ZodString;
2976
+ handler_id: z.ZodString;
2977
+ type: z.ZodString;
2978
+ billing_address: z.ZodOptional<z.ZodObject<{
2979
+ extended_address: z.ZodOptional<z.ZodString>;
2980
+ street_address: z.ZodOptional<z.ZodString>;
2981
+ address_locality: z.ZodOptional<z.ZodString>;
2982
+ address_region: z.ZodOptional<z.ZodString>;
2983
+ address_country: z.ZodOptional<z.ZodString>;
2984
+ postal_code: z.ZodOptional<z.ZodString>;
2985
+ first_name: z.ZodOptional<z.ZodString>;
2986
+ last_name: z.ZodOptional<z.ZodString>;
2987
+ phone_number: z.ZodOptional<z.ZodString>;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ first_name?: string | undefined;
2990
+ last_name?: string | undefined;
2991
+ phone_number?: string | undefined;
2992
+ address_country?: string | undefined;
2993
+ address_region?: string | undefined;
2994
+ postal_code?: string | undefined;
2995
+ extended_address?: string | undefined;
2996
+ street_address?: string | undefined;
2997
+ address_locality?: string | undefined;
2998
+ }, {
2999
+ first_name?: string | undefined;
3000
+ last_name?: string | undefined;
3001
+ phone_number?: string | undefined;
3002
+ address_country?: string | undefined;
3003
+ address_region?: string | undefined;
3004
+ postal_code?: string | undefined;
3005
+ extended_address?: string | undefined;
3006
+ street_address?: string | undefined;
3007
+ address_locality?: string | undefined;
3008
+ }>>;
3009
+ credential: z.ZodOptional<z.ZodObject<{
3010
+ type: z.ZodString;
3011
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3012
+ type: z.ZodString;
3013
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3014
+ type: z.ZodString;
3015
+ }, z.ZodTypeAny, "passthrough">>>;
3016
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3017
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3018
+ id: z.ZodString;
3019
+ handler_id: z.ZodString;
3020
+ type: z.ZodString;
3021
+ billing_address: z.ZodOptional<z.ZodObject<{
3022
+ extended_address: z.ZodOptional<z.ZodString>;
3023
+ street_address: z.ZodOptional<z.ZodString>;
3024
+ address_locality: z.ZodOptional<z.ZodString>;
3025
+ address_region: z.ZodOptional<z.ZodString>;
3026
+ address_country: z.ZodOptional<z.ZodString>;
3027
+ postal_code: z.ZodOptional<z.ZodString>;
3028
+ first_name: z.ZodOptional<z.ZodString>;
3029
+ last_name: z.ZodOptional<z.ZodString>;
3030
+ phone_number: z.ZodOptional<z.ZodString>;
3031
+ }, "strip", z.ZodTypeAny, {
3032
+ first_name?: string | undefined;
3033
+ last_name?: string | undefined;
3034
+ phone_number?: string | undefined;
3035
+ address_country?: string | undefined;
3036
+ address_region?: string | undefined;
3037
+ postal_code?: string | undefined;
3038
+ extended_address?: string | undefined;
3039
+ street_address?: string | undefined;
3040
+ address_locality?: string | undefined;
3041
+ }, {
3042
+ first_name?: string | undefined;
3043
+ last_name?: string | undefined;
3044
+ phone_number?: string | undefined;
3045
+ address_country?: string | undefined;
3046
+ address_region?: string | undefined;
3047
+ postal_code?: string | undefined;
3048
+ extended_address?: string | undefined;
3049
+ street_address?: string | undefined;
3050
+ address_locality?: string | undefined;
3051
+ }>>;
3052
+ credential: z.ZodOptional<z.ZodObject<{
3053
+ type: z.ZodString;
3054
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3055
+ type: z.ZodString;
3056
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3057
+ type: z.ZodString;
3058
+ }, z.ZodTypeAny, "passthrough">>>;
3059
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3060
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3061
+ selected: z.ZodOptional<z.ZodBoolean>;
3062
+ }, "strip", z.ZodTypeAny, {
3063
+ selected?: boolean | undefined;
3064
+ }, {
3065
+ selected?: boolean | undefined;
3066
+ }>>, "many">>;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ instruments?: ({
3069
+ id: string;
3070
+ type: string;
3071
+ handler_id: string;
3072
+ billing_address?: {
3073
+ first_name?: string | undefined;
3074
+ last_name?: string | undefined;
3075
+ phone_number?: string | undefined;
3076
+ address_country?: string | undefined;
3077
+ address_region?: string | undefined;
3078
+ postal_code?: string | undefined;
3079
+ extended_address?: string | undefined;
3080
+ street_address?: string | undefined;
3081
+ address_locality?: string | undefined;
3082
+ } | undefined;
3083
+ credential?: z.objectOutputType<{
3084
+ type: z.ZodString;
3085
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3086
+ display?: Record<string, unknown> | undefined;
3087
+ } & {
3088
+ [k: string]: unknown;
3089
+ } & {
3090
+ selected?: boolean | undefined;
3091
+ })[] | undefined;
3092
+ }, {
3093
+ instruments?: ({
3094
+ id: string;
3095
+ type: string;
3096
+ handler_id: string;
3097
+ billing_address?: {
3098
+ first_name?: string | undefined;
3099
+ last_name?: string | undefined;
3100
+ phone_number?: string | undefined;
3101
+ address_country?: string | undefined;
3102
+ address_region?: string | undefined;
3103
+ postal_code?: string | undefined;
3104
+ extended_address?: string | undefined;
3105
+ street_address?: string | undefined;
3106
+ address_locality?: string | undefined;
3107
+ } | undefined;
3108
+ credential?: z.objectInputType<{
3109
+ type: z.ZodString;
3110
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3111
+ display?: Record<string, unknown> | undefined;
3112
+ } & {
3113
+ [k: string]: unknown;
3114
+ } & {
3115
+ selected?: boolean | undefined;
3116
+ })[] | undefined;
3117
+ }>>;
3118
+ }, "strict", z.ZodTypeAny, {
3119
+ id: string;
3120
+ line_items: {
3121
+ id: string;
3122
+ item: {
3123
+ id: string;
3124
+ title: string;
3125
+ price: number;
3126
+ image_url?: string | undefined;
3127
+ };
3128
+ quantity: number;
3129
+ totals: {
3130
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3131
+ amount: number;
3132
+ display_text?: string | undefined;
3133
+ }[];
3134
+ parent_id?: string | undefined;
3135
+ }[];
3136
+ buyer?: z.objectOutputType<{
3137
+ first_name: z.ZodOptional<z.ZodString>;
3138
+ last_name: z.ZodOptional<z.ZodString>;
3139
+ email: z.ZodOptional<z.ZodString>;
3140
+ phone_number: z.ZodOptional<z.ZodString>;
3141
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3142
+ context?: z.objectOutputType<{
3143
+ address_country: z.ZodOptional<z.ZodString>;
3144
+ address_region: z.ZodOptional<z.ZodString>;
3145
+ postal_code: z.ZodOptional<z.ZodString>;
3146
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3147
+ payment?: {
3148
+ instruments?: ({
3149
+ id: string;
3150
+ type: string;
3151
+ handler_id: string;
3152
+ billing_address?: {
3153
+ first_name?: string | undefined;
3154
+ last_name?: string | undefined;
3155
+ phone_number?: string | undefined;
3156
+ address_country?: string | undefined;
3157
+ address_region?: string | undefined;
3158
+ postal_code?: string | undefined;
3159
+ extended_address?: string | undefined;
3160
+ street_address?: string | undefined;
3161
+ address_locality?: string | undefined;
3162
+ } | undefined;
3163
+ credential?: z.objectOutputType<{
3164
+ type: z.ZodString;
3165
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3166
+ display?: Record<string, unknown> | undefined;
3167
+ } & {
3168
+ [k: string]: unknown;
3169
+ } & {
3170
+ selected?: boolean | undefined;
3171
+ })[] | undefined;
3172
+ } | undefined;
3173
+ }, {
3174
+ id: string;
3175
+ line_items: {
3176
+ id: string;
3177
+ item: {
3178
+ id: string;
3179
+ title: string;
3180
+ price: number;
3181
+ image_url?: string | undefined;
3182
+ };
3183
+ quantity: number;
3184
+ totals: {
3185
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3186
+ amount: number;
3187
+ display_text?: string | undefined;
3188
+ }[];
3189
+ parent_id?: string | undefined;
3190
+ }[];
3191
+ buyer?: z.objectInputType<{
3192
+ first_name: z.ZodOptional<z.ZodString>;
3193
+ last_name: z.ZodOptional<z.ZodString>;
3194
+ email: z.ZodOptional<z.ZodString>;
3195
+ phone_number: z.ZodOptional<z.ZodString>;
3196
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3197
+ context?: z.objectInputType<{
3198
+ address_country: z.ZodOptional<z.ZodString>;
3199
+ address_region: z.ZodOptional<z.ZodString>;
3200
+ postal_code: z.ZodOptional<z.ZodString>;
3201
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3202
+ payment?: {
3203
+ instruments?: ({
3204
+ id: string;
3205
+ type: string;
3206
+ handler_id: string;
3207
+ billing_address?: {
3208
+ first_name?: string | undefined;
3209
+ last_name?: string | undefined;
3210
+ phone_number?: string | undefined;
3211
+ address_country?: string | undefined;
3212
+ address_region?: string | undefined;
3213
+ postal_code?: string | undefined;
3214
+ extended_address?: string | undefined;
3215
+ street_address?: string | undefined;
3216
+ address_locality?: string | undefined;
3217
+ } | undefined;
3218
+ credential?: z.objectInputType<{
3219
+ type: z.ZodString;
3220
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3221
+ display?: Record<string, unknown> | undefined;
3222
+ } & {
3223
+ [k: string]: unknown;
3224
+ } & {
3225
+ selected?: boolean | undefined;
3226
+ })[] | undefined;
3227
+ } | undefined;
3228
+ }>;
3229
+ declare const CompleteCheckoutRequestSchema: z.ZodObject<{
3230
+ payment: z.ZodObject<{
3231
+ instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
3232
+ id: z.ZodString;
3233
+ handler_id: z.ZodString;
3234
+ type: z.ZodString;
3235
+ billing_address: z.ZodOptional<z.ZodObject<{
3236
+ extended_address: z.ZodOptional<z.ZodString>;
3237
+ street_address: z.ZodOptional<z.ZodString>;
3238
+ address_locality: z.ZodOptional<z.ZodString>;
3239
+ address_region: z.ZodOptional<z.ZodString>;
3240
+ address_country: z.ZodOptional<z.ZodString>;
3241
+ postal_code: z.ZodOptional<z.ZodString>;
3242
+ first_name: z.ZodOptional<z.ZodString>;
3243
+ last_name: z.ZodOptional<z.ZodString>;
3244
+ phone_number: z.ZodOptional<z.ZodString>;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ first_name?: string | undefined;
3247
+ last_name?: string | undefined;
3248
+ phone_number?: string | undefined;
3249
+ address_country?: string | undefined;
3250
+ address_region?: string | undefined;
3251
+ postal_code?: string | undefined;
3252
+ extended_address?: string | undefined;
3253
+ street_address?: string | undefined;
3254
+ address_locality?: string | undefined;
3255
+ }, {
3256
+ first_name?: string | undefined;
3257
+ last_name?: string | undefined;
3258
+ phone_number?: string | undefined;
3259
+ address_country?: string | undefined;
3260
+ address_region?: string | undefined;
3261
+ postal_code?: string | undefined;
3262
+ extended_address?: string | undefined;
3263
+ street_address?: string | undefined;
3264
+ address_locality?: string | undefined;
3265
+ }>>;
3266
+ credential: z.ZodOptional<z.ZodObject<{
3267
+ type: z.ZodString;
3268
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3269
+ type: z.ZodString;
3270
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3271
+ type: z.ZodString;
3272
+ }, z.ZodTypeAny, "passthrough">>>;
3273
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3274
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3275
+ id: z.ZodString;
3276
+ handler_id: z.ZodString;
3277
+ type: z.ZodString;
3278
+ billing_address: z.ZodOptional<z.ZodObject<{
3279
+ extended_address: z.ZodOptional<z.ZodString>;
3280
+ street_address: z.ZodOptional<z.ZodString>;
3281
+ address_locality: z.ZodOptional<z.ZodString>;
3282
+ address_region: z.ZodOptional<z.ZodString>;
3283
+ address_country: z.ZodOptional<z.ZodString>;
3284
+ postal_code: z.ZodOptional<z.ZodString>;
3285
+ first_name: z.ZodOptional<z.ZodString>;
3286
+ last_name: z.ZodOptional<z.ZodString>;
3287
+ phone_number: z.ZodOptional<z.ZodString>;
3288
+ }, "strip", z.ZodTypeAny, {
3289
+ first_name?: string | undefined;
3290
+ last_name?: string | undefined;
3291
+ phone_number?: string | undefined;
3292
+ address_country?: string | undefined;
3293
+ address_region?: string | undefined;
3294
+ postal_code?: string | undefined;
3295
+ extended_address?: string | undefined;
3296
+ street_address?: string | undefined;
3297
+ address_locality?: string | undefined;
3298
+ }, {
3299
+ first_name?: string | undefined;
3300
+ last_name?: string | undefined;
3301
+ phone_number?: string | undefined;
3302
+ address_country?: string | undefined;
3303
+ address_region?: string | undefined;
3304
+ postal_code?: string | undefined;
3305
+ extended_address?: string | undefined;
3306
+ street_address?: string | undefined;
3307
+ address_locality?: string | undefined;
3308
+ }>>;
3309
+ credential: z.ZodOptional<z.ZodObject<{
3310
+ type: z.ZodString;
3311
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3312
+ type: z.ZodString;
3313
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3314
+ type: z.ZodString;
3315
+ }, z.ZodTypeAny, "passthrough">>>;
3316
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3317
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3318
+ id: z.ZodString;
3319
+ handler_id: z.ZodString;
3320
+ type: z.ZodString;
3321
+ billing_address: z.ZodOptional<z.ZodObject<{
3322
+ extended_address: z.ZodOptional<z.ZodString>;
3323
+ street_address: z.ZodOptional<z.ZodString>;
3324
+ address_locality: z.ZodOptional<z.ZodString>;
3325
+ address_region: z.ZodOptional<z.ZodString>;
3326
+ address_country: z.ZodOptional<z.ZodString>;
3327
+ postal_code: z.ZodOptional<z.ZodString>;
3328
+ first_name: z.ZodOptional<z.ZodString>;
3329
+ last_name: z.ZodOptional<z.ZodString>;
3330
+ phone_number: z.ZodOptional<z.ZodString>;
3331
+ }, "strip", z.ZodTypeAny, {
3332
+ first_name?: string | undefined;
3333
+ last_name?: string | undefined;
3334
+ phone_number?: string | undefined;
3335
+ address_country?: string | undefined;
3336
+ address_region?: string | undefined;
3337
+ postal_code?: string | undefined;
3338
+ extended_address?: string | undefined;
3339
+ street_address?: string | undefined;
3340
+ address_locality?: string | undefined;
3341
+ }, {
3342
+ first_name?: string | undefined;
3343
+ last_name?: string | undefined;
3344
+ phone_number?: string | undefined;
3345
+ address_country?: string | undefined;
3346
+ address_region?: string | undefined;
3347
+ postal_code?: string | undefined;
3348
+ extended_address?: string | undefined;
3349
+ street_address?: string | undefined;
3350
+ address_locality?: string | undefined;
3351
+ }>>;
3352
+ credential: z.ZodOptional<z.ZodObject<{
3353
+ type: z.ZodString;
3354
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3355
+ type: z.ZodString;
3356
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3357
+ type: z.ZodString;
3358
+ }, z.ZodTypeAny, "passthrough">>>;
3359
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3360
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3361
+ selected: z.ZodOptional<z.ZodBoolean>;
3362
+ }, "strip", z.ZodTypeAny, {
3363
+ selected?: boolean | undefined;
3364
+ }, {
3365
+ selected?: boolean | undefined;
3366
+ }>>, "many">>;
3367
+ }, "strip", z.ZodTypeAny, {
3368
+ instruments?: ({
3369
+ id: string;
3370
+ type: string;
3371
+ handler_id: string;
3372
+ billing_address?: {
3373
+ first_name?: string | undefined;
3374
+ last_name?: string | undefined;
3375
+ phone_number?: string | undefined;
3376
+ address_country?: string | undefined;
3377
+ address_region?: string | undefined;
3378
+ postal_code?: string | undefined;
3379
+ extended_address?: string | undefined;
3380
+ street_address?: string | undefined;
3381
+ address_locality?: string | undefined;
3382
+ } | undefined;
3383
+ credential?: z.objectOutputType<{
3384
+ type: z.ZodString;
3385
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3386
+ display?: Record<string, unknown> | undefined;
3387
+ } & {
3388
+ [k: string]: unknown;
3389
+ } & {
3390
+ selected?: boolean | undefined;
3391
+ })[] | undefined;
3392
+ }, {
3393
+ instruments?: ({
3394
+ id: string;
3395
+ type: string;
3396
+ handler_id: string;
3397
+ billing_address?: {
3398
+ first_name?: string | undefined;
3399
+ last_name?: string | undefined;
3400
+ phone_number?: string | undefined;
3401
+ address_country?: string | undefined;
3402
+ address_region?: string | undefined;
3403
+ postal_code?: string | undefined;
3404
+ extended_address?: string | undefined;
3405
+ street_address?: string | undefined;
3406
+ address_locality?: string | undefined;
3407
+ } | undefined;
3408
+ credential?: z.objectInputType<{
3409
+ type: z.ZodString;
3410
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3411
+ display?: Record<string, unknown> | undefined;
3412
+ } & {
3413
+ [k: string]: unknown;
3414
+ } & {
3415
+ selected?: boolean | undefined;
3416
+ })[] | undefined;
3417
+ }>;
3418
+ }, "strict", z.ZodTypeAny, {
3419
+ payment: {
3420
+ instruments?: ({
3421
+ id: string;
3422
+ type: string;
3423
+ handler_id: string;
3424
+ billing_address?: {
3425
+ first_name?: string | undefined;
3426
+ last_name?: string | undefined;
3427
+ phone_number?: string | undefined;
3428
+ address_country?: string | undefined;
3429
+ address_region?: string | undefined;
3430
+ postal_code?: string | undefined;
3431
+ extended_address?: string | undefined;
3432
+ street_address?: string | undefined;
3433
+ address_locality?: string | undefined;
3434
+ } | undefined;
3435
+ credential?: z.objectOutputType<{
3436
+ type: z.ZodString;
3437
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3438
+ display?: Record<string, unknown> | undefined;
3439
+ } & {
3440
+ [k: string]: unknown;
3441
+ } & {
3442
+ selected?: boolean | undefined;
3443
+ })[] | undefined;
3444
+ };
3445
+ }, {
3446
+ payment: {
3447
+ instruments?: ({
3448
+ id: string;
3449
+ type: string;
3450
+ handler_id: string;
3451
+ billing_address?: {
3452
+ first_name?: string | undefined;
3453
+ last_name?: string | undefined;
3454
+ phone_number?: string | undefined;
3455
+ address_country?: string | undefined;
3456
+ address_region?: string | undefined;
3457
+ postal_code?: string | undefined;
3458
+ extended_address?: string | undefined;
3459
+ street_address?: string | undefined;
3460
+ address_locality?: string | undefined;
3461
+ } | undefined;
3462
+ credential?: z.objectInputType<{
3463
+ type: z.ZodString;
3464
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3465
+ display?: Record<string, unknown> | undefined;
3466
+ } & {
3467
+ [k: string]: unknown;
3468
+ } & {
3469
+ selected?: boolean | undefined;
3470
+ })[] | undefined;
3471
+ };
3472
+ }>;
3473
+ declare const WebhookEventSchema: z.ZodObject<{
3474
+ event_id: z.ZodString;
3475
+ created_time: z.ZodString;
3476
+ order: z.ZodObject<{
3477
+ ucp: z.ZodIntersection<z.ZodObject<{
3478
+ version: z.ZodString;
3479
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3480
+ version: z.ZodString;
3481
+ spec: z.ZodOptional<z.ZodString>;
3482
+ schema: z.ZodOptional<z.ZodString>;
3483
+ id: z.ZodOptional<z.ZodString>;
3484
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3485
+ }, "strip", z.ZodTypeAny, {
3486
+ version: string;
3487
+ spec?: string | undefined;
3488
+ schema?: string | undefined;
3489
+ id?: string | undefined;
3490
+ config?: Record<string, unknown> | undefined;
3491
+ }, {
3492
+ version: string;
3493
+ spec?: string | undefined;
3494
+ schema?: string | undefined;
3495
+ id?: string | undefined;
3496
+ config?: Record<string, unknown> | undefined;
3497
+ }>, z.ZodObject<{
3498
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
3499
+ endpoint: z.ZodOptional<z.ZodString>;
3500
+ }, "strip", z.ZodTypeAny, {
3501
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3502
+ endpoint?: string | undefined;
3503
+ }, {
3504
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3505
+ endpoint?: string | undefined;
3506
+ }>>, "many">>>;
3507
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3508
+ version: z.ZodString;
3509
+ spec: z.ZodOptional<z.ZodString>;
3510
+ schema: z.ZodOptional<z.ZodString>;
3511
+ id: z.ZodOptional<z.ZodString>;
3512
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3513
+ }, "strip", z.ZodTypeAny, {
3514
+ version: string;
3515
+ spec?: string | undefined;
3516
+ schema?: string | undefined;
3517
+ id?: string | undefined;
3518
+ config?: Record<string, unknown> | undefined;
3519
+ }, {
3520
+ version: string;
3521
+ spec?: string | undefined;
3522
+ schema?: string | undefined;
3523
+ id?: string | undefined;
3524
+ config?: Record<string, unknown> | undefined;
3525
+ }>, z.ZodObject<{
3526
+ extends: z.ZodOptional<z.ZodString>;
3527
+ }, "strip", z.ZodTypeAny, {
3528
+ extends?: string | undefined;
3529
+ }, {
3530
+ extends?: string | undefined;
3531
+ }>>, "many">>>;
3532
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3533
+ version: z.ZodString;
3534
+ spec: z.ZodOptional<z.ZodString>;
3535
+ schema: z.ZodOptional<z.ZodString>;
3536
+ id: z.ZodOptional<z.ZodString>;
3537
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3538
+ }, "strip", z.ZodTypeAny, {
3539
+ version: string;
3540
+ spec?: string | undefined;
3541
+ schema?: string | undefined;
3542
+ id?: string | undefined;
3543
+ config?: Record<string, unknown> | undefined;
3544
+ }, {
3545
+ version: string;
3546
+ spec?: string | undefined;
3547
+ schema?: string | undefined;
3548
+ id?: string | undefined;
3549
+ config?: Record<string, unknown> | undefined;
3550
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
3551
+ }, "strip", z.ZodTypeAny, {
3552
+ version: string;
3553
+ services?: Record<string, ({
3554
+ version: string;
3555
+ spec?: string | undefined;
3556
+ schema?: string | undefined;
3557
+ id?: string | undefined;
3558
+ config?: Record<string, unknown> | undefined;
3559
+ } & {
3560
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3561
+ endpoint?: string | undefined;
3562
+ })[]> | undefined;
3563
+ capabilities?: Record<string, ({
3564
+ version: string;
3565
+ spec?: string | undefined;
3566
+ schema?: string | undefined;
3567
+ id?: string | undefined;
3568
+ config?: Record<string, unknown> | undefined;
3569
+ } & {
3570
+ extends?: string | undefined;
3571
+ })[]> | undefined;
3572
+ payment_handlers?: Record<string, ({
3573
+ version: string;
3574
+ spec?: string | undefined;
3575
+ schema?: string | undefined;
3576
+ id?: string | undefined;
3577
+ config?: Record<string, unknown> | undefined;
3578
+ } & Record<string, unknown>)[]> | undefined;
3579
+ }, {
3580
+ version: string;
3581
+ services?: Record<string, ({
3582
+ version: string;
3583
+ spec?: string | undefined;
3584
+ schema?: string | undefined;
3585
+ id?: string | undefined;
3586
+ config?: Record<string, unknown> | undefined;
3587
+ } & {
3588
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3589
+ endpoint?: string | undefined;
3590
+ })[]> | undefined;
3591
+ capabilities?: Record<string, ({
3592
+ version: string;
3593
+ spec?: string | undefined;
3594
+ schema?: string | undefined;
3595
+ id?: string | undefined;
3596
+ config?: Record<string, unknown> | undefined;
3597
+ } & {
3598
+ extends?: string | undefined;
3599
+ })[]> | undefined;
3600
+ payment_handlers?: Record<string, ({
3601
+ version: string;
3602
+ spec?: string | undefined;
3603
+ schema?: string | undefined;
3604
+ id?: string | undefined;
3605
+ config?: Record<string, unknown> | undefined;
3606
+ } & Record<string, unknown>)[]> | undefined;
3607
+ }>, z.ZodObject<{
3608
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3609
+ version: z.ZodString;
3610
+ spec: z.ZodOptional<z.ZodString>;
3611
+ schema: z.ZodOptional<z.ZodString>;
3612
+ id: z.ZodOptional<z.ZodString>;
3613
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3614
+ }, "strip", z.ZodTypeAny, {
3615
+ version: string;
3616
+ spec?: string | undefined;
3617
+ schema?: string | undefined;
3618
+ id?: string | undefined;
3619
+ config?: Record<string, unknown> | undefined;
3620
+ }, {
3621
+ version: string;
3622
+ spec?: string | undefined;
3623
+ schema?: string | undefined;
3624
+ id?: string | undefined;
3625
+ config?: Record<string, unknown> | undefined;
3626
+ }>, z.ZodObject<{
3627
+ extends: z.ZodOptional<z.ZodString>;
3628
+ }, "strip", z.ZodTypeAny, {
3629
+ extends?: string | undefined;
3630
+ }, {
3631
+ extends?: string | undefined;
3632
+ }>>, "many">>>;
3633
+ }, "strip", z.ZodTypeAny, {
3634
+ capabilities?: Record<string, ({
3635
+ version: string;
3636
+ spec?: string | undefined;
3637
+ schema?: string | undefined;
3638
+ id?: string | undefined;
3639
+ config?: Record<string, unknown> | undefined;
3640
+ } & {
3641
+ extends?: string | undefined;
3642
+ })[]> | undefined;
3643
+ }, {
3644
+ capabilities?: Record<string, ({
3645
+ version: string;
3646
+ spec?: string | undefined;
3647
+ schema?: string | undefined;
3648
+ id?: string | undefined;
3649
+ config?: Record<string, unknown> | undefined;
3650
+ } & {
3651
+ extends?: string | undefined;
3652
+ })[]> | undefined;
3653
+ }>>;
3654
+ id: z.ZodString;
3655
+ checkout_id: z.ZodString;
3656
+ permalink_url: z.ZodString;
3657
+ line_items: z.ZodArray<z.ZodObject<{
3658
+ id: z.ZodString;
3659
+ item: z.ZodObject<{
3660
+ id: z.ZodString;
3661
+ title: z.ZodString;
3662
+ price: z.ZodNumber;
3663
+ image_url: z.ZodOptional<z.ZodString>;
3664
+ }, "strip", z.ZodTypeAny, {
3665
+ id: string;
3666
+ title: string;
3667
+ price: number;
3668
+ image_url?: string | undefined;
3669
+ }, {
3670
+ id: string;
3671
+ title: string;
3672
+ price: number;
3673
+ image_url?: string | undefined;
3674
+ }>;
3675
+ quantity: z.ZodObject<{
3676
+ total: z.ZodNumber;
3677
+ fulfilled: z.ZodNumber;
3678
+ }, "strip", z.ZodTypeAny, {
3679
+ total: number;
3680
+ fulfilled: number;
3681
+ }, {
3682
+ total: number;
3683
+ fulfilled: number;
3684
+ }>;
3685
+ totals: z.ZodArray<z.ZodObject<{
3686
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
3687
+ display_text: z.ZodOptional<z.ZodString>;
3688
+ amount: z.ZodNumber;
3689
+ }, "strip", z.ZodTypeAny, {
3690
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3691
+ amount: number;
3692
+ display_text?: string | undefined;
3693
+ }, {
3694
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3695
+ amount: number;
3696
+ display_text?: string | undefined;
3697
+ }>, "many">;
3698
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
3699
+ parent_id: z.ZodOptional<z.ZodString>;
3700
+ }, "strip", z.ZodTypeAny, {
3701
+ id: string;
3702
+ status: "fulfilled" | "processing" | "partial";
3703
+ item: {
3704
+ id: string;
3705
+ title: string;
3706
+ price: number;
3707
+ image_url?: string | undefined;
3708
+ };
3709
+ quantity: {
3710
+ total: number;
3711
+ fulfilled: number;
3712
+ };
3713
+ totals: {
3714
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3715
+ amount: number;
3716
+ display_text?: string | undefined;
3717
+ }[];
3718
+ parent_id?: string | undefined;
3719
+ }, {
3720
+ id: string;
3721
+ status: "fulfilled" | "processing" | "partial";
3722
+ item: {
3723
+ id: string;
3724
+ title: string;
3725
+ price: number;
3726
+ image_url?: string | undefined;
3727
+ };
3728
+ quantity: {
3729
+ total: number;
3730
+ fulfilled: number;
3731
+ };
3732
+ totals: {
3733
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3734
+ amount: number;
3735
+ display_text?: string | undefined;
3736
+ }[];
3737
+ parent_id?: string | undefined;
3738
+ }>, "many">;
3739
+ fulfillment: z.ZodObject<{
3740
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
3741
+ id: z.ZodString;
3742
+ line_items: z.ZodArray<z.ZodObject<{
3743
+ id: z.ZodString;
3744
+ quantity: z.ZodNumber;
3745
+ }, "strip", z.ZodTypeAny, {
3746
+ id: string;
3747
+ quantity: number;
3748
+ }, {
3749
+ id: string;
3750
+ quantity: number;
3751
+ }>, "many">;
3752
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
3753
+ destination: z.ZodObject<{
3754
+ extended_address: z.ZodOptional<z.ZodString>;
3755
+ street_address: z.ZodOptional<z.ZodString>;
3756
+ address_locality: z.ZodOptional<z.ZodString>;
3757
+ address_region: z.ZodOptional<z.ZodString>;
3758
+ address_country: z.ZodOptional<z.ZodString>;
3759
+ postal_code: z.ZodOptional<z.ZodString>;
3760
+ first_name: z.ZodOptional<z.ZodString>;
3761
+ last_name: z.ZodOptional<z.ZodString>;
3762
+ phone_number: z.ZodOptional<z.ZodString>;
3763
+ }, "strip", z.ZodTypeAny, {
3764
+ first_name?: string | undefined;
3765
+ last_name?: string | undefined;
3766
+ phone_number?: string | undefined;
3767
+ address_country?: string | undefined;
3768
+ address_region?: string | undefined;
3769
+ postal_code?: string | undefined;
3770
+ extended_address?: string | undefined;
3771
+ street_address?: string | undefined;
3772
+ address_locality?: string | undefined;
3773
+ }, {
3774
+ first_name?: string | undefined;
3775
+ last_name?: string | undefined;
3776
+ phone_number?: string | undefined;
3777
+ address_country?: string | undefined;
3778
+ address_region?: string | undefined;
3779
+ postal_code?: string | undefined;
3780
+ extended_address?: string | undefined;
3781
+ street_address?: string | undefined;
3782
+ address_locality?: string | undefined;
3783
+ }>;
3784
+ description: z.ZodOptional<z.ZodString>;
3785
+ fulfillable_on: z.ZodOptional<z.ZodString>;
3786
+ }, "strip", z.ZodTypeAny, {
3787
+ id: string;
3788
+ line_items: {
3789
+ id: string;
3790
+ quantity: number;
3791
+ }[];
3792
+ method_type: "shipping" | "pickup" | "digital";
3793
+ destination: {
3794
+ first_name?: string | undefined;
3795
+ last_name?: string | undefined;
3796
+ phone_number?: string | undefined;
3797
+ address_country?: string | undefined;
3798
+ address_region?: string | undefined;
3799
+ postal_code?: string | undefined;
3800
+ extended_address?: string | undefined;
3801
+ street_address?: string | undefined;
3802
+ address_locality?: string | undefined;
3803
+ };
3804
+ description?: string | undefined;
3805
+ fulfillable_on?: string | undefined;
3806
+ }, {
3807
+ id: string;
3808
+ line_items: {
3809
+ id: string;
3810
+ quantity: number;
3811
+ }[];
3812
+ method_type: "shipping" | "pickup" | "digital";
3813
+ destination: {
3814
+ first_name?: string | undefined;
3815
+ last_name?: string | undefined;
3816
+ phone_number?: string | undefined;
3817
+ address_country?: string | undefined;
3818
+ address_region?: string | undefined;
3819
+ postal_code?: string | undefined;
3820
+ extended_address?: string | undefined;
3821
+ street_address?: string | undefined;
3822
+ address_locality?: string | undefined;
3823
+ };
3824
+ description?: string | undefined;
3825
+ fulfillable_on?: string | undefined;
3826
+ }>, "many">>;
3827
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
3828
+ id: z.ZodString;
3829
+ occurred_at: z.ZodString;
3830
+ type: z.ZodString;
3831
+ line_items: z.ZodArray<z.ZodObject<{
3832
+ id: z.ZodString;
3833
+ quantity: z.ZodNumber;
3834
+ }, "strip", z.ZodTypeAny, {
3835
+ id: string;
3836
+ quantity: number;
3837
+ }, {
3838
+ id: string;
3839
+ quantity: number;
3840
+ }>, "many">;
3841
+ tracking_number: z.ZodOptional<z.ZodString>;
3842
+ tracking_url: z.ZodOptional<z.ZodString>;
3843
+ carrier: z.ZodOptional<z.ZodString>;
3844
+ description: z.ZodOptional<z.ZodString>;
3845
+ }, "strip", z.ZodTypeAny, {
3846
+ id: string;
3847
+ type: string;
3848
+ line_items: {
3849
+ id: string;
3850
+ quantity: number;
3851
+ }[];
3852
+ occurred_at: string;
3853
+ description?: string | undefined;
3854
+ carrier?: string | undefined;
3855
+ tracking_number?: string | undefined;
3856
+ tracking_url?: string | undefined;
3857
+ }, {
3858
+ id: string;
3859
+ type: string;
3860
+ line_items: {
3861
+ id: string;
3862
+ quantity: number;
3863
+ }[];
3864
+ occurred_at: string;
3865
+ description?: string | undefined;
3866
+ carrier?: string | undefined;
3867
+ tracking_number?: string | undefined;
3868
+ tracking_url?: string | undefined;
3869
+ }>, "many">>;
3870
+ }, "strip", z.ZodTypeAny, {
3871
+ expectations?: {
3872
+ id: string;
3873
+ line_items: {
3874
+ id: string;
3875
+ quantity: number;
3876
+ }[];
3877
+ method_type: "shipping" | "pickup" | "digital";
3878
+ destination: {
3879
+ first_name?: string | undefined;
3880
+ last_name?: string | undefined;
3881
+ phone_number?: string | undefined;
3882
+ address_country?: string | undefined;
3883
+ address_region?: string | undefined;
3884
+ postal_code?: string | undefined;
3885
+ extended_address?: string | undefined;
3886
+ street_address?: string | undefined;
3887
+ address_locality?: string | undefined;
3888
+ };
3889
+ description?: string | undefined;
3890
+ fulfillable_on?: string | undefined;
3891
+ }[] | undefined;
3892
+ events?: {
3893
+ id: string;
3894
+ type: string;
3895
+ line_items: {
3896
+ id: string;
3897
+ quantity: number;
3898
+ }[];
3899
+ occurred_at: string;
3900
+ description?: string | undefined;
3901
+ carrier?: string | undefined;
3902
+ tracking_number?: string | undefined;
3903
+ tracking_url?: string | undefined;
3904
+ }[] | undefined;
3905
+ }, {
3906
+ expectations?: {
3907
+ id: string;
3908
+ line_items: {
3909
+ id: string;
3910
+ quantity: number;
3911
+ }[];
3912
+ method_type: "shipping" | "pickup" | "digital";
3913
+ destination: {
3914
+ first_name?: string | undefined;
3915
+ last_name?: string | undefined;
3916
+ phone_number?: string | undefined;
3917
+ address_country?: string | undefined;
3918
+ address_region?: string | undefined;
3919
+ postal_code?: string | undefined;
3920
+ extended_address?: string | undefined;
3921
+ street_address?: string | undefined;
3922
+ address_locality?: string | undefined;
3923
+ };
3924
+ description?: string | undefined;
3925
+ fulfillable_on?: string | undefined;
3926
+ }[] | undefined;
3927
+ events?: {
3928
+ id: string;
3929
+ type: string;
3930
+ line_items: {
3931
+ id: string;
3932
+ quantity: number;
3933
+ }[];
3934
+ occurred_at: string;
3935
+ description?: string | undefined;
3936
+ carrier?: string | undefined;
3937
+ tracking_number?: string | undefined;
3938
+ tracking_url?: string | undefined;
3939
+ }[] | undefined;
3940
+ }>;
3941
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3942
+ id: z.ZodString;
3943
+ type: z.ZodString;
3944
+ occurred_at: z.ZodString;
3945
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
3946
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3947
+ id: z.ZodString;
3948
+ quantity: z.ZodNumber;
3949
+ }, "strip", z.ZodTypeAny, {
3950
+ id: string;
3951
+ quantity: number;
3952
+ }, {
3953
+ id: string;
3954
+ quantity: number;
3955
+ }>, "many">>;
3956
+ amount: z.ZodOptional<z.ZodNumber>;
3957
+ description: z.ZodOptional<z.ZodString>;
3958
+ }, "strip", z.ZodTypeAny, {
3959
+ id: string;
3960
+ type: string;
3961
+ status: "completed" | "pending" | "failed";
3962
+ occurred_at: string;
3963
+ amount?: number | undefined;
3964
+ line_items?: {
3965
+ id: string;
3966
+ quantity: number;
3967
+ }[] | undefined;
3968
+ description?: string | undefined;
3969
+ }, {
3970
+ id: string;
3971
+ type: string;
3972
+ status: "completed" | "pending" | "failed";
3973
+ occurred_at: string;
3974
+ amount?: number | undefined;
3975
+ line_items?: {
3976
+ id: string;
3977
+ quantity: number;
3978
+ }[] | undefined;
3979
+ description?: string | undefined;
3980
+ }>, "many">>;
3981
+ totals: z.ZodArray<z.ZodObject<{
3982
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
3983
+ display_text: z.ZodOptional<z.ZodString>;
3984
+ amount: z.ZodNumber;
3985
+ }, "strip", z.ZodTypeAny, {
3986
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3987
+ amount: number;
3988
+ display_text?: string | undefined;
3989
+ }, {
3990
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3991
+ amount: number;
3992
+ display_text?: string | undefined;
3993
+ }>, "many">;
3994
+ }, "strip", z.ZodTypeAny, {
3995
+ id: string;
3996
+ ucp: {
3997
+ version: string;
3998
+ services?: Record<string, ({
3999
+ version: string;
4000
+ spec?: string | undefined;
4001
+ schema?: string | undefined;
4002
+ id?: string | undefined;
4003
+ config?: Record<string, unknown> | undefined;
4004
+ } & {
4005
+ transport: "rest" | "mcp" | "a2a" | "embedded";
4006
+ endpoint?: string | undefined;
4007
+ })[]> | undefined;
4008
+ capabilities?: Record<string, ({
4009
+ version: string;
4010
+ spec?: string | undefined;
4011
+ schema?: string | undefined;
4012
+ id?: string | undefined;
4013
+ config?: Record<string, unknown> | undefined;
4014
+ } & {
4015
+ extends?: string | undefined;
4016
+ })[]> | undefined;
4017
+ payment_handlers?: Record<string, ({
4018
+ version: string;
4019
+ spec?: string | undefined;
4020
+ schema?: string | undefined;
4021
+ id?: string | undefined;
4022
+ config?: Record<string, unknown> | undefined;
4023
+ } & Record<string, unknown>)[]> | undefined;
4024
+ } & {
4025
+ capabilities?: Record<string, ({
4026
+ version: string;
4027
+ spec?: string | undefined;
4028
+ schema?: string | undefined;
4029
+ id?: string | undefined;
4030
+ config?: Record<string, unknown> | undefined;
4031
+ } & {
4032
+ extends?: string | undefined;
4033
+ })[]> | undefined;
4034
+ };
4035
+ fulfillment: {
4036
+ expectations?: {
4037
+ id: string;
4038
+ line_items: {
4039
+ id: string;
4040
+ quantity: number;
4041
+ }[];
4042
+ method_type: "shipping" | "pickup" | "digital";
4043
+ destination: {
4044
+ first_name?: string | undefined;
4045
+ last_name?: string | undefined;
4046
+ phone_number?: string | undefined;
4047
+ address_country?: string | undefined;
4048
+ address_region?: string | undefined;
4049
+ postal_code?: string | undefined;
4050
+ extended_address?: string | undefined;
4051
+ street_address?: string | undefined;
4052
+ address_locality?: string | undefined;
4053
+ };
4054
+ description?: string | undefined;
4055
+ fulfillable_on?: string | undefined;
4056
+ }[] | undefined;
4057
+ events?: {
4058
+ id: string;
4059
+ type: string;
4060
+ line_items: {
4061
+ id: string;
4062
+ quantity: number;
4063
+ }[];
4064
+ occurred_at: string;
4065
+ description?: string | undefined;
4066
+ carrier?: string | undefined;
4067
+ tracking_number?: string | undefined;
4068
+ tracking_url?: string | undefined;
4069
+ }[] | undefined;
4070
+ };
4071
+ totals: {
4072
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4073
+ amount: number;
4074
+ display_text?: string | undefined;
4075
+ }[];
4076
+ line_items: {
4077
+ id: string;
4078
+ status: "fulfilled" | "processing" | "partial";
4079
+ item: {
4080
+ id: string;
4081
+ title: string;
4082
+ price: number;
4083
+ image_url?: string | undefined;
4084
+ };
4085
+ quantity: {
4086
+ total: number;
4087
+ fulfilled: number;
4088
+ };
4089
+ totals: {
4090
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4091
+ amount: number;
4092
+ display_text?: string | undefined;
4093
+ }[];
4094
+ parent_id?: string | undefined;
4095
+ }[];
4096
+ permalink_url: string;
4097
+ checkout_id: string;
4098
+ adjustments?: {
4099
+ id: string;
4100
+ type: string;
4101
+ status: "completed" | "pending" | "failed";
4102
+ occurred_at: string;
4103
+ amount?: number | undefined;
4104
+ line_items?: {
4105
+ id: string;
4106
+ quantity: number;
4107
+ }[] | undefined;
4108
+ description?: string | undefined;
4109
+ }[] | undefined;
4110
+ }, {
4111
+ id: string;
4112
+ ucp: {
4113
+ version: string;
4114
+ services?: Record<string, ({
4115
+ version: string;
4116
+ spec?: string | undefined;
4117
+ schema?: string | undefined;
4118
+ id?: string | undefined;
4119
+ config?: Record<string, unknown> | undefined;
4120
+ } & {
4121
+ transport: "rest" | "mcp" | "a2a" | "embedded";
4122
+ endpoint?: string | undefined;
4123
+ })[]> | undefined;
4124
+ capabilities?: Record<string, ({
4125
+ version: string;
4126
+ spec?: string | undefined;
4127
+ schema?: string | undefined;
4128
+ id?: string | undefined;
4129
+ config?: Record<string, unknown> | undefined;
4130
+ } & {
4131
+ extends?: string | undefined;
4132
+ })[]> | undefined;
4133
+ payment_handlers?: Record<string, ({
4134
+ version: string;
4135
+ spec?: string | undefined;
4136
+ schema?: string | undefined;
4137
+ id?: string | undefined;
4138
+ config?: Record<string, unknown> | undefined;
4139
+ } & Record<string, unknown>)[]> | undefined;
4140
+ } & {
4141
+ capabilities?: Record<string, ({
4142
+ version: string;
4143
+ spec?: string | undefined;
4144
+ schema?: string | undefined;
4145
+ id?: string | undefined;
4146
+ config?: Record<string, unknown> | undefined;
4147
+ } & {
4148
+ extends?: string | undefined;
4149
+ })[]> | undefined;
4150
+ };
4151
+ fulfillment: {
4152
+ expectations?: {
4153
+ id: string;
4154
+ line_items: {
4155
+ id: string;
4156
+ quantity: number;
4157
+ }[];
4158
+ method_type: "shipping" | "pickup" | "digital";
4159
+ destination: {
4160
+ first_name?: string | undefined;
4161
+ last_name?: string | undefined;
4162
+ phone_number?: string | undefined;
4163
+ address_country?: string | undefined;
4164
+ address_region?: string | undefined;
4165
+ postal_code?: string | undefined;
4166
+ extended_address?: string | undefined;
4167
+ street_address?: string | undefined;
4168
+ address_locality?: string | undefined;
4169
+ };
4170
+ description?: string | undefined;
4171
+ fulfillable_on?: string | undefined;
4172
+ }[] | undefined;
4173
+ events?: {
4174
+ id: string;
4175
+ type: string;
4176
+ line_items: {
4177
+ id: string;
4178
+ quantity: number;
4179
+ }[];
4180
+ occurred_at: string;
4181
+ description?: string | undefined;
4182
+ carrier?: string | undefined;
4183
+ tracking_number?: string | undefined;
4184
+ tracking_url?: string | undefined;
4185
+ }[] | undefined;
4186
+ };
4187
+ totals: {
4188
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4189
+ amount: number;
4190
+ display_text?: string | undefined;
4191
+ }[];
4192
+ line_items: {
4193
+ id: string;
4194
+ status: "fulfilled" | "processing" | "partial";
4195
+ item: {
4196
+ id: string;
4197
+ title: string;
4198
+ price: number;
4199
+ image_url?: string | undefined;
4200
+ };
4201
+ quantity: {
4202
+ total: number;
4203
+ fulfilled: number;
4204
+ };
4205
+ totals: {
4206
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4207
+ amount: number;
4208
+ display_text?: string | undefined;
4209
+ }[];
4210
+ parent_id?: string | undefined;
4211
+ }[];
4212
+ permalink_url: string;
4213
+ checkout_id: string;
4214
+ adjustments?: {
4215
+ id: string;
4216
+ type: string;
4217
+ status: "completed" | "pending" | "failed";
4218
+ occurred_at: string;
4219
+ amount?: number | undefined;
4220
+ line_items?: {
4221
+ id: string;
4222
+ quantity: number;
4223
+ }[] | undefined;
4224
+ description?: string | undefined;
4225
+ }[] | undefined;
4226
+ }>;
4227
+ }, "strip", z.ZodTypeAny, {
4228
+ order: {
4229
+ id: string;
4230
+ ucp: {
4231
+ version: string;
4232
+ services?: Record<string, ({
4233
+ version: string;
4234
+ spec?: string | undefined;
4235
+ schema?: string | undefined;
4236
+ id?: string | undefined;
4237
+ config?: Record<string, unknown> | undefined;
4238
+ } & {
4239
+ transport: "rest" | "mcp" | "a2a" | "embedded";
4240
+ endpoint?: string | undefined;
4241
+ })[]> | undefined;
4242
+ capabilities?: Record<string, ({
4243
+ version: string;
4244
+ spec?: string | undefined;
4245
+ schema?: string | undefined;
4246
+ id?: string | undefined;
4247
+ config?: Record<string, unknown> | undefined;
4248
+ } & {
4249
+ extends?: string | undefined;
4250
+ })[]> | undefined;
4251
+ payment_handlers?: Record<string, ({
4252
+ version: string;
4253
+ spec?: string | undefined;
4254
+ schema?: string | undefined;
4255
+ id?: string | undefined;
4256
+ config?: Record<string, unknown> | undefined;
4257
+ } & Record<string, unknown>)[]> | undefined;
4258
+ } & {
4259
+ capabilities?: Record<string, ({
4260
+ version: string;
4261
+ spec?: string | undefined;
4262
+ schema?: string | undefined;
4263
+ id?: string | undefined;
4264
+ config?: Record<string, unknown> | undefined;
4265
+ } & {
4266
+ extends?: string | undefined;
4267
+ })[]> | undefined;
4268
+ };
4269
+ fulfillment: {
4270
+ expectations?: {
4271
+ id: string;
4272
+ line_items: {
4273
+ id: string;
4274
+ quantity: number;
4275
+ }[];
4276
+ method_type: "shipping" | "pickup" | "digital";
4277
+ destination: {
4278
+ first_name?: string | undefined;
4279
+ last_name?: string | undefined;
4280
+ phone_number?: string | undefined;
4281
+ address_country?: string | undefined;
4282
+ address_region?: string | undefined;
4283
+ postal_code?: string | undefined;
4284
+ extended_address?: string | undefined;
4285
+ street_address?: string | undefined;
4286
+ address_locality?: string | undefined;
4287
+ };
4288
+ description?: string | undefined;
4289
+ fulfillable_on?: string | undefined;
4290
+ }[] | undefined;
4291
+ events?: {
4292
+ id: string;
4293
+ type: string;
4294
+ line_items: {
4295
+ id: string;
4296
+ quantity: number;
4297
+ }[];
4298
+ occurred_at: string;
4299
+ description?: string | undefined;
4300
+ carrier?: string | undefined;
4301
+ tracking_number?: string | undefined;
4302
+ tracking_url?: string | undefined;
4303
+ }[] | undefined;
4304
+ };
4305
+ totals: {
4306
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4307
+ amount: number;
4308
+ display_text?: string | undefined;
4309
+ }[];
4310
+ line_items: {
4311
+ id: string;
4312
+ status: "fulfilled" | "processing" | "partial";
4313
+ item: {
4314
+ id: string;
4315
+ title: string;
4316
+ price: number;
4317
+ image_url?: string | undefined;
4318
+ };
4319
+ quantity: {
4320
+ total: number;
4321
+ fulfilled: number;
4322
+ };
4323
+ totals: {
4324
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4325
+ amount: number;
4326
+ display_text?: string | undefined;
4327
+ }[];
4328
+ parent_id?: string | undefined;
4329
+ }[];
4330
+ permalink_url: string;
4331
+ checkout_id: string;
4332
+ adjustments?: {
4333
+ id: string;
4334
+ type: string;
4335
+ status: "completed" | "pending" | "failed";
4336
+ occurred_at: string;
4337
+ amount?: number | undefined;
4338
+ line_items?: {
4339
+ id: string;
4340
+ quantity: number;
4341
+ }[] | undefined;
4342
+ description?: string | undefined;
4343
+ }[] | undefined;
4344
+ };
4345
+ event_id: string;
4346
+ created_time: string;
4347
+ }, {
4348
+ order: {
4349
+ id: string;
4350
+ ucp: {
4351
+ version: string;
4352
+ services?: Record<string, ({
4353
+ version: string;
4354
+ spec?: string | undefined;
4355
+ schema?: string | undefined;
4356
+ id?: string | undefined;
4357
+ config?: Record<string, unknown> | undefined;
4358
+ } & {
4359
+ transport: "rest" | "mcp" | "a2a" | "embedded";
4360
+ endpoint?: string | undefined;
4361
+ })[]> | undefined;
4362
+ capabilities?: Record<string, ({
4363
+ version: string;
4364
+ spec?: string | undefined;
4365
+ schema?: string | undefined;
4366
+ id?: string | undefined;
4367
+ config?: Record<string, unknown> | undefined;
4368
+ } & {
4369
+ extends?: string | undefined;
4370
+ })[]> | undefined;
4371
+ payment_handlers?: Record<string, ({
4372
+ version: string;
4373
+ spec?: string | undefined;
4374
+ schema?: string | undefined;
4375
+ id?: string | undefined;
4376
+ config?: Record<string, unknown> | undefined;
4377
+ } & Record<string, unknown>)[]> | undefined;
4378
+ } & {
4379
+ capabilities?: Record<string, ({
4380
+ version: string;
4381
+ spec?: string | undefined;
4382
+ schema?: string | undefined;
4383
+ id?: string | undefined;
4384
+ config?: Record<string, unknown> | undefined;
4385
+ } & {
4386
+ extends?: string | undefined;
4387
+ })[]> | undefined;
4388
+ };
4389
+ fulfillment: {
4390
+ expectations?: {
4391
+ id: string;
4392
+ line_items: {
4393
+ id: string;
4394
+ quantity: number;
4395
+ }[];
4396
+ method_type: "shipping" | "pickup" | "digital";
4397
+ destination: {
4398
+ first_name?: string | undefined;
4399
+ last_name?: string | undefined;
4400
+ phone_number?: string | undefined;
4401
+ address_country?: string | undefined;
4402
+ address_region?: string | undefined;
4403
+ postal_code?: string | undefined;
4404
+ extended_address?: string | undefined;
4405
+ street_address?: string | undefined;
4406
+ address_locality?: string | undefined;
4407
+ };
4408
+ description?: string | undefined;
4409
+ fulfillable_on?: string | undefined;
4410
+ }[] | undefined;
4411
+ events?: {
4412
+ id: string;
4413
+ type: string;
4414
+ line_items: {
4415
+ id: string;
4416
+ quantity: number;
4417
+ }[];
4418
+ occurred_at: string;
4419
+ description?: string | undefined;
4420
+ carrier?: string | undefined;
4421
+ tracking_number?: string | undefined;
4422
+ tracking_url?: string | undefined;
4423
+ }[] | undefined;
4424
+ };
4425
+ totals: {
4426
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4427
+ amount: number;
4428
+ display_text?: string | undefined;
4429
+ }[];
4430
+ line_items: {
4431
+ id: string;
4432
+ status: "fulfilled" | "processing" | "partial";
4433
+ item: {
4434
+ id: string;
4435
+ title: string;
4436
+ price: number;
4437
+ image_url?: string | undefined;
4438
+ };
4439
+ quantity: {
4440
+ total: number;
4441
+ fulfilled: number;
4442
+ };
4443
+ totals: {
4444
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4445
+ amount: number;
4446
+ display_text?: string | undefined;
4447
+ }[];
4448
+ parent_id?: string | undefined;
4449
+ }[];
4450
+ permalink_url: string;
4451
+ checkout_id: string;
4452
+ adjustments?: {
4453
+ id: string;
4454
+ type: string;
4455
+ status: "completed" | "pending" | "failed";
4456
+ occurred_at: string;
4457
+ amount?: number | undefined;
4458
+ line_items?: {
4459
+ id: string;
4460
+ quantity: number;
4461
+ }[] | undefined;
4462
+ description?: string | undefined;
4463
+ }[] | undefined;
4464
+ };
4465
+ event_id: string;
4466
+ created_time: string;
4467
+ }>; //#endregion
4468
+ //#region src/types/common.d.ts
4469
+ type PostalAddress = z.output<typeof PostalAddressSchema>;
4470
+ type BuyerConsent = z.output<typeof BuyerConsentConsentSchema>;
4471
+ type LocalizationContext = z.output<typeof ContextSchema>;
4472
+ /** A UCP signing key as defined by the SDK spec. */
4473
+ type JWK = z.output<typeof UcpSigningKeySchema>;
4474
+
4475
+ //#endregion
4476
+ //#region src/types/checkout.d.ts
4477
+ //# sourceMappingURL=common.d.ts.map
4478
+ type CheckoutSession = z.output<typeof CheckoutSessionSchema>;
4479
+ type CheckoutSessionStatus = CheckoutResponseStatus;
4480
+ interface CheckoutExtensions {
4481
+ readonly fulfillment: boolean;
4482
+ readonly discount: boolean;
4483
+ readonly buyerConsent: boolean;
4484
+ readonly ap2Mandate: boolean;
4485
+ }
4486
+ type CreateCheckoutPayload = z.output<typeof CheckoutCreateRequestSchema>;
4487
+ type UpdateCheckoutPayload = z.output<typeof CheckoutUpdateRequestSchema>;
4488
+ type CompleteCheckoutPayload = z.output<typeof CheckoutCompleteRequestSchema>;
4489
+ type FulfillmentMethodCreatePayload = z.output<typeof FulfillmentMethodCreateRequestSchema>;
4490
+ type FulfillmentMethodUpdatePayload = z.output<typeof FulfillmentMethodUpdateRequestSchema>;
4491
+ type FulfillmentGroupUpdatePayload = z.output<typeof FulfillmentGroupUpdateRequestSchema>;
4492
+
4493
+ //#endregion
4494
+ //#region src/capabilities/checkout.d.ts
4495
+ //# sourceMappingURL=checkout.d.ts.map
4496
+ /**
4497
+ * Checkout session operations. Available when the server declares `dev.ucp.shopping.checkout`.
4498
+ * Check `extensions` to see which optional features (fulfillment, discount, etc.) are supported.
4499
+ */
4500
+ declare class CheckoutCapability {
4501
+ private readonly http;
4502
+ /** Which checkout extensions the server supports. */
4503
+ readonly extensions: CheckoutExtensions;
4504
+ constructor(http: HttpClient, extensions: CheckoutExtensions);
4505
+ create(payload: CreateCheckoutPayload): Promise<CheckoutSession>;
4506
+ get(id: string): Promise<CheckoutSession>;
4507
+ update(id: string, patch: UpdateCheckoutPayload): Promise<CheckoutSession>;
4508
+ complete(id: string, payload: CompleteCheckoutPayload): Promise<CheckoutSession>;
4509
+ cancel(id: string): Promise<CheckoutSession>;
4510
+ setFulfillment(id: string, type: string): Promise<CheckoutSession>;
4511
+ selectDestination(id: string, destinationId: string, fulfillmentType?: string): Promise<CheckoutSession>;
4512
+ selectFulfillmentOption(id: string, optionId: string, destinationId?: string, fulfillmentType?: string): Promise<CheckoutSession>;
4513
+ applyDiscountCodes(id: string, codes: readonly string[]): Promise<CheckoutSession>;
4514
+ createFulfillmentMethod(id: string, payload: FulfillmentMethodCreatePayload): Promise<CheckoutSession>;
4515
+ updateFulfillmentMethod(id: string, methodId: string, payload: FulfillmentMethodUpdatePayload): Promise<CheckoutSession>;
4516
+ updateFulfillmentGroup(id: string, methodId: string, groupId: string, payload: FulfillmentGroupUpdatePayload): Promise<CheckoutSession>;
4517
+ private patchFulfillmentDiscount;
4518
+ private validateSession;
4519
+ }
4520
+
4521
+ //#endregion
4522
+ //#region src/types/order.d.ts
4523
+ //# sourceMappingURL=checkout.d.ts.map
4524
+ type UCPSpecOrder = z.output<typeof OrderSchema>;
4525
+ type OrderUpdate = z.output<typeof OrderUpdateSchema>;
4526
+ type LineItemUpdatePayload = z.output<typeof LineItemUpdateRequestSchema>;
4527
+ type OrderUpdatePayload = Record<string, unknown>;
4528
+ interface WebhookEvent {
4529
+ readonly event_id: string;
4530
+ readonly created_time: string;
4531
+ readonly order: UCPSpecOrder;
4532
+ readonly [key: string]: unknown;
4533
+ }
4534
+
4535
+ //#endregion
4536
+ //#region src/capabilities/order.d.ts
4537
+ //# sourceMappingURL=order.d.ts.map
4538
+ /** Order operations. Available when the server declares `dev.ucp.shopping.order`. */
4539
+ declare class OrderCapability {
4540
+ private readonly http;
4541
+ constructor(http: HttpClient);
4542
+ /** Retrieve an order by ID. Returns the UCP spec-compliant Order object. */
4543
+ get(id: string): Promise<UCPSpecOrder>;
4544
+ /** Update an order with fulfillment events, adjustments, or status changes. */
4545
+ update(id: string, payload: OrderUpdatePayload): Promise<OrderUpdate>;
4546
+ /** Update a single line item within an order (e.g. set parent for grouping). */
4547
+ updateLineItem(id: string, lineItemId: string, payload: LineItemUpdatePayload): Promise<OrderUpdate>;
4548
+ }
4549
+
4550
+ //#endregion
4551
+ //#region src/types/identity-linking.d.ts
4552
+ //# sourceMappingURL=order.d.ts.map
4553
+ interface OAuthServerMetadata {
4554
+ readonly issuer: string;
4555
+ readonly authorization_endpoint: string;
4556
+ readonly token_endpoint: string;
4557
+ readonly revocation_endpoint: string;
4558
+ readonly scopes_supported: readonly string[];
4559
+ readonly response_types_supported: readonly string[];
4560
+ readonly grant_types_supported: readonly string[];
4561
+ readonly token_endpoint_auth_methods_supported: readonly string[];
4562
+ readonly service_documentation?: string;
4563
+ }
4564
+ interface AuthorizationParams {
4565
+ readonly client_id: string;
4566
+ readonly redirect_uri: string;
4567
+ readonly scope?: string;
4568
+ readonly state?: string;
4569
+ }
4570
+ interface TokenResponse {
4571
+ readonly access_token: string;
4572
+ readonly token_type: string;
4573
+ readonly expires_in?: number;
4574
+ readonly refresh_token?: string;
4575
+ readonly scope?: string;
4576
+ }
4577
+ interface TokenExchangeParams {
4578
+ readonly client_id: string;
4579
+ readonly client_secret: string;
4580
+ readonly code: string;
4581
+ readonly redirect_uri: string;
4582
+ }
4583
+ interface TokenRefreshParams {
4584
+ readonly client_id: string;
4585
+ readonly client_secret: string;
4586
+ readonly refresh_token: string;
4587
+ }
4588
+ interface TokenRevokeParams {
4589
+ readonly client_id: string;
4590
+ readonly client_secret: string;
4591
+ readonly token: string;
4592
+ readonly token_type_hint?: 'access_token' | 'refresh_token';
4593
+ }
4594
+
4595
+ //#endregion
4596
+ //#region src/capabilities/identity-linking.d.ts
4597
+ //# sourceMappingURL=identity-linking.d.ts.map
4598
+ /**
4599
+ * OAuth 2.0 identity linking for account linking between platforms and merchants.
4600
+ * Available when the server declares `dev.ucp.common.identity_linking`.
4601
+ */
4602
+ declare class IdentityLinkingCapability {
4603
+ private readonly metadata;
4604
+ constructor(metadata: OAuthServerMetadata);
4605
+ /** Build the OAuth authorization URL to redirect the buyer to. */
4606
+ getAuthorizationUrl(params: AuthorizationParams): string;
4607
+ exchangeCode(params: TokenExchangeParams): Promise<TokenResponse>;
4608
+ refreshToken(params: TokenRefreshParams): Promise<TokenResponse>;
4609
+ revokeToken(params: TokenRevokeParams): Promise<void>;
4610
+ getMetadata(): Readonly<OAuthServerMetadata>;
4611
+ private tokenRequest;
4612
+ }
4613
+
4614
+ //#endregion
4615
+ //#region src/types/config.d.ts
4616
+ //# sourceMappingURL=identity-linking.d.ts.map
4617
+ interface UCPClientConfig {
4618
+ readonly gatewayUrl: string;
4619
+ readonly agentProfileUrl: string;
4620
+ readonly ucpVersion?: string;
4621
+ readonly requestSignature?: string;
4622
+ }
4623
+ declare const DEFAULT_UCP_VERSION = "2026-01-23";
4624
+ declare const UCP_CAPABILITIES: {
4625
+ readonly CHECKOUT: "dev.ucp.shopping.checkout";
4626
+ readonly FULFILLMENT: "dev.ucp.shopping.fulfillment";
4627
+ readonly DISCOUNT: "dev.ucp.shopping.discount";
4628
+ readonly BUYER_CONSENT: "dev.ucp.shopping.buyer_consent";
4629
+ readonly ORDER: "dev.ucp.shopping.order";
4630
+ readonly IDENTITY_LINKING: "dev.ucp.common.identity_linking";
4631
+ readonly AP2_MANDATE: "dev.ucp.shopping.ap2_mandate";
4632
+ };
4633
+
4634
+ //#endregion
4635
+ //#region src/types/payment.d.ts
4636
+ //# sourceMappingURL=config.d.ts.map
4637
+ type TokenCredential$1 = TokenCredential;
4638
+ type CardCredential$1 = CardCredential;
4639
+ type PaymentCredential = TokenCredential$1 | CardCredential$1;
4640
+ interface PaymentInstrument {
4641
+ readonly id: string;
4642
+ readonly handler_id: string;
4643
+ readonly type: string;
4644
+ readonly brand?: string;
4645
+ readonly last_digits?: string;
4646
+ readonly handler_name?: string;
4647
+ readonly selected?: boolean;
4648
+ readonly display?: Readonly<Record<string, unknown>>;
4649
+ readonly credential?: PaymentCredential;
4650
+ readonly billing_address?: PostalAddress;
4651
+ }
4652
+ type PaymentHandlerInstance = z.output<typeof PaymentHandlerBaseSchema>;
4653
+ interface PaymentHandlerMap {
4654
+ readonly [namespace: string]: readonly PaymentHandlerInstance[];
4655
+ }
4656
+
4657
+ //#endregion
4658
+ //#region src/UCPClient.d.ts
4659
+ //# sourceMappingURL=payment.d.ts.map
4660
+ /** UCP discovery profile returned by `GET /.well-known/ucp`. */
4661
+ type UCPProfile = z.output<typeof UCPProfileSchema>;
4662
+ /** Describes a single tool the agent can use with the connected server. */
4663
+ interface ToolDescriptor {
4664
+ readonly name: string;
4665
+ readonly capability: string;
4666
+ readonly description: string;
4667
+ }
4668
+ /**
4669
+ * A connected UCP client. Only capabilities the server declared are non-null.
4670
+ * Use `describeTools()` to get the list of available tools for agent registration.
4671
+ */
4672
+ interface ConnectedClient {
4673
+ /** The server's UCP discovery profile. */
4674
+ readonly profile: UCPProfile;
4675
+ /** JWK signing keys from the discovery profile. Used for verifying incoming webhook signatures. */
4676
+ readonly signingKeys: readonly JWK[];
4677
+ /** Checkout operations. Null if server does not support `dev.ucp.shopping.checkout`. */
4678
+ readonly checkout: CheckoutCapability | null;
4679
+ /** Order operations. Null if server does not support `dev.ucp.shopping.order`. */
4680
+ readonly order: OrderCapability | null;
4681
+ /** OAuth 2.0 identity linking. Null if server does not support `dev.ucp.common.identity_linking`. */
4682
+ readonly identityLinking: IdentityLinkingCapability | null;
4683
+ /** Payment handlers declared by the server, keyed by namespace. */
4684
+ readonly paymentHandlers: PaymentHandlerMap;
4685
+ /** Returns only the tools this server supports (name + description only). */
4686
+ describeTools(): readonly ToolDescriptor[];
4687
+ /**
4688
+ * Returns complete tool definitions with JSON Schema parameters and execute functions.
4689
+ * Ready for direct use with any AI agent framework (Claude API, OpenAI, Vercel AI SDK, LangChain, MCP).
4690
+ */
4691
+ getAgentTools(): readonly AgentTool[];
4692
+ }
4693
+ declare function connect(config: UCPClientConfig, options?: {
4694
+ readonly onValidationWarning?: LogFn;
4695
+ }): Promise<ConnectedClient>;
4696
+ declare class UCPClient {
4697
+ private constructor();
4698
+ static connect: typeof connect;
4699
+ }
4700
+
4701
+ //#endregion
4702
+ //#region src/agent-tools.d.ts
4703
+ //# sourceMappingURL=UCPClient.d.ts.map
4704
+ /** JSON Schema type subset used for tool parameter definitions. */
4705
+ interface JsonSchema {
4706
+ readonly type: string;
4707
+ readonly properties?: Readonly<Record<string, JsonSchema>>;
4708
+ readonly required?: readonly string[];
4709
+ readonly items?: JsonSchema;
4710
+ readonly enum?: readonly string[];
4711
+ readonly description?: string;
4712
+ readonly default?: unknown;
4713
+ }
4714
+ /**
4715
+ * A complete tool definition ready for any AI agent framework.
4716
+ * Contains everything an LLM needs: name, description, parameter schema, and executor.
4717
+ */
4718
+ interface AgentTool {
4719
+ readonly name: string;
4720
+ readonly description: string;
4721
+ readonly parameters: JsonSchema;
4722
+ readonly execute: (params: Record<string, unknown>) => Promise<unknown>;
4723
+ }
4724
+ /**
4725
+ * Returns ready-to-use tool definitions for agent registration.
4726
+ * Only tools supported by the connected server are included.
4727
+ *
4728
+ * Each tool has:
4729
+ * - `name` — unique tool identifier
4730
+ * - `description` — what the tool does (for the LLM)
4731
+ * - `parameters` — JSON Schema describing the expected input
4732
+ * - `execute(params)` — function that calls the right capability method
4733
+ *
4734
+ * @example
4735
+ * ```typescript
4736
+ * const client = await UCPClient.connect(config);
4737
+ * const tools = getAgentTools(client);
4738
+ *
4739
+ * // Register with Anthropic Claude API
4740
+ * const response = await anthropic.messages.create({
4741
+ * tools: tools.map(t => ({
4742
+ * name: t.name,
4743
+ * description: t.description,
4744
+ * input_schema: t.parameters,
4745
+ * })),
4746
+ * // ...
4747
+ * });
4748
+ *
4749
+ * // Execute tool calls
4750
+ * for (const block of response.content) {
4751
+ * if (block.type === 'tool_use') {
4752
+ * const tool = tools.find(t => t.name === block.name);
4753
+ * const result = await tool.execute(block.input);
4754
+ * }
4755
+ * }
4756
+ * ```
4757
+ */
4758
+ declare function getAgentTools(client: ConnectedClient): readonly AgentTool[];
4759
+
4760
+ //#endregion
4761
+ //#region src/adapters/catch-errors.d.ts
4762
+ //# sourceMappingURL=agent-tools.d.ts.map
4763
+ interface AdapterOptions {
4764
+ readonly catchErrors?: boolean;
4765
+ }
4766
+ type ToolErrorResult = {
4767
+ readonly error: string;
4768
+ } | {
4769
+ readonly requires_escalation: true;
4770
+ readonly continue_url: string;
4771
+ };
4772
+
4773
+ //#endregion
4774
+ export { AccountInfoSchema, AdapterOptions, AdjustmentSchema, AdjustmentStatusEnumSchema, AgentTool, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, AuthorizationParams, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsent, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential$1 as CardCredential, CardCredentialCardNumberTypeEnumSchema, CardCredentialSchema, CardPaymentInstrumentSchema, CheckoutCapability, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutExtensions, CheckoutResponseSchema, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutSession, CheckoutSessionSchema, CheckoutSessionStatus, CheckoutStatusEnumSchema, CheckoutUpdateRequestSchema, CompleteCheckoutPayload, CompleteCheckoutRequestSchema, ConnectedClient, ContextSchema, CreateCheckoutPayload, CreateCheckoutRequestSchema, DEFAULT_UCP_VERSION, DiscountAllocationSchema, DiscountAppliedDiscountMethodEnumSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ExpectationMethodTypeEnumSchema, ExpectationSchema, FulfillmentAvailableMethodSchema, FulfillmentAvailableMethodTypeEnumSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdatePayload, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreatePayload, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodTypeEnumSchema, FulfillmentMethodUpdatePayload, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, IdentityLinkingCapability, ItemResponseSchema, ItemSchema, JWK, JsonSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdatePayload, LineItemUpdateRequestSchema, LinkSchema, LocalizationContext, MerchantFulfillmentConfigSchema, MessageErrorContentTypeEnumSchema, MessageErrorSchema, MessageErrorSeverityEnumSchema, MessageInfoContentTypeEnumSchema, MessageInfoSchema, MessageSchema, MessageWarningContentTypeEnumSchema, MessageWarningSchema, OAuthServerMetadata, OrderCapability, OrderConfirmationSchema, OrderLineItemSchema, OrderLineItemStatusEnumSchema, OrderSchema, OrderUpdate, OrderUpdatePayload, OrderUpdateSchema, PaymentCredential, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerInstance, PaymentHandlerMap, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrument, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformFulfillmentConfigSchema, PostalAddress, PostalAddressSchema, ProfileSchemaBaseSchema, ProfileSchemaBusinessProfileSchema, ProfileSchemaPlatformProfileSchema, ProfileSchemaSigningKeySchema, ProfileSchemaSigningKeyUseEnumSchema, RetailLocationSchema, ServiceBaseSchema, ServiceBaseTransportEnumSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, TokenCredential$1 as TokenCredential, TokenCredentialSchema, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, TotalResponseSchema, TotalSchema, TotalTypeEnumSchema, UCPClient, UCPClientConfig, UCPProfile, UCPProfileSchema, UCPSpecOrder, UCP_CAPABILITIES, UcpBaseSchema, UcpBusinessSchema, UcpDiscoveryBusinessProfileSchema, UcpDiscoveryPlatformProfileSchema, UcpEntitySchema, UcpPlatformSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpReverseDomainNameSchema, UcpSigningKeySchema, UcpVersionSchema, UpdateCheckoutPayload, UpdateCheckoutRequestSchema, WebhookEvent, WebhookEventSchema, connect, getAgentTools };
4775
+ //# sourceMappingURL=catch-errors-DRxDkLOW.d.cts.map