@omnixhq/ucp-client 2.5.0 → 3.0.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.
Files changed (47) hide show
  1. package/dist/adapters/anthropic.cjs +2 -6
  2. package/dist/adapters/anthropic.cjs.map +1 -1
  3. package/dist/adapters/anthropic.d.cts +1 -1
  4. package/dist/adapters/anthropic.d.ts +1 -1
  5. package/dist/adapters/anthropic.js +2 -6
  6. package/dist/adapters/anthropic.js.map +1 -1
  7. package/dist/adapters/langchain.cjs +1 -1
  8. package/dist/adapters/langchain.d.cts +1 -1
  9. package/dist/adapters/langchain.d.ts +1 -1
  10. package/dist/adapters/langchain.js +1 -1
  11. package/dist/adapters/mcp.cjs +2 -6
  12. package/dist/adapters/mcp.cjs.map +1 -1
  13. package/dist/adapters/mcp.d.cts +1 -1
  14. package/dist/adapters/mcp.d.ts +1 -1
  15. package/dist/adapters/mcp.js +2 -6
  16. package/dist/adapters/mcp.js.map +1 -1
  17. package/dist/adapters/openai.cjs +2 -6
  18. package/dist/adapters/openai.cjs.map +1 -1
  19. package/dist/adapters/openai.d.cts +1 -1
  20. package/dist/adapters/openai.d.ts +1 -1
  21. package/dist/adapters/openai.js +2 -6
  22. package/dist/adapters/openai.js.map +1 -1
  23. package/dist/adapters/vercel-ai.cjs +1 -1
  24. package/dist/adapters/vercel-ai.d.cts +1 -1
  25. package/dist/adapters/vercel-ai.d.ts +1 -1
  26. package/dist/adapters/vercel-ai.js +1 -1
  27. package/dist/{catch-errors-DRxDkLOW.d.cts → catch-errors-B4orhUQa.d.cts} +2123 -385
  28. package/dist/catch-errors-B4orhUQa.d.cts.map +1 -0
  29. package/dist/{catch-errors-Cpn2vHir.js → catch-errors-CLgZxgI8.js} +9 -2
  30. package/dist/catch-errors-CLgZxgI8.js.map +1 -0
  31. package/dist/{catch-errors-DkF9AMDo.d.ts → catch-errors-CM_1SIc1.d.ts} +2126 -388
  32. package/dist/catch-errors-CM_1SIc1.d.ts.map +1 -0
  33. package/dist/{catch-errors-BZP237w4.cjs → catch-errors-tAkTCXMe.cjs} +14 -1
  34. package/dist/catch-errors-tAkTCXMe.cjs.map +1 -0
  35. package/dist/index.cjs +1203 -121
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +5 -5
  38. package/dist/index.d.cts.map +1 -1
  39. package/dist/index.d.ts +5 -5
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +325 -16
  42. package/dist/index.js.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/catch-errors-BZP237w4.cjs.map +0 -1
  45. package/dist/catch-errors-Cpn2vHir.js.map +0 -1
  46. package/dist/catch-errors-DRxDkLOW.d.cts.map +0 -1
  47. package/dist/catch-errors-DkF9AMDo.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as zod0 from "zod";
2
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";
3
+ import { AccountInfoSchema, AdjustmentSchema, AdjustmentStatusEnumSchema, AmountSchema, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, AvailablePaymentInstrumentSchema, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential, CardCredentialCardNumberTypeEnumSchema, CardCredentialSchema, CardPaymentInstrumentAvailableCardPaymentInstrumentSchema, CartCreateRequestSchema, CartSchema, CartUpdateRequestSchema, CatalogLookupSchema, CatalogSearchSchema, CategorySchema, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutResponseSchema, CheckoutResponseStatus, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutStatusEnumSchema, CheckoutUpdateRequestSchema, ContextSchema, DescriptionSchema, DetailOptionValueSchema, DiscountAllocationSchema, DiscountAppliedDiscountMethodEnumSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ErrorCodeSchema, ErrorResponseSchema, ExpectationMethodTypeEnumSchema, ExpectationSchema, FulfillmentAvailableMethodSchema, FulfillmentAvailableMethodTypeEnumSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodTypeEnumSchema, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, InputCorrelationSchema, ItemResponseSchema, ItemSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdateRequestSchema, LinkSchema, MediaSchema, MerchantFulfillmentConfigSchema, MessageErrorContentTypeEnumSchema, MessageErrorSchema, MessageErrorSeverityEnumSchema, MessageInfoContentTypeEnumSchema, MessageInfoSchema, MessageSchema, MessageWarningContentTypeEnumSchema, MessageWarningSchema, OptionValueSchema, OrderConfirmationSchema, OrderLineItemSchema, OrderLineItemStatusEnumSchema, OrderSchema as UCPSpecOrderSchema, OrderUpdateSchema, PaginationSchema, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformFulfillmentConfigSchema, PostalAddressSchema, PriceFilterSchema, PriceRangeSchema, PriceSchema, ProductOptionSchema, ProductSchema, ProfileSchemaBaseSchema, ProfileSchemaBusinessProfileSchema, ProfileSchemaPlatformProfileSchema, ProfileSchemaSigningKeySchema, ProfileSchemaSigningKeyUseEnumSchema, RatingSchema, RetailLocationSchema, ReverseDomainNameSchema, SearchFiltersSchema, SelectedOptionSchema, ServiceBaseSchema, ServiceBaseTransportEnumSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, SignalsSchema, SignedAmountSchema, TokenCredential, TokenCredentialSchema, TotalResponseSchema, TotalSchema, TotalsSchema, UcpBaseSchema, UcpBaseStatusEnumSchema, UcpBusinessSchema, UcpDiscoveryBusinessProfileSchema, UcpDiscoveryPlatformProfileSchema, UcpEntitySchema, UcpErrorSchema, UcpPlatformSchema, UcpRequiresSchema, UcpResponseCartSchema, UcpResponseCatalogSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpSigningKeySchema, UcpSigningKeySchema as UcpSigningKeySchema$1, UcpSuccessSchema, UcpVersionConstraintSchema, UcpVersionSchema, VariantSchema } from "@omnixhq/ucp-js-sdk";
4
4
 
5
5
  //#region src/http.d.ts
6
6
  type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
@@ -24,12 +24,14 @@ declare class HttpClient {
24
24
  withAccessToken(token: string): HttpClient;
25
25
  request(method: HttpMethod, path: string, body?: unknown): Promise<unknown>;
26
26
  validate<Output, Def extends zod0.ZodTypeDef, Input>(data: unknown, schema: ZodType<Output, Def, Input>): Output;
27
+ private parseResponseBody;
27
28
  private throwFromResponse;
28
29
  } //#endregion
29
30
  //#region src/schemas.d.ts
30
31
  declare const CheckoutSessionSchema: z.ZodObject<{
31
32
  ucp: z.ZodIntersection<z.ZodObject<{
32
33
  version: z.ZodString;
34
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
33
35
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
34
36
  version: z.ZodString;
35
37
  spec: z.ZodOptional<z.ZodString>;
@@ -77,11 +79,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
77
79
  id?: string | undefined;
78
80
  config?: Record<string, unknown> | undefined;
79
81
  }>, z.ZodObject<{
80
- extends: z.ZodOptional<z.ZodString>;
82
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
81
83
  }, "strip", z.ZodTypeAny, {
82
- extends?: string | undefined;
84
+ extends?: unknown;
83
85
  }, {
84
- extends?: string | undefined;
86
+ extends?: unknown;
85
87
  }>>, "many">>>;
86
88
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
87
89
  version: z.ZodString;
@@ -101,9 +103,31 @@ declare const CheckoutSessionSchema: z.ZodObject<{
101
103
  schema?: string | undefined;
102
104
  id?: string | undefined;
103
105
  config?: Record<string, unknown> | undefined;
104
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
106
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
107
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ type: z.ZodString;
109
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: string;
112
+ constraints?: Record<string, unknown> | undefined;
113
+ }, {
114
+ type: string;
115
+ constraints?: Record<string, unknown> | undefined;
116
+ }>, "many">>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ available_instruments?: {
119
+ type: string;
120
+ constraints?: Record<string, unknown> | undefined;
121
+ }[] | undefined;
122
+ }, {
123
+ available_instruments?: {
124
+ type: string;
125
+ constraints?: Record<string, unknown> | undefined;
126
+ }[] | undefined;
127
+ }>>>, "many">>>;
105
128
  }, "strip", z.ZodTypeAny, {
106
129
  version: string;
130
+ status: "success" | "error";
107
131
  services?: Record<string, ({
108
132
  version: string;
109
133
  spec?: string | undefined;
@@ -121,7 +145,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
121
145
  id?: string | undefined;
122
146
  config?: Record<string, unknown> | undefined;
123
147
  } & {
124
- extends?: string | undefined;
148
+ extends?: unknown;
125
149
  })[]> | undefined;
126
150
  payment_handlers?: Record<string, ({
127
151
  version: string;
@@ -129,9 +153,15 @@ declare const CheckoutSessionSchema: z.ZodObject<{
129
153
  schema?: string | undefined;
130
154
  id?: string | undefined;
131
155
  config?: Record<string, unknown> | undefined;
132
- } & Record<string, unknown>)[]> | undefined;
156
+ } & Record<string, unknown> & {
157
+ available_instruments?: {
158
+ type: string;
159
+ constraints?: Record<string, unknown> | undefined;
160
+ }[] | undefined;
161
+ })[]> | undefined;
133
162
  }, {
134
163
  version: string;
164
+ status?: "success" | "error" | undefined;
135
165
  services?: Record<string, ({
136
166
  version: string;
137
167
  spec?: string | undefined;
@@ -149,7 +179,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
149
179
  id?: string | undefined;
150
180
  config?: Record<string, unknown> | undefined;
151
181
  } & {
152
- extends?: string | undefined;
182
+ extends?: unknown;
153
183
  })[]> | undefined;
154
184
  payment_handlers?: Record<string, ({
155
185
  version: string;
@@ -157,7 +187,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
157
187
  schema?: string | undefined;
158
188
  id?: string | undefined;
159
189
  config?: Record<string, unknown> | undefined;
160
- } & Record<string, unknown>)[]> | undefined;
190
+ } & Record<string, unknown> & {
191
+ available_instruments?: {
192
+ type: string;
193
+ constraints?: Record<string, unknown> | undefined;
194
+ }[] | undefined;
195
+ })[]> | undefined;
161
196
  }>, z.ZodObject<{
162
197
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
163
198
  version: z.ZodString;
@@ -208,19 +243,24 @@ declare const CheckoutSessionSchema: z.ZodObject<{
208
243
  transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
209
244
  config: z.ZodOptional<z.ZodObject<{
210
245
  delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
211
247
  }, "strip", z.ZodTypeAny, {
212
248
  delegate?: string[] | undefined;
249
+ color_scheme?: ("light" | "dark")[] | undefined;
213
250
  }, {
214
251
  delegate?: string[] | undefined;
252
+ color_scheme?: ("light" | "dark")[] | undefined;
215
253
  }>>;
216
254
  }, "strip", z.ZodTypeAny, {
217
255
  config?: {
218
256
  delegate?: string[] | undefined;
257
+ color_scheme?: ("light" | "dark")[] | undefined;
219
258
  } | undefined;
220
259
  transport?: "embedded" | undefined;
221
260
  }, {
222
261
  config?: {
223
262
  delegate?: string[] | undefined;
263
+ color_scheme?: ("light" | "dark")[] | undefined;
224
264
  } | undefined;
225
265
  transport?: "embedded" | undefined;
226
266
  }>]>>, "many">>>;
@@ -243,11 +283,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
243
283
  id?: string | undefined;
244
284
  config?: Record<string, unknown> | undefined;
245
285
  }>, z.ZodObject<{
246
- extends: z.ZodOptional<z.ZodString>;
286
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
247
287
  }, "strip", z.ZodTypeAny, {
248
- extends?: string | undefined;
288
+ extends?: unknown;
249
289
  }, {
250
- extends?: string | undefined;
290
+ extends?: unknown;
251
291
  }>>, "many">>>;
252
292
  payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
253
293
  version: z.ZodString;
@@ -267,7 +307,28 @@ declare const CheckoutSessionSchema: z.ZodObject<{
267
307
  schema?: string | undefined;
268
308
  id?: string | undefined;
269
309
  config?: Record<string, unknown> | undefined;
270
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
310
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
311
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
312
+ type: z.ZodString;
313
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ type: string;
316
+ constraints?: Record<string, unknown> | undefined;
317
+ }, {
318
+ type: string;
319
+ constraints?: Record<string, unknown> | undefined;
320
+ }>, "many">>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ available_instruments?: {
323
+ type: string;
324
+ constraints?: Record<string, unknown> | undefined;
325
+ }[] | undefined;
326
+ }, {
327
+ available_instruments?: {
328
+ type: string;
329
+ constraints?: Record<string, unknown> | undefined;
330
+ }[] | undefined;
331
+ }>>>, "many">>;
271
332
  }, "strip", z.ZodTypeAny, {
272
333
  payment_handlers: Record<string, ({
273
334
  version: string;
@@ -275,7 +336,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
275
336
  schema?: string | undefined;
276
337
  id?: string | undefined;
277
338
  config?: Record<string, unknown> | undefined;
278
- } & Record<string, unknown>)[]>;
339
+ } & Record<string, unknown> & {
340
+ available_instruments?: {
341
+ type: string;
342
+ constraints?: Record<string, unknown> | undefined;
343
+ }[] | undefined;
344
+ })[]>;
279
345
  services?: Record<string, ({
280
346
  version: string;
281
347
  spec?: string | undefined;
@@ -294,6 +360,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
294
360
  } | {
295
361
  config?: {
296
362
  delegate?: string[] | undefined;
363
+ color_scheme?: ("light" | "dark")[] | undefined;
297
364
  } | undefined;
298
365
  transport?: "embedded" | undefined;
299
366
  }))[]> | undefined;
@@ -304,7 +371,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
304
371
  id?: string | undefined;
305
372
  config?: Record<string, unknown> | undefined;
306
373
  } & {
307
- extends?: string | undefined;
374
+ extends?: unknown;
308
375
  })[]> | undefined;
309
376
  }, {
310
377
  payment_handlers: Record<string, ({
@@ -313,7 +380,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
313
380
  schema?: string | undefined;
314
381
  id?: string | undefined;
315
382
  config?: Record<string, unknown> | undefined;
316
- } & Record<string, unknown>)[]>;
383
+ } & Record<string, unknown> & {
384
+ available_instruments?: {
385
+ type: string;
386
+ constraints?: Record<string, unknown> | undefined;
387
+ }[] | undefined;
388
+ })[]>;
317
389
  services?: Record<string, ({
318
390
  version: string;
319
391
  spec?: string | undefined;
@@ -332,6 +404,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
332
404
  } | {
333
405
  config?: {
334
406
  delegate?: string[] | undefined;
407
+ color_scheme?: ("light" | "dark")[] | undefined;
335
408
  } | undefined;
336
409
  transport?: "embedded" | undefined;
337
410
  }))[]> | undefined;
@@ -342,7 +415,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
342
415
  id?: string | undefined;
343
416
  config?: Record<string, unknown> | undefined;
344
417
  } & {
345
- extends?: string | undefined;
418
+ extends?: unknown;
346
419
  })[]> | undefined;
347
420
  }>>;
348
421
  id: z.ZodString;
@@ -365,19 +438,19 @@ declare const CheckoutSessionSchema: z.ZodObject<{
365
438
  image_url?: string | undefined;
366
439
  }>;
367
440
  quantity: z.ZodNumber;
368
- totals: z.ZodArray<z.ZodObject<{
369
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
441
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
442
+ type: z.ZodString;
370
443
  display_text: z.ZodOptional<z.ZodString>;
371
444
  amount: z.ZodNumber;
372
445
  }, "strip", z.ZodTypeAny, {
373
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
446
+ type: string;
374
447
  amount: number;
375
448
  display_text?: string | undefined;
376
449
  }, {
377
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
450
+ type: string;
378
451
  amount: number;
379
452
  display_text?: string | undefined;
380
- }>, "many">;
453
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
381
454
  parent_id: z.ZodOptional<z.ZodString>;
382
455
  }, "strip", z.ZodTypeAny, {
383
456
  id: string;
@@ -388,11 +461,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
388
461
  image_url?: string | undefined;
389
462
  };
390
463
  quantity: number;
391
- totals: {
392
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
393
- amount: number;
394
- display_text?: string | undefined;
395
- }[];
464
+ totals: any[];
396
465
  parent_id?: string | undefined;
397
466
  }, {
398
467
  id: string;
@@ -403,11 +472,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
403
472
  image_url?: string | undefined;
404
473
  };
405
474
  quantity: number;
406
- totals: {
407
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
408
- amount: number;
409
- display_text?: string | undefined;
410
- }[];
475
+ totals: any[];
411
476
  parent_id?: string | undefined;
412
477
  }>, "many">;
413
478
  buyer: z.ZodOptional<z.ZodObject<{
@@ -430,30 +495,73 @@ declare const CheckoutSessionSchema: z.ZodObject<{
430
495
  address_country: z.ZodOptional<z.ZodString>;
431
496
  address_region: z.ZodOptional<z.ZodString>;
432
497
  postal_code: z.ZodOptional<z.ZodString>;
498
+ intent: z.ZodOptional<z.ZodString>;
499
+ language: z.ZodOptional<z.ZodString>;
500
+ currency: z.ZodOptional<z.ZodString>;
501
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
433
502
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
434
503
  address_country: z.ZodOptional<z.ZodString>;
435
504
  address_region: z.ZodOptional<z.ZodString>;
436
505
  postal_code: z.ZodOptional<z.ZodString>;
506
+ intent: z.ZodOptional<z.ZodString>;
507
+ language: z.ZodOptional<z.ZodString>;
508
+ currency: z.ZodOptional<z.ZodString>;
509
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
437
510
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
438
511
  address_country: z.ZodOptional<z.ZodString>;
439
512
  address_region: z.ZodOptional<z.ZodString>;
440
513
  postal_code: z.ZodOptional<z.ZodString>;
514
+ intent: z.ZodOptional<z.ZodString>;
515
+ language: z.ZodOptional<z.ZodString>;
516
+ currency: z.ZodOptional<z.ZodString>;
517
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
518
+ }, z.ZodTypeAny, "passthrough">>>;
519
+ signals: z.ZodOptional<z.ZodObject<{
520
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
521
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
522
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
523
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
524
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
525
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
526
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
527
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
441
528
  }, z.ZodTypeAny, "passthrough">>>;
442
529
  status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
443
530
  currency: z.ZodString;
444
- totals: z.ZodArray<z.ZodObject<{
445
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
531
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
532
+ type: z.ZodString;
446
533
  display_text: z.ZodOptional<z.ZodString>;
447
534
  amount: z.ZodNumber;
448
535
  }, "strip", z.ZodTypeAny, {
449
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
536
+ type: string;
450
537
  amount: number;
451
538
  display_text?: string | undefined;
452
539
  }, {
453
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
540
+ type: string;
454
541
  amount: number;
455
542
  display_text?: string | undefined;
456
- }>, "many">;
543
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
544
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
+ display_text: z.ZodString;
546
+ amount: z.ZodNumber;
547
+ }, "strip", z.ZodTypeAny, {
548
+ display_text: string;
549
+ amount: number;
550
+ }, {
551
+ display_text: string;
552
+ amount: number;
553
+ }>, "many">>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ lines?: {
556
+ display_text: string;
557
+ amount: number;
558
+ }[] | undefined;
559
+ }, {
560
+ lines?: {
561
+ display_text: string;
562
+ amount: number;
563
+ }[] | undefined;
564
+ }>, z.ZodAny>>, "many">;
457
565
  messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
458
566
  links: z.ZodArray<z.ZodObject<{
459
567
  type: z.ZodString;
@@ -660,17 +768,21 @@ declare const CheckoutSessionSchema: z.ZodObject<{
660
768
  }>>;
661
769
  order: z.ZodOptional<z.ZodObject<{
662
770
  id: z.ZodString;
771
+ label: z.ZodOptional<z.ZodString>;
663
772
  permalink_url: z.ZodString;
664
773
  }, "strip", z.ZodTypeAny, {
665
774
  id: string;
666
775
  permalink_url: string;
776
+ label?: string | undefined;
667
777
  }, {
668
778
  id: string;
669
779
  permalink_url: string;
780
+ label?: string | undefined;
670
781
  }>>;
671
782
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
672
783
  ucp: z.ZodIntersection<z.ZodObject<{
673
784
  version: z.ZodString;
785
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
674
786
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
675
787
  version: z.ZodString;
676
788
  spec: z.ZodOptional<z.ZodString>;
@@ -718,11 +830,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
718
830
  id?: string | undefined;
719
831
  config?: Record<string, unknown> | undefined;
720
832
  }>, z.ZodObject<{
721
- extends: z.ZodOptional<z.ZodString>;
833
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
722
834
  }, "strip", z.ZodTypeAny, {
723
- extends?: string | undefined;
835
+ extends?: unknown;
724
836
  }, {
725
- extends?: string | undefined;
837
+ extends?: unknown;
726
838
  }>>, "many">>>;
727
839
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
728
840
  version: z.ZodString;
@@ -742,9 +854,31 @@ declare const CheckoutSessionSchema: z.ZodObject<{
742
854
  schema?: string | undefined;
743
855
  id?: string | undefined;
744
856
  config?: Record<string, unknown> | undefined;
745
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
857
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
858
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
859
+ type: z.ZodString;
860
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ type: string;
863
+ constraints?: Record<string, unknown> | undefined;
864
+ }, {
865
+ type: string;
866
+ constraints?: Record<string, unknown> | undefined;
867
+ }>, "many">>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ available_instruments?: {
870
+ type: string;
871
+ constraints?: Record<string, unknown> | undefined;
872
+ }[] | undefined;
873
+ }, {
874
+ available_instruments?: {
875
+ type: string;
876
+ constraints?: Record<string, unknown> | undefined;
877
+ }[] | undefined;
878
+ }>>>, "many">>>;
746
879
  }, "strip", z.ZodTypeAny, {
747
880
  version: string;
881
+ status: "success" | "error";
748
882
  services?: Record<string, ({
749
883
  version: string;
750
884
  spec?: string | undefined;
@@ -762,7 +896,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
762
896
  id?: string | undefined;
763
897
  config?: Record<string, unknown> | undefined;
764
898
  } & {
765
- extends?: string | undefined;
899
+ extends?: unknown;
766
900
  })[]> | undefined;
767
901
  payment_handlers?: Record<string, ({
768
902
  version: string;
@@ -770,9 +904,15 @@ declare const CheckoutSessionSchema: z.ZodObject<{
770
904
  schema?: string | undefined;
771
905
  id?: string | undefined;
772
906
  config?: Record<string, unknown> | undefined;
773
- } & Record<string, unknown>)[]> | undefined;
907
+ } & Record<string, unknown> & {
908
+ available_instruments?: {
909
+ type: string;
910
+ constraints?: Record<string, unknown> | undefined;
911
+ }[] | undefined;
912
+ })[]> | undefined;
774
913
  }, {
775
914
  version: string;
915
+ status?: "success" | "error" | undefined;
776
916
  services?: Record<string, ({
777
917
  version: string;
778
918
  spec?: string | undefined;
@@ -790,7 +930,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
790
930
  id?: string | undefined;
791
931
  config?: Record<string, unknown> | undefined;
792
932
  } & {
793
- extends?: string | undefined;
933
+ extends?: unknown;
794
934
  })[]> | undefined;
795
935
  payment_handlers?: Record<string, ({
796
936
  version: string;
@@ -798,7 +938,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
798
938
  schema?: string | undefined;
799
939
  id?: string | undefined;
800
940
  config?: Record<string, unknown> | undefined;
801
- } & Record<string, unknown>)[]> | undefined;
941
+ } & Record<string, unknown> & {
942
+ available_instruments?: {
943
+ type: string;
944
+ constraints?: Record<string, unknown> | undefined;
945
+ }[] | undefined;
946
+ })[]> | undefined;
802
947
  }>, z.ZodObject<{
803
948
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
804
949
  version: z.ZodString;
@@ -849,19 +994,24 @@ declare const CheckoutSessionSchema: z.ZodObject<{
849
994
  transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
850
995
  config: z.ZodOptional<z.ZodObject<{
851
996
  delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
997
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
852
998
  }, "strip", z.ZodTypeAny, {
853
999
  delegate?: string[] | undefined;
1000
+ color_scheme?: ("light" | "dark")[] | undefined;
854
1001
  }, {
855
1002
  delegate?: string[] | undefined;
1003
+ color_scheme?: ("light" | "dark")[] | undefined;
856
1004
  }>>;
857
1005
  }, "strip", z.ZodTypeAny, {
858
1006
  config?: {
859
1007
  delegate?: string[] | undefined;
1008
+ color_scheme?: ("light" | "dark")[] | undefined;
860
1009
  } | undefined;
861
1010
  transport?: "embedded" | undefined;
862
1011
  }, {
863
1012
  config?: {
864
1013
  delegate?: string[] | undefined;
1014
+ color_scheme?: ("light" | "dark")[] | undefined;
865
1015
  } | undefined;
866
1016
  transport?: "embedded" | undefined;
867
1017
  }>]>>, "many">>>;
@@ -884,11 +1034,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
884
1034
  id?: string | undefined;
885
1035
  config?: Record<string, unknown> | undefined;
886
1036
  }>, z.ZodObject<{
887
- extends: z.ZodOptional<z.ZodString>;
1037
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
888
1038
  }, "strip", z.ZodTypeAny, {
889
- extends?: string | undefined;
1039
+ extends?: unknown;
890
1040
  }, {
891
- extends?: string | undefined;
1041
+ extends?: unknown;
892
1042
  }>>, "many">>>;
893
1043
  payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
894
1044
  version: z.ZodString;
@@ -908,7 +1058,28 @@ declare const CheckoutSessionSchema: z.ZodObject<{
908
1058
  schema?: string | undefined;
909
1059
  id?: string | undefined;
910
1060
  config?: Record<string, unknown> | undefined;
911
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
1061
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
1062
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1063
+ type: z.ZodString;
1064
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ type: string;
1067
+ constraints?: Record<string, unknown> | undefined;
1068
+ }, {
1069
+ type: string;
1070
+ constraints?: Record<string, unknown> | undefined;
1071
+ }>, "many">>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ available_instruments?: {
1074
+ type: string;
1075
+ constraints?: Record<string, unknown> | undefined;
1076
+ }[] | undefined;
1077
+ }, {
1078
+ available_instruments?: {
1079
+ type: string;
1080
+ constraints?: Record<string, unknown> | undefined;
1081
+ }[] | undefined;
1082
+ }>>>, "many">>;
912
1083
  }, "strip", z.ZodTypeAny, {
913
1084
  payment_handlers: Record<string, ({
914
1085
  version: string;
@@ -916,7 +1087,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
916
1087
  schema?: string | undefined;
917
1088
  id?: string | undefined;
918
1089
  config?: Record<string, unknown> | undefined;
919
- } & Record<string, unknown>)[]>;
1090
+ } & Record<string, unknown> & {
1091
+ available_instruments?: {
1092
+ type: string;
1093
+ constraints?: Record<string, unknown> | undefined;
1094
+ }[] | undefined;
1095
+ })[]>;
920
1096
  services?: Record<string, ({
921
1097
  version: string;
922
1098
  spec?: string | undefined;
@@ -935,6 +1111,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
935
1111
  } | {
936
1112
  config?: {
937
1113
  delegate?: string[] | undefined;
1114
+ color_scheme?: ("light" | "dark")[] | undefined;
938
1115
  } | undefined;
939
1116
  transport?: "embedded" | undefined;
940
1117
  }))[]> | undefined;
@@ -945,7 +1122,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
945
1122
  id?: string | undefined;
946
1123
  config?: Record<string, unknown> | undefined;
947
1124
  } & {
948
- extends?: string | undefined;
1125
+ extends?: unknown;
949
1126
  })[]> | undefined;
950
1127
  }, {
951
1128
  payment_handlers: Record<string, ({
@@ -954,7 +1131,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
954
1131
  schema?: string | undefined;
955
1132
  id?: string | undefined;
956
1133
  config?: Record<string, unknown> | undefined;
957
- } & Record<string, unknown>)[]>;
1134
+ } & Record<string, unknown> & {
1135
+ available_instruments?: {
1136
+ type: string;
1137
+ constraints?: Record<string, unknown> | undefined;
1138
+ }[] | undefined;
1139
+ })[]>;
958
1140
  services?: Record<string, ({
959
1141
  version: string;
960
1142
  spec?: string | undefined;
@@ -973,6 +1155,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
973
1155
  } | {
974
1156
  config?: {
975
1157
  delegate?: string[] | undefined;
1158
+ color_scheme?: ("light" | "dark")[] | undefined;
976
1159
  } | undefined;
977
1160
  transport?: "embedded" | undefined;
978
1161
  }))[]> | undefined;
@@ -983,7 +1166,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
983
1166
  id?: string | undefined;
984
1167
  config?: Record<string, unknown> | undefined;
985
1168
  } & {
986
- extends?: string | undefined;
1169
+ extends?: unknown;
987
1170
  })[]> | undefined;
988
1171
  }>>;
989
1172
  id: z.ZodString;
@@ -1006,19 +1189,19 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1006
1189
  image_url?: string | undefined;
1007
1190
  }>;
1008
1191
  quantity: z.ZodNumber;
1009
- totals: z.ZodArray<z.ZodObject<{
1010
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1192
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1193
+ type: z.ZodString;
1011
1194
  display_text: z.ZodOptional<z.ZodString>;
1012
1195
  amount: z.ZodNumber;
1013
1196
  }, "strip", z.ZodTypeAny, {
1014
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1197
+ type: string;
1015
1198
  amount: number;
1016
1199
  display_text?: string | undefined;
1017
1200
  }, {
1018
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1201
+ type: string;
1019
1202
  amount: number;
1020
1203
  display_text?: string | undefined;
1021
- }>, "many">;
1204
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
1022
1205
  parent_id: z.ZodOptional<z.ZodString>;
1023
1206
  }, "strip", z.ZodTypeAny, {
1024
1207
  id: string;
@@ -1029,11 +1212,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1029
1212
  image_url?: string | undefined;
1030
1213
  };
1031
1214
  quantity: number;
1032
- totals: {
1033
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1034
- amount: number;
1035
- display_text?: string | undefined;
1036
- }[];
1215
+ totals: any[];
1037
1216
  parent_id?: string | undefined;
1038
1217
  }, {
1039
1218
  id: string;
@@ -1044,11 +1223,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1044
1223
  image_url?: string | undefined;
1045
1224
  };
1046
1225
  quantity: number;
1047
- totals: {
1048
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1049
- amount: number;
1050
- display_text?: string | undefined;
1051
- }[];
1226
+ totals: any[];
1052
1227
  parent_id?: string | undefined;
1053
1228
  }>, "many">;
1054
1229
  buyer: z.ZodOptional<z.ZodObject<{
@@ -1071,30 +1246,73 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1071
1246
  address_country: z.ZodOptional<z.ZodString>;
1072
1247
  address_region: z.ZodOptional<z.ZodString>;
1073
1248
  postal_code: z.ZodOptional<z.ZodString>;
1249
+ intent: z.ZodOptional<z.ZodString>;
1250
+ language: z.ZodOptional<z.ZodString>;
1251
+ currency: z.ZodOptional<z.ZodString>;
1252
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1074
1253
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1075
1254
  address_country: z.ZodOptional<z.ZodString>;
1076
1255
  address_region: z.ZodOptional<z.ZodString>;
1077
1256
  postal_code: z.ZodOptional<z.ZodString>;
1257
+ intent: z.ZodOptional<z.ZodString>;
1258
+ language: z.ZodOptional<z.ZodString>;
1259
+ currency: z.ZodOptional<z.ZodString>;
1260
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1078
1261
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1079
1262
  address_country: z.ZodOptional<z.ZodString>;
1080
1263
  address_region: z.ZodOptional<z.ZodString>;
1081
1264
  postal_code: z.ZodOptional<z.ZodString>;
1265
+ intent: z.ZodOptional<z.ZodString>;
1266
+ language: z.ZodOptional<z.ZodString>;
1267
+ currency: z.ZodOptional<z.ZodString>;
1268
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1269
+ }, z.ZodTypeAny, "passthrough">>>;
1270
+ signals: z.ZodOptional<z.ZodObject<{
1271
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
1272
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
1273
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1274
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
1275
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
1276
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1277
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
1278
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
1082
1279
  }, z.ZodTypeAny, "passthrough">>>;
1083
1280
  status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
1084
1281
  currency: z.ZodString;
1085
- totals: z.ZodArray<z.ZodObject<{
1086
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1282
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1283
+ type: z.ZodString;
1087
1284
  display_text: z.ZodOptional<z.ZodString>;
1088
1285
  amount: z.ZodNumber;
1089
1286
  }, "strip", z.ZodTypeAny, {
1090
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1287
+ type: string;
1091
1288
  amount: number;
1092
1289
  display_text?: string | undefined;
1093
1290
  }, {
1094
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1291
+ type: string;
1095
1292
  amount: number;
1096
1293
  display_text?: string | undefined;
1097
- }>, "many">;
1294
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
1295
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1296
+ display_text: z.ZodString;
1297
+ amount: z.ZodNumber;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ display_text: string;
1300
+ amount: number;
1301
+ }, {
1302
+ display_text: string;
1303
+ amount: number;
1304
+ }>, "many">>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ lines?: {
1307
+ display_text: string;
1308
+ amount: number;
1309
+ }[] | undefined;
1310
+ }, {
1311
+ lines?: {
1312
+ display_text: string;
1313
+ amount: number;
1314
+ }[] | undefined;
1315
+ }>, z.ZodAny>>, "many">;
1098
1316
  messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
1099
1317
  links: z.ZodArray<z.ZodObject<{
1100
1318
  type: z.ZodString;
@@ -1301,17 +1519,21 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1301
1519
  }>>;
1302
1520
  order: z.ZodOptional<z.ZodObject<{
1303
1521
  id: z.ZodString;
1522
+ label: z.ZodOptional<z.ZodString>;
1304
1523
  permalink_url: z.ZodString;
1305
1524
  }, "strip", z.ZodTypeAny, {
1306
1525
  id: string;
1307
1526
  permalink_url: string;
1527
+ label?: string | undefined;
1308
1528
  }, {
1309
1529
  id: string;
1310
1530
  permalink_url: string;
1531
+ label?: string | undefined;
1311
1532
  }>>;
1312
1533
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1313
1534
  ucp: z.ZodIntersection<z.ZodObject<{
1314
1535
  version: z.ZodString;
1536
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
1315
1537
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1316
1538
  version: z.ZodString;
1317
1539
  spec: z.ZodOptional<z.ZodString>;
@@ -1359,11 +1581,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1359
1581
  id?: string | undefined;
1360
1582
  config?: Record<string, unknown> | undefined;
1361
1583
  }>, z.ZodObject<{
1362
- extends: z.ZodOptional<z.ZodString>;
1584
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
1363
1585
  }, "strip", z.ZodTypeAny, {
1364
- extends?: string | undefined;
1586
+ extends?: unknown;
1365
1587
  }, {
1366
- extends?: string | undefined;
1588
+ extends?: unknown;
1367
1589
  }>>, "many">>>;
1368
1590
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1369
1591
  version: z.ZodString;
@@ -1383,9 +1605,31 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1383
1605
  schema?: string | undefined;
1384
1606
  id?: string | undefined;
1385
1607
  config?: Record<string, unknown> | undefined;
1386
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
1608
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
1609
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1610
+ type: z.ZodString;
1611
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ type: string;
1614
+ constraints?: Record<string, unknown> | undefined;
1615
+ }, {
1616
+ type: string;
1617
+ constraints?: Record<string, unknown> | undefined;
1618
+ }>, "many">>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ available_instruments?: {
1621
+ type: string;
1622
+ constraints?: Record<string, unknown> | undefined;
1623
+ }[] | undefined;
1624
+ }, {
1625
+ available_instruments?: {
1626
+ type: string;
1627
+ constraints?: Record<string, unknown> | undefined;
1628
+ }[] | undefined;
1629
+ }>>>, "many">>>;
1387
1630
  }, "strip", z.ZodTypeAny, {
1388
1631
  version: string;
1632
+ status: "success" | "error";
1389
1633
  services?: Record<string, ({
1390
1634
  version: string;
1391
1635
  spec?: string | undefined;
@@ -1403,7 +1647,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1403
1647
  id?: string | undefined;
1404
1648
  config?: Record<string, unknown> | undefined;
1405
1649
  } & {
1406
- extends?: string | undefined;
1650
+ extends?: unknown;
1407
1651
  })[]> | undefined;
1408
1652
  payment_handlers?: Record<string, ({
1409
1653
  version: string;
@@ -1411,9 +1655,15 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1411
1655
  schema?: string | undefined;
1412
1656
  id?: string | undefined;
1413
1657
  config?: Record<string, unknown> | undefined;
1414
- } & Record<string, unknown>)[]> | undefined;
1658
+ } & Record<string, unknown> & {
1659
+ available_instruments?: {
1660
+ type: string;
1661
+ constraints?: Record<string, unknown> | undefined;
1662
+ }[] | undefined;
1663
+ })[]> | undefined;
1415
1664
  }, {
1416
1665
  version: string;
1666
+ status?: "success" | "error" | undefined;
1417
1667
  services?: Record<string, ({
1418
1668
  version: string;
1419
1669
  spec?: string | undefined;
@@ -1431,7 +1681,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1431
1681
  id?: string | undefined;
1432
1682
  config?: Record<string, unknown> | undefined;
1433
1683
  } & {
1434
- extends?: string | undefined;
1684
+ extends?: unknown;
1435
1685
  })[]> | undefined;
1436
1686
  payment_handlers?: Record<string, ({
1437
1687
  version: string;
@@ -1439,7 +1689,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1439
1689
  schema?: string | undefined;
1440
1690
  id?: string | undefined;
1441
1691
  config?: Record<string, unknown> | undefined;
1442
- } & Record<string, unknown>)[]> | undefined;
1692
+ } & Record<string, unknown> & {
1693
+ available_instruments?: {
1694
+ type: string;
1695
+ constraints?: Record<string, unknown> | undefined;
1696
+ }[] | undefined;
1697
+ })[]> | undefined;
1443
1698
  }>, z.ZodObject<{
1444
1699
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1445
1700
  version: z.ZodString;
@@ -1490,19 +1745,24 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1490
1745
  transport: z.ZodOptional<z.ZodLiteral<"embedded">>;
1491
1746
  config: z.ZodOptional<z.ZodObject<{
1492
1747
  delegate: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1748
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1493
1749
  }, "strip", z.ZodTypeAny, {
1494
1750
  delegate?: string[] | undefined;
1751
+ color_scheme?: ("light" | "dark")[] | undefined;
1495
1752
  }, {
1496
1753
  delegate?: string[] | undefined;
1754
+ color_scheme?: ("light" | "dark")[] | undefined;
1497
1755
  }>>;
1498
1756
  }, "strip", z.ZodTypeAny, {
1499
1757
  config?: {
1500
1758
  delegate?: string[] | undefined;
1759
+ color_scheme?: ("light" | "dark")[] | undefined;
1501
1760
  } | undefined;
1502
1761
  transport?: "embedded" | undefined;
1503
1762
  }, {
1504
1763
  config?: {
1505
1764
  delegate?: string[] | undefined;
1765
+ color_scheme?: ("light" | "dark")[] | undefined;
1506
1766
  } | undefined;
1507
1767
  transport?: "embedded" | undefined;
1508
1768
  }>]>>, "many">>>;
@@ -1525,11 +1785,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1525
1785
  id?: string | undefined;
1526
1786
  config?: Record<string, unknown> | undefined;
1527
1787
  }>, z.ZodObject<{
1528
- extends: z.ZodOptional<z.ZodString>;
1788
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
1529
1789
  }, "strip", z.ZodTypeAny, {
1530
- extends?: string | undefined;
1790
+ extends?: unknown;
1531
1791
  }, {
1532
- extends?: string | undefined;
1792
+ extends?: unknown;
1533
1793
  }>>, "many">>>;
1534
1794
  payment_handlers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1535
1795
  version: z.ZodString;
@@ -1549,7 +1809,28 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1549
1809
  schema?: string | undefined;
1550
1810
  id?: string | undefined;
1551
1811
  config?: Record<string, unknown> | undefined;
1552
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>;
1812
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
1813
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1814
+ type: z.ZodString;
1815
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ type: string;
1818
+ constraints?: Record<string, unknown> | undefined;
1819
+ }, {
1820
+ type: string;
1821
+ constraints?: Record<string, unknown> | undefined;
1822
+ }>, "many">>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ available_instruments?: {
1825
+ type: string;
1826
+ constraints?: Record<string, unknown> | undefined;
1827
+ }[] | undefined;
1828
+ }, {
1829
+ available_instruments?: {
1830
+ type: string;
1831
+ constraints?: Record<string, unknown> | undefined;
1832
+ }[] | undefined;
1833
+ }>>>, "many">>;
1553
1834
  }, "strip", z.ZodTypeAny, {
1554
1835
  payment_handlers: Record<string, ({
1555
1836
  version: string;
@@ -1557,7 +1838,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1557
1838
  schema?: string | undefined;
1558
1839
  id?: string | undefined;
1559
1840
  config?: Record<string, unknown> | undefined;
1560
- } & Record<string, unknown>)[]>;
1841
+ } & Record<string, unknown> & {
1842
+ available_instruments?: {
1843
+ type: string;
1844
+ constraints?: Record<string, unknown> | undefined;
1845
+ }[] | undefined;
1846
+ })[]>;
1561
1847
  services?: Record<string, ({
1562
1848
  version: string;
1563
1849
  spec?: string | undefined;
@@ -1576,6 +1862,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1576
1862
  } | {
1577
1863
  config?: {
1578
1864
  delegate?: string[] | undefined;
1865
+ color_scheme?: ("light" | "dark")[] | undefined;
1579
1866
  } | undefined;
1580
1867
  transport?: "embedded" | undefined;
1581
1868
  }))[]> | undefined;
@@ -1586,7 +1873,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1586
1873
  id?: string | undefined;
1587
1874
  config?: Record<string, unknown> | undefined;
1588
1875
  } & {
1589
- extends?: string | undefined;
1876
+ extends?: unknown;
1590
1877
  })[]> | undefined;
1591
1878
  }, {
1592
1879
  payment_handlers: Record<string, ({
@@ -1595,7 +1882,12 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1595
1882
  schema?: string | undefined;
1596
1883
  id?: string | undefined;
1597
1884
  config?: Record<string, unknown> | undefined;
1598
- } & Record<string, unknown>)[]>;
1885
+ } & Record<string, unknown> & {
1886
+ available_instruments?: {
1887
+ type: string;
1888
+ constraints?: Record<string, unknown> | undefined;
1889
+ }[] | undefined;
1890
+ })[]>;
1599
1891
  services?: Record<string, ({
1600
1892
  version: string;
1601
1893
  spec?: string | undefined;
@@ -1614,6 +1906,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1614
1906
  } | {
1615
1907
  config?: {
1616
1908
  delegate?: string[] | undefined;
1909
+ color_scheme?: ("light" | "dark")[] | undefined;
1617
1910
  } | undefined;
1618
1911
  transport?: "embedded" | undefined;
1619
1912
  }))[]> | undefined;
@@ -1624,7 +1917,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1624
1917
  id?: string | undefined;
1625
1918
  config?: Record<string, unknown> | undefined;
1626
1919
  } & {
1627
- extends?: string | undefined;
1920
+ extends?: unknown;
1628
1921
  })[]> | undefined;
1629
1922
  }>>;
1630
1923
  id: z.ZodString;
@@ -1647,19 +1940,19 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1647
1940
  image_url?: string | undefined;
1648
1941
  }>;
1649
1942
  quantity: z.ZodNumber;
1650
- totals: z.ZodArray<z.ZodObject<{
1651
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
1943
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1944
+ type: z.ZodString;
1652
1945
  display_text: z.ZodOptional<z.ZodString>;
1653
1946
  amount: z.ZodNumber;
1654
1947
  }, "strip", z.ZodTypeAny, {
1655
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1948
+ type: string;
1656
1949
  amount: number;
1657
1950
  display_text?: string | undefined;
1658
1951
  }, {
1659
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1952
+ type: string;
1660
1953
  amount: number;
1661
1954
  display_text?: string | undefined;
1662
- }>, "many">;
1955
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
1663
1956
  parent_id: z.ZodOptional<z.ZodString>;
1664
1957
  }, "strip", z.ZodTypeAny, {
1665
1958
  id: string;
@@ -1670,11 +1963,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1670
1963
  image_url?: string | undefined;
1671
1964
  };
1672
1965
  quantity: number;
1673
- totals: {
1674
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1675
- amount: number;
1676
- display_text?: string | undefined;
1677
- }[];
1966
+ totals: any[];
1678
1967
  parent_id?: string | undefined;
1679
1968
  }, {
1680
1969
  id: string;
@@ -1685,11 +1974,7 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1685
1974
  image_url?: string | undefined;
1686
1975
  };
1687
1976
  quantity: number;
1688
- totals: {
1689
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
1690
- amount: number;
1691
- display_text?: string | undefined;
1692
- }[];
1977
+ totals: any[];
1693
1978
  parent_id?: string | undefined;
1694
1979
  }>, "many">;
1695
1980
  buyer: z.ZodOptional<z.ZodObject<{
@@ -1712,30 +1997,73 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1712
1997
  address_country: z.ZodOptional<z.ZodString>;
1713
1998
  address_region: z.ZodOptional<z.ZodString>;
1714
1999
  postal_code: z.ZodOptional<z.ZodString>;
2000
+ intent: z.ZodOptional<z.ZodString>;
2001
+ language: z.ZodOptional<z.ZodString>;
2002
+ currency: z.ZodOptional<z.ZodString>;
2003
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1715
2004
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1716
2005
  address_country: z.ZodOptional<z.ZodString>;
1717
2006
  address_region: z.ZodOptional<z.ZodString>;
1718
2007
  postal_code: z.ZodOptional<z.ZodString>;
2008
+ intent: z.ZodOptional<z.ZodString>;
2009
+ language: z.ZodOptional<z.ZodString>;
2010
+ currency: z.ZodOptional<z.ZodString>;
2011
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1719
2012
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1720
2013
  address_country: z.ZodOptional<z.ZodString>;
1721
2014
  address_region: z.ZodOptional<z.ZodString>;
1722
2015
  postal_code: z.ZodOptional<z.ZodString>;
2016
+ intent: z.ZodOptional<z.ZodString>;
2017
+ language: z.ZodOptional<z.ZodString>;
2018
+ currency: z.ZodOptional<z.ZodString>;
2019
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2020
+ }, z.ZodTypeAny, "passthrough">>>;
2021
+ signals: z.ZodOptional<z.ZodObject<{
2022
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
2023
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
2024
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2025
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
2026
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
2027
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2028
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
2029
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
1723
2030
  }, z.ZodTypeAny, "passthrough">>>;
1724
2031
  status: z.ZodEnum<["incomplete", "requires_escalation", "ready_for_complete", "complete_in_progress", "completed", "canceled"]>;
1725
2032
  currency: z.ZodString;
1726
- totals: z.ZodArray<z.ZodObject<{
1727
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
2033
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2034
+ type: z.ZodString;
1728
2035
  display_text: z.ZodOptional<z.ZodString>;
1729
2036
  amount: z.ZodNumber;
1730
2037
  }, "strip", z.ZodTypeAny, {
1731
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2038
+ type: string;
1732
2039
  amount: number;
1733
2040
  display_text?: string | undefined;
1734
2041
  }, {
1735
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2042
+ type: string;
1736
2043
  amount: number;
1737
2044
  display_text?: string | undefined;
1738
- }>, "many">;
2045
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
2046
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
2047
+ display_text: z.ZodString;
2048
+ amount: z.ZodNumber;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ display_text: string;
2051
+ amount: number;
2052
+ }, {
2053
+ display_text: string;
2054
+ amount: number;
2055
+ }>, "many">>;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ lines?: {
2058
+ display_text: string;
2059
+ amount: number;
2060
+ }[] | undefined;
2061
+ }, {
2062
+ lines?: {
2063
+ display_text: string;
2064
+ amount: number;
2065
+ }[] | undefined;
2066
+ }>, z.ZodAny>>, "many">;
1739
2067
  messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
1740
2068
  links: z.ZodArray<z.ZodObject<{
1741
2069
  type: z.ZodString;
@@ -1942,18 +2270,22 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1942
2270
  }>>;
1943
2271
  order: z.ZodOptional<z.ZodObject<{
1944
2272
  id: z.ZodString;
2273
+ label: z.ZodOptional<z.ZodString>;
1945
2274
  permalink_url: z.ZodString;
1946
2275
  }, "strip", z.ZodTypeAny, {
1947
2276
  id: string;
1948
2277
  permalink_url: string;
2278
+ label?: string | undefined;
1949
2279
  }, {
1950
2280
  id: string;
1951
2281
  permalink_url: string;
2282
+ label?: string | undefined;
1952
2283
  }>>;
1953
2284
  }, z.ZodTypeAny, "passthrough">>;
1954
2285
  declare const UCPProfileSchema: z.ZodObject<{
1955
2286
  ucp: z.ZodObject<{
1956
2287
  version: z.ZodString;
2288
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
1957
2289
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
1958
2290
  version: z.ZodString;
1959
2291
  spec: z.ZodOptional<z.ZodString>;
@@ -2001,11 +2333,11 @@ declare const UCPProfileSchema: z.ZodObject<{
2001
2333
  id?: string | undefined;
2002
2334
  config?: Record<string, unknown> | undefined;
2003
2335
  }>, z.ZodObject<{
2004
- extends: z.ZodOptional<z.ZodString>;
2336
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
2005
2337
  }, "strip", z.ZodTypeAny, {
2006
- extends?: string | undefined;
2338
+ extends?: unknown;
2007
2339
  }, {
2008
- extends?: string | undefined;
2340
+ extends?: unknown;
2009
2341
  }>>, "many">>>;
2010
2342
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2011
2343
  version: z.ZodString;
@@ -2025,9 +2357,31 @@ declare const UCPProfileSchema: z.ZodObject<{
2025
2357
  schema?: string | undefined;
2026
2358
  id?: string | undefined;
2027
2359
  config?: Record<string, unknown> | undefined;
2028
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2360
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
2361
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2362
+ type: z.ZodString;
2363
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ type: string;
2366
+ constraints?: Record<string, unknown> | undefined;
2367
+ }, {
2368
+ type: string;
2369
+ constraints?: Record<string, unknown> | undefined;
2370
+ }>, "many">>;
2371
+ }, "strip", z.ZodTypeAny, {
2372
+ available_instruments?: {
2373
+ type: string;
2374
+ constraints?: Record<string, unknown> | undefined;
2375
+ }[] | undefined;
2376
+ }, {
2377
+ available_instruments?: {
2378
+ type: string;
2379
+ constraints?: Record<string, unknown> | undefined;
2380
+ }[] | undefined;
2381
+ }>>>, "many">>>;
2029
2382
  }, "strip", z.ZodTypeAny, {
2030
2383
  version: string;
2384
+ status: "success" | "error";
2031
2385
  services?: Record<string, ({
2032
2386
  version: string;
2033
2387
  spec?: string | undefined;
@@ -2045,7 +2399,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2045
2399
  id?: string | undefined;
2046
2400
  config?: Record<string, unknown> | undefined;
2047
2401
  } & {
2048
- extends?: string | undefined;
2402
+ extends?: unknown;
2049
2403
  })[]> | undefined;
2050
2404
  payment_handlers?: Record<string, ({
2051
2405
  version: string;
@@ -2053,9 +2407,15 @@ declare const UCPProfileSchema: z.ZodObject<{
2053
2407
  schema?: string | undefined;
2054
2408
  id?: string | undefined;
2055
2409
  config?: Record<string, unknown> | undefined;
2056
- } & Record<string, unknown>)[]> | undefined;
2410
+ } & Record<string, unknown> & {
2411
+ available_instruments?: {
2412
+ type: string;
2413
+ constraints?: Record<string, unknown> | undefined;
2414
+ }[] | undefined;
2415
+ })[]> | undefined;
2057
2416
  }, {
2058
2417
  version: string;
2418
+ status?: "success" | "error" | undefined;
2059
2419
  services?: Record<string, ({
2060
2420
  version: string;
2061
2421
  spec?: string | undefined;
@@ -2073,7 +2433,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2073
2433
  id?: string | undefined;
2074
2434
  config?: Record<string, unknown> | undefined;
2075
2435
  } & {
2076
- extends?: string | undefined;
2436
+ extends?: unknown;
2077
2437
  })[]> | undefined;
2078
2438
  payment_handlers?: Record<string, ({
2079
2439
  version: string;
@@ -2081,7 +2441,12 @@ declare const UCPProfileSchema: z.ZodObject<{
2081
2441
  schema?: string | undefined;
2082
2442
  id?: string | undefined;
2083
2443
  config?: Record<string, unknown> | undefined;
2084
- } & Record<string, unknown>)[]> | undefined;
2444
+ } & Record<string, unknown> & {
2445
+ available_instruments?: {
2446
+ type: string;
2447
+ constraints?: Record<string, unknown> | undefined;
2448
+ }[] | undefined;
2449
+ })[]> | undefined;
2085
2450
  }>;
2086
2451
  signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2087
2452
  kid: z.ZodString;
@@ -2117,6 +2482,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2117
2482
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2118
2483
  ucp: z.ZodObject<{
2119
2484
  version: z.ZodString;
2485
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
2120
2486
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2121
2487
  version: z.ZodString;
2122
2488
  spec: z.ZodOptional<z.ZodString>;
@@ -2164,11 +2530,11 @@ declare const UCPProfileSchema: z.ZodObject<{
2164
2530
  id?: string | undefined;
2165
2531
  config?: Record<string, unknown> | undefined;
2166
2532
  }>, z.ZodObject<{
2167
- extends: z.ZodOptional<z.ZodString>;
2533
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
2168
2534
  }, "strip", z.ZodTypeAny, {
2169
- extends?: string | undefined;
2535
+ extends?: unknown;
2170
2536
  }, {
2171
- extends?: string | undefined;
2537
+ extends?: unknown;
2172
2538
  }>>, "many">>>;
2173
2539
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2174
2540
  version: z.ZodString;
@@ -2188,9 +2554,31 @@ declare const UCPProfileSchema: z.ZodObject<{
2188
2554
  schema?: string | undefined;
2189
2555
  id?: string | undefined;
2190
2556
  config?: Record<string, unknown> | undefined;
2191
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2557
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
2558
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2559
+ type: z.ZodString;
2560
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2561
+ }, "strip", z.ZodTypeAny, {
2562
+ type: string;
2563
+ constraints?: Record<string, unknown> | undefined;
2564
+ }, {
2565
+ type: string;
2566
+ constraints?: Record<string, unknown> | undefined;
2567
+ }>, "many">>;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ available_instruments?: {
2570
+ type: string;
2571
+ constraints?: Record<string, unknown> | undefined;
2572
+ }[] | undefined;
2573
+ }, {
2574
+ available_instruments?: {
2575
+ type: string;
2576
+ constraints?: Record<string, unknown> | undefined;
2577
+ }[] | undefined;
2578
+ }>>>, "many">>>;
2192
2579
  }, "strip", z.ZodTypeAny, {
2193
2580
  version: string;
2581
+ status: "success" | "error";
2194
2582
  services?: Record<string, ({
2195
2583
  version: string;
2196
2584
  spec?: string | undefined;
@@ -2208,7 +2596,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2208
2596
  id?: string | undefined;
2209
2597
  config?: Record<string, unknown> | undefined;
2210
2598
  } & {
2211
- extends?: string | undefined;
2599
+ extends?: unknown;
2212
2600
  })[]> | undefined;
2213
2601
  payment_handlers?: Record<string, ({
2214
2602
  version: string;
@@ -2216,9 +2604,15 @@ declare const UCPProfileSchema: z.ZodObject<{
2216
2604
  schema?: string | undefined;
2217
2605
  id?: string | undefined;
2218
2606
  config?: Record<string, unknown> | undefined;
2219
- } & Record<string, unknown>)[]> | undefined;
2607
+ } & Record<string, unknown> & {
2608
+ available_instruments?: {
2609
+ type: string;
2610
+ constraints?: Record<string, unknown> | undefined;
2611
+ }[] | undefined;
2612
+ })[]> | undefined;
2220
2613
  }, {
2221
2614
  version: string;
2615
+ status?: "success" | "error" | undefined;
2222
2616
  services?: Record<string, ({
2223
2617
  version: string;
2224
2618
  spec?: string | undefined;
@@ -2236,7 +2630,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2236
2630
  id?: string | undefined;
2237
2631
  config?: Record<string, unknown> | undefined;
2238
2632
  } & {
2239
- extends?: string | undefined;
2633
+ extends?: unknown;
2240
2634
  })[]> | undefined;
2241
2635
  payment_handlers?: Record<string, ({
2242
2636
  version: string;
@@ -2244,7 +2638,12 @@ declare const UCPProfileSchema: z.ZodObject<{
2244
2638
  schema?: string | undefined;
2245
2639
  id?: string | undefined;
2246
2640
  config?: Record<string, unknown> | undefined;
2247
- } & Record<string, unknown>)[]> | undefined;
2641
+ } & Record<string, unknown> & {
2642
+ available_instruments?: {
2643
+ type: string;
2644
+ constraints?: Record<string, unknown> | undefined;
2645
+ }[] | undefined;
2646
+ })[]> | undefined;
2248
2647
  }>;
2249
2648
  signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
2649
  kid: z.ZodString;
@@ -2280,6 +2679,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2280
2679
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2281
2680
  ucp: z.ZodObject<{
2282
2681
  version: z.ZodString;
2682
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
2283
2683
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2284
2684
  version: z.ZodString;
2285
2685
  spec: z.ZodOptional<z.ZodString>;
@@ -2327,11 +2727,11 @@ declare const UCPProfileSchema: z.ZodObject<{
2327
2727
  id?: string | undefined;
2328
2728
  config?: Record<string, unknown> | undefined;
2329
2729
  }>, z.ZodObject<{
2330
- extends: z.ZodOptional<z.ZodString>;
2730
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
2331
2731
  }, "strip", z.ZodTypeAny, {
2332
- extends?: string | undefined;
2732
+ extends?: unknown;
2333
2733
  }, {
2334
- extends?: string | undefined;
2734
+ extends?: unknown;
2335
2735
  }>>, "many">>>;
2336
2736
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2337
2737
  version: z.ZodString;
@@ -2351,9 +2751,31 @@ declare const UCPProfileSchema: z.ZodObject<{
2351
2751
  schema?: string | undefined;
2352
2752
  id?: string | undefined;
2353
2753
  config?: Record<string, unknown> | undefined;
2354
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
2754
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
2755
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2756
+ type: z.ZodString;
2757
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ type: string;
2760
+ constraints?: Record<string, unknown> | undefined;
2761
+ }, {
2762
+ type: string;
2763
+ constraints?: Record<string, unknown> | undefined;
2764
+ }>, "many">>;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ available_instruments?: {
2767
+ type: string;
2768
+ constraints?: Record<string, unknown> | undefined;
2769
+ }[] | undefined;
2770
+ }, {
2771
+ available_instruments?: {
2772
+ type: string;
2773
+ constraints?: Record<string, unknown> | undefined;
2774
+ }[] | undefined;
2775
+ }>>>, "many">>>;
2355
2776
  }, "strip", z.ZodTypeAny, {
2356
2777
  version: string;
2778
+ status: "success" | "error";
2357
2779
  services?: Record<string, ({
2358
2780
  version: string;
2359
2781
  spec?: string | undefined;
@@ -2371,7 +2793,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2371
2793
  id?: string | undefined;
2372
2794
  config?: Record<string, unknown> | undefined;
2373
2795
  } & {
2374
- extends?: string | undefined;
2796
+ extends?: unknown;
2375
2797
  })[]> | undefined;
2376
2798
  payment_handlers?: Record<string, ({
2377
2799
  version: string;
@@ -2379,9 +2801,15 @@ declare const UCPProfileSchema: z.ZodObject<{
2379
2801
  schema?: string | undefined;
2380
2802
  id?: string | undefined;
2381
2803
  config?: Record<string, unknown> | undefined;
2382
- } & Record<string, unknown>)[]> | undefined;
2804
+ } & Record<string, unknown> & {
2805
+ available_instruments?: {
2806
+ type: string;
2807
+ constraints?: Record<string, unknown> | undefined;
2808
+ }[] | undefined;
2809
+ })[]> | undefined;
2383
2810
  }, {
2384
2811
  version: string;
2812
+ status?: "success" | "error" | undefined;
2385
2813
  services?: Record<string, ({
2386
2814
  version: string;
2387
2815
  spec?: string | undefined;
@@ -2399,7 +2827,7 @@ declare const UCPProfileSchema: z.ZodObject<{
2399
2827
  id?: string | undefined;
2400
2828
  config?: Record<string, unknown> | undefined;
2401
2829
  } & {
2402
- extends?: string | undefined;
2830
+ extends?: unknown;
2403
2831
  })[]> | undefined;
2404
2832
  payment_handlers?: Record<string, ({
2405
2833
  version: string;
@@ -2407,7 +2835,12 @@ declare const UCPProfileSchema: z.ZodObject<{
2407
2835
  schema?: string | undefined;
2408
2836
  id?: string | undefined;
2409
2837
  config?: Record<string, unknown> | undefined;
2410
- } & Record<string, unknown>)[]> | undefined;
2838
+ } & Record<string, unknown> & {
2839
+ available_instruments?: {
2840
+ type: string;
2841
+ constraints?: Record<string, unknown> | undefined;
2842
+ }[] | undefined;
2843
+ })[]> | undefined;
2411
2844
  }>;
2412
2845
  signing_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2413
2846
  kid: z.ZodString;
@@ -2441,19 +2874,973 @@ declare const UCPProfileSchema: z.ZodObject<{
2441
2874
  alg?: string | undefined;
2442
2875
  }>, "many">>;
2443
2876
  }, 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;
2877
+ declare const CartResponseSchema: z.ZodObject<{
2878
+ ucp: z.ZodIntersection<z.ZodObject<{
2879
+ version: z.ZodString;
2880
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
2881
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2882
+ version: z.ZodString;
2883
+ spec: z.ZodOptional<z.ZodString>;
2884
+ schema: z.ZodOptional<z.ZodString>;
2885
+ id: z.ZodOptional<z.ZodString>;
2886
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2887
+ }, "strip", z.ZodTypeAny, {
2888
+ version: string;
2889
+ spec?: string | undefined;
2890
+ schema?: string | undefined;
2891
+ id?: string | undefined;
2892
+ config?: Record<string, unknown> | undefined;
2893
+ }, {
2894
+ version: string;
2895
+ spec?: string | undefined;
2896
+ schema?: string | undefined;
2897
+ id?: string | undefined;
2898
+ config?: Record<string, unknown> | undefined;
2899
+ }>, z.ZodObject<{
2900
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
2901
+ endpoint: z.ZodOptional<z.ZodString>;
2902
+ }, "strip", z.ZodTypeAny, {
2903
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2904
+ endpoint?: string | undefined;
2905
+ }, {
2906
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2907
+ endpoint?: string | undefined;
2908
+ }>>, "many">>>;
2909
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2910
+ version: z.ZodString;
2911
+ spec: z.ZodOptional<z.ZodString>;
2912
+ schema: z.ZodOptional<z.ZodString>;
2913
+ id: z.ZodOptional<z.ZodString>;
2914
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2915
+ }, "strip", z.ZodTypeAny, {
2916
+ version: string;
2917
+ spec?: string | undefined;
2918
+ schema?: string | undefined;
2919
+ id?: string | undefined;
2920
+ config?: Record<string, unknown> | undefined;
2921
+ }, {
2922
+ version: string;
2923
+ spec?: string | undefined;
2924
+ schema?: string | undefined;
2925
+ id?: string | undefined;
2926
+ config?: Record<string, unknown> | undefined;
2927
+ }>, z.ZodObject<{
2928
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ extends?: unknown;
2931
+ }, {
2932
+ extends?: unknown;
2933
+ }>>, "many">>>;
2934
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
2935
+ version: z.ZodString;
2936
+ spec: z.ZodOptional<z.ZodString>;
2937
+ schema: z.ZodOptional<z.ZodString>;
2938
+ id: z.ZodOptional<z.ZodString>;
2939
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2940
+ }, "strip", z.ZodTypeAny, {
2941
+ version: string;
2942
+ spec?: string | undefined;
2943
+ schema?: string | undefined;
2944
+ id?: string | undefined;
2945
+ config?: Record<string, unknown> | undefined;
2946
+ }, {
2947
+ version: string;
2948
+ spec?: string | undefined;
2949
+ schema?: string | undefined;
2950
+ id?: string | undefined;
2951
+ config?: Record<string, unknown> | undefined;
2952
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
2953
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2954
+ type: z.ZodString;
2955
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ type: string;
2958
+ constraints?: Record<string, unknown> | undefined;
2959
+ }, {
2960
+ type: string;
2961
+ constraints?: Record<string, unknown> | undefined;
2962
+ }>, "many">>;
2963
+ }, "strip", z.ZodTypeAny, {
2964
+ available_instruments?: {
2965
+ type: string;
2966
+ constraints?: Record<string, unknown> | undefined;
2967
+ }[] | undefined;
2968
+ }, {
2969
+ available_instruments?: {
2970
+ type: string;
2971
+ constraints?: Record<string, unknown> | undefined;
2972
+ }[] | undefined;
2973
+ }>>>, "many">>>;
2974
+ }, "strip", z.ZodTypeAny, {
2975
+ version: string;
2976
+ status: "success" | "error";
2977
+ services?: Record<string, ({
2978
+ version: string;
2979
+ spec?: string | undefined;
2980
+ schema?: string | undefined;
2981
+ id?: string | undefined;
2982
+ config?: Record<string, unknown> | undefined;
2983
+ } & {
2984
+ transport: "rest" | "mcp" | "a2a" | "embedded";
2985
+ endpoint?: string | undefined;
2986
+ })[]> | undefined;
2987
+ capabilities?: Record<string, ({
2988
+ version: string;
2989
+ spec?: string | undefined;
2990
+ schema?: string | undefined;
2991
+ id?: string | undefined;
2992
+ config?: Record<string, unknown> | undefined;
2993
+ } & {
2994
+ extends?: unknown;
2995
+ })[]> | undefined;
2996
+ payment_handlers?: Record<string, ({
2997
+ version: string;
2998
+ spec?: string | undefined;
2999
+ schema?: string | undefined;
3000
+ id?: string | undefined;
3001
+ config?: Record<string, unknown> | undefined;
3002
+ } & Record<string, unknown> & {
3003
+ available_instruments?: {
3004
+ type: string;
3005
+ constraints?: Record<string, unknown> | undefined;
3006
+ }[] | undefined;
3007
+ })[]> | undefined;
3008
+ }, {
3009
+ version: string;
3010
+ status?: "success" | "error" | undefined;
3011
+ services?: Record<string, ({
3012
+ version: string;
3013
+ spec?: string | undefined;
3014
+ schema?: string | undefined;
3015
+ id?: string | undefined;
3016
+ config?: Record<string, unknown> | undefined;
3017
+ } & {
3018
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3019
+ endpoint?: string | undefined;
3020
+ })[]> | undefined;
3021
+ capabilities?: Record<string, ({
3022
+ version: string;
3023
+ spec?: string | undefined;
3024
+ schema?: string | undefined;
3025
+ id?: string | undefined;
3026
+ config?: Record<string, unknown> | undefined;
3027
+ } & {
3028
+ extends?: unknown;
3029
+ })[]> | undefined;
3030
+ payment_handlers?: Record<string, ({
3031
+ version: string;
3032
+ spec?: string | undefined;
3033
+ schema?: string | undefined;
3034
+ id?: string | undefined;
3035
+ config?: Record<string, unknown> | undefined;
3036
+ } & Record<string, unknown> & {
3037
+ available_instruments?: {
3038
+ type: string;
3039
+ constraints?: Record<string, unknown> | undefined;
3040
+ }[] | undefined;
3041
+ })[]> | undefined;
3042
+ }>, z.ZodObject<{
3043
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3044
+ version: z.ZodString;
3045
+ spec: z.ZodOptional<z.ZodString>;
3046
+ schema: z.ZodOptional<z.ZodString>;
3047
+ id: z.ZodOptional<z.ZodString>;
3048
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ version: string;
3051
+ spec?: string | undefined;
3052
+ schema?: string | undefined;
3053
+ id?: string | undefined;
3054
+ config?: Record<string, unknown> | undefined;
3055
+ }, {
3056
+ version: string;
3057
+ spec?: string | undefined;
3058
+ schema?: string | undefined;
3059
+ id?: string | undefined;
3060
+ config?: Record<string, unknown> | undefined;
3061
+ }>, z.ZodObject<{
3062
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3063
+ }, "strip", z.ZodTypeAny, {
3064
+ extends?: unknown;
3065
+ }, {
3066
+ extends?: unknown;
3067
+ }>>, "many">>>;
3068
+ }, "strip", z.ZodTypeAny, {
3069
+ capabilities?: Record<string, ({
3070
+ version: string;
3071
+ spec?: string | undefined;
3072
+ schema?: string | undefined;
3073
+ id?: string | undefined;
3074
+ config?: Record<string, unknown> | undefined;
3075
+ } & {
3076
+ extends?: unknown;
3077
+ })[]> | undefined;
3078
+ }, {
3079
+ capabilities?: Record<string, ({
3080
+ version: string;
3081
+ spec?: string | undefined;
3082
+ schema?: string | undefined;
3083
+ id?: string | undefined;
3084
+ config?: Record<string, unknown> | undefined;
3085
+ } & {
3086
+ extends?: unknown;
3087
+ })[]> | undefined;
3088
+ }>>;
3089
+ id: z.ZodString;
3090
+ line_items: z.ZodArray<z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ item: z.ZodObject<{
3093
+ id: z.ZodString;
3094
+ title: z.ZodString;
3095
+ price: z.ZodNumber;
3096
+ image_url: z.ZodOptional<z.ZodString>;
3097
+ }, "strip", z.ZodTypeAny, {
3098
+ id: string;
3099
+ title: string;
3100
+ price: number;
3101
+ image_url?: string | undefined;
3102
+ }, {
3103
+ id: string;
3104
+ title: string;
3105
+ price: number;
3106
+ image_url?: string | undefined;
3107
+ }>;
3108
+ quantity: z.ZodNumber;
3109
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3110
+ type: z.ZodString;
3111
+ display_text: z.ZodOptional<z.ZodString>;
3112
+ amount: z.ZodNumber;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ type: string;
3115
+ amount: number;
3116
+ display_text?: string | undefined;
3117
+ }, {
3118
+ type: string;
3119
+ amount: number;
3120
+ display_text?: string | undefined;
3121
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
3122
+ parent_id: z.ZodOptional<z.ZodString>;
3123
+ }, "strip", z.ZodTypeAny, {
3124
+ id: string;
3125
+ item: {
3126
+ id: string;
3127
+ title: string;
3128
+ price: number;
3129
+ image_url?: string | undefined;
3130
+ };
3131
+ quantity: number;
3132
+ totals: any[];
3133
+ parent_id?: string | undefined;
3134
+ }, {
3135
+ id: string;
3136
+ item: {
3137
+ id: string;
3138
+ title: string;
3139
+ price: number;
3140
+ image_url?: string | undefined;
3141
+ };
3142
+ quantity: number;
3143
+ totals: any[];
3144
+ parent_id?: string | undefined;
3145
+ }>, "many">;
3146
+ context: z.ZodOptional<z.ZodObject<{
3147
+ address_country: z.ZodOptional<z.ZodString>;
3148
+ address_region: z.ZodOptional<z.ZodString>;
3149
+ postal_code: z.ZodOptional<z.ZodString>;
3150
+ intent: z.ZodOptional<z.ZodString>;
3151
+ language: z.ZodOptional<z.ZodString>;
3152
+ currency: z.ZodOptional<z.ZodString>;
3153
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3154
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3155
+ address_country: z.ZodOptional<z.ZodString>;
3156
+ address_region: z.ZodOptional<z.ZodString>;
3157
+ postal_code: z.ZodOptional<z.ZodString>;
3158
+ intent: z.ZodOptional<z.ZodString>;
3159
+ language: z.ZodOptional<z.ZodString>;
3160
+ currency: z.ZodOptional<z.ZodString>;
3161
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3162
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3163
+ address_country: z.ZodOptional<z.ZodString>;
3164
+ address_region: z.ZodOptional<z.ZodString>;
3165
+ postal_code: z.ZodOptional<z.ZodString>;
3166
+ intent: z.ZodOptional<z.ZodString>;
3167
+ language: z.ZodOptional<z.ZodString>;
3168
+ currency: z.ZodOptional<z.ZodString>;
3169
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3170
+ }, z.ZodTypeAny, "passthrough">>>;
3171
+ signals: z.ZodOptional<z.ZodObject<{
3172
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3173
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3174
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3175
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3176
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3177
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3178
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3179
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3180
+ }, z.ZodTypeAny, "passthrough">>>;
3181
+ buyer: z.ZodOptional<z.ZodObject<{
3182
+ first_name: z.ZodOptional<z.ZodString>;
3183
+ last_name: z.ZodOptional<z.ZodString>;
3184
+ email: z.ZodOptional<z.ZodString>;
3185
+ phone_number: z.ZodOptional<z.ZodString>;
3186
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3187
+ first_name: z.ZodOptional<z.ZodString>;
3188
+ last_name: z.ZodOptional<z.ZodString>;
3189
+ email: z.ZodOptional<z.ZodString>;
3190
+ phone_number: z.ZodOptional<z.ZodString>;
3191
+ }, z.ZodTypeAny, "passthrough">, 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">>>;
3197
+ currency: z.ZodString;
3198
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3199
+ type: z.ZodString;
3200
+ display_text: z.ZodOptional<z.ZodString>;
3201
+ amount: z.ZodNumber;
3202
+ }, "strip", z.ZodTypeAny, {
3203
+ type: string;
3204
+ amount: number;
3205
+ display_text?: string | undefined;
3206
+ }, {
3207
+ type: string;
3208
+ amount: number;
3209
+ display_text?: string | undefined;
3210
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
3211
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3212
+ display_text: z.ZodString;
3213
+ amount: z.ZodNumber;
3214
+ }, "strip", z.ZodTypeAny, {
3215
+ display_text: string;
3216
+ amount: number;
3217
+ }, {
3218
+ display_text: string;
3219
+ amount: number;
3220
+ }>, "many">>;
3221
+ }, "strip", z.ZodTypeAny, {
3222
+ lines?: {
3223
+ display_text: string;
3224
+ amount: number;
3225
+ }[] | undefined;
3226
+ }, {
3227
+ lines?: {
3228
+ display_text: string;
3229
+ amount: number;
3230
+ }[] | undefined;
3231
+ }>, z.ZodAny>>, "many">;
3232
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
3233
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3234
+ type: z.ZodString;
3235
+ url: z.ZodString;
3236
+ title: z.ZodOptional<z.ZodString>;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ type: string;
3239
+ url: string;
3240
+ title?: string | undefined;
3241
+ }, {
3242
+ type: string;
3243
+ url: string;
3244
+ title?: string | undefined;
3245
+ }>, "many">>;
3246
+ continue_url: z.ZodOptional<z.ZodString>;
3247
+ expires_at: z.ZodOptional<z.ZodString>;
3248
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3249
+ ucp: z.ZodIntersection<z.ZodObject<{
3250
+ version: z.ZodString;
3251
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
3252
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3253
+ version: z.ZodString;
3254
+ spec: z.ZodOptional<z.ZodString>;
3255
+ schema: z.ZodOptional<z.ZodString>;
3256
+ id: z.ZodOptional<z.ZodString>;
3257
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3258
+ }, "strip", z.ZodTypeAny, {
3259
+ version: string;
3260
+ spec?: string | undefined;
3261
+ schema?: string | undefined;
3262
+ id?: string | undefined;
3263
+ config?: Record<string, unknown> | undefined;
3264
+ }, {
3265
+ version: string;
3266
+ spec?: string | undefined;
3267
+ schema?: string | undefined;
3268
+ id?: string | undefined;
3269
+ config?: Record<string, unknown> | undefined;
3270
+ }>, z.ZodObject<{
3271
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
3272
+ endpoint: z.ZodOptional<z.ZodString>;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3275
+ endpoint?: string | undefined;
3276
+ }, {
3277
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3278
+ endpoint?: string | undefined;
3279
+ }>>, "many">>>;
3280
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3281
+ version: z.ZodString;
3282
+ spec: z.ZodOptional<z.ZodString>;
3283
+ schema: z.ZodOptional<z.ZodString>;
3284
+ id: z.ZodOptional<z.ZodString>;
3285
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3286
+ }, "strip", z.ZodTypeAny, {
3287
+ version: string;
3288
+ spec?: string | undefined;
3289
+ schema?: string | undefined;
3290
+ id?: string | undefined;
3291
+ config?: Record<string, unknown> | undefined;
3292
+ }, {
3293
+ version: string;
3294
+ spec?: string | undefined;
3295
+ schema?: string | undefined;
3296
+ id?: string | undefined;
3297
+ config?: Record<string, unknown> | undefined;
3298
+ }>, z.ZodObject<{
3299
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ extends?: unknown;
3302
+ }, {
3303
+ extends?: unknown;
3304
+ }>>, "many">>>;
3305
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3306
+ version: z.ZodString;
3307
+ spec: z.ZodOptional<z.ZodString>;
3308
+ schema: z.ZodOptional<z.ZodString>;
3309
+ id: z.ZodOptional<z.ZodString>;
3310
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3311
+ }, "strip", z.ZodTypeAny, {
3312
+ version: string;
3313
+ spec?: string | undefined;
3314
+ schema?: string | undefined;
3315
+ id?: string | undefined;
3316
+ config?: Record<string, unknown> | undefined;
3317
+ }, {
3318
+ version: string;
3319
+ spec?: string | undefined;
3320
+ schema?: string | undefined;
3321
+ id?: string | undefined;
3322
+ config?: Record<string, unknown> | undefined;
3323
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
3324
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3325
+ type: z.ZodString;
3326
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3327
+ }, "strip", z.ZodTypeAny, {
3328
+ type: string;
3329
+ constraints?: Record<string, unknown> | undefined;
3330
+ }, {
3331
+ type: string;
3332
+ constraints?: Record<string, unknown> | undefined;
3333
+ }>, "many">>;
3334
+ }, "strip", z.ZodTypeAny, {
3335
+ available_instruments?: {
3336
+ type: string;
3337
+ constraints?: Record<string, unknown> | undefined;
3338
+ }[] | undefined;
3339
+ }, {
3340
+ available_instruments?: {
3341
+ type: string;
3342
+ constraints?: Record<string, unknown> | undefined;
3343
+ }[] | undefined;
3344
+ }>>>, "many">>>;
3345
+ }, "strip", z.ZodTypeAny, {
3346
+ version: string;
3347
+ status: "success" | "error";
3348
+ services?: Record<string, ({
3349
+ version: string;
3350
+ spec?: string | undefined;
3351
+ schema?: string | undefined;
3352
+ id?: string | undefined;
3353
+ config?: Record<string, unknown> | undefined;
3354
+ } & {
3355
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3356
+ endpoint?: string | undefined;
3357
+ })[]> | undefined;
3358
+ capabilities?: Record<string, ({
3359
+ version: string;
3360
+ spec?: string | undefined;
3361
+ schema?: string | undefined;
3362
+ id?: string | undefined;
3363
+ config?: Record<string, unknown> | undefined;
3364
+ } & {
3365
+ extends?: unknown;
3366
+ })[]> | undefined;
3367
+ payment_handlers?: Record<string, ({
3368
+ version: string;
3369
+ spec?: string | undefined;
3370
+ schema?: string | undefined;
3371
+ id?: string | undefined;
3372
+ config?: Record<string, unknown> | undefined;
3373
+ } & Record<string, unknown> & {
3374
+ available_instruments?: {
3375
+ type: string;
3376
+ constraints?: Record<string, unknown> | undefined;
3377
+ }[] | undefined;
3378
+ })[]> | undefined;
3379
+ }, {
3380
+ version: string;
3381
+ status?: "success" | "error" | undefined;
3382
+ services?: Record<string, ({
3383
+ version: string;
3384
+ spec?: string | undefined;
3385
+ schema?: string | undefined;
3386
+ id?: string | undefined;
3387
+ config?: Record<string, unknown> | undefined;
3388
+ } & {
3389
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3390
+ endpoint?: string | undefined;
3391
+ })[]> | undefined;
3392
+ capabilities?: Record<string, ({
3393
+ version: string;
3394
+ spec?: string | undefined;
3395
+ schema?: string | undefined;
3396
+ id?: string | undefined;
3397
+ config?: Record<string, unknown> | undefined;
3398
+ } & {
3399
+ extends?: unknown;
3400
+ })[]> | undefined;
3401
+ payment_handlers?: Record<string, ({
3402
+ version: string;
3403
+ spec?: string | undefined;
3404
+ schema?: string | undefined;
3405
+ id?: string | undefined;
3406
+ config?: Record<string, unknown> | undefined;
3407
+ } & Record<string, unknown> & {
3408
+ available_instruments?: {
3409
+ type: string;
3410
+ constraints?: Record<string, unknown> | undefined;
3411
+ }[] | undefined;
3412
+ })[]> | undefined;
3413
+ }>, z.ZodObject<{
3414
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3415
+ version: z.ZodString;
3416
+ spec: z.ZodOptional<z.ZodString>;
3417
+ schema: z.ZodOptional<z.ZodString>;
3418
+ id: z.ZodOptional<z.ZodString>;
3419
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3420
+ }, "strip", z.ZodTypeAny, {
3421
+ version: string;
3422
+ spec?: string | undefined;
3423
+ schema?: string | undefined;
3424
+ id?: string | undefined;
3425
+ config?: Record<string, unknown> | undefined;
3426
+ }, {
3427
+ version: string;
3428
+ spec?: string | undefined;
3429
+ schema?: string | undefined;
3430
+ id?: string | undefined;
3431
+ config?: Record<string, unknown> | undefined;
3432
+ }>, z.ZodObject<{
3433
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ extends?: unknown;
3436
+ }, {
3437
+ extends?: unknown;
3438
+ }>>, "many">>>;
3439
+ }, "strip", z.ZodTypeAny, {
3440
+ capabilities?: Record<string, ({
3441
+ version: string;
3442
+ spec?: string | undefined;
3443
+ schema?: string | undefined;
3444
+ id?: string | undefined;
3445
+ config?: Record<string, unknown> | undefined;
3446
+ } & {
3447
+ extends?: unknown;
3448
+ })[]> | undefined;
3449
+ }, {
3450
+ capabilities?: Record<string, ({
3451
+ version: string;
3452
+ spec?: string | undefined;
3453
+ schema?: string | undefined;
3454
+ id?: string | undefined;
3455
+ config?: Record<string, unknown> | undefined;
3456
+ } & {
3457
+ extends?: unknown;
3458
+ })[]> | undefined;
3459
+ }>>;
3460
+ id: z.ZodString;
3461
+ line_items: z.ZodArray<z.ZodObject<{
3462
+ id: z.ZodString;
3463
+ item: z.ZodObject<{
3464
+ id: z.ZodString;
3465
+ title: z.ZodString;
3466
+ price: z.ZodNumber;
3467
+ image_url: z.ZodOptional<z.ZodString>;
3468
+ }, "strip", z.ZodTypeAny, {
3469
+ id: string;
3470
+ title: string;
3471
+ price: number;
3472
+ image_url?: string | undefined;
3473
+ }, {
3474
+ id: string;
3475
+ title: string;
3476
+ price: number;
3477
+ image_url?: string | undefined;
3478
+ }>;
3479
+ quantity: z.ZodNumber;
3480
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3481
+ type: z.ZodString;
3482
+ display_text: z.ZodOptional<z.ZodString>;
3483
+ amount: z.ZodNumber;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ type: string;
3486
+ amount: number;
3487
+ display_text?: string | undefined;
3488
+ }, {
3489
+ type: string;
3490
+ amount: number;
3491
+ display_text?: string | undefined;
3492
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
3493
+ parent_id: z.ZodOptional<z.ZodString>;
3494
+ }, "strip", z.ZodTypeAny, {
3495
+ id: string;
3496
+ item: {
3497
+ id: string;
3498
+ title: string;
3499
+ price: number;
3500
+ image_url?: string | undefined;
3501
+ };
3502
+ quantity: number;
3503
+ totals: any[];
3504
+ parent_id?: string | undefined;
3505
+ }, {
3506
+ id: string;
3507
+ item: {
3508
+ id: string;
3509
+ title: string;
3510
+ price: number;
3511
+ image_url?: string | undefined;
3512
+ };
3513
+ quantity: number;
3514
+ totals: any[];
3515
+ parent_id?: string | undefined;
3516
+ }>, "many">;
3517
+ context: z.ZodOptional<z.ZodObject<{
3518
+ address_country: z.ZodOptional<z.ZodString>;
3519
+ address_region: z.ZodOptional<z.ZodString>;
3520
+ postal_code: z.ZodOptional<z.ZodString>;
3521
+ intent: z.ZodOptional<z.ZodString>;
3522
+ language: z.ZodOptional<z.ZodString>;
3523
+ currency: z.ZodOptional<z.ZodString>;
3524
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3525
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3526
+ address_country: z.ZodOptional<z.ZodString>;
3527
+ address_region: z.ZodOptional<z.ZodString>;
3528
+ postal_code: z.ZodOptional<z.ZodString>;
3529
+ intent: z.ZodOptional<z.ZodString>;
3530
+ language: z.ZodOptional<z.ZodString>;
3531
+ currency: z.ZodOptional<z.ZodString>;
3532
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3533
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3534
+ address_country: z.ZodOptional<z.ZodString>;
3535
+ address_region: z.ZodOptional<z.ZodString>;
3536
+ postal_code: z.ZodOptional<z.ZodString>;
3537
+ intent: z.ZodOptional<z.ZodString>;
3538
+ language: z.ZodOptional<z.ZodString>;
3539
+ currency: z.ZodOptional<z.ZodString>;
3540
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3541
+ }, z.ZodTypeAny, "passthrough">>>;
3542
+ signals: z.ZodOptional<z.ZodObject<{
3543
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3544
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3545
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3546
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3547
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3548
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3549
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3550
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3551
+ }, z.ZodTypeAny, "passthrough">>>;
3552
+ buyer: z.ZodOptional<z.ZodObject<{
3553
+ first_name: z.ZodOptional<z.ZodString>;
3554
+ last_name: z.ZodOptional<z.ZodString>;
3555
+ email: z.ZodOptional<z.ZodString>;
3556
+ phone_number: z.ZodOptional<z.ZodString>;
3557
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3558
+ first_name: z.ZodOptional<z.ZodString>;
3559
+ last_name: z.ZodOptional<z.ZodString>;
3560
+ email: z.ZodOptional<z.ZodString>;
3561
+ phone_number: z.ZodOptional<z.ZodString>;
3562
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3563
+ first_name: z.ZodOptional<z.ZodString>;
3564
+ last_name: z.ZodOptional<z.ZodString>;
3565
+ email: z.ZodOptional<z.ZodString>;
3566
+ phone_number: z.ZodOptional<z.ZodString>;
3567
+ }, z.ZodTypeAny, "passthrough">>>;
3568
+ currency: z.ZodString;
3569
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3570
+ type: z.ZodString;
3571
+ display_text: z.ZodOptional<z.ZodString>;
3572
+ amount: z.ZodNumber;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ type: string;
3575
+ amount: number;
3576
+ display_text?: string | undefined;
3577
+ }, {
3578
+ type: string;
3579
+ amount: number;
3580
+ display_text?: string | undefined;
3581
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
3582
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3583
+ display_text: z.ZodString;
3584
+ amount: z.ZodNumber;
3585
+ }, "strip", z.ZodTypeAny, {
3586
+ display_text: string;
3587
+ amount: number;
3588
+ }, {
3589
+ display_text: string;
3590
+ amount: number;
3591
+ }>, "many">>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ lines?: {
3594
+ display_text: string;
3595
+ amount: number;
3596
+ }[] | undefined;
3597
+ }, {
3598
+ lines?: {
3599
+ display_text: string;
3600
+ amount: number;
3601
+ }[] | undefined;
3602
+ }>, z.ZodAny>>, "many">;
3603
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
3604
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3605
+ type: z.ZodString;
3606
+ url: z.ZodString;
3607
+ title: z.ZodOptional<z.ZodString>;
3608
+ }, "strip", z.ZodTypeAny, {
3609
+ type: string;
3610
+ url: string;
3611
+ title?: string | undefined;
3612
+ }, {
3613
+ type: string;
3614
+ url: string;
3615
+ title?: string | undefined;
3616
+ }>, "many">>;
3617
+ continue_url: z.ZodOptional<z.ZodString>;
3618
+ expires_at: z.ZodOptional<z.ZodString>;
3619
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3620
+ ucp: z.ZodIntersection<z.ZodObject<{
3621
+ version: z.ZodString;
3622
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
3623
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3624
+ version: z.ZodString;
3625
+ spec: z.ZodOptional<z.ZodString>;
3626
+ schema: z.ZodOptional<z.ZodString>;
3627
+ id: z.ZodOptional<z.ZodString>;
3628
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3629
+ }, "strip", z.ZodTypeAny, {
3630
+ version: string;
3631
+ spec?: string | undefined;
3632
+ schema?: string | undefined;
3633
+ id?: string | undefined;
3634
+ config?: Record<string, unknown> | undefined;
3635
+ }, {
3636
+ version: string;
3637
+ spec?: string | undefined;
3638
+ schema?: string | undefined;
3639
+ id?: string | undefined;
3640
+ config?: Record<string, unknown> | undefined;
3641
+ }>, z.ZodObject<{
3642
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
3643
+ endpoint: z.ZodOptional<z.ZodString>;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3646
+ endpoint?: string | undefined;
3647
+ }, {
3648
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3649
+ endpoint?: string | undefined;
3650
+ }>>, "many">>>;
3651
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3652
+ version: z.ZodString;
3653
+ spec: z.ZodOptional<z.ZodString>;
3654
+ schema: z.ZodOptional<z.ZodString>;
3655
+ id: z.ZodOptional<z.ZodString>;
3656
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ version: string;
3659
+ spec?: string | undefined;
3660
+ schema?: string | undefined;
3661
+ id?: string | undefined;
3662
+ config?: Record<string, unknown> | undefined;
3663
+ }, {
3664
+ version: string;
3665
+ spec?: string | undefined;
3666
+ schema?: string | undefined;
3667
+ id?: string | undefined;
3668
+ config?: Record<string, unknown> | undefined;
3669
+ }>, z.ZodObject<{
3670
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3671
+ }, "strip", z.ZodTypeAny, {
3672
+ extends?: unknown;
3673
+ }, {
3674
+ extends?: unknown;
3675
+ }>>, "many">>>;
3676
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3677
+ version: z.ZodString;
3678
+ spec: z.ZodOptional<z.ZodString>;
3679
+ schema: z.ZodOptional<z.ZodString>;
3680
+ id: z.ZodOptional<z.ZodString>;
3681
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3682
+ }, "strip", z.ZodTypeAny, {
3683
+ version: string;
3684
+ spec?: string | undefined;
3685
+ schema?: string | undefined;
3686
+ id?: string | undefined;
3687
+ config?: Record<string, unknown> | undefined;
3688
+ }, {
3689
+ version: string;
3690
+ spec?: string | undefined;
3691
+ schema?: string | undefined;
3692
+ id?: string | undefined;
3693
+ config?: Record<string, unknown> | undefined;
3694
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
3695
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3696
+ type: z.ZodString;
3697
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3698
+ }, "strip", z.ZodTypeAny, {
3699
+ type: string;
3700
+ constraints?: Record<string, unknown> | undefined;
3701
+ }, {
3702
+ type: string;
3703
+ constraints?: Record<string, unknown> | undefined;
3704
+ }>, "many">>;
3705
+ }, "strip", z.ZodTypeAny, {
3706
+ available_instruments?: {
3707
+ type: string;
3708
+ constraints?: Record<string, unknown> | undefined;
3709
+ }[] | undefined;
3710
+ }, {
3711
+ available_instruments?: {
3712
+ type: string;
3713
+ constraints?: Record<string, unknown> | undefined;
3714
+ }[] | undefined;
3715
+ }>>>, "many">>>;
3716
+ }, "strip", z.ZodTypeAny, {
3717
+ version: string;
3718
+ status: "success" | "error";
3719
+ services?: Record<string, ({
3720
+ version: string;
3721
+ spec?: string | undefined;
3722
+ schema?: string | undefined;
3723
+ id?: string | undefined;
3724
+ config?: Record<string, unknown> | undefined;
3725
+ } & {
3726
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3727
+ endpoint?: string | undefined;
3728
+ })[]> | undefined;
3729
+ capabilities?: Record<string, ({
3730
+ version: string;
3731
+ spec?: string | undefined;
3732
+ schema?: string | undefined;
3733
+ id?: string | undefined;
3734
+ config?: Record<string, unknown> | undefined;
3735
+ } & {
3736
+ extends?: unknown;
3737
+ })[]> | undefined;
3738
+ payment_handlers?: Record<string, ({
3739
+ version: string;
3740
+ spec?: string | undefined;
3741
+ schema?: string | undefined;
3742
+ id?: string | undefined;
3743
+ config?: Record<string, unknown> | undefined;
3744
+ } & Record<string, unknown> & {
3745
+ available_instruments?: {
3746
+ type: string;
3747
+ constraints?: Record<string, unknown> | undefined;
3748
+ }[] | undefined;
3749
+ })[]> | undefined;
3750
+ }, {
3751
+ version: string;
3752
+ status?: "success" | "error" | undefined;
3753
+ services?: Record<string, ({
3754
+ version: string;
3755
+ spec?: string | undefined;
3756
+ schema?: string | undefined;
3757
+ id?: string | undefined;
3758
+ config?: Record<string, unknown> | undefined;
3759
+ } & {
3760
+ transport: "rest" | "mcp" | "a2a" | "embedded";
3761
+ endpoint?: string | undefined;
3762
+ })[]> | undefined;
3763
+ capabilities?: Record<string, ({
3764
+ version: string;
3765
+ spec?: string | undefined;
3766
+ schema?: string | undefined;
3767
+ id?: string | undefined;
3768
+ config?: Record<string, unknown> | undefined;
3769
+ } & {
3770
+ extends?: unknown;
3771
+ })[]> | undefined;
3772
+ payment_handlers?: Record<string, ({
3773
+ version: string;
3774
+ spec?: string | undefined;
3775
+ schema?: string | undefined;
3776
+ id?: string | undefined;
3777
+ config?: Record<string, unknown> | undefined;
3778
+ } & Record<string, unknown> & {
3779
+ available_instruments?: {
3780
+ type: string;
3781
+ constraints?: Record<string, unknown> | undefined;
3782
+ }[] | undefined;
3783
+ })[]> | undefined;
3784
+ }>, z.ZodObject<{
3785
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3786
+ version: z.ZodString;
3787
+ spec: z.ZodOptional<z.ZodString>;
3788
+ schema: z.ZodOptional<z.ZodString>;
3789
+ id: z.ZodOptional<z.ZodString>;
3790
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3791
+ }, "strip", z.ZodTypeAny, {
3792
+ version: string;
3793
+ spec?: string | undefined;
3794
+ schema?: string | undefined;
3795
+ id?: string | undefined;
3796
+ config?: Record<string, unknown> | undefined;
3797
+ }, {
3798
+ version: string;
3799
+ spec?: string | undefined;
3800
+ schema?: string | undefined;
3801
+ id?: string | undefined;
3802
+ config?: Record<string, unknown> | undefined;
3803
+ }>, z.ZodObject<{
3804
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3805
+ }, "strip", z.ZodTypeAny, {
3806
+ extends?: unknown;
3807
+ }, {
3808
+ extends?: unknown;
3809
+ }>>, "many">>>;
3810
+ }, "strip", z.ZodTypeAny, {
3811
+ capabilities?: Record<string, ({
3812
+ version: string;
3813
+ spec?: string | undefined;
3814
+ schema?: string | undefined;
3815
+ id?: string | undefined;
3816
+ config?: Record<string, unknown> | undefined;
3817
+ } & {
3818
+ extends?: unknown;
3819
+ })[]> | undefined;
3820
+ }, {
3821
+ capabilities?: Record<string, ({
3822
+ version: string;
3823
+ spec?: string | undefined;
3824
+ schema?: string | undefined;
3825
+ id?: string | undefined;
3826
+ config?: Record<string, unknown> | undefined;
3827
+ } & {
3828
+ extends?: unknown;
3829
+ })[]> | undefined;
3830
+ }>>;
3831
+ id: z.ZodString;
3832
+ line_items: z.ZodArray<z.ZodObject<{
3833
+ id: z.ZodString;
3834
+ item: z.ZodObject<{
3835
+ id: z.ZodString;
3836
+ title: z.ZodString;
3837
+ price: z.ZodNumber;
3838
+ image_url: z.ZodOptional<z.ZodString>;
3839
+ }, "strip", z.ZodTypeAny, {
3840
+ id: string;
3841
+ title: string;
3842
+ price: number;
3843
+ image_url?: string | undefined;
2457
3844
  }, {
2458
3845
  id: string;
2459
3846
  title: string;
@@ -2461,19 +3848,19 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2461
3848
  image_url?: string | undefined;
2462
3849
  }>;
2463
3850
  quantity: z.ZodNumber;
2464
- totals: z.ZodArray<z.ZodObject<{
2465
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
3851
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3852
+ type: z.ZodString;
2466
3853
  display_text: z.ZodOptional<z.ZodString>;
2467
3854
  amount: z.ZodNumber;
2468
3855
  }, "strip", z.ZodTypeAny, {
2469
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3856
+ type: string;
2470
3857
  amount: number;
2471
3858
  display_text?: string | undefined;
2472
3859
  }, {
2473
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3860
+ type: string;
2474
3861
  amount: number;
2475
3862
  display_text?: string | undefined;
2476
- }>, "many">;
3863
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
2477
3864
  parent_id: z.ZodOptional<z.ZodString>;
2478
3865
  }, "strip", z.ZodTypeAny, {
2479
3866
  id: string;
@@ -2484,11 +3871,7 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2484
3871
  image_url?: string | undefined;
2485
3872
  };
2486
3873
  quantity: number;
2487
- totals: {
2488
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2489
- amount: number;
2490
- display_text?: string | undefined;
2491
- }[];
3874
+ totals: any[];
2492
3875
  parent_id?: string | undefined;
2493
3876
  }, {
2494
3877
  id: string;
@@ -2499,11 +3882,167 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2499
3882
  image_url?: string | undefined;
2500
3883
  };
2501
3884
  quantity: number;
2502
- totals: {
2503
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3885
+ totals: any[];
3886
+ parent_id?: string | undefined;
3887
+ }>, "many">;
3888
+ context: z.ZodOptional<z.ZodObject<{
3889
+ address_country: z.ZodOptional<z.ZodString>;
3890
+ address_region: z.ZodOptional<z.ZodString>;
3891
+ postal_code: z.ZodOptional<z.ZodString>;
3892
+ intent: z.ZodOptional<z.ZodString>;
3893
+ language: z.ZodOptional<z.ZodString>;
3894
+ currency: z.ZodOptional<z.ZodString>;
3895
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3896
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3897
+ address_country: z.ZodOptional<z.ZodString>;
3898
+ address_region: z.ZodOptional<z.ZodString>;
3899
+ postal_code: z.ZodOptional<z.ZodString>;
3900
+ intent: z.ZodOptional<z.ZodString>;
3901
+ language: z.ZodOptional<z.ZodString>;
3902
+ currency: z.ZodOptional<z.ZodString>;
3903
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3904
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3905
+ address_country: z.ZodOptional<z.ZodString>;
3906
+ address_region: z.ZodOptional<z.ZodString>;
3907
+ postal_code: z.ZodOptional<z.ZodString>;
3908
+ intent: z.ZodOptional<z.ZodString>;
3909
+ language: z.ZodOptional<z.ZodString>;
3910
+ currency: z.ZodOptional<z.ZodString>;
3911
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3912
+ }, z.ZodTypeAny, "passthrough">>>;
3913
+ signals: z.ZodOptional<z.ZodObject<{
3914
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3915
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3916
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3917
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3918
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3919
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3920
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
3921
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
3922
+ }, z.ZodTypeAny, "passthrough">>>;
3923
+ buyer: z.ZodOptional<z.ZodObject<{
3924
+ first_name: z.ZodOptional<z.ZodString>;
3925
+ last_name: z.ZodOptional<z.ZodString>;
3926
+ email: z.ZodOptional<z.ZodString>;
3927
+ phone_number: z.ZodOptional<z.ZodString>;
3928
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3929
+ first_name: z.ZodOptional<z.ZodString>;
3930
+ last_name: z.ZodOptional<z.ZodString>;
3931
+ email: z.ZodOptional<z.ZodString>;
3932
+ phone_number: z.ZodOptional<z.ZodString>;
3933
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3934
+ first_name: z.ZodOptional<z.ZodString>;
3935
+ last_name: z.ZodOptional<z.ZodString>;
3936
+ email: z.ZodOptional<z.ZodString>;
3937
+ phone_number: z.ZodOptional<z.ZodString>;
3938
+ }, z.ZodTypeAny, "passthrough">>>;
3939
+ currency: z.ZodString;
3940
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3941
+ type: z.ZodString;
3942
+ display_text: z.ZodOptional<z.ZodString>;
3943
+ amount: z.ZodNumber;
3944
+ }, "strip", z.ZodTypeAny, {
3945
+ type: string;
3946
+ amount: number;
3947
+ display_text?: string | undefined;
3948
+ }, {
3949
+ type: string;
3950
+ amount: number;
3951
+ display_text?: string | undefined;
3952
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
3953
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
3954
+ display_text: z.ZodString;
3955
+ amount: z.ZodNumber;
3956
+ }, "strip", z.ZodTypeAny, {
3957
+ display_text: string;
3958
+ amount: number;
3959
+ }, {
3960
+ display_text: string;
3961
+ amount: number;
3962
+ }>, "many">>;
3963
+ }, "strip", z.ZodTypeAny, {
3964
+ lines?: {
3965
+ display_text: string;
3966
+ amount: number;
3967
+ }[] | undefined;
3968
+ }, {
3969
+ lines?: {
3970
+ display_text: string;
3971
+ amount: number;
3972
+ }[] | undefined;
3973
+ }>, z.ZodAny>>, "many">;
3974
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
3975
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3976
+ type: z.ZodString;
3977
+ url: z.ZodString;
3978
+ title: z.ZodOptional<z.ZodString>;
3979
+ }, "strip", z.ZodTypeAny, {
3980
+ type: string;
3981
+ url: string;
3982
+ title?: string | undefined;
3983
+ }, {
3984
+ type: string;
3985
+ url: string;
3986
+ title?: string | undefined;
3987
+ }>, "many">>;
3988
+ continue_url: z.ZodOptional<z.ZodString>;
3989
+ expires_at: z.ZodOptional<z.ZodString>;
3990
+ }, z.ZodTypeAny, "passthrough">>;
3991
+ declare const CreateCheckoutRequestSchema: z.ZodObject<{
3992
+ line_items: z.ZodArray<z.ZodObject<{
3993
+ id: z.ZodString;
3994
+ item: z.ZodObject<{
3995
+ id: z.ZodString;
3996
+ title: z.ZodString;
3997
+ price: z.ZodNumber;
3998
+ image_url: z.ZodOptional<z.ZodString>;
3999
+ }, "strip", z.ZodTypeAny, {
4000
+ id: string;
4001
+ title: string;
4002
+ price: number;
4003
+ image_url?: string | undefined;
4004
+ }, {
4005
+ id: string;
4006
+ title: string;
4007
+ price: number;
4008
+ image_url?: string | undefined;
4009
+ }>;
4010
+ quantity: z.ZodNumber;
4011
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
4012
+ type: z.ZodString;
4013
+ display_text: z.ZodOptional<z.ZodString>;
4014
+ amount: z.ZodNumber;
4015
+ }, "strip", z.ZodTypeAny, {
4016
+ type: string;
2504
4017
  amount: number;
2505
4018
  display_text?: string | undefined;
2506
- }[];
4019
+ }, {
4020
+ type: string;
4021
+ amount: number;
4022
+ display_text?: string | undefined;
4023
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
4024
+ parent_id: z.ZodOptional<z.ZodString>;
4025
+ }, "strip", z.ZodTypeAny, {
4026
+ id: string;
4027
+ item: {
4028
+ id: string;
4029
+ title: string;
4030
+ price: number;
4031
+ image_url?: string | undefined;
4032
+ };
4033
+ quantity: number;
4034
+ totals: any[];
4035
+ parent_id?: string | undefined;
4036
+ }, {
4037
+ id: string;
4038
+ item: {
4039
+ id: string;
4040
+ title: string;
4041
+ price: number;
4042
+ image_url?: string | undefined;
4043
+ };
4044
+ quantity: number;
4045
+ totals: any[];
2507
4046
  parent_id?: string | undefined;
2508
4047
  }>, "many">;
2509
4048
  buyer: z.ZodOptional<z.ZodObject<{
@@ -2526,14 +4065,36 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2526
4065
  address_country: z.ZodOptional<z.ZodString>;
2527
4066
  address_region: z.ZodOptional<z.ZodString>;
2528
4067
  postal_code: z.ZodOptional<z.ZodString>;
4068
+ intent: z.ZodOptional<z.ZodString>;
4069
+ language: z.ZodOptional<z.ZodString>;
4070
+ currency: z.ZodOptional<z.ZodString>;
4071
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2529
4072
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2530
4073
  address_country: z.ZodOptional<z.ZodString>;
2531
4074
  address_region: z.ZodOptional<z.ZodString>;
2532
4075
  postal_code: z.ZodOptional<z.ZodString>;
4076
+ intent: z.ZodOptional<z.ZodString>;
4077
+ language: z.ZodOptional<z.ZodString>;
4078
+ currency: z.ZodOptional<z.ZodString>;
4079
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2533
4080
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2534
4081
  address_country: z.ZodOptional<z.ZodString>;
2535
4082
  address_region: z.ZodOptional<z.ZodString>;
2536
4083
  postal_code: z.ZodOptional<z.ZodString>;
4084
+ intent: z.ZodOptional<z.ZodString>;
4085
+ language: z.ZodOptional<z.ZodString>;
4086
+ currency: z.ZodOptional<z.ZodString>;
4087
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4088
+ }, z.ZodTypeAny, "passthrough">>>;
4089
+ signals: z.ZodOptional<z.ZodObject<{
4090
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4091
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4092
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4093
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4094
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4095
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4096
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4097
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
2537
4098
  }, z.ZodTypeAny, "passthrough">>>;
2538
4099
  payment: z.ZodOptional<z.ZodObject<{
2539
4100
  instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
@@ -2733,24 +4294,28 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2733
4294
  image_url?: string | undefined;
2734
4295
  };
2735
4296
  quantity: number;
2736
- totals: {
2737
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2738
- amount: number;
2739
- display_text?: string | undefined;
2740
- }[];
4297
+ totals: any[];
2741
4298
  parent_id?: string | undefined;
2742
4299
  }[];
4300
+ context?: z.objectOutputType<{
4301
+ address_country: z.ZodOptional<z.ZodString>;
4302
+ address_region: z.ZodOptional<z.ZodString>;
4303
+ postal_code: z.ZodOptional<z.ZodString>;
4304
+ intent: z.ZodOptional<z.ZodString>;
4305
+ language: z.ZodOptional<z.ZodString>;
4306
+ currency: z.ZodOptional<z.ZodString>;
4307
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4308
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4309
+ signals?: z.objectOutputType<{
4310
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4311
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4312
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2743
4313
  buyer?: z.objectOutputType<{
2744
4314
  first_name: z.ZodOptional<z.ZodString>;
2745
4315
  last_name: z.ZodOptional<z.ZodString>;
2746
4316
  email: z.ZodOptional<z.ZodString>;
2747
4317
  phone_number: z.ZodOptional<z.ZodString>;
2748
4318
  }, 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
4319
  payment?: {
2755
4320
  instruments?: ({
2756
4321
  id: string;
@@ -2787,24 +4352,28 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2787
4352
  image_url?: string | undefined;
2788
4353
  };
2789
4354
  quantity: number;
2790
- totals: {
2791
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2792
- amount: number;
2793
- display_text?: string | undefined;
2794
- }[];
4355
+ totals: any[];
2795
4356
  parent_id?: string | undefined;
2796
4357
  }[];
4358
+ context?: z.objectInputType<{
4359
+ address_country: z.ZodOptional<z.ZodString>;
4360
+ address_region: z.ZodOptional<z.ZodString>;
4361
+ postal_code: z.ZodOptional<z.ZodString>;
4362
+ intent: z.ZodOptional<z.ZodString>;
4363
+ language: z.ZodOptional<z.ZodString>;
4364
+ currency: z.ZodOptional<z.ZodString>;
4365
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4366
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4367
+ signals?: z.objectInputType<{
4368
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4369
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4370
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2797
4371
  buyer?: z.objectInputType<{
2798
4372
  first_name: z.ZodOptional<z.ZodString>;
2799
4373
  last_name: z.ZodOptional<z.ZodString>;
2800
4374
  email: z.ZodOptional<z.ZodString>;
2801
4375
  phone_number: z.ZodOptional<z.ZodString>;
2802
4376
  }, 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
4377
  payment?: {
2809
4378
  instruments?: ({
2810
4379
  id: string;
@@ -2833,7 +4402,6 @@ declare const CreateCheckoutRequestSchema: z.ZodObject<{
2833
4402
  } | undefined;
2834
4403
  }>;
2835
4404
  declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2836
- id: z.ZodString;
2837
4405
  line_items: z.ZodArray<z.ZodObject<{
2838
4406
  id: z.ZodString;
2839
4407
  item: z.ZodObject<{
@@ -2853,19 +4421,19 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2853
4421
  image_url?: string | undefined;
2854
4422
  }>;
2855
4423
  quantity: z.ZodNumber;
2856
- totals: z.ZodArray<z.ZodObject<{
2857
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
4424
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
4425
+ type: z.ZodString;
2858
4426
  display_text: z.ZodOptional<z.ZodString>;
2859
4427
  amount: z.ZodNumber;
2860
4428
  }, "strip", z.ZodTypeAny, {
2861
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4429
+ type: string;
2862
4430
  amount: number;
2863
4431
  display_text?: string | undefined;
2864
4432
  }, {
2865
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
4433
+ type: string;
2866
4434
  amount: number;
2867
4435
  display_text?: string | undefined;
2868
- }>, "many">;
4436
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
2869
4437
  parent_id: z.ZodOptional<z.ZodString>;
2870
4438
  }, "strip", z.ZodTypeAny, {
2871
4439
  id: string;
@@ -2876,11 +4444,7 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2876
4444
  image_url?: string | undefined;
2877
4445
  };
2878
4446
  quantity: number;
2879
- totals: {
2880
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2881
- amount: number;
2882
- display_text?: string | undefined;
2883
- }[];
4447
+ totals: any[];
2884
4448
  parent_id?: string | undefined;
2885
4449
  }, {
2886
4450
  id: string;
@@ -2891,11 +4455,7 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2891
4455
  image_url?: string | undefined;
2892
4456
  };
2893
4457
  quantity: number;
2894
- totals: {
2895
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
2896
- amount: number;
2897
- display_text?: string | undefined;
2898
- }[];
4458
+ totals: any[];
2899
4459
  parent_id?: string | undefined;
2900
4460
  }>, "many">;
2901
4461
  buyer: z.ZodOptional<z.ZodObject<{
@@ -2918,14 +4478,36 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
2918
4478
  address_country: z.ZodOptional<z.ZodString>;
2919
4479
  address_region: z.ZodOptional<z.ZodString>;
2920
4480
  postal_code: z.ZodOptional<z.ZodString>;
4481
+ intent: z.ZodOptional<z.ZodString>;
4482
+ language: z.ZodOptional<z.ZodString>;
4483
+ currency: z.ZodOptional<z.ZodString>;
4484
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2921
4485
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2922
4486
  address_country: z.ZodOptional<z.ZodString>;
2923
4487
  address_region: z.ZodOptional<z.ZodString>;
2924
4488
  postal_code: z.ZodOptional<z.ZodString>;
4489
+ intent: z.ZodOptional<z.ZodString>;
4490
+ language: z.ZodOptional<z.ZodString>;
4491
+ currency: z.ZodOptional<z.ZodString>;
4492
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2925
4493
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2926
4494
  address_country: z.ZodOptional<z.ZodString>;
2927
4495
  address_region: z.ZodOptional<z.ZodString>;
2928
4496
  postal_code: z.ZodOptional<z.ZodString>;
4497
+ intent: z.ZodOptional<z.ZodString>;
4498
+ language: z.ZodOptional<z.ZodString>;
4499
+ currency: z.ZodOptional<z.ZodString>;
4500
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4501
+ }, z.ZodTypeAny, "passthrough">>>;
4502
+ signals: z.ZodOptional<z.ZodObject<{
4503
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4504
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4505
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4506
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4507
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4508
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4509
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4510
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
2929
4511
  }, z.ZodTypeAny, "passthrough">>>;
2930
4512
  payment: z.ZodOptional<z.ZodObject<{
2931
4513
  instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
@@ -3116,7 +4698,6 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
3116
4698
  })[] | undefined;
3117
4699
  }>>;
3118
4700
  }, "strict", z.ZodTypeAny, {
3119
- id: string;
3120
4701
  line_items: {
3121
4702
  id: string;
3122
4703
  item: {
@@ -3126,24 +4707,28 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
3126
4707
  image_url?: string | undefined;
3127
4708
  };
3128
4709
  quantity: number;
3129
- totals: {
3130
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3131
- amount: number;
3132
- display_text?: string | undefined;
3133
- }[];
4710
+ totals: any[];
3134
4711
  parent_id?: string | undefined;
3135
4712
  }[];
4713
+ context?: z.objectOutputType<{
4714
+ address_country: z.ZodOptional<z.ZodString>;
4715
+ address_region: z.ZodOptional<z.ZodString>;
4716
+ postal_code: z.ZodOptional<z.ZodString>;
4717
+ intent: z.ZodOptional<z.ZodString>;
4718
+ language: z.ZodOptional<z.ZodString>;
4719
+ currency: z.ZodOptional<z.ZodString>;
4720
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4721
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4722
+ signals?: z.objectOutputType<{
4723
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4724
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4725
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3136
4726
  buyer?: z.objectOutputType<{
3137
4727
  first_name: z.ZodOptional<z.ZodString>;
3138
4728
  last_name: z.ZodOptional<z.ZodString>;
3139
4729
  email: z.ZodOptional<z.ZodString>;
3140
4730
  phone_number: z.ZodOptional<z.ZodString>;
3141
4731
  }, 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
4732
  payment?: {
3148
4733
  instruments?: ({
3149
4734
  id: string;
@@ -3171,7 +4756,6 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
3171
4756
  })[] | undefined;
3172
4757
  } | undefined;
3173
4758
  }, {
3174
- id: string;
3175
4759
  line_items: {
3176
4760
  id: string;
3177
4761
  item: {
@@ -3181,24 +4765,28 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
3181
4765
  image_url?: string | undefined;
3182
4766
  };
3183
4767
  quantity: number;
3184
- totals: {
3185
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3186
- amount: number;
3187
- display_text?: string | undefined;
3188
- }[];
4768
+ totals: any[];
3189
4769
  parent_id?: string | undefined;
3190
4770
  }[];
4771
+ context?: z.objectInputType<{
4772
+ address_country: z.ZodOptional<z.ZodString>;
4773
+ address_region: z.ZodOptional<z.ZodString>;
4774
+ postal_code: z.ZodOptional<z.ZodString>;
4775
+ intent: z.ZodOptional<z.ZodString>;
4776
+ language: z.ZodOptional<z.ZodString>;
4777
+ currency: z.ZodOptional<z.ZodString>;
4778
+ eligibility: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4779
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4780
+ signals?: z.objectInputType<{
4781
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4782
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4783
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3191
4784
  buyer?: z.objectInputType<{
3192
4785
  first_name: z.ZodOptional<z.ZodString>;
3193
4786
  last_name: z.ZodOptional<z.ZodString>;
3194
4787
  email: z.ZodOptional<z.ZodString>;
3195
4788
  phone_number: z.ZodOptional<z.ZodString>;
3196
4789
  }, 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
4790
  payment?: {
3203
4791
  instruments?: ({
3204
4792
  id: string;
@@ -3227,6 +4815,16 @@ declare const UpdateCheckoutRequestSchema: z.ZodObject<{
3227
4815
  } | undefined;
3228
4816
  }>;
3229
4817
  declare const CompleteCheckoutRequestSchema: z.ZodObject<{
4818
+ signals: z.ZodOptional<z.ZodObject<{
4819
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4820
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4821
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4822
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4823
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4824
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4825
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
4826
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
4827
+ }, z.ZodTypeAny, "passthrough">>>;
3230
4828
  payment: z.ZodObject<{
3231
4829
  instruments: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
3232
4830
  id: z.ZodString;
@@ -3442,6 +5040,10 @@ declare const CompleteCheckoutRequestSchema: z.ZodObject<{
3442
5040
  selected?: boolean | undefined;
3443
5041
  })[] | undefined;
3444
5042
  };
5043
+ signals?: z.objectOutputType<{
5044
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
5045
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
5046
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3445
5047
  }, {
3446
5048
  payment: {
3447
5049
  instruments?: ({
@@ -3469,6 +5071,10 @@ declare const CompleteCheckoutRequestSchema: z.ZodObject<{
3469
5071
  selected?: boolean | undefined;
3470
5072
  })[] | undefined;
3471
5073
  };
5074
+ signals?: z.objectInputType<{
5075
+ "dev.ucp.buyer_ip": z.ZodOptional<z.ZodString>;
5076
+ "dev.ucp.user_agent": z.ZodOptional<z.ZodString>;
5077
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3472
5078
  }>;
3473
5079
  declare const WebhookEventSchema: z.ZodObject<{
3474
5080
  event_id: z.ZodString;
@@ -3476,6 +5082,7 @@ declare const WebhookEventSchema: z.ZodObject<{
3476
5082
  order: z.ZodObject<{
3477
5083
  ucp: z.ZodIntersection<z.ZodObject<{
3478
5084
  version: z.ZodString;
5085
+ status: z.ZodDefault<z.ZodEnum<["success", "error"]>>;
3479
5086
  services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3480
5087
  version: z.ZodString;
3481
5088
  spec: z.ZodOptional<z.ZodString>;
@@ -3523,11 +5130,11 @@ declare const WebhookEventSchema: z.ZodObject<{
3523
5130
  id?: string | undefined;
3524
5131
  config?: Record<string, unknown> | undefined;
3525
5132
  }>, z.ZodObject<{
3526
- extends: z.ZodOptional<z.ZodString>;
5133
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3527
5134
  }, "strip", z.ZodTypeAny, {
3528
- extends?: string | undefined;
5135
+ extends?: unknown;
3529
5136
  }, {
3530
- extends?: string | undefined;
5137
+ extends?: unknown;
3531
5138
  }>>, "many">>>;
3532
5139
  payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3533
5140
  version: z.ZodString;
@@ -3547,9 +5154,31 @@ declare const WebhookEventSchema: z.ZodObject<{
3547
5154
  schema?: string | undefined;
3548
5155
  id?: string | undefined;
3549
5156
  config?: Record<string, unknown> | undefined;
3550
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
5157
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
5158
+ available_instruments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5159
+ type: z.ZodString;
5160
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5161
+ }, "strip", z.ZodTypeAny, {
5162
+ type: string;
5163
+ constraints?: Record<string, unknown> | undefined;
5164
+ }, {
5165
+ type: string;
5166
+ constraints?: Record<string, unknown> | undefined;
5167
+ }>, "many">>;
5168
+ }, "strip", z.ZodTypeAny, {
5169
+ available_instruments?: {
5170
+ type: string;
5171
+ constraints?: Record<string, unknown> | undefined;
5172
+ }[] | undefined;
5173
+ }, {
5174
+ available_instruments?: {
5175
+ type: string;
5176
+ constraints?: Record<string, unknown> | undefined;
5177
+ }[] | undefined;
5178
+ }>>>, "many">>>;
3551
5179
  }, "strip", z.ZodTypeAny, {
3552
5180
  version: string;
5181
+ status: "success" | "error";
3553
5182
  services?: Record<string, ({
3554
5183
  version: string;
3555
5184
  spec?: string | undefined;
@@ -3567,7 +5196,7 @@ declare const WebhookEventSchema: z.ZodObject<{
3567
5196
  id?: string | undefined;
3568
5197
  config?: Record<string, unknown> | undefined;
3569
5198
  } & {
3570
- extends?: string | undefined;
5199
+ extends?: unknown;
3571
5200
  })[]> | undefined;
3572
5201
  payment_handlers?: Record<string, ({
3573
5202
  version: string;
@@ -3575,9 +5204,15 @@ declare const WebhookEventSchema: z.ZodObject<{
3575
5204
  schema?: string | undefined;
3576
5205
  id?: string | undefined;
3577
5206
  config?: Record<string, unknown> | undefined;
3578
- } & Record<string, unknown>)[]> | undefined;
5207
+ } & Record<string, unknown> & {
5208
+ available_instruments?: {
5209
+ type: string;
5210
+ constraints?: Record<string, unknown> | undefined;
5211
+ }[] | undefined;
5212
+ })[]> | undefined;
3579
5213
  }, {
3580
5214
  version: string;
5215
+ status?: "success" | "error" | undefined;
3581
5216
  services?: Record<string, ({
3582
5217
  version: string;
3583
5218
  spec?: string | undefined;
@@ -3595,7 +5230,7 @@ declare const WebhookEventSchema: z.ZodObject<{
3595
5230
  id?: string | undefined;
3596
5231
  config?: Record<string, unknown> | undefined;
3597
5232
  } & {
3598
- extends?: string | undefined;
5233
+ extends?: unknown;
3599
5234
  })[]> | undefined;
3600
5235
  payment_handlers?: Record<string, ({
3601
5236
  version: string;
@@ -3603,7 +5238,12 @@ declare const WebhookEventSchema: z.ZodObject<{
3603
5238
  schema?: string | undefined;
3604
5239
  id?: string | undefined;
3605
5240
  config?: Record<string, unknown> | undefined;
3606
- } & Record<string, unknown>)[]> | undefined;
5241
+ } & Record<string, unknown> & {
5242
+ available_instruments?: {
5243
+ type: string;
5244
+ constraints?: Record<string, unknown> | undefined;
5245
+ }[] | undefined;
5246
+ })[]> | undefined;
3607
5247
  }>, z.ZodObject<{
3608
5248
  capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
3609
5249
  version: z.ZodString;
@@ -3624,11 +5264,11 @@ declare const WebhookEventSchema: z.ZodObject<{
3624
5264
  id?: string | undefined;
3625
5265
  config?: Record<string, unknown> | undefined;
3626
5266
  }>, z.ZodObject<{
3627
- extends: z.ZodOptional<z.ZodString>;
5267
+ extends: z.ZodOptional<z.ZodEffects<z.ZodUnknown, unknown, unknown>>;
3628
5268
  }, "strip", z.ZodTypeAny, {
3629
- extends?: string | undefined;
5269
+ extends?: unknown;
3630
5270
  }, {
3631
- extends?: string | undefined;
5271
+ extends?: unknown;
3632
5272
  }>>, "many">>>;
3633
5273
  }, "strip", z.ZodTypeAny, {
3634
5274
  capabilities?: Record<string, ({
@@ -3638,7 +5278,7 @@ declare const WebhookEventSchema: z.ZodObject<{
3638
5278
  id?: string | undefined;
3639
5279
  config?: Record<string, unknown> | undefined;
3640
5280
  } & {
3641
- extends?: string | undefined;
5281
+ extends?: unknown;
3642
5282
  })[]> | undefined;
3643
5283
  }, {
3644
5284
  capabilities?: Record<string, ({
@@ -3648,10 +5288,11 @@ declare const WebhookEventSchema: z.ZodObject<{
3648
5288
  id?: string | undefined;
3649
5289
  config?: Record<string, unknown> | undefined;
3650
5290
  } & {
3651
- extends?: string | undefined;
5291
+ extends?: unknown;
3652
5292
  })[]> | undefined;
3653
5293
  }>>;
3654
5294
  id: z.ZodString;
5295
+ label: z.ZodOptional<z.ZodString>;
3655
5296
  checkout_id: z.ZodString;
3656
5297
  permalink_url: z.ZodString;
3657
5298
  line_items: z.ZodArray<z.ZodObject<{
@@ -3673,33 +5314,36 @@ declare const WebhookEventSchema: z.ZodObject<{
3673
5314
  image_url?: string | undefined;
3674
5315
  }>;
3675
5316
  quantity: z.ZodObject<{
5317
+ original: z.ZodOptional<z.ZodNumber>;
3676
5318
  total: z.ZodNumber;
3677
5319
  fulfilled: z.ZodNumber;
3678
5320
  }, "strip", z.ZodTypeAny, {
3679
5321
  total: number;
3680
5322
  fulfilled: number;
5323
+ original?: number | undefined;
3681
5324
  }, {
3682
5325
  total: number;
3683
5326
  fulfilled: number;
5327
+ original?: number | undefined;
3684
5328
  }>;
3685
- totals: z.ZodArray<z.ZodObject<{
3686
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
5329
+ totals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
5330
+ type: z.ZodString;
3687
5331
  display_text: z.ZodOptional<z.ZodString>;
3688
5332
  amount: z.ZodNumber;
3689
5333
  }, "strip", z.ZodTypeAny, {
3690
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
5334
+ type: string;
3691
5335
  amount: number;
3692
5336
  display_text?: string | undefined;
3693
5337
  }, {
3694
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
5338
+ type: string;
3695
5339
  amount: number;
3696
5340
  display_text?: string | undefined;
3697
- }>, "many">;
3698
- status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
5341
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">;
5342
+ status: z.ZodEnum<["processing", "partial", "fulfilled", "removed"]>;
3699
5343
  parent_id: z.ZodOptional<z.ZodString>;
3700
5344
  }, "strip", z.ZodTypeAny, {
3701
5345
  id: string;
3702
- status: "fulfilled" | "processing" | "partial";
5346
+ status: "fulfilled" | "processing" | "partial" | "removed";
3703
5347
  item: {
3704
5348
  id: string;
3705
5349
  title: string;
@@ -3709,16 +5353,13 @@ declare const WebhookEventSchema: z.ZodObject<{
3709
5353
  quantity: {
3710
5354
  total: number;
3711
5355
  fulfilled: number;
5356
+ original?: number | undefined;
3712
5357
  };
3713
- totals: {
3714
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3715
- amount: number;
3716
- display_text?: string | undefined;
3717
- }[];
5358
+ totals: any[];
3718
5359
  parent_id?: string | undefined;
3719
5360
  }, {
3720
5361
  id: string;
3721
- status: "fulfilled" | "processing" | "partial";
5362
+ status: "fulfilled" | "processing" | "partial" | "removed";
3722
5363
  item: {
3723
5364
  id: string;
3724
5365
  title: string;
@@ -3728,12 +5369,9 @@ declare const WebhookEventSchema: z.ZodObject<{
3728
5369
  quantity: {
3729
5370
  total: number;
3730
5371
  fulfilled: number;
5372
+ original?: number | undefined;
3731
5373
  };
3732
- totals: {
3733
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
3734
- amount: number;
3735
- display_text?: string | undefined;
3736
- }[];
5374
+ totals: any[];
3737
5375
  parent_id?: string | undefined;
3738
5376
  }>, "many">;
3739
5377
  fulfillment: z.ZodObject<{
@@ -3953,14 +5591,26 @@ declare const WebhookEventSchema: z.ZodObject<{
3953
5591
  id: string;
3954
5592
  quantity: number;
3955
5593
  }>, "many">>;
3956
- amount: z.ZodOptional<z.ZodNumber>;
5594
+ totals: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
5595
+ type: z.ZodString;
5596
+ display_text: z.ZodOptional<z.ZodString>;
5597
+ amount: z.ZodNumber;
5598
+ }, "strip", z.ZodTypeAny, {
5599
+ type: string;
5600
+ amount: number;
5601
+ display_text?: string | undefined;
5602
+ }, {
5603
+ type: string;
5604
+ amount: number;
5605
+ display_text?: string | undefined;
5606
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, "many">>;
3957
5607
  description: z.ZodOptional<z.ZodString>;
3958
5608
  }, "strip", z.ZodTypeAny, {
3959
5609
  id: string;
3960
5610
  type: string;
3961
5611
  status: "completed" | "pending" | "failed";
3962
5612
  occurred_at: string;
3963
- amount?: number | undefined;
5613
+ totals?: any[] | undefined;
3964
5614
  line_items?: {
3965
5615
  id: string;
3966
5616
  quantity: number;
@@ -3971,30 +5621,54 @@ declare const WebhookEventSchema: z.ZodObject<{
3971
5621
  type: string;
3972
5622
  status: "completed" | "pending" | "failed";
3973
5623
  occurred_at: string;
3974
- amount?: number | undefined;
5624
+ totals?: any[] | undefined;
3975
5625
  line_items?: {
3976
5626
  id: string;
3977
5627
  quantity: number;
3978
5628
  }[] | undefined;
3979
5629
  description?: string | undefined;
3980
5630
  }>, "many">>;
3981
- totals: z.ZodArray<z.ZodObject<{
3982
- type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
5631
+ currency: z.ZodString;
5632
+ totals: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
5633
+ type: z.ZodString;
3983
5634
  display_text: z.ZodOptional<z.ZodString>;
3984
5635
  amount: z.ZodNumber;
3985
5636
  }, "strip", z.ZodTypeAny, {
3986
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
5637
+ type: string;
3987
5638
  amount: number;
3988
5639
  display_text?: string | undefined;
3989
5640
  }, {
3990
- type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
5641
+ type: string;
3991
5642
  amount: number;
3992
5643
  display_text?: string | undefined;
3993
- }>, "many">;
5644
+ }>, z.ZodIntersection<z.ZodAny, z.ZodAny>>, z.ZodIntersection<z.ZodObject<{
5645
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
5646
+ display_text: z.ZodString;
5647
+ amount: z.ZodNumber;
5648
+ }, "strip", z.ZodTypeAny, {
5649
+ display_text: string;
5650
+ amount: number;
5651
+ }, {
5652
+ display_text: string;
5653
+ amount: number;
5654
+ }>, "many">>;
5655
+ }, "strip", z.ZodTypeAny, {
5656
+ lines?: {
5657
+ display_text: string;
5658
+ amount: number;
5659
+ }[] | undefined;
5660
+ }, {
5661
+ lines?: {
5662
+ display_text: string;
5663
+ amount: number;
5664
+ }[] | undefined;
5665
+ }>, z.ZodAny>>, "many">;
5666
+ messages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodUnknown, unknown, unknown>>, "many">>;
3994
5667
  }, "strip", z.ZodTypeAny, {
3995
5668
  id: string;
3996
5669
  ucp: {
3997
5670
  version: string;
5671
+ status: "success" | "error";
3998
5672
  services?: Record<string, ({
3999
5673
  version: string;
4000
5674
  spec?: string | undefined;
@@ -4012,7 +5686,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4012
5686
  id?: string | undefined;
4013
5687
  config?: Record<string, unknown> | undefined;
4014
5688
  } & {
4015
- extends?: string | undefined;
5689
+ extends?: unknown;
4016
5690
  })[]> | undefined;
4017
5691
  payment_handlers?: Record<string, ({
4018
5692
  version: string;
@@ -4020,7 +5694,12 @@ declare const WebhookEventSchema: z.ZodObject<{
4020
5694
  schema?: string | undefined;
4021
5695
  id?: string | undefined;
4022
5696
  config?: Record<string, unknown> | undefined;
4023
- } & Record<string, unknown>)[]> | undefined;
5697
+ } & Record<string, unknown> & {
5698
+ available_instruments?: {
5699
+ type: string;
5700
+ constraints?: Record<string, unknown> | undefined;
5701
+ }[] | undefined;
5702
+ })[]> | undefined;
4024
5703
  } & {
4025
5704
  capabilities?: Record<string, ({
4026
5705
  version: string;
@@ -4029,9 +5708,30 @@ declare const WebhookEventSchema: z.ZodObject<{
4029
5708
  id?: string | undefined;
4030
5709
  config?: Record<string, unknown> | undefined;
4031
5710
  } & {
4032
- extends?: string | undefined;
5711
+ extends?: unknown;
4033
5712
  })[]> | undefined;
4034
5713
  };
5714
+ totals: any[];
5715
+ line_items: {
5716
+ id: string;
5717
+ status: "fulfilled" | "processing" | "partial" | "removed";
5718
+ item: {
5719
+ id: string;
5720
+ title: string;
5721
+ price: number;
5722
+ image_url?: string | undefined;
5723
+ };
5724
+ quantity: {
5725
+ total: number;
5726
+ fulfilled: number;
5727
+ original?: number | undefined;
5728
+ };
5729
+ totals: any[];
5730
+ parent_id?: string | undefined;
5731
+ }[];
5732
+ currency: string;
5733
+ permalink_url: string;
5734
+ checkout_id: string;
4035
5735
  fulfillment: {
4036
5736
  expectations?: {
4037
5737
  id: string;
@@ -4068,39 +5768,14 @@ declare const WebhookEventSchema: z.ZodObject<{
4068
5768
  tracking_url?: string | undefined;
4069
5769
  }[] | undefined;
4070
5770
  };
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;
5771
+ messages?: Record<string, unknown>[] | undefined;
5772
+ label?: string | undefined;
4098
5773
  adjustments?: {
4099
5774
  id: string;
4100
5775
  type: string;
4101
5776
  status: "completed" | "pending" | "failed";
4102
5777
  occurred_at: string;
4103
- amount?: number | undefined;
5778
+ totals?: any[] | undefined;
4104
5779
  line_items?: {
4105
5780
  id: string;
4106
5781
  quantity: number;
@@ -4111,6 +5786,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4111
5786
  id: string;
4112
5787
  ucp: {
4113
5788
  version: string;
5789
+ status?: "success" | "error" | undefined;
4114
5790
  services?: Record<string, ({
4115
5791
  version: string;
4116
5792
  spec?: string | undefined;
@@ -4128,7 +5804,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4128
5804
  id?: string | undefined;
4129
5805
  config?: Record<string, unknown> | undefined;
4130
5806
  } & {
4131
- extends?: string | undefined;
5807
+ extends?: unknown;
4132
5808
  })[]> | undefined;
4133
5809
  payment_handlers?: Record<string, ({
4134
5810
  version: string;
@@ -4136,7 +5812,12 @@ declare const WebhookEventSchema: z.ZodObject<{
4136
5812
  schema?: string | undefined;
4137
5813
  id?: string | undefined;
4138
5814
  config?: Record<string, unknown> | undefined;
4139
- } & Record<string, unknown>)[]> | undefined;
5815
+ } & Record<string, unknown> & {
5816
+ available_instruments?: {
5817
+ type: string;
5818
+ constraints?: Record<string, unknown> | undefined;
5819
+ }[] | undefined;
5820
+ })[]> | undefined;
4140
5821
  } & {
4141
5822
  capabilities?: Record<string, ({
4142
5823
  version: string;
@@ -4145,9 +5826,30 @@ declare const WebhookEventSchema: z.ZodObject<{
4145
5826
  id?: string | undefined;
4146
5827
  config?: Record<string, unknown> | undefined;
4147
5828
  } & {
4148
- extends?: string | undefined;
5829
+ extends?: unknown;
4149
5830
  })[]> | undefined;
4150
5831
  };
5832
+ totals: any[];
5833
+ line_items: {
5834
+ id: string;
5835
+ status: "fulfilled" | "processing" | "partial" | "removed";
5836
+ item: {
5837
+ id: string;
5838
+ title: string;
5839
+ price: number;
5840
+ image_url?: string | undefined;
5841
+ };
5842
+ quantity: {
5843
+ total: number;
5844
+ fulfilled: number;
5845
+ original?: number | undefined;
5846
+ };
5847
+ totals: any[];
5848
+ parent_id?: string | undefined;
5849
+ }[];
5850
+ currency: string;
5851
+ permalink_url: string;
5852
+ checkout_id: string;
4151
5853
  fulfillment: {
4152
5854
  expectations?: {
4153
5855
  id: string;
@@ -4184,39 +5886,14 @@ declare const WebhookEventSchema: z.ZodObject<{
4184
5886
  tracking_url?: string | undefined;
4185
5887
  }[] | undefined;
4186
5888
  };
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;
5889
+ messages?: Record<string, unknown>[] | undefined;
5890
+ label?: string | undefined;
4214
5891
  adjustments?: {
4215
5892
  id: string;
4216
5893
  type: string;
4217
5894
  status: "completed" | "pending" | "failed";
4218
5895
  occurred_at: string;
4219
- amount?: number | undefined;
5896
+ totals?: any[] | undefined;
4220
5897
  line_items?: {
4221
5898
  id: string;
4222
5899
  quantity: number;
@@ -4229,6 +5906,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4229
5906
  id: string;
4230
5907
  ucp: {
4231
5908
  version: string;
5909
+ status: "success" | "error";
4232
5910
  services?: Record<string, ({
4233
5911
  version: string;
4234
5912
  spec?: string | undefined;
@@ -4246,7 +5924,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4246
5924
  id?: string | undefined;
4247
5925
  config?: Record<string, unknown> | undefined;
4248
5926
  } & {
4249
- extends?: string | undefined;
5927
+ extends?: unknown;
4250
5928
  })[]> | undefined;
4251
5929
  payment_handlers?: Record<string, ({
4252
5930
  version: string;
@@ -4254,7 +5932,12 @@ declare const WebhookEventSchema: z.ZodObject<{
4254
5932
  schema?: string | undefined;
4255
5933
  id?: string | undefined;
4256
5934
  config?: Record<string, unknown> | undefined;
4257
- } & Record<string, unknown>)[]> | undefined;
5935
+ } & Record<string, unknown> & {
5936
+ available_instruments?: {
5937
+ type: string;
5938
+ constraints?: Record<string, unknown> | undefined;
5939
+ }[] | undefined;
5940
+ })[]> | undefined;
4258
5941
  } & {
4259
5942
  capabilities?: Record<string, ({
4260
5943
  version: string;
@@ -4263,9 +5946,30 @@ declare const WebhookEventSchema: z.ZodObject<{
4263
5946
  id?: string | undefined;
4264
5947
  config?: Record<string, unknown> | undefined;
4265
5948
  } & {
4266
- extends?: string | undefined;
5949
+ extends?: unknown;
4267
5950
  })[]> | undefined;
4268
5951
  };
5952
+ totals: any[];
5953
+ line_items: {
5954
+ id: string;
5955
+ status: "fulfilled" | "processing" | "partial" | "removed";
5956
+ item: {
5957
+ id: string;
5958
+ title: string;
5959
+ price: number;
5960
+ image_url?: string | undefined;
5961
+ };
5962
+ quantity: {
5963
+ total: number;
5964
+ fulfilled: number;
5965
+ original?: number | undefined;
5966
+ };
5967
+ totals: any[];
5968
+ parent_id?: string | undefined;
5969
+ }[];
5970
+ currency: string;
5971
+ permalink_url: string;
5972
+ checkout_id: string;
4269
5973
  fulfillment: {
4270
5974
  expectations?: {
4271
5975
  id: string;
@@ -4302,39 +6006,14 @@ declare const WebhookEventSchema: z.ZodObject<{
4302
6006
  tracking_url?: string | undefined;
4303
6007
  }[] | undefined;
4304
6008
  };
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;
6009
+ messages?: Record<string, unknown>[] | undefined;
6010
+ label?: string | undefined;
4332
6011
  adjustments?: {
4333
6012
  id: string;
4334
6013
  type: string;
4335
6014
  status: "completed" | "pending" | "failed";
4336
6015
  occurred_at: string;
4337
- amount?: number | undefined;
6016
+ totals?: any[] | undefined;
4338
6017
  line_items?: {
4339
6018
  id: string;
4340
6019
  quantity: number;
@@ -4349,6 +6028,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4349
6028
  id: string;
4350
6029
  ucp: {
4351
6030
  version: string;
6031
+ status?: "success" | "error" | undefined;
4352
6032
  services?: Record<string, ({
4353
6033
  version: string;
4354
6034
  spec?: string | undefined;
@@ -4366,7 +6046,7 @@ declare const WebhookEventSchema: z.ZodObject<{
4366
6046
  id?: string | undefined;
4367
6047
  config?: Record<string, unknown> | undefined;
4368
6048
  } & {
4369
- extends?: string | undefined;
6049
+ extends?: unknown;
4370
6050
  })[]> | undefined;
4371
6051
  payment_handlers?: Record<string, ({
4372
6052
  version: string;
@@ -4374,7 +6054,12 @@ declare const WebhookEventSchema: z.ZodObject<{
4374
6054
  schema?: string | undefined;
4375
6055
  id?: string | undefined;
4376
6056
  config?: Record<string, unknown> | undefined;
4377
- } & Record<string, unknown>)[]> | undefined;
6057
+ } & Record<string, unknown> & {
6058
+ available_instruments?: {
6059
+ type: string;
6060
+ constraints?: Record<string, unknown> | undefined;
6061
+ }[] | undefined;
6062
+ })[]> | undefined;
4378
6063
  } & {
4379
6064
  capabilities?: Record<string, ({
4380
6065
  version: string;
@@ -4383,9 +6068,30 @@ declare const WebhookEventSchema: z.ZodObject<{
4383
6068
  id?: string | undefined;
4384
6069
  config?: Record<string, unknown> | undefined;
4385
6070
  } & {
4386
- extends?: string | undefined;
6071
+ extends?: unknown;
4387
6072
  })[]> | undefined;
4388
6073
  };
6074
+ totals: any[];
6075
+ line_items: {
6076
+ id: string;
6077
+ status: "fulfilled" | "processing" | "partial" | "removed";
6078
+ item: {
6079
+ id: string;
6080
+ title: string;
6081
+ price: number;
6082
+ image_url?: string | undefined;
6083
+ };
6084
+ quantity: {
6085
+ total: number;
6086
+ fulfilled: number;
6087
+ original?: number | undefined;
6088
+ };
6089
+ totals: any[];
6090
+ parent_id?: string | undefined;
6091
+ }[];
6092
+ currency: string;
6093
+ permalink_url: string;
6094
+ checkout_id: string;
4389
6095
  fulfillment: {
4390
6096
  expectations?: {
4391
6097
  id: string;
@@ -4422,39 +6128,14 @@ declare const WebhookEventSchema: z.ZodObject<{
4422
6128
  tracking_url?: string | undefined;
4423
6129
  }[] | undefined;
4424
6130
  };
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;
6131
+ messages?: Record<string, unknown>[] | undefined;
6132
+ label?: string | undefined;
4452
6133
  adjustments?: {
4453
6134
  id: string;
4454
6135
  type: string;
4455
6136
  status: "completed" | "pending" | "failed";
4456
6137
  occurred_at: string;
4457
- amount?: number | undefined;
6138
+ totals?: any[] | undefined;
4458
6139
  line_items?: {
4459
6140
  id: string;
4460
6141
  quantity: number;
@@ -4470,7 +6151,7 @@ type PostalAddress = z.output<typeof PostalAddressSchema>;
4470
6151
  type BuyerConsent = z.output<typeof BuyerConsentConsentSchema>;
4471
6152
  type LocalizationContext = z.output<typeof ContextSchema>;
4472
6153
  /** A UCP signing key as defined by the SDK spec. */
4473
- type JWK = z.output<typeof UcpSigningKeySchema>;
6154
+ type JWK = z.output<typeof UcpSigningKeySchema$1>;
4474
6155
 
4475
6156
  //#endregion
4476
6157
  //#region src/types/checkout.d.ts
@@ -4521,7 +6202,7 @@ declare class CheckoutCapability {
4521
6202
  //#endregion
4522
6203
  //#region src/types/order.d.ts
4523
6204
  //# sourceMappingURL=checkout.d.ts.map
4524
- type UCPSpecOrder = z.output<typeof OrderSchema>;
6205
+ type UCPSpecOrder = z.output<typeof UCPSpecOrderSchema>;
4525
6206
  type OrderUpdate = z.output<typeof OrderUpdateSchema>;
4526
6207
  type LineItemUpdatePayload = z.output<typeof LineItemUpdateRequestSchema>;
4527
6208
  type OrderUpdatePayload = Record<string, unknown>;
@@ -4548,8 +6229,58 @@ declare class OrderCapability {
4548
6229
  }
4549
6230
 
4550
6231
  //#endregion
4551
- //#region src/types/identity-linking.d.ts
6232
+ //#region src/types/catalog.d.ts
4552
6233
  //# sourceMappingURL=order.d.ts.map
6234
+ type Product = z.output<typeof ProductSchema>;
6235
+ type Variant = z.output<typeof VariantSchema>;
6236
+ type DetailOptionValue = z.output<typeof DetailOptionValueSchema>;
6237
+ type CatalogSearchResponse = z.output<typeof CatalogSearchSchema>;
6238
+ type CatalogLookupResponse = z.output<typeof CatalogLookupSchema>;
6239
+ type SearchFilters = z.output<typeof SearchFiltersSchema>;
6240
+ type Pagination = z.output<typeof PaginationSchema>;
6241
+
6242
+ //#endregion
6243
+ //#region src/capabilities/catalog.d.ts
6244
+ //# sourceMappingURL=catalog.d.ts.map
6245
+ interface CatalogExtensions {
6246
+ readonly search: boolean;
6247
+ readonly lookup: boolean;
6248
+ }
6249
+ /**
6250
+ * Catalog operations. Available when the server declares
6251
+ * `dev.ucp.shopping.catalog.search` and/or `dev.ucp.shopping.catalog.lookup`.
6252
+ */
6253
+ declare class CatalogCapability {
6254
+ private readonly http;
6255
+ readonly extensions: CatalogExtensions;
6256
+ constructor(http: HttpClient, extensions: CatalogExtensions);
6257
+ search(query: string, filters?: SearchFilters, pagination?: Pagination): Promise<CatalogSearchResponse>;
6258
+ getProduct(productId: string): Promise<CatalogLookupResponse>;
6259
+ }
6260
+
6261
+ //#endregion
6262
+ //#region src/types/cart.d.ts
6263
+ //# sourceMappingURL=catalog.d.ts.map
6264
+ type Cart = z.output<typeof CartResponseSchema>;
6265
+ type CartCreatePayload = z.output<typeof CartCreateRequestSchema>;
6266
+ type CartUpdatePayload = z.output<typeof CartUpdateRequestSchema>;
6267
+
6268
+ //#endregion
6269
+ //#region src/capabilities/cart.d.ts
6270
+ //# sourceMappingURL=cart.d.ts.map
6271
+ /** Cart operations. Available when the server declares `dev.ucp.shopping.cart`. */
6272
+ declare class CartCapability {
6273
+ private readonly http;
6274
+ constructor(http: HttpClient);
6275
+ create(payload: CartCreatePayload): Promise<Cart>;
6276
+ get(id: string): Promise<Cart>;
6277
+ update(id: string, payload: CartUpdatePayload): Promise<Cart>;
6278
+ cancel(id: string): Promise<Cart>;
6279
+ }
6280
+
6281
+ //#endregion
6282
+ //#region src/types/identity-linking.d.ts
6283
+ //# sourceMappingURL=cart.d.ts.map
4553
6284
  interface OAuthServerMetadata {
4554
6285
  readonly issuer: string;
4555
6286
  readonly authorization_endpoint: string;
@@ -4627,6 +6358,9 @@ declare const UCP_CAPABILITIES: {
4627
6358
  readonly DISCOUNT: "dev.ucp.shopping.discount";
4628
6359
  readonly BUYER_CONSENT: "dev.ucp.shopping.buyer_consent";
4629
6360
  readonly ORDER: "dev.ucp.shopping.order";
6361
+ readonly CATALOG_SEARCH: "dev.ucp.shopping.catalog.search";
6362
+ readonly CATALOG_LOOKUP: "dev.ucp.shopping.catalog.lookup";
6363
+ readonly CART: "dev.ucp.shopping.cart";
4630
6364
  readonly IDENTITY_LINKING: "dev.ucp.common.identity_linking";
4631
6365
  readonly AP2_MANDATE: "dev.ucp.shopping.ap2_mandate";
4632
6366
  };
@@ -4678,6 +6412,10 @@ interface ConnectedClient {
4678
6412
  readonly checkout: CheckoutCapability | null;
4679
6413
  /** Order operations. Null if server does not support `dev.ucp.shopping.order`. */
4680
6414
  readonly order: OrderCapability | null;
6415
+ /** Catalog operations. Null if server supports neither `dev.ucp.shopping.catalog.search` nor `dev.ucp.shopping.catalog.lookup`. */
6416
+ readonly catalog: CatalogCapability | null;
6417
+ /** Cart operations. Null if server does not support `dev.ucp.shopping.cart`. */
6418
+ readonly cart: CartCapability | null;
4681
6419
  /** OAuth 2.0 identity linking. Null if server does not support `dev.ucp.common.identity_linking`. */
4682
6420
  readonly identityLinking: IdentityLinkingCapability | null;
4683
6421
  /** Payment handlers declared by the server, keyed by namespace. */
@@ -4771,5 +6509,5 @@ type ToolErrorResult = {
4771
6509
  };
4772
6510
 
4773
6511
  //#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
6512
+ export { AccountInfoSchema, AdapterOptions, AdjustmentSchema, AdjustmentStatusEnumSchema, AgentTool, AmountSchema, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, AuthorizationParams, AvailablePaymentInstrumentSchema, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsent, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential$1 as CardCredential, CardCredentialCardNumberTypeEnumSchema, CardCredentialSchema, CardPaymentInstrumentAvailableCardPaymentInstrumentSchema, Cart, CartCapability, CartCreatePayload, CartCreateRequestSchema, CartResponseSchema, CartSchema, CartUpdatePayload, CartUpdateRequestSchema, CatalogCapability, CatalogExtensions, CatalogLookupResponse, CatalogLookupSchema, CatalogSearchResponse, CatalogSearchSchema, CategorySchema, CheckoutCapability, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutExtensions, CheckoutResponseSchema, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutSession, CheckoutSessionSchema, CheckoutSessionStatus, CheckoutStatusEnumSchema, CheckoutUpdateRequestSchema, CompleteCheckoutPayload, CompleteCheckoutRequestSchema, ConnectedClient, ContextSchema, CreateCheckoutPayload, CreateCheckoutRequestSchema, DEFAULT_UCP_VERSION, DescriptionSchema, DetailOptionValue, DetailOptionValueSchema, DiscountAllocationSchema, DiscountAppliedDiscountMethodEnumSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ErrorCodeSchema, ErrorResponseSchema, 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, InputCorrelationSchema, ItemResponseSchema, ItemSchema, JWK, JsonSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdatePayload, LineItemUpdateRequestSchema, LinkSchema, LocalizationContext, MediaSchema, MerchantFulfillmentConfigSchema, MessageErrorContentTypeEnumSchema, MessageErrorSchema, MessageErrorSeverityEnumSchema, MessageInfoContentTypeEnumSchema, MessageInfoSchema, MessageSchema, MessageWarningContentTypeEnumSchema, MessageWarningSchema, OAuthServerMetadata, OptionValueSchema, OrderCapability, OrderConfirmationSchema, OrderLineItemSchema, OrderLineItemStatusEnumSchema, OrderUpdate, OrderUpdatePayload, OrderUpdateSchema, Pagination, PaginationSchema, PaymentCredential, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerInstance, PaymentHandlerMap, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrument, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformFulfillmentConfigSchema, PostalAddress, PostalAddressSchema, PriceFilterSchema, PriceRangeSchema, PriceSchema, Product, ProductOptionSchema, ProductSchema, ProfileSchemaBaseSchema, ProfileSchemaBusinessProfileSchema, ProfileSchemaPlatformProfileSchema, ProfileSchemaSigningKeySchema, ProfileSchemaSigningKeyUseEnumSchema, RatingSchema, RetailLocationSchema, ReverseDomainNameSchema, SearchFilters, SearchFiltersSchema, SelectedOptionSchema, ServiceBaseSchema, ServiceBaseTransportEnumSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, SignalsSchema, SignedAmountSchema, TokenCredential$1 as TokenCredential, TokenCredentialSchema, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, TotalResponseSchema, TotalSchema, TotalsSchema, UCPClient, UCPClientConfig, UCPProfile, UCPProfileSchema, UCPSpecOrder, UCPSpecOrderSchema, UCP_CAPABILITIES, UcpBaseSchema, UcpBaseStatusEnumSchema, UcpBusinessSchema, UcpDiscoveryBusinessProfileSchema, UcpDiscoveryPlatformProfileSchema, UcpEntitySchema, UcpErrorSchema, UcpPlatformSchema, UcpRequiresSchema, UcpResponseCartSchema, UcpResponseCatalogSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpSigningKeySchema$1 as UcpSigningKeySchema, UcpSigningKeySchema as UcpSigningKeySchema$1, UcpSuccessSchema, UcpVersionConstraintSchema, UcpVersionSchema, UpdateCheckoutPayload, UpdateCheckoutRequestSchema, Variant, VariantSchema, WebhookEvent, WebhookEventSchema, connect, getAgentTools };
6513
+ //# sourceMappingURL=catch-errors-B4orhUQa.d.cts.map