@omnixhq/ucp-client 2.1.0 → 2.2.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.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdapterOptions, AgentTool, AuthorizationParams, BuyerConsent, CardCredential, CheckoutCapability, CheckoutExtensions, CheckoutSession, CheckoutSessionStatus, CompleteCheckoutPayload, ConnectedClient, CreateCheckoutPayload, DEFAULT_UCP_VERSION, IdentityLinkingCapability, JWK, JsonSchema, LocalizationContext, OAuthServerMetadata, OrderCapability, PaymentCredential, PaymentHandlerInstance, PaymentHandlerMap, PaymentInstrument, PostalAddress, TokenCredential, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, UCPClient, UCPClientConfig, UCPProfile, UCPSpecOrder, UCP_CAPABILITIES, UpdateCheckoutPayload, WebhookEvent, connect, getAgentTools } from "./catch-errors-hlc4bOF9.cjs";
1
+ import { AdapterOptions, AgentTool, AuthorizationParams, BuyerConsent, CardCredential, CheckoutCapability, CheckoutExtensions, CheckoutSession, CheckoutSessionStatus, CompleteCheckoutPayload, ConnectedClient, CreateCheckoutPayload, DEFAULT_UCP_VERSION, IdentityLinkingCapability, JWK, JsonSchema, LocalizationContext, OAuthServerMetadata, OrderCapability, PaymentCredential, PaymentHandlerInstance, PaymentHandlerMap, PaymentInstrument, PostalAddress, TokenCredential, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, UCPClient, UCPClientConfig, UCPProfile, UCPSpecOrder, UCP_CAPABILITIES, UpdateCheckoutPayload, WebhookEvent, connect, getAgentTools } from "./catch-errors-BoytVKBJ.cjs";
2
2
  import { AccountInfoSchema, AdjustmentSchema, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredentialSchema, CardPaymentInstrumentSchema, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutResponseSchema, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutUpdateRequestSchema, ContextSchema, DiscountAllocationSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ExpectationSchema, ExtendedPaymentCredentialSchema, FulfillmentAvailableMethodSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, ItemResponseSchema, ItemSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdateRequestSchema, LinkSchema, MerchantFulfillmentConfigSchema, MessageErrorSchema, MessageInfoSchema, MessageSchema, MessageWarningSchema, OrderConfirmationSchema, OrderLineItemSchema, OrderSchema, OrderUpdateSchema, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformConfigSchema, PlatformFulfillmentConfigSchema, PostalAddressSchema, RetailLocationSchema, ServiceBaseSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, TokenCredentialSchema, TotalResponseSchema, TotalSchema, UcpBaseSchema, UcpBusinessSchema, UcpEntitySchema, UcpPlatformSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpReverseDomainNameSchema, UcpVersionSchema } from "@omnixhq/ucp-js-sdk";
3
3
  import { z } from "zod";
4
4
 
@@ -54,8 +54,36 @@ interface WebhookVerifier {
54
54
  declare function createWebhookVerifier(gatewayUrl: string): WebhookVerifier;
55
55
 
56
56
  //#endregion
57
- //#region src/errors.d.ts
57
+ //#region src/parse-webhook-event.d.ts
58
58
  //# sourceMappingURL=verify-signature.d.ts.map
59
+ /**
60
+ * Parses and validates a raw webhook request body as a UCP order event.
61
+ *
62
+ * Call this after verifying the `Request-Signature` header with
63
+ * {@link createWebhookVerifier} or {@link verifyRequestSignature}.
64
+ *
65
+ * Throws {@link UCPError} with code `INVALID_WEBHOOK_PAYLOAD` if the body is
66
+ * not valid JSON or does not conform to the UCP webhook event schema.
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * import { createWebhookVerifier, parseWebhookEvent } from '@omnixhq/ucp-client';
71
+ *
72
+ * const verifier = createWebhookVerifier('https://store.example.com');
73
+ *
74
+ * // In your webhook handler:
75
+ * const valid = await verifier.verify(rawBody, req.headers['request-signature']);
76
+ * if (!valid) return res.status(401).send('Invalid signature');
77
+ *
78
+ * const event = parseWebhookEvent(rawBody);
79
+ * console.log(event.event_id, event.order.id);
80
+ * ```
81
+ */
82
+ declare function parseWebhookEvent(body: string): WebhookEvent;
83
+
84
+ //#endregion
85
+ //#region src/errors.d.ts
86
+ //# sourceMappingURL=parse-webhook-event.d.ts.map
59
87
  type MessageType = 'error' | 'warning' | 'info';
60
88
  type MessageSeverity = 'recoverable' | 'requires_buyer_input' | 'requires_buyer_review';
61
89
  type ContentType = 'plain' | 'markdown';
@@ -5779,6 +5807,4681 @@ declare const CompleteCheckoutRequestSchema: z.ZodObject<{
5779
5807
  })[] | undefined;
5780
5808
  }>;
5781
5809
  }, z.ZodTypeAny, "passthrough">>;
5810
+ declare const WebhookEventSchema: z.ZodObject<{
5811
+ event_id: z.ZodString;
5812
+ created_time: z.ZodString;
5813
+ order: z.ZodObject<{
5814
+ ucp: z.ZodIntersection<z.ZodObject<{
5815
+ version: z.ZodString;
5816
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
5817
+ version: z.ZodString;
5818
+ spec: z.ZodOptional<z.ZodString>;
5819
+ schema: z.ZodOptional<z.ZodString>;
5820
+ id: z.ZodOptional<z.ZodString>;
5821
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5822
+ }, "strip", z.ZodTypeAny, {
5823
+ version: string;
5824
+ spec?: string | undefined;
5825
+ schema?: string | undefined;
5826
+ id?: string | undefined;
5827
+ config?: Record<string, unknown> | undefined;
5828
+ }, {
5829
+ version: string;
5830
+ spec?: string | undefined;
5831
+ schema?: string | undefined;
5832
+ id?: string | undefined;
5833
+ config?: Record<string, unknown> | undefined;
5834
+ }>, z.ZodObject<{
5835
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
5836
+ endpoint: z.ZodOptional<z.ZodString>;
5837
+ }, "strip", z.ZodTypeAny, {
5838
+ transport: "rest" | "mcp" | "a2a" | "embedded";
5839
+ endpoint?: string | undefined;
5840
+ }, {
5841
+ transport: "rest" | "mcp" | "a2a" | "embedded";
5842
+ endpoint?: string | undefined;
5843
+ }>>, "many">>>;
5844
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
5845
+ version: z.ZodString;
5846
+ spec: z.ZodOptional<z.ZodString>;
5847
+ schema: z.ZodOptional<z.ZodString>;
5848
+ id: z.ZodOptional<z.ZodString>;
5849
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5850
+ }, "strip", z.ZodTypeAny, {
5851
+ version: string;
5852
+ spec?: string | undefined;
5853
+ schema?: string | undefined;
5854
+ id?: string | undefined;
5855
+ config?: Record<string, unknown> | undefined;
5856
+ }, {
5857
+ version: string;
5858
+ spec?: string | undefined;
5859
+ schema?: string | undefined;
5860
+ id?: string | undefined;
5861
+ config?: Record<string, unknown> | undefined;
5862
+ }>, z.ZodObject<{
5863
+ extends: z.ZodOptional<z.ZodString>;
5864
+ }, "strip", z.ZodTypeAny, {
5865
+ extends?: string | undefined;
5866
+ }, {
5867
+ extends?: string | undefined;
5868
+ }>>, "many">>>;
5869
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
5870
+ version: z.ZodString;
5871
+ spec: z.ZodOptional<z.ZodString>;
5872
+ schema: z.ZodOptional<z.ZodString>;
5873
+ id: z.ZodOptional<z.ZodString>;
5874
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5875
+ }, "strip", z.ZodTypeAny, {
5876
+ version: string;
5877
+ spec?: string | undefined;
5878
+ schema?: string | undefined;
5879
+ id?: string | undefined;
5880
+ config?: Record<string, unknown> | undefined;
5881
+ }, {
5882
+ version: string;
5883
+ spec?: string | undefined;
5884
+ schema?: string | undefined;
5885
+ id?: string | undefined;
5886
+ config?: Record<string, unknown> | undefined;
5887
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
5888
+ }, "strip", z.ZodTypeAny, {
5889
+ version: string;
5890
+ services?: Record<string, ({
5891
+ version: string;
5892
+ spec?: string | undefined;
5893
+ schema?: string | undefined;
5894
+ id?: string | undefined;
5895
+ config?: Record<string, unknown> | undefined;
5896
+ } & {
5897
+ transport: "rest" | "mcp" | "a2a" | "embedded";
5898
+ endpoint?: string | undefined;
5899
+ })[]> | undefined;
5900
+ capabilities?: Record<string, ({
5901
+ version: string;
5902
+ spec?: string | undefined;
5903
+ schema?: string | undefined;
5904
+ id?: string | undefined;
5905
+ config?: Record<string, unknown> | undefined;
5906
+ } & {
5907
+ extends?: string | undefined;
5908
+ })[]> | undefined;
5909
+ payment_handlers?: Record<string, ({
5910
+ version: string;
5911
+ spec?: string | undefined;
5912
+ schema?: string | undefined;
5913
+ id?: string | undefined;
5914
+ config?: Record<string, unknown> | undefined;
5915
+ } & Record<string, unknown>)[]> | undefined;
5916
+ }, {
5917
+ version: string;
5918
+ services?: Record<string, ({
5919
+ version: string;
5920
+ spec?: string | undefined;
5921
+ schema?: string | undefined;
5922
+ id?: string | undefined;
5923
+ config?: Record<string, unknown> | undefined;
5924
+ } & {
5925
+ transport: "rest" | "mcp" | "a2a" | "embedded";
5926
+ endpoint?: string | undefined;
5927
+ })[]> | undefined;
5928
+ capabilities?: Record<string, ({
5929
+ version: string;
5930
+ spec?: string | undefined;
5931
+ schema?: string | undefined;
5932
+ id?: string | undefined;
5933
+ config?: Record<string, unknown> | undefined;
5934
+ } & {
5935
+ extends?: string | undefined;
5936
+ })[]> | undefined;
5937
+ payment_handlers?: Record<string, ({
5938
+ version: string;
5939
+ spec?: string | undefined;
5940
+ schema?: string | undefined;
5941
+ id?: string | undefined;
5942
+ config?: Record<string, unknown> | undefined;
5943
+ } & Record<string, unknown>)[]> | undefined;
5944
+ }>, z.ZodObject<{
5945
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
5946
+ version: z.ZodString;
5947
+ spec: z.ZodOptional<z.ZodString>;
5948
+ schema: z.ZodOptional<z.ZodString>;
5949
+ id: z.ZodOptional<z.ZodString>;
5950
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5951
+ }, "strip", z.ZodTypeAny, {
5952
+ version: string;
5953
+ spec?: string | undefined;
5954
+ schema?: string | undefined;
5955
+ id?: string | undefined;
5956
+ config?: Record<string, unknown> | undefined;
5957
+ }, {
5958
+ version: string;
5959
+ spec?: string | undefined;
5960
+ schema?: string | undefined;
5961
+ id?: string | undefined;
5962
+ config?: Record<string, unknown> | undefined;
5963
+ }>, z.ZodObject<{
5964
+ extends: z.ZodOptional<z.ZodString>;
5965
+ }, "strip", z.ZodTypeAny, {
5966
+ extends?: string | undefined;
5967
+ }, {
5968
+ extends?: string | undefined;
5969
+ }>>, "many">>>;
5970
+ }, "strip", z.ZodTypeAny, {
5971
+ capabilities?: Record<string, ({
5972
+ version: string;
5973
+ spec?: string | undefined;
5974
+ schema?: string | undefined;
5975
+ id?: string | undefined;
5976
+ config?: Record<string, unknown> | undefined;
5977
+ } & {
5978
+ extends?: string | undefined;
5979
+ })[]> | undefined;
5980
+ }, {
5981
+ capabilities?: Record<string, ({
5982
+ version: string;
5983
+ spec?: string | undefined;
5984
+ schema?: string | undefined;
5985
+ id?: string | undefined;
5986
+ config?: Record<string, unknown> | undefined;
5987
+ } & {
5988
+ extends?: string | undefined;
5989
+ })[]> | undefined;
5990
+ }>>;
5991
+ id: z.ZodString;
5992
+ checkout_id: z.ZodString;
5993
+ permalink_url: z.ZodString;
5994
+ line_items: z.ZodArray<z.ZodObject<{
5995
+ id: z.ZodString;
5996
+ item: z.ZodObject<{
5997
+ id: z.ZodString;
5998
+ title: z.ZodString;
5999
+ price: z.ZodNumber;
6000
+ image_url: z.ZodOptional<z.ZodString>;
6001
+ }, "strip", z.ZodTypeAny, {
6002
+ id: string;
6003
+ title: string;
6004
+ price: number;
6005
+ image_url?: string | undefined;
6006
+ }, {
6007
+ id: string;
6008
+ title: string;
6009
+ price: number;
6010
+ image_url?: string | undefined;
6011
+ }>;
6012
+ quantity: z.ZodObject<{
6013
+ total: z.ZodNumber;
6014
+ fulfilled: z.ZodNumber;
6015
+ }, "strip", z.ZodTypeAny, {
6016
+ total: number;
6017
+ fulfilled: number;
6018
+ }, {
6019
+ total: number;
6020
+ fulfilled: number;
6021
+ }>;
6022
+ totals: z.ZodArray<z.ZodObject<{
6023
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
6024
+ display_text: z.ZodOptional<z.ZodString>;
6025
+ amount: z.ZodNumber;
6026
+ }, "strip", z.ZodTypeAny, {
6027
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6028
+ amount: number;
6029
+ display_text?: string | undefined;
6030
+ }, {
6031
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6032
+ amount: number;
6033
+ display_text?: string | undefined;
6034
+ }>, "many">;
6035
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
6036
+ parent_id: z.ZodOptional<z.ZodString>;
6037
+ }, "strip", z.ZodTypeAny, {
6038
+ id: string;
6039
+ status: "fulfilled" | "processing" | "partial";
6040
+ item: {
6041
+ id: string;
6042
+ title: string;
6043
+ price: number;
6044
+ image_url?: string | undefined;
6045
+ };
6046
+ quantity: {
6047
+ total: number;
6048
+ fulfilled: number;
6049
+ };
6050
+ totals: {
6051
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6052
+ amount: number;
6053
+ display_text?: string | undefined;
6054
+ }[];
6055
+ parent_id?: string | undefined;
6056
+ }, {
6057
+ id: string;
6058
+ status: "fulfilled" | "processing" | "partial";
6059
+ item: {
6060
+ id: string;
6061
+ title: string;
6062
+ price: number;
6063
+ image_url?: string | undefined;
6064
+ };
6065
+ quantity: {
6066
+ total: number;
6067
+ fulfilled: number;
6068
+ };
6069
+ totals: {
6070
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6071
+ amount: number;
6072
+ display_text?: string | undefined;
6073
+ }[];
6074
+ parent_id?: string | undefined;
6075
+ }>, "many">;
6076
+ fulfillment: z.ZodObject<{
6077
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
6078
+ id: z.ZodString;
6079
+ line_items: z.ZodArray<z.ZodObject<{
6080
+ id: z.ZodString;
6081
+ quantity: z.ZodNumber;
6082
+ }, "strip", z.ZodTypeAny, {
6083
+ id: string;
6084
+ quantity: number;
6085
+ }, {
6086
+ id: string;
6087
+ quantity: number;
6088
+ }>, "many">;
6089
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
6090
+ destination: z.ZodObject<{
6091
+ extended_address: z.ZodOptional<z.ZodString>;
6092
+ street_address: z.ZodOptional<z.ZodString>;
6093
+ address_locality: z.ZodOptional<z.ZodString>;
6094
+ address_region: z.ZodOptional<z.ZodString>;
6095
+ address_country: z.ZodOptional<z.ZodString>;
6096
+ postal_code: z.ZodOptional<z.ZodString>;
6097
+ first_name: z.ZodOptional<z.ZodString>;
6098
+ last_name: z.ZodOptional<z.ZodString>;
6099
+ phone_number: z.ZodOptional<z.ZodString>;
6100
+ }, "strip", z.ZodTypeAny, {
6101
+ first_name?: string | undefined;
6102
+ last_name?: string | undefined;
6103
+ phone_number?: string | undefined;
6104
+ address_country?: string | undefined;
6105
+ address_region?: string | undefined;
6106
+ postal_code?: string | undefined;
6107
+ extended_address?: string | undefined;
6108
+ street_address?: string | undefined;
6109
+ address_locality?: string | undefined;
6110
+ }, {
6111
+ first_name?: string | undefined;
6112
+ last_name?: string | undefined;
6113
+ phone_number?: string | undefined;
6114
+ address_country?: string | undefined;
6115
+ address_region?: string | undefined;
6116
+ postal_code?: string | undefined;
6117
+ extended_address?: string | undefined;
6118
+ street_address?: string | undefined;
6119
+ address_locality?: string | undefined;
6120
+ }>;
6121
+ description: z.ZodOptional<z.ZodString>;
6122
+ fulfillable_on: z.ZodOptional<z.ZodString>;
6123
+ }, "strip", z.ZodTypeAny, {
6124
+ id: string;
6125
+ line_items: {
6126
+ id: string;
6127
+ quantity: number;
6128
+ }[];
6129
+ method_type: "shipping" | "pickup" | "digital";
6130
+ destination: {
6131
+ first_name?: string | undefined;
6132
+ last_name?: string | undefined;
6133
+ phone_number?: string | undefined;
6134
+ address_country?: string | undefined;
6135
+ address_region?: string | undefined;
6136
+ postal_code?: string | undefined;
6137
+ extended_address?: string | undefined;
6138
+ street_address?: string | undefined;
6139
+ address_locality?: string | undefined;
6140
+ };
6141
+ description?: string | undefined;
6142
+ fulfillable_on?: string | undefined;
6143
+ }, {
6144
+ id: string;
6145
+ line_items: {
6146
+ id: string;
6147
+ quantity: number;
6148
+ }[];
6149
+ method_type: "shipping" | "pickup" | "digital";
6150
+ destination: {
6151
+ first_name?: string | undefined;
6152
+ last_name?: string | undefined;
6153
+ phone_number?: string | undefined;
6154
+ address_country?: string | undefined;
6155
+ address_region?: string | undefined;
6156
+ postal_code?: string | undefined;
6157
+ extended_address?: string | undefined;
6158
+ street_address?: string | undefined;
6159
+ address_locality?: string | undefined;
6160
+ };
6161
+ description?: string | undefined;
6162
+ fulfillable_on?: string | undefined;
6163
+ }>, "many">>;
6164
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
6165
+ id: z.ZodString;
6166
+ occurred_at: z.ZodString;
6167
+ type: z.ZodString;
6168
+ line_items: z.ZodArray<z.ZodObject<{
6169
+ id: z.ZodString;
6170
+ quantity: z.ZodNumber;
6171
+ }, "strip", z.ZodTypeAny, {
6172
+ id: string;
6173
+ quantity: number;
6174
+ }, {
6175
+ id: string;
6176
+ quantity: number;
6177
+ }>, "many">;
6178
+ tracking_number: z.ZodOptional<z.ZodString>;
6179
+ tracking_url: z.ZodOptional<z.ZodString>;
6180
+ carrier: z.ZodOptional<z.ZodString>;
6181
+ description: z.ZodOptional<z.ZodString>;
6182
+ }, "strip", z.ZodTypeAny, {
6183
+ id: string;
6184
+ type: string;
6185
+ line_items: {
6186
+ id: string;
6187
+ quantity: number;
6188
+ }[];
6189
+ occurred_at: string;
6190
+ description?: string | undefined;
6191
+ carrier?: string | undefined;
6192
+ tracking_number?: string | undefined;
6193
+ tracking_url?: string | undefined;
6194
+ }, {
6195
+ id: string;
6196
+ type: string;
6197
+ line_items: {
6198
+ id: string;
6199
+ quantity: number;
6200
+ }[];
6201
+ occurred_at: string;
6202
+ description?: string | undefined;
6203
+ carrier?: string | undefined;
6204
+ tracking_number?: string | undefined;
6205
+ tracking_url?: string | undefined;
6206
+ }>, "many">>;
6207
+ }, "strip", z.ZodTypeAny, {
6208
+ expectations?: {
6209
+ id: string;
6210
+ line_items: {
6211
+ id: string;
6212
+ quantity: number;
6213
+ }[];
6214
+ method_type: "shipping" | "pickup" | "digital";
6215
+ destination: {
6216
+ first_name?: string | undefined;
6217
+ last_name?: string | undefined;
6218
+ phone_number?: string | undefined;
6219
+ address_country?: string | undefined;
6220
+ address_region?: string | undefined;
6221
+ postal_code?: string | undefined;
6222
+ extended_address?: string | undefined;
6223
+ street_address?: string | undefined;
6224
+ address_locality?: string | undefined;
6225
+ };
6226
+ description?: string | undefined;
6227
+ fulfillable_on?: string | undefined;
6228
+ }[] | undefined;
6229
+ events?: {
6230
+ id: string;
6231
+ type: string;
6232
+ line_items: {
6233
+ id: string;
6234
+ quantity: number;
6235
+ }[];
6236
+ occurred_at: string;
6237
+ description?: string | undefined;
6238
+ carrier?: string | undefined;
6239
+ tracking_number?: string | undefined;
6240
+ tracking_url?: string | undefined;
6241
+ }[] | undefined;
6242
+ }, {
6243
+ expectations?: {
6244
+ id: string;
6245
+ line_items: {
6246
+ id: string;
6247
+ quantity: number;
6248
+ }[];
6249
+ method_type: "shipping" | "pickup" | "digital";
6250
+ destination: {
6251
+ first_name?: string | undefined;
6252
+ last_name?: string | undefined;
6253
+ phone_number?: string | undefined;
6254
+ address_country?: string | undefined;
6255
+ address_region?: string | undefined;
6256
+ postal_code?: string | undefined;
6257
+ extended_address?: string | undefined;
6258
+ street_address?: string | undefined;
6259
+ address_locality?: string | undefined;
6260
+ };
6261
+ description?: string | undefined;
6262
+ fulfillable_on?: string | undefined;
6263
+ }[] | undefined;
6264
+ events?: {
6265
+ id: string;
6266
+ type: string;
6267
+ line_items: {
6268
+ id: string;
6269
+ quantity: number;
6270
+ }[];
6271
+ occurred_at: string;
6272
+ description?: string | undefined;
6273
+ carrier?: string | undefined;
6274
+ tracking_number?: string | undefined;
6275
+ tracking_url?: string | undefined;
6276
+ }[] | undefined;
6277
+ }>;
6278
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6279
+ id: z.ZodString;
6280
+ type: z.ZodString;
6281
+ occurred_at: z.ZodString;
6282
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
6283
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
6284
+ id: z.ZodString;
6285
+ quantity: z.ZodNumber;
6286
+ }, "strip", z.ZodTypeAny, {
6287
+ id: string;
6288
+ quantity: number;
6289
+ }, {
6290
+ id: string;
6291
+ quantity: number;
6292
+ }>, "many">>;
6293
+ amount: z.ZodOptional<z.ZodNumber>;
6294
+ description: z.ZodOptional<z.ZodString>;
6295
+ }, "strip", z.ZodTypeAny, {
6296
+ id: string;
6297
+ type: string;
6298
+ status: "completed" | "pending" | "failed";
6299
+ occurred_at: string;
6300
+ amount?: number | undefined;
6301
+ line_items?: {
6302
+ id: string;
6303
+ quantity: number;
6304
+ }[] | undefined;
6305
+ description?: string | undefined;
6306
+ }, {
6307
+ id: string;
6308
+ type: string;
6309
+ status: "completed" | "pending" | "failed";
6310
+ occurred_at: string;
6311
+ amount?: number | undefined;
6312
+ line_items?: {
6313
+ id: string;
6314
+ quantity: number;
6315
+ }[] | undefined;
6316
+ description?: string | undefined;
6317
+ }>, "many">>;
6318
+ totals: z.ZodArray<z.ZodObject<{
6319
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
6320
+ display_text: z.ZodOptional<z.ZodString>;
6321
+ amount: z.ZodNumber;
6322
+ }, "strip", z.ZodTypeAny, {
6323
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6324
+ amount: number;
6325
+ display_text?: string | undefined;
6326
+ }, {
6327
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6328
+ amount: number;
6329
+ display_text?: string | undefined;
6330
+ }>, "many">;
6331
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6332
+ ucp: z.ZodIntersection<z.ZodObject<{
6333
+ version: z.ZodString;
6334
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6335
+ version: z.ZodString;
6336
+ spec: z.ZodOptional<z.ZodString>;
6337
+ schema: z.ZodOptional<z.ZodString>;
6338
+ id: z.ZodOptional<z.ZodString>;
6339
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6340
+ }, "strip", z.ZodTypeAny, {
6341
+ version: string;
6342
+ spec?: string | undefined;
6343
+ schema?: string | undefined;
6344
+ id?: string | undefined;
6345
+ config?: Record<string, unknown> | undefined;
6346
+ }, {
6347
+ version: string;
6348
+ spec?: string | undefined;
6349
+ schema?: string | undefined;
6350
+ id?: string | undefined;
6351
+ config?: Record<string, unknown> | undefined;
6352
+ }>, z.ZodObject<{
6353
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
6354
+ endpoint: z.ZodOptional<z.ZodString>;
6355
+ }, "strip", z.ZodTypeAny, {
6356
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6357
+ endpoint?: string | undefined;
6358
+ }, {
6359
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6360
+ endpoint?: string | undefined;
6361
+ }>>, "many">>>;
6362
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6363
+ version: z.ZodString;
6364
+ spec: z.ZodOptional<z.ZodString>;
6365
+ schema: z.ZodOptional<z.ZodString>;
6366
+ id: z.ZodOptional<z.ZodString>;
6367
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6368
+ }, "strip", z.ZodTypeAny, {
6369
+ version: string;
6370
+ spec?: string | undefined;
6371
+ schema?: string | undefined;
6372
+ id?: string | undefined;
6373
+ config?: Record<string, unknown> | undefined;
6374
+ }, {
6375
+ version: string;
6376
+ spec?: string | undefined;
6377
+ schema?: string | undefined;
6378
+ id?: string | undefined;
6379
+ config?: Record<string, unknown> | undefined;
6380
+ }>, z.ZodObject<{
6381
+ extends: z.ZodOptional<z.ZodString>;
6382
+ }, "strip", z.ZodTypeAny, {
6383
+ extends?: string | undefined;
6384
+ }, {
6385
+ extends?: string | undefined;
6386
+ }>>, "many">>>;
6387
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6388
+ version: z.ZodString;
6389
+ spec: z.ZodOptional<z.ZodString>;
6390
+ schema: z.ZodOptional<z.ZodString>;
6391
+ id: z.ZodOptional<z.ZodString>;
6392
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6393
+ }, "strip", z.ZodTypeAny, {
6394
+ version: string;
6395
+ spec?: string | undefined;
6396
+ schema?: string | undefined;
6397
+ id?: string | undefined;
6398
+ config?: Record<string, unknown> | undefined;
6399
+ }, {
6400
+ version: string;
6401
+ spec?: string | undefined;
6402
+ schema?: string | undefined;
6403
+ id?: string | undefined;
6404
+ config?: Record<string, unknown> | undefined;
6405
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
6406
+ }, "strip", z.ZodTypeAny, {
6407
+ version: string;
6408
+ services?: Record<string, ({
6409
+ version: string;
6410
+ spec?: string | undefined;
6411
+ schema?: string | undefined;
6412
+ id?: string | undefined;
6413
+ config?: Record<string, unknown> | undefined;
6414
+ } & {
6415
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6416
+ endpoint?: string | undefined;
6417
+ })[]> | undefined;
6418
+ capabilities?: Record<string, ({
6419
+ version: string;
6420
+ spec?: string | undefined;
6421
+ schema?: string | undefined;
6422
+ id?: string | undefined;
6423
+ config?: Record<string, unknown> | undefined;
6424
+ } & {
6425
+ extends?: string | undefined;
6426
+ })[]> | undefined;
6427
+ payment_handlers?: Record<string, ({
6428
+ version: string;
6429
+ spec?: string | undefined;
6430
+ schema?: string | undefined;
6431
+ id?: string | undefined;
6432
+ config?: Record<string, unknown> | undefined;
6433
+ } & Record<string, unknown>)[]> | undefined;
6434
+ }, {
6435
+ version: string;
6436
+ services?: Record<string, ({
6437
+ version: string;
6438
+ spec?: string | undefined;
6439
+ schema?: string | undefined;
6440
+ id?: string | undefined;
6441
+ config?: Record<string, unknown> | undefined;
6442
+ } & {
6443
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6444
+ endpoint?: string | undefined;
6445
+ })[]> | undefined;
6446
+ capabilities?: Record<string, ({
6447
+ version: string;
6448
+ spec?: string | undefined;
6449
+ schema?: string | undefined;
6450
+ id?: string | undefined;
6451
+ config?: Record<string, unknown> | undefined;
6452
+ } & {
6453
+ extends?: string | undefined;
6454
+ })[]> | undefined;
6455
+ payment_handlers?: Record<string, ({
6456
+ version: string;
6457
+ spec?: string | undefined;
6458
+ schema?: string | undefined;
6459
+ id?: string | undefined;
6460
+ config?: Record<string, unknown> | undefined;
6461
+ } & Record<string, unknown>)[]> | undefined;
6462
+ }>, z.ZodObject<{
6463
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6464
+ version: z.ZodString;
6465
+ spec: z.ZodOptional<z.ZodString>;
6466
+ schema: z.ZodOptional<z.ZodString>;
6467
+ id: z.ZodOptional<z.ZodString>;
6468
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6469
+ }, "strip", z.ZodTypeAny, {
6470
+ version: string;
6471
+ spec?: string | undefined;
6472
+ schema?: string | undefined;
6473
+ id?: string | undefined;
6474
+ config?: Record<string, unknown> | undefined;
6475
+ }, {
6476
+ version: string;
6477
+ spec?: string | undefined;
6478
+ schema?: string | undefined;
6479
+ id?: string | undefined;
6480
+ config?: Record<string, unknown> | undefined;
6481
+ }>, z.ZodObject<{
6482
+ extends: z.ZodOptional<z.ZodString>;
6483
+ }, "strip", z.ZodTypeAny, {
6484
+ extends?: string | undefined;
6485
+ }, {
6486
+ extends?: string | undefined;
6487
+ }>>, "many">>>;
6488
+ }, "strip", z.ZodTypeAny, {
6489
+ capabilities?: Record<string, ({
6490
+ version: string;
6491
+ spec?: string | undefined;
6492
+ schema?: string | undefined;
6493
+ id?: string | undefined;
6494
+ config?: Record<string, unknown> | undefined;
6495
+ } & {
6496
+ extends?: string | undefined;
6497
+ })[]> | undefined;
6498
+ }, {
6499
+ capabilities?: Record<string, ({
6500
+ version: string;
6501
+ spec?: string | undefined;
6502
+ schema?: string | undefined;
6503
+ id?: string | undefined;
6504
+ config?: Record<string, unknown> | undefined;
6505
+ } & {
6506
+ extends?: string | undefined;
6507
+ })[]> | undefined;
6508
+ }>>;
6509
+ id: z.ZodString;
6510
+ checkout_id: z.ZodString;
6511
+ permalink_url: z.ZodString;
6512
+ line_items: z.ZodArray<z.ZodObject<{
6513
+ id: z.ZodString;
6514
+ item: z.ZodObject<{
6515
+ id: z.ZodString;
6516
+ title: z.ZodString;
6517
+ price: z.ZodNumber;
6518
+ image_url: z.ZodOptional<z.ZodString>;
6519
+ }, "strip", z.ZodTypeAny, {
6520
+ id: string;
6521
+ title: string;
6522
+ price: number;
6523
+ image_url?: string | undefined;
6524
+ }, {
6525
+ id: string;
6526
+ title: string;
6527
+ price: number;
6528
+ image_url?: string | undefined;
6529
+ }>;
6530
+ quantity: z.ZodObject<{
6531
+ total: z.ZodNumber;
6532
+ fulfilled: z.ZodNumber;
6533
+ }, "strip", z.ZodTypeAny, {
6534
+ total: number;
6535
+ fulfilled: number;
6536
+ }, {
6537
+ total: number;
6538
+ fulfilled: number;
6539
+ }>;
6540
+ totals: z.ZodArray<z.ZodObject<{
6541
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
6542
+ display_text: z.ZodOptional<z.ZodString>;
6543
+ amount: z.ZodNumber;
6544
+ }, "strip", z.ZodTypeAny, {
6545
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6546
+ amount: number;
6547
+ display_text?: string | undefined;
6548
+ }, {
6549
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6550
+ amount: number;
6551
+ display_text?: string | undefined;
6552
+ }>, "many">;
6553
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
6554
+ parent_id: z.ZodOptional<z.ZodString>;
6555
+ }, "strip", z.ZodTypeAny, {
6556
+ id: string;
6557
+ status: "fulfilled" | "processing" | "partial";
6558
+ item: {
6559
+ id: string;
6560
+ title: string;
6561
+ price: number;
6562
+ image_url?: string | undefined;
6563
+ };
6564
+ quantity: {
6565
+ total: number;
6566
+ fulfilled: number;
6567
+ };
6568
+ totals: {
6569
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6570
+ amount: number;
6571
+ display_text?: string | undefined;
6572
+ }[];
6573
+ parent_id?: string | undefined;
6574
+ }, {
6575
+ id: string;
6576
+ status: "fulfilled" | "processing" | "partial";
6577
+ item: {
6578
+ id: string;
6579
+ title: string;
6580
+ price: number;
6581
+ image_url?: string | undefined;
6582
+ };
6583
+ quantity: {
6584
+ total: number;
6585
+ fulfilled: number;
6586
+ };
6587
+ totals: {
6588
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6589
+ amount: number;
6590
+ display_text?: string | undefined;
6591
+ }[];
6592
+ parent_id?: string | undefined;
6593
+ }>, "many">;
6594
+ fulfillment: z.ZodObject<{
6595
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
6596
+ id: z.ZodString;
6597
+ line_items: z.ZodArray<z.ZodObject<{
6598
+ id: z.ZodString;
6599
+ quantity: z.ZodNumber;
6600
+ }, "strip", z.ZodTypeAny, {
6601
+ id: string;
6602
+ quantity: number;
6603
+ }, {
6604
+ id: string;
6605
+ quantity: number;
6606
+ }>, "many">;
6607
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
6608
+ destination: z.ZodObject<{
6609
+ extended_address: z.ZodOptional<z.ZodString>;
6610
+ street_address: z.ZodOptional<z.ZodString>;
6611
+ address_locality: z.ZodOptional<z.ZodString>;
6612
+ address_region: z.ZodOptional<z.ZodString>;
6613
+ address_country: z.ZodOptional<z.ZodString>;
6614
+ postal_code: z.ZodOptional<z.ZodString>;
6615
+ first_name: z.ZodOptional<z.ZodString>;
6616
+ last_name: z.ZodOptional<z.ZodString>;
6617
+ phone_number: z.ZodOptional<z.ZodString>;
6618
+ }, "strip", z.ZodTypeAny, {
6619
+ first_name?: string | undefined;
6620
+ last_name?: string | undefined;
6621
+ phone_number?: string | undefined;
6622
+ address_country?: string | undefined;
6623
+ address_region?: string | undefined;
6624
+ postal_code?: string | undefined;
6625
+ extended_address?: string | undefined;
6626
+ street_address?: string | undefined;
6627
+ address_locality?: string | undefined;
6628
+ }, {
6629
+ first_name?: string | undefined;
6630
+ last_name?: string | undefined;
6631
+ phone_number?: string | undefined;
6632
+ address_country?: string | undefined;
6633
+ address_region?: string | undefined;
6634
+ postal_code?: string | undefined;
6635
+ extended_address?: string | undefined;
6636
+ street_address?: string | undefined;
6637
+ address_locality?: string | undefined;
6638
+ }>;
6639
+ description: z.ZodOptional<z.ZodString>;
6640
+ fulfillable_on: z.ZodOptional<z.ZodString>;
6641
+ }, "strip", z.ZodTypeAny, {
6642
+ id: string;
6643
+ line_items: {
6644
+ id: string;
6645
+ quantity: number;
6646
+ }[];
6647
+ method_type: "shipping" | "pickup" | "digital";
6648
+ destination: {
6649
+ first_name?: string | undefined;
6650
+ last_name?: string | undefined;
6651
+ phone_number?: string | undefined;
6652
+ address_country?: string | undefined;
6653
+ address_region?: string | undefined;
6654
+ postal_code?: string | undefined;
6655
+ extended_address?: string | undefined;
6656
+ street_address?: string | undefined;
6657
+ address_locality?: string | undefined;
6658
+ };
6659
+ description?: string | undefined;
6660
+ fulfillable_on?: string | undefined;
6661
+ }, {
6662
+ id: string;
6663
+ line_items: {
6664
+ id: string;
6665
+ quantity: number;
6666
+ }[];
6667
+ method_type: "shipping" | "pickup" | "digital";
6668
+ destination: {
6669
+ first_name?: string | undefined;
6670
+ last_name?: string | undefined;
6671
+ phone_number?: string | undefined;
6672
+ address_country?: string | undefined;
6673
+ address_region?: string | undefined;
6674
+ postal_code?: string | undefined;
6675
+ extended_address?: string | undefined;
6676
+ street_address?: string | undefined;
6677
+ address_locality?: string | undefined;
6678
+ };
6679
+ description?: string | undefined;
6680
+ fulfillable_on?: string | undefined;
6681
+ }>, "many">>;
6682
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
6683
+ id: z.ZodString;
6684
+ occurred_at: z.ZodString;
6685
+ type: z.ZodString;
6686
+ line_items: z.ZodArray<z.ZodObject<{
6687
+ id: z.ZodString;
6688
+ quantity: z.ZodNumber;
6689
+ }, "strip", z.ZodTypeAny, {
6690
+ id: string;
6691
+ quantity: number;
6692
+ }, {
6693
+ id: string;
6694
+ quantity: number;
6695
+ }>, "many">;
6696
+ tracking_number: z.ZodOptional<z.ZodString>;
6697
+ tracking_url: z.ZodOptional<z.ZodString>;
6698
+ carrier: z.ZodOptional<z.ZodString>;
6699
+ description: z.ZodOptional<z.ZodString>;
6700
+ }, "strip", z.ZodTypeAny, {
6701
+ id: string;
6702
+ type: string;
6703
+ line_items: {
6704
+ id: string;
6705
+ quantity: number;
6706
+ }[];
6707
+ occurred_at: string;
6708
+ description?: string | undefined;
6709
+ carrier?: string | undefined;
6710
+ tracking_number?: string | undefined;
6711
+ tracking_url?: string | undefined;
6712
+ }, {
6713
+ id: string;
6714
+ type: string;
6715
+ line_items: {
6716
+ id: string;
6717
+ quantity: number;
6718
+ }[];
6719
+ occurred_at: string;
6720
+ description?: string | undefined;
6721
+ carrier?: string | undefined;
6722
+ tracking_number?: string | undefined;
6723
+ tracking_url?: string | undefined;
6724
+ }>, "many">>;
6725
+ }, "strip", z.ZodTypeAny, {
6726
+ expectations?: {
6727
+ id: string;
6728
+ line_items: {
6729
+ id: string;
6730
+ quantity: number;
6731
+ }[];
6732
+ method_type: "shipping" | "pickup" | "digital";
6733
+ destination: {
6734
+ first_name?: string | undefined;
6735
+ last_name?: string | undefined;
6736
+ phone_number?: string | undefined;
6737
+ address_country?: string | undefined;
6738
+ address_region?: string | undefined;
6739
+ postal_code?: string | undefined;
6740
+ extended_address?: string | undefined;
6741
+ street_address?: string | undefined;
6742
+ address_locality?: string | undefined;
6743
+ };
6744
+ description?: string | undefined;
6745
+ fulfillable_on?: string | undefined;
6746
+ }[] | undefined;
6747
+ events?: {
6748
+ id: string;
6749
+ type: string;
6750
+ line_items: {
6751
+ id: string;
6752
+ quantity: number;
6753
+ }[];
6754
+ occurred_at: string;
6755
+ description?: string | undefined;
6756
+ carrier?: string | undefined;
6757
+ tracking_number?: string | undefined;
6758
+ tracking_url?: string | undefined;
6759
+ }[] | undefined;
6760
+ }, {
6761
+ expectations?: {
6762
+ id: string;
6763
+ line_items: {
6764
+ id: string;
6765
+ quantity: number;
6766
+ }[];
6767
+ method_type: "shipping" | "pickup" | "digital";
6768
+ destination: {
6769
+ first_name?: string | undefined;
6770
+ last_name?: string | undefined;
6771
+ phone_number?: string | undefined;
6772
+ address_country?: string | undefined;
6773
+ address_region?: string | undefined;
6774
+ postal_code?: string | undefined;
6775
+ extended_address?: string | undefined;
6776
+ street_address?: string | undefined;
6777
+ address_locality?: string | undefined;
6778
+ };
6779
+ description?: string | undefined;
6780
+ fulfillable_on?: string | undefined;
6781
+ }[] | undefined;
6782
+ events?: {
6783
+ id: string;
6784
+ type: string;
6785
+ line_items: {
6786
+ id: string;
6787
+ quantity: number;
6788
+ }[];
6789
+ occurred_at: string;
6790
+ description?: string | undefined;
6791
+ carrier?: string | undefined;
6792
+ tracking_number?: string | undefined;
6793
+ tracking_url?: string | undefined;
6794
+ }[] | undefined;
6795
+ }>;
6796
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6797
+ id: z.ZodString;
6798
+ type: z.ZodString;
6799
+ occurred_at: z.ZodString;
6800
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
6801
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
6802
+ id: z.ZodString;
6803
+ quantity: z.ZodNumber;
6804
+ }, "strip", z.ZodTypeAny, {
6805
+ id: string;
6806
+ quantity: number;
6807
+ }, {
6808
+ id: string;
6809
+ quantity: number;
6810
+ }>, "many">>;
6811
+ amount: z.ZodOptional<z.ZodNumber>;
6812
+ description: z.ZodOptional<z.ZodString>;
6813
+ }, "strip", z.ZodTypeAny, {
6814
+ id: string;
6815
+ type: string;
6816
+ status: "completed" | "pending" | "failed";
6817
+ occurred_at: string;
6818
+ amount?: number | undefined;
6819
+ line_items?: {
6820
+ id: string;
6821
+ quantity: number;
6822
+ }[] | undefined;
6823
+ description?: string | undefined;
6824
+ }, {
6825
+ id: string;
6826
+ type: string;
6827
+ status: "completed" | "pending" | "failed";
6828
+ occurred_at: string;
6829
+ amount?: number | undefined;
6830
+ line_items?: {
6831
+ id: string;
6832
+ quantity: number;
6833
+ }[] | undefined;
6834
+ description?: string | undefined;
6835
+ }>, "many">>;
6836
+ totals: z.ZodArray<z.ZodObject<{
6837
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
6838
+ display_text: z.ZodOptional<z.ZodString>;
6839
+ amount: z.ZodNumber;
6840
+ }, "strip", z.ZodTypeAny, {
6841
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6842
+ amount: number;
6843
+ display_text?: string | undefined;
6844
+ }, {
6845
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
6846
+ amount: number;
6847
+ display_text?: string | undefined;
6848
+ }>, "many">;
6849
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6850
+ ucp: z.ZodIntersection<z.ZodObject<{
6851
+ version: z.ZodString;
6852
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6853
+ version: z.ZodString;
6854
+ spec: z.ZodOptional<z.ZodString>;
6855
+ schema: z.ZodOptional<z.ZodString>;
6856
+ id: z.ZodOptional<z.ZodString>;
6857
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6858
+ }, "strip", z.ZodTypeAny, {
6859
+ version: string;
6860
+ spec?: string | undefined;
6861
+ schema?: string | undefined;
6862
+ id?: string | undefined;
6863
+ config?: Record<string, unknown> | undefined;
6864
+ }, {
6865
+ version: string;
6866
+ spec?: string | undefined;
6867
+ schema?: string | undefined;
6868
+ id?: string | undefined;
6869
+ config?: Record<string, unknown> | undefined;
6870
+ }>, z.ZodObject<{
6871
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
6872
+ endpoint: z.ZodOptional<z.ZodString>;
6873
+ }, "strip", z.ZodTypeAny, {
6874
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6875
+ endpoint?: string | undefined;
6876
+ }, {
6877
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6878
+ endpoint?: string | undefined;
6879
+ }>>, "many">>>;
6880
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6881
+ version: z.ZodString;
6882
+ spec: z.ZodOptional<z.ZodString>;
6883
+ schema: z.ZodOptional<z.ZodString>;
6884
+ id: z.ZodOptional<z.ZodString>;
6885
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6886
+ }, "strip", z.ZodTypeAny, {
6887
+ version: string;
6888
+ spec?: string | undefined;
6889
+ schema?: string | undefined;
6890
+ id?: string | undefined;
6891
+ config?: Record<string, unknown> | undefined;
6892
+ }, {
6893
+ version: string;
6894
+ spec?: string | undefined;
6895
+ schema?: string | undefined;
6896
+ id?: string | undefined;
6897
+ config?: Record<string, unknown> | undefined;
6898
+ }>, z.ZodObject<{
6899
+ extends: z.ZodOptional<z.ZodString>;
6900
+ }, "strip", z.ZodTypeAny, {
6901
+ extends?: string | undefined;
6902
+ }, {
6903
+ extends?: string | undefined;
6904
+ }>>, "many">>>;
6905
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6906
+ version: z.ZodString;
6907
+ spec: z.ZodOptional<z.ZodString>;
6908
+ schema: z.ZodOptional<z.ZodString>;
6909
+ id: z.ZodOptional<z.ZodString>;
6910
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6911
+ }, "strip", z.ZodTypeAny, {
6912
+ version: string;
6913
+ spec?: string | undefined;
6914
+ schema?: string | undefined;
6915
+ id?: string | undefined;
6916
+ config?: Record<string, unknown> | undefined;
6917
+ }, {
6918
+ version: string;
6919
+ spec?: string | undefined;
6920
+ schema?: string | undefined;
6921
+ id?: string | undefined;
6922
+ config?: Record<string, unknown> | undefined;
6923
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
6924
+ }, "strip", z.ZodTypeAny, {
6925
+ version: string;
6926
+ services?: Record<string, ({
6927
+ version: string;
6928
+ spec?: string | undefined;
6929
+ schema?: string | undefined;
6930
+ id?: string | undefined;
6931
+ config?: Record<string, unknown> | undefined;
6932
+ } & {
6933
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6934
+ endpoint?: string | undefined;
6935
+ })[]> | undefined;
6936
+ capabilities?: Record<string, ({
6937
+ version: string;
6938
+ spec?: string | undefined;
6939
+ schema?: string | undefined;
6940
+ id?: string | undefined;
6941
+ config?: Record<string, unknown> | undefined;
6942
+ } & {
6943
+ extends?: string | undefined;
6944
+ })[]> | undefined;
6945
+ payment_handlers?: Record<string, ({
6946
+ version: string;
6947
+ spec?: string | undefined;
6948
+ schema?: string | undefined;
6949
+ id?: string | undefined;
6950
+ config?: Record<string, unknown> | undefined;
6951
+ } & Record<string, unknown>)[]> | undefined;
6952
+ }, {
6953
+ version: string;
6954
+ services?: Record<string, ({
6955
+ version: string;
6956
+ spec?: string | undefined;
6957
+ schema?: string | undefined;
6958
+ id?: string | undefined;
6959
+ config?: Record<string, unknown> | undefined;
6960
+ } & {
6961
+ transport: "rest" | "mcp" | "a2a" | "embedded";
6962
+ endpoint?: string | undefined;
6963
+ })[]> | undefined;
6964
+ capabilities?: Record<string, ({
6965
+ version: string;
6966
+ spec?: string | undefined;
6967
+ schema?: string | undefined;
6968
+ id?: string | undefined;
6969
+ config?: Record<string, unknown> | undefined;
6970
+ } & {
6971
+ extends?: string | undefined;
6972
+ })[]> | undefined;
6973
+ payment_handlers?: Record<string, ({
6974
+ version: string;
6975
+ spec?: string | undefined;
6976
+ schema?: string | undefined;
6977
+ id?: string | undefined;
6978
+ config?: Record<string, unknown> | undefined;
6979
+ } & Record<string, unknown>)[]> | undefined;
6980
+ }>, z.ZodObject<{
6981
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
6982
+ version: z.ZodString;
6983
+ spec: z.ZodOptional<z.ZodString>;
6984
+ schema: z.ZodOptional<z.ZodString>;
6985
+ id: z.ZodOptional<z.ZodString>;
6986
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6987
+ }, "strip", z.ZodTypeAny, {
6988
+ version: string;
6989
+ spec?: string | undefined;
6990
+ schema?: string | undefined;
6991
+ id?: string | undefined;
6992
+ config?: Record<string, unknown> | undefined;
6993
+ }, {
6994
+ version: string;
6995
+ spec?: string | undefined;
6996
+ schema?: string | undefined;
6997
+ id?: string | undefined;
6998
+ config?: Record<string, unknown> | undefined;
6999
+ }>, z.ZodObject<{
7000
+ extends: z.ZodOptional<z.ZodString>;
7001
+ }, "strip", z.ZodTypeAny, {
7002
+ extends?: string | undefined;
7003
+ }, {
7004
+ extends?: string | undefined;
7005
+ }>>, "many">>>;
7006
+ }, "strip", z.ZodTypeAny, {
7007
+ capabilities?: Record<string, ({
7008
+ version: string;
7009
+ spec?: string | undefined;
7010
+ schema?: string | undefined;
7011
+ id?: string | undefined;
7012
+ config?: Record<string, unknown> | undefined;
7013
+ } & {
7014
+ extends?: string | undefined;
7015
+ })[]> | undefined;
7016
+ }, {
7017
+ capabilities?: Record<string, ({
7018
+ version: string;
7019
+ spec?: string | undefined;
7020
+ schema?: string | undefined;
7021
+ id?: string | undefined;
7022
+ config?: Record<string, unknown> | undefined;
7023
+ } & {
7024
+ extends?: string | undefined;
7025
+ })[]> | undefined;
7026
+ }>>;
7027
+ id: z.ZodString;
7028
+ checkout_id: z.ZodString;
7029
+ permalink_url: z.ZodString;
7030
+ line_items: z.ZodArray<z.ZodObject<{
7031
+ id: z.ZodString;
7032
+ item: z.ZodObject<{
7033
+ id: z.ZodString;
7034
+ title: z.ZodString;
7035
+ price: z.ZodNumber;
7036
+ image_url: z.ZodOptional<z.ZodString>;
7037
+ }, "strip", z.ZodTypeAny, {
7038
+ id: string;
7039
+ title: string;
7040
+ price: number;
7041
+ image_url?: string | undefined;
7042
+ }, {
7043
+ id: string;
7044
+ title: string;
7045
+ price: number;
7046
+ image_url?: string | undefined;
7047
+ }>;
7048
+ quantity: z.ZodObject<{
7049
+ total: z.ZodNumber;
7050
+ fulfilled: z.ZodNumber;
7051
+ }, "strip", z.ZodTypeAny, {
7052
+ total: number;
7053
+ fulfilled: number;
7054
+ }, {
7055
+ total: number;
7056
+ fulfilled: number;
7057
+ }>;
7058
+ totals: z.ZodArray<z.ZodObject<{
7059
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
7060
+ display_text: z.ZodOptional<z.ZodString>;
7061
+ amount: z.ZodNumber;
7062
+ }, "strip", z.ZodTypeAny, {
7063
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7064
+ amount: number;
7065
+ display_text?: string | undefined;
7066
+ }, {
7067
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7068
+ amount: number;
7069
+ display_text?: string | undefined;
7070
+ }>, "many">;
7071
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
7072
+ parent_id: z.ZodOptional<z.ZodString>;
7073
+ }, "strip", z.ZodTypeAny, {
7074
+ id: string;
7075
+ status: "fulfilled" | "processing" | "partial";
7076
+ item: {
7077
+ id: string;
7078
+ title: string;
7079
+ price: number;
7080
+ image_url?: string | undefined;
7081
+ };
7082
+ quantity: {
7083
+ total: number;
7084
+ fulfilled: number;
7085
+ };
7086
+ totals: {
7087
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7088
+ amount: number;
7089
+ display_text?: string | undefined;
7090
+ }[];
7091
+ parent_id?: string | undefined;
7092
+ }, {
7093
+ id: string;
7094
+ status: "fulfilled" | "processing" | "partial";
7095
+ item: {
7096
+ id: string;
7097
+ title: string;
7098
+ price: number;
7099
+ image_url?: string | undefined;
7100
+ };
7101
+ quantity: {
7102
+ total: number;
7103
+ fulfilled: number;
7104
+ };
7105
+ totals: {
7106
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7107
+ amount: number;
7108
+ display_text?: string | undefined;
7109
+ }[];
7110
+ parent_id?: string | undefined;
7111
+ }>, "many">;
7112
+ fulfillment: z.ZodObject<{
7113
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
7114
+ id: z.ZodString;
7115
+ line_items: z.ZodArray<z.ZodObject<{
7116
+ id: z.ZodString;
7117
+ quantity: z.ZodNumber;
7118
+ }, "strip", z.ZodTypeAny, {
7119
+ id: string;
7120
+ quantity: number;
7121
+ }, {
7122
+ id: string;
7123
+ quantity: number;
7124
+ }>, "many">;
7125
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
7126
+ destination: z.ZodObject<{
7127
+ extended_address: z.ZodOptional<z.ZodString>;
7128
+ street_address: z.ZodOptional<z.ZodString>;
7129
+ address_locality: z.ZodOptional<z.ZodString>;
7130
+ address_region: z.ZodOptional<z.ZodString>;
7131
+ address_country: z.ZodOptional<z.ZodString>;
7132
+ postal_code: z.ZodOptional<z.ZodString>;
7133
+ first_name: z.ZodOptional<z.ZodString>;
7134
+ last_name: z.ZodOptional<z.ZodString>;
7135
+ phone_number: z.ZodOptional<z.ZodString>;
7136
+ }, "strip", z.ZodTypeAny, {
7137
+ first_name?: string | undefined;
7138
+ last_name?: string | undefined;
7139
+ phone_number?: string | undefined;
7140
+ address_country?: string | undefined;
7141
+ address_region?: string | undefined;
7142
+ postal_code?: string | undefined;
7143
+ extended_address?: string | undefined;
7144
+ street_address?: string | undefined;
7145
+ address_locality?: string | undefined;
7146
+ }, {
7147
+ first_name?: string | undefined;
7148
+ last_name?: string | undefined;
7149
+ phone_number?: string | undefined;
7150
+ address_country?: string | undefined;
7151
+ address_region?: string | undefined;
7152
+ postal_code?: string | undefined;
7153
+ extended_address?: string | undefined;
7154
+ street_address?: string | undefined;
7155
+ address_locality?: string | undefined;
7156
+ }>;
7157
+ description: z.ZodOptional<z.ZodString>;
7158
+ fulfillable_on: z.ZodOptional<z.ZodString>;
7159
+ }, "strip", z.ZodTypeAny, {
7160
+ id: string;
7161
+ line_items: {
7162
+ id: string;
7163
+ quantity: number;
7164
+ }[];
7165
+ method_type: "shipping" | "pickup" | "digital";
7166
+ destination: {
7167
+ first_name?: string | undefined;
7168
+ last_name?: string | undefined;
7169
+ phone_number?: string | undefined;
7170
+ address_country?: string | undefined;
7171
+ address_region?: string | undefined;
7172
+ postal_code?: string | undefined;
7173
+ extended_address?: string | undefined;
7174
+ street_address?: string | undefined;
7175
+ address_locality?: string | undefined;
7176
+ };
7177
+ description?: string | undefined;
7178
+ fulfillable_on?: string | undefined;
7179
+ }, {
7180
+ id: string;
7181
+ line_items: {
7182
+ id: string;
7183
+ quantity: number;
7184
+ }[];
7185
+ method_type: "shipping" | "pickup" | "digital";
7186
+ destination: {
7187
+ first_name?: string | undefined;
7188
+ last_name?: string | undefined;
7189
+ phone_number?: string | undefined;
7190
+ address_country?: string | undefined;
7191
+ address_region?: string | undefined;
7192
+ postal_code?: string | undefined;
7193
+ extended_address?: string | undefined;
7194
+ street_address?: string | undefined;
7195
+ address_locality?: string | undefined;
7196
+ };
7197
+ description?: string | undefined;
7198
+ fulfillable_on?: string | undefined;
7199
+ }>, "many">>;
7200
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
7201
+ id: z.ZodString;
7202
+ occurred_at: z.ZodString;
7203
+ type: z.ZodString;
7204
+ line_items: z.ZodArray<z.ZodObject<{
7205
+ id: z.ZodString;
7206
+ quantity: z.ZodNumber;
7207
+ }, "strip", z.ZodTypeAny, {
7208
+ id: string;
7209
+ quantity: number;
7210
+ }, {
7211
+ id: string;
7212
+ quantity: number;
7213
+ }>, "many">;
7214
+ tracking_number: z.ZodOptional<z.ZodString>;
7215
+ tracking_url: z.ZodOptional<z.ZodString>;
7216
+ carrier: z.ZodOptional<z.ZodString>;
7217
+ description: z.ZodOptional<z.ZodString>;
7218
+ }, "strip", z.ZodTypeAny, {
7219
+ id: string;
7220
+ type: string;
7221
+ line_items: {
7222
+ id: string;
7223
+ quantity: number;
7224
+ }[];
7225
+ occurred_at: string;
7226
+ description?: string | undefined;
7227
+ carrier?: string | undefined;
7228
+ tracking_number?: string | undefined;
7229
+ tracking_url?: string | undefined;
7230
+ }, {
7231
+ id: string;
7232
+ type: string;
7233
+ line_items: {
7234
+ id: string;
7235
+ quantity: number;
7236
+ }[];
7237
+ occurred_at: string;
7238
+ description?: string | undefined;
7239
+ carrier?: string | undefined;
7240
+ tracking_number?: string | undefined;
7241
+ tracking_url?: string | undefined;
7242
+ }>, "many">>;
7243
+ }, "strip", z.ZodTypeAny, {
7244
+ expectations?: {
7245
+ id: string;
7246
+ line_items: {
7247
+ id: string;
7248
+ quantity: number;
7249
+ }[];
7250
+ method_type: "shipping" | "pickup" | "digital";
7251
+ destination: {
7252
+ first_name?: string | undefined;
7253
+ last_name?: string | undefined;
7254
+ phone_number?: string | undefined;
7255
+ address_country?: string | undefined;
7256
+ address_region?: string | undefined;
7257
+ postal_code?: string | undefined;
7258
+ extended_address?: string | undefined;
7259
+ street_address?: string | undefined;
7260
+ address_locality?: string | undefined;
7261
+ };
7262
+ description?: string | undefined;
7263
+ fulfillable_on?: string | undefined;
7264
+ }[] | undefined;
7265
+ events?: {
7266
+ id: string;
7267
+ type: string;
7268
+ line_items: {
7269
+ id: string;
7270
+ quantity: number;
7271
+ }[];
7272
+ occurred_at: string;
7273
+ description?: string | undefined;
7274
+ carrier?: string | undefined;
7275
+ tracking_number?: string | undefined;
7276
+ tracking_url?: string | undefined;
7277
+ }[] | undefined;
7278
+ }, {
7279
+ expectations?: {
7280
+ id: string;
7281
+ line_items: {
7282
+ id: string;
7283
+ quantity: number;
7284
+ }[];
7285
+ method_type: "shipping" | "pickup" | "digital";
7286
+ destination: {
7287
+ first_name?: string | undefined;
7288
+ last_name?: string | undefined;
7289
+ phone_number?: string | undefined;
7290
+ address_country?: string | undefined;
7291
+ address_region?: string | undefined;
7292
+ postal_code?: string | undefined;
7293
+ extended_address?: string | undefined;
7294
+ street_address?: string | undefined;
7295
+ address_locality?: string | undefined;
7296
+ };
7297
+ description?: string | undefined;
7298
+ fulfillable_on?: string | undefined;
7299
+ }[] | undefined;
7300
+ events?: {
7301
+ id: string;
7302
+ type: string;
7303
+ line_items: {
7304
+ id: string;
7305
+ quantity: number;
7306
+ }[];
7307
+ occurred_at: string;
7308
+ description?: string | undefined;
7309
+ carrier?: string | undefined;
7310
+ tracking_number?: string | undefined;
7311
+ tracking_url?: string | undefined;
7312
+ }[] | undefined;
7313
+ }>;
7314
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7315
+ id: z.ZodString;
7316
+ type: z.ZodString;
7317
+ occurred_at: z.ZodString;
7318
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
7319
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
7320
+ id: z.ZodString;
7321
+ quantity: z.ZodNumber;
7322
+ }, "strip", z.ZodTypeAny, {
7323
+ id: string;
7324
+ quantity: number;
7325
+ }, {
7326
+ id: string;
7327
+ quantity: number;
7328
+ }>, "many">>;
7329
+ amount: z.ZodOptional<z.ZodNumber>;
7330
+ description: z.ZodOptional<z.ZodString>;
7331
+ }, "strip", z.ZodTypeAny, {
7332
+ id: string;
7333
+ type: string;
7334
+ status: "completed" | "pending" | "failed";
7335
+ occurred_at: string;
7336
+ amount?: number | undefined;
7337
+ line_items?: {
7338
+ id: string;
7339
+ quantity: number;
7340
+ }[] | undefined;
7341
+ description?: string | undefined;
7342
+ }, {
7343
+ id: string;
7344
+ type: string;
7345
+ status: "completed" | "pending" | "failed";
7346
+ occurred_at: string;
7347
+ amount?: number | undefined;
7348
+ line_items?: {
7349
+ id: string;
7350
+ quantity: number;
7351
+ }[] | undefined;
7352
+ description?: string | undefined;
7353
+ }>, "many">>;
7354
+ totals: z.ZodArray<z.ZodObject<{
7355
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
7356
+ display_text: z.ZodOptional<z.ZodString>;
7357
+ amount: z.ZodNumber;
7358
+ }, "strip", z.ZodTypeAny, {
7359
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7360
+ amount: number;
7361
+ display_text?: string | undefined;
7362
+ }, {
7363
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7364
+ amount: number;
7365
+ display_text?: string | undefined;
7366
+ }>, "many">;
7367
+ }, z.ZodTypeAny, "passthrough">>;
7368
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7369
+ event_id: z.ZodString;
7370
+ created_time: z.ZodString;
7371
+ order: z.ZodObject<{
7372
+ ucp: z.ZodIntersection<z.ZodObject<{
7373
+ version: z.ZodString;
7374
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7375
+ version: z.ZodString;
7376
+ spec: z.ZodOptional<z.ZodString>;
7377
+ schema: z.ZodOptional<z.ZodString>;
7378
+ id: z.ZodOptional<z.ZodString>;
7379
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7380
+ }, "strip", z.ZodTypeAny, {
7381
+ version: string;
7382
+ spec?: string | undefined;
7383
+ schema?: string | undefined;
7384
+ id?: string | undefined;
7385
+ config?: Record<string, unknown> | undefined;
7386
+ }, {
7387
+ version: string;
7388
+ spec?: string | undefined;
7389
+ schema?: string | undefined;
7390
+ id?: string | undefined;
7391
+ config?: Record<string, unknown> | undefined;
7392
+ }>, z.ZodObject<{
7393
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
7394
+ endpoint: z.ZodOptional<z.ZodString>;
7395
+ }, "strip", z.ZodTypeAny, {
7396
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7397
+ endpoint?: string | undefined;
7398
+ }, {
7399
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7400
+ endpoint?: string | undefined;
7401
+ }>>, "many">>>;
7402
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7403
+ version: z.ZodString;
7404
+ spec: z.ZodOptional<z.ZodString>;
7405
+ schema: z.ZodOptional<z.ZodString>;
7406
+ id: z.ZodOptional<z.ZodString>;
7407
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7408
+ }, "strip", z.ZodTypeAny, {
7409
+ version: string;
7410
+ spec?: string | undefined;
7411
+ schema?: string | undefined;
7412
+ id?: string | undefined;
7413
+ config?: Record<string, unknown> | undefined;
7414
+ }, {
7415
+ version: string;
7416
+ spec?: string | undefined;
7417
+ schema?: string | undefined;
7418
+ id?: string | undefined;
7419
+ config?: Record<string, unknown> | undefined;
7420
+ }>, z.ZodObject<{
7421
+ extends: z.ZodOptional<z.ZodString>;
7422
+ }, "strip", z.ZodTypeAny, {
7423
+ extends?: string | undefined;
7424
+ }, {
7425
+ extends?: string | undefined;
7426
+ }>>, "many">>>;
7427
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7428
+ version: z.ZodString;
7429
+ spec: z.ZodOptional<z.ZodString>;
7430
+ schema: z.ZodOptional<z.ZodString>;
7431
+ id: z.ZodOptional<z.ZodString>;
7432
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7433
+ }, "strip", z.ZodTypeAny, {
7434
+ version: string;
7435
+ spec?: string | undefined;
7436
+ schema?: string | undefined;
7437
+ id?: string | undefined;
7438
+ config?: Record<string, unknown> | undefined;
7439
+ }, {
7440
+ version: string;
7441
+ spec?: string | undefined;
7442
+ schema?: string | undefined;
7443
+ id?: string | undefined;
7444
+ config?: Record<string, unknown> | undefined;
7445
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
7446
+ }, "strip", z.ZodTypeAny, {
7447
+ version: string;
7448
+ services?: Record<string, ({
7449
+ version: string;
7450
+ spec?: string | undefined;
7451
+ schema?: string | undefined;
7452
+ id?: string | undefined;
7453
+ config?: Record<string, unknown> | undefined;
7454
+ } & {
7455
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7456
+ endpoint?: string | undefined;
7457
+ })[]> | undefined;
7458
+ capabilities?: Record<string, ({
7459
+ version: string;
7460
+ spec?: string | undefined;
7461
+ schema?: string | undefined;
7462
+ id?: string | undefined;
7463
+ config?: Record<string, unknown> | undefined;
7464
+ } & {
7465
+ extends?: string | undefined;
7466
+ })[]> | undefined;
7467
+ payment_handlers?: Record<string, ({
7468
+ version: string;
7469
+ spec?: string | undefined;
7470
+ schema?: string | undefined;
7471
+ id?: string | undefined;
7472
+ config?: Record<string, unknown> | undefined;
7473
+ } & Record<string, unknown>)[]> | undefined;
7474
+ }, {
7475
+ version: string;
7476
+ services?: Record<string, ({
7477
+ version: string;
7478
+ spec?: string | undefined;
7479
+ schema?: string | undefined;
7480
+ id?: string | undefined;
7481
+ config?: Record<string, unknown> | undefined;
7482
+ } & {
7483
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7484
+ endpoint?: string | undefined;
7485
+ })[]> | undefined;
7486
+ capabilities?: Record<string, ({
7487
+ version: string;
7488
+ spec?: string | undefined;
7489
+ schema?: string | undefined;
7490
+ id?: string | undefined;
7491
+ config?: Record<string, unknown> | undefined;
7492
+ } & {
7493
+ extends?: string | undefined;
7494
+ })[]> | undefined;
7495
+ payment_handlers?: Record<string, ({
7496
+ version: string;
7497
+ spec?: string | undefined;
7498
+ schema?: string | undefined;
7499
+ id?: string | undefined;
7500
+ config?: Record<string, unknown> | undefined;
7501
+ } & Record<string, unknown>)[]> | undefined;
7502
+ }>, z.ZodObject<{
7503
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7504
+ version: z.ZodString;
7505
+ spec: z.ZodOptional<z.ZodString>;
7506
+ schema: z.ZodOptional<z.ZodString>;
7507
+ id: z.ZodOptional<z.ZodString>;
7508
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7509
+ }, "strip", z.ZodTypeAny, {
7510
+ version: string;
7511
+ spec?: string | undefined;
7512
+ schema?: string | undefined;
7513
+ id?: string | undefined;
7514
+ config?: Record<string, unknown> | undefined;
7515
+ }, {
7516
+ version: string;
7517
+ spec?: string | undefined;
7518
+ schema?: string | undefined;
7519
+ id?: string | undefined;
7520
+ config?: Record<string, unknown> | undefined;
7521
+ }>, z.ZodObject<{
7522
+ extends: z.ZodOptional<z.ZodString>;
7523
+ }, "strip", z.ZodTypeAny, {
7524
+ extends?: string | undefined;
7525
+ }, {
7526
+ extends?: string | undefined;
7527
+ }>>, "many">>>;
7528
+ }, "strip", z.ZodTypeAny, {
7529
+ capabilities?: Record<string, ({
7530
+ version: string;
7531
+ spec?: string | undefined;
7532
+ schema?: string | undefined;
7533
+ id?: string | undefined;
7534
+ config?: Record<string, unknown> | undefined;
7535
+ } & {
7536
+ extends?: string | undefined;
7537
+ })[]> | undefined;
7538
+ }, {
7539
+ capabilities?: Record<string, ({
7540
+ version: string;
7541
+ spec?: string | undefined;
7542
+ schema?: string | undefined;
7543
+ id?: string | undefined;
7544
+ config?: Record<string, unknown> | undefined;
7545
+ } & {
7546
+ extends?: string | undefined;
7547
+ })[]> | undefined;
7548
+ }>>;
7549
+ id: z.ZodString;
7550
+ checkout_id: z.ZodString;
7551
+ permalink_url: z.ZodString;
7552
+ line_items: z.ZodArray<z.ZodObject<{
7553
+ id: z.ZodString;
7554
+ item: z.ZodObject<{
7555
+ id: z.ZodString;
7556
+ title: z.ZodString;
7557
+ price: z.ZodNumber;
7558
+ image_url: z.ZodOptional<z.ZodString>;
7559
+ }, "strip", z.ZodTypeAny, {
7560
+ id: string;
7561
+ title: string;
7562
+ price: number;
7563
+ image_url?: string | undefined;
7564
+ }, {
7565
+ id: string;
7566
+ title: string;
7567
+ price: number;
7568
+ image_url?: string | undefined;
7569
+ }>;
7570
+ quantity: z.ZodObject<{
7571
+ total: z.ZodNumber;
7572
+ fulfilled: z.ZodNumber;
7573
+ }, "strip", z.ZodTypeAny, {
7574
+ total: number;
7575
+ fulfilled: number;
7576
+ }, {
7577
+ total: number;
7578
+ fulfilled: number;
7579
+ }>;
7580
+ totals: z.ZodArray<z.ZodObject<{
7581
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
7582
+ display_text: z.ZodOptional<z.ZodString>;
7583
+ amount: z.ZodNumber;
7584
+ }, "strip", z.ZodTypeAny, {
7585
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7586
+ amount: number;
7587
+ display_text?: string | undefined;
7588
+ }, {
7589
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7590
+ amount: number;
7591
+ display_text?: string | undefined;
7592
+ }>, "many">;
7593
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
7594
+ parent_id: z.ZodOptional<z.ZodString>;
7595
+ }, "strip", z.ZodTypeAny, {
7596
+ id: string;
7597
+ status: "fulfilled" | "processing" | "partial";
7598
+ item: {
7599
+ id: string;
7600
+ title: string;
7601
+ price: number;
7602
+ image_url?: string | undefined;
7603
+ };
7604
+ quantity: {
7605
+ total: number;
7606
+ fulfilled: number;
7607
+ };
7608
+ totals: {
7609
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7610
+ amount: number;
7611
+ display_text?: string | undefined;
7612
+ }[];
7613
+ parent_id?: string | undefined;
7614
+ }, {
7615
+ id: string;
7616
+ status: "fulfilled" | "processing" | "partial";
7617
+ item: {
7618
+ id: string;
7619
+ title: string;
7620
+ price: number;
7621
+ image_url?: string | undefined;
7622
+ };
7623
+ quantity: {
7624
+ total: number;
7625
+ fulfilled: number;
7626
+ };
7627
+ totals: {
7628
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7629
+ amount: number;
7630
+ display_text?: string | undefined;
7631
+ }[];
7632
+ parent_id?: string | undefined;
7633
+ }>, "many">;
7634
+ fulfillment: z.ZodObject<{
7635
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
7636
+ id: z.ZodString;
7637
+ line_items: z.ZodArray<z.ZodObject<{
7638
+ id: z.ZodString;
7639
+ quantity: z.ZodNumber;
7640
+ }, "strip", z.ZodTypeAny, {
7641
+ id: string;
7642
+ quantity: number;
7643
+ }, {
7644
+ id: string;
7645
+ quantity: number;
7646
+ }>, "many">;
7647
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
7648
+ destination: z.ZodObject<{
7649
+ extended_address: z.ZodOptional<z.ZodString>;
7650
+ street_address: z.ZodOptional<z.ZodString>;
7651
+ address_locality: z.ZodOptional<z.ZodString>;
7652
+ address_region: z.ZodOptional<z.ZodString>;
7653
+ address_country: z.ZodOptional<z.ZodString>;
7654
+ postal_code: z.ZodOptional<z.ZodString>;
7655
+ first_name: z.ZodOptional<z.ZodString>;
7656
+ last_name: z.ZodOptional<z.ZodString>;
7657
+ phone_number: z.ZodOptional<z.ZodString>;
7658
+ }, "strip", z.ZodTypeAny, {
7659
+ first_name?: string | undefined;
7660
+ last_name?: string | undefined;
7661
+ phone_number?: string | undefined;
7662
+ address_country?: string | undefined;
7663
+ address_region?: string | undefined;
7664
+ postal_code?: string | undefined;
7665
+ extended_address?: string | undefined;
7666
+ street_address?: string | undefined;
7667
+ address_locality?: string | undefined;
7668
+ }, {
7669
+ first_name?: string | undefined;
7670
+ last_name?: string | undefined;
7671
+ phone_number?: string | undefined;
7672
+ address_country?: string | undefined;
7673
+ address_region?: string | undefined;
7674
+ postal_code?: string | undefined;
7675
+ extended_address?: string | undefined;
7676
+ street_address?: string | undefined;
7677
+ address_locality?: string | undefined;
7678
+ }>;
7679
+ description: z.ZodOptional<z.ZodString>;
7680
+ fulfillable_on: z.ZodOptional<z.ZodString>;
7681
+ }, "strip", z.ZodTypeAny, {
7682
+ id: string;
7683
+ line_items: {
7684
+ id: string;
7685
+ quantity: number;
7686
+ }[];
7687
+ method_type: "shipping" | "pickup" | "digital";
7688
+ destination: {
7689
+ first_name?: string | undefined;
7690
+ last_name?: string | undefined;
7691
+ phone_number?: string | undefined;
7692
+ address_country?: string | undefined;
7693
+ address_region?: string | undefined;
7694
+ postal_code?: string | undefined;
7695
+ extended_address?: string | undefined;
7696
+ street_address?: string | undefined;
7697
+ address_locality?: string | undefined;
7698
+ };
7699
+ description?: string | undefined;
7700
+ fulfillable_on?: string | undefined;
7701
+ }, {
7702
+ id: string;
7703
+ line_items: {
7704
+ id: string;
7705
+ quantity: number;
7706
+ }[];
7707
+ method_type: "shipping" | "pickup" | "digital";
7708
+ destination: {
7709
+ first_name?: string | undefined;
7710
+ last_name?: string | undefined;
7711
+ phone_number?: string | undefined;
7712
+ address_country?: string | undefined;
7713
+ address_region?: string | undefined;
7714
+ postal_code?: string | undefined;
7715
+ extended_address?: string | undefined;
7716
+ street_address?: string | undefined;
7717
+ address_locality?: string | undefined;
7718
+ };
7719
+ description?: string | undefined;
7720
+ fulfillable_on?: string | undefined;
7721
+ }>, "many">>;
7722
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
7723
+ id: z.ZodString;
7724
+ occurred_at: z.ZodString;
7725
+ type: z.ZodString;
7726
+ line_items: z.ZodArray<z.ZodObject<{
7727
+ id: z.ZodString;
7728
+ quantity: z.ZodNumber;
7729
+ }, "strip", z.ZodTypeAny, {
7730
+ id: string;
7731
+ quantity: number;
7732
+ }, {
7733
+ id: string;
7734
+ quantity: number;
7735
+ }>, "many">;
7736
+ tracking_number: z.ZodOptional<z.ZodString>;
7737
+ tracking_url: z.ZodOptional<z.ZodString>;
7738
+ carrier: z.ZodOptional<z.ZodString>;
7739
+ description: z.ZodOptional<z.ZodString>;
7740
+ }, "strip", z.ZodTypeAny, {
7741
+ id: string;
7742
+ type: string;
7743
+ line_items: {
7744
+ id: string;
7745
+ quantity: number;
7746
+ }[];
7747
+ occurred_at: string;
7748
+ description?: string | undefined;
7749
+ carrier?: string | undefined;
7750
+ tracking_number?: string | undefined;
7751
+ tracking_url?: string | undefined;
7752
+ }, {
7753
+ id: string;
7754
+ type: string;
7755
+ line_items: {
7756
+ id: string;
7757
+ quantity: number;
7758
+ }[];
7759
+ occurred_at: string;
7760
+ description?: string | undefined;
7761
+ carrier?: string | undefined;
7762
+ tracking_number?: string | undefined;
7763
+ tracking_url?: string | undefined;
7764
+ }>, "many">>;
7765
+ }, "strip", z.ZodTypeAny, {
7766
+ expectations?: {
7767
+ id: string;
7768
+ line_items: {
7769
+ id: string;
7770
+ quantity: number;
7771
+ }[];
7772
+ method_type: "shipping" | "pickup" | "digital";
7773
+ destination: {
7774
+ first_name?: string | undefined;
7775
+ last_name?: string | undefined;
7776
+ phone_number?: string | undefined;
7777
+ address_country?: string | undefined;
7778
+ address_region?: string | undefined;
7779
+ postal_code?: string | undefined;
7780
+ extended_address?: string | undefined;
7781
+ street_address?: string | undefined;
7782
+ address_locality?: string | undefined;
7783
+ };
7784
+ description?: string | undefined;
7785
+ fulfillable_on?: string | undefined;
7786
+ }[] | undefined;
7787
+ events?: {
7788
+ id: string;
7789
+ type: string;
7790
+ line_items: {
7791
+ id: string;
7792
+ quantity: number;
7793
+ }[];
7794
+ occurred_at: string;
7795
+ description?: string | undefined;
7796
+ carrier?: string | undefined;
7797
+ tracking_number?: string | undefined;
7798
+ tracking_url?: string | undefined;
7799
+ }[] | undefined;
7800
+ }, {
7801
+ expectations?: {
7802
+ id: string;
7803
+ line_items: {
7804
+ id: string;
7805
+ quantity: number;
7806
+ }[];
7807
+ method_type: "shipping" | "pickup" | "digital";
7808
+ destination: {
7809
+ first_name?: string | undefined;
7810
+ last_name?: string | undefined;
7811
+ phone_number?: string | undefined;
7812
+ address_country?: string | undefined;
7813
+ address_region?: string | undefined;
7814
+ postal_code?: string | undefined;
7815
+ extended_address?: string | undefined;
7816
+ street_address?: string | undefined;
7817
+ address_locality?: string | undefined;
7818
+ };
7819
+ description?: string | undefined;
7820
+ fulfillable_on?: string | undefined;
7821
+ }[] | undefined;
7822
+ events?: {
7823
+ id: string;
7824
+ type: string;
7825
+ line_items: {
7826
+ id: string;
7827
+ quantity: number;
7828
+ }[];
7829
+ occurred_at: string;
7830
+ description?: string | undefined;
7831
+ carrier?: string | undefined;
7832
+ tracking_number?: string | undefined;
7833
+ tracking_url?: string | undefined;
7834
+ }[] | undefined;
7835
+ }>;
7836
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7837
+ id: z.ZodString;
7838
+ type: z.ZodString;
7839
+ occurred_at: z.ZodString;
7840
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
7841
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
7842
+ id: z.ZodString;
7843
+ quantity: z.ZodNumber;
7844
+ }, "strip", z.ZodTypeAny, {
7845
+ id: string;
7846
+ quantity: number;
7847
+ }, {
7848
+ id: string;
7849
+ quantity: number;
7850
+ }>, "many">>;
7851
+ amount: z.ZodOptional<z.ZodNumber>;
7852
+ description: z.ZodOptional<z.ZodString>;
7853
+ }, "strip", z.ZodTypeAny, {
7854
+ id: string;
7855
+ type: string;
7856
+ status: "completed" | "pending" | "failed";
7857
+ occurred_at: string;
7858
+ amount?: number | undefined;
7859
+ line_items?: {
7860
+ id: string;
7861
+ quantity: number;
7862
+ }[] | undefined;
7863
+ description?: string | undefined;
7864
+ }, {
7865
+ id: string;
7866
+ type: string;
7867
+ status: "completed" | "pending" | "failed";
7868
+ occurred_at: string;
7869
+ amount?: number | undefined;
7870
+ line_items?: {
7871
+ id: string;
7872
+ quantity: number;
7873
+ }[] | undefined;
7874
+ description?: string | undefined;
7875
+ }>, "many">>;
7876
+ totals: z.ZodArray<z.ZodObject<{
7877
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
7878
+ display_text: z.ZodOptional<z.ZodString>;
7879
+ amount: z.ZodNumber;
7880
+ }, "strip", z.ZodTypeAny, {
7881
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7882
+ amount: number;
7883
+ display_text?: string | undefined;
7884
+ }, {
7885
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
7886
+ amount: number;
7887
+ display_text?: string | undefined;
7888
+ }>, "many">;
7889
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7890
+ ucp: z.ZodIntersection<z.ZodObject<{
7891
+ version: z.ZodString;
7892
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7893
+ version: z.ZodString;
7894
+ spec: z.ZodOptional<z.ZodString>;
7895
+ schema: z.ZodOptional<z.ZodString>;
7896
+ id: z.ZodOptional<z.ZodString>;
7897
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7898
+ }, "strip", z.ZodTypeAny, {
7899
+ version: string;
7900
+ spec?: string | undefined;
7901
+ schema?: string | undefined;
7902
+ id?: string | undefined;
7903
+ config?: Record<string, unknown> | undefined;
7904
+ }, {
7905
+ version: string;
7906
+ spec?: string | undefined;
7907
+ schema?: string | undefined;
7908
+ id?: string | undefined;
7909
+ config?: Record<string, unknown> | undefined;
7910
+ }>, z.ZodObject<{
7911
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
7912
+ endpoint: z.ZodOptional<z.ZodString>;
7913
+ }, "strip", z.ZodTypeAny, {
7914
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7915
+ endpoint?: string | undefined;
7916
+ }, {
7917
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7918
+ endpoint?: string | undefined;
7919
+ }>>, "many">>>;
7920
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7921
+ version: z.ZodString;
7922
+ spec: z.ZodOptional<z.ZodString>;
7923
+ schema: z.ZodOptional<z.ZodString>;
7924
+ id: z.ZodOptional<z.ZodString>;
7925
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7926
+ }, "strip", z.ZodTypeAny, {
7927
+ version: string;
7928
+ spec?: string | undefined;
7929
+ schema?: string | undefined;
7930
+ id?: string | undefined;
7931
+ config?: Record<string, unknown> | undefined;
7932
+ }, {
7933
+ version: string;
7934
+ spec?: string | undefined;
7935
+ schema?: string | undefined;
7936
+ id?: string | undefined;
7937
+ config?: Record<string, unknown> | undefined;
7938
+ }>, z.ZodObject<{
7939
+ extends: z.ZodOptional<z.ZodString>;
7940
+ }, "strip", z.ZodTypeAny, {
7941
+ extends?: string | undefined;
7942
+ }, {
7943
+ extends?: string | undefined;
7944
+ }>>, "many">>>;
7945
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
7946
+ version: z.ZodString;
7947
+ spec: z.ZodOptional<z.ZodString>;
7948
+ schema: z.ZodOptional<z.ZodString>;
7949
+ id: z.ZodOptional<z.ZodString>;
7950
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7951
+ }, "strip", z.ZodTypeAny, {
7952
+ version: string;
7953
+ spec?: string | undefined;
7954
+ schema?: string | undefined;
7955
+ id?: string | undefined;
7956
+ config?: Record<string, unknown> | undefined;
7957
+ }, {
7958
+ version: string;
7959
+ spec?: string | undefined;
7960
+ schema?: string | undefined;
7961
+ id?: string | undefined;
7962
+ config?: Record<string, unknown> | undefined;
7963
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
7964
+ }, "strip", z.ZodTypeAny, {
7965
+ version: string;
7966
+ services?: Record<string, ({
7967
+ version: string;
7968
+ spec?: string | undefined;
7969
+ schema?: string | undefined;
7970
+ id?: string | undefined;
7971
+ config?: Record<string, unknown> | undefined;
7972
+ } & {
7973
+ transport: "rest" | "mcp" | "a2a" | "embedded";
7974
+ endpoint?: string | undefined;
7975
+ })[]> | undefined;
7976
+ capabilities?: Record<string, ({
7977
+ version: string;
7978
+ spec?: string | undefined;
7979
+ schema?: string | undefined;
7980
+ id?: string | undefined;
7981
+ config?: Record<string, unknown> | undefined;
7982
+ } & {
7983
+ extends?: string | undefined;
7984
+ })[]> | undefined;
7985
+ payment_handlers?: Record<string, ({
7986
+ version: string;
7987
+ spec?: string | undefined;
7988
+ schema?: string | undefined;
7989
+ id?: string | undefined;
7990
+ config?: Record<string, unknown> | undefined;
7991
+ } & Record<string, unknown>)[]> | undefined;
7992
+ }, {
7993
+ version: string;
7994
+ services?: Record<string, ({
7995
+ version: string;
7996
+ spec?: string | undefined;
7997
+ schema?: string | undefined;
7998
+ id?: string | undefined;
7999
+ config?: Record<string, unknown> | undefined;
8000
+ } & {
8001
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8002
+ endpoint?: string | undefined;
8003
+ })[]> | undefined;
8004
+ capabilities?: Record<string, ({
8005
+ version: string;
8006
+ spec?: string | undefined;
8007
+ schema?: string | undefined;
8008
+ id?: string | undefined;
8009
+ config?: Record<string, unknown> | undefined;
8010
+ } & {
8011
+ extends?: string | undefined;
8012
+ })[]> | undefined;
8013
+ payment_handlers?: Record<string, ({
8014
+ version: string;
8015
+ spec?: string | undefined;
8016
+ schema?: string | undefined;
8017
+ id?: string | undefined;
8018
+ config?: Record<string, unknown> | undefined;
8019
+ } & Record<string, unknown>)[]> | undefined;
8020
+ }>, z.ZodObject<{
8021
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8022
+ version: z.ZodString;
8023
+ spec: z.ZodOptional<z.ZodString>;
8024
+ schema: z.ZodOptional<z.ZodString>;
8025
+ id: z.ZodOptional<z.ZodString>;
8026
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8027
+ }, "strip", z.ZodTypeAny, {
8028
+ version: string;
8029
+ spec?: string | undefined;
8030
+ schema?: string | undefined;
8031
+ id?: string | undefined;
8032
+ config?: Record<string, unknown> | undefined;
8033
+ }, {
8034
+ version: string;
8035
+ spec?: string | undefined;
8036
+ schema?: string | undefined;
8037
+ id?: string | undefined;
8038
+ config?: Record<string, unknown> | undefined;
8039
+ }>, z.ZodObject<{
8040
+ extends: z.ZodOptional<z.ZodString>;
8041
+ }, "strip", z.ZodTypeAny, {
8042
+ extends?: string | undefined;
8043
+ }, {
8044
+ extends?: string | undefined;
8045
+ }>>, "many">>>;
8046
+ }, "strip", z.ZodTypeAny, {
8047
+ capabilities?: Record<string, ({
8048
+ version: string;
8049
+ spec?: string | undefined;
8050
+ schema?: string | undefined;
8051
+ id?: string | undefined;
8052
+ config?: Record<string, unknown> | undefined;
8053
+ } & {
8054
+ extends?: string | undefined;
8055
+ })[]> | undefined;
8056
+ }, {
8057
+ capabilities?: Record<string, ({
8058
+ version: string;
8059
+ spec?: string | undefined;
8060
+ schema?: string | undefined;
8061
+ id?: string | undefined;
8062
+ config?: Record<string, unknown> | undefined;
8063
+ } & {
8064
+ extends?: string | undefined;
8065
+ })[]> | undefined;
8066
+ }>>;
8067
+ id: z.ZodString;
8068
+ checkout_id: z.ZodString;
8069
+ permalink_url: z.ZodString;
8070
+ line_items: z.ZodArray<z.ZodObject<{
8071
+ id: z.ZodString;
8072
+ item: z.ZodObject<{
8073
+ id: z.ZodString;
8074
+ title: z.ZodString;
8075
+ price: z.ZodNumber;
8076
+ image_url: z.ZodOptional<z.ZodString>;
8077
+ }, "strip", z.ZodTypeAny, {
8078
+ id: string;
8079
+ title: string;
8080
+ price: number;
8081
+ image_url?: string | undefined;
8082
+ }, {
8083
+ id: string;
8084
+ title: string;
8085
+ price: number;
8086
+ image_url?: string | undefined;
8087
+ }>;
8088
+ quantity: z.ZodObject<{
8089
+ total: z.ZodNumber;
8090
+ fulfilled: z.ZodNumber;
8091
+ }, "strip", z.ZodTypeAny, {
8092
+ total: number;
8093
+ fulfilled: number;
8094
+ }, {
8095
+ total: number;
8096
+ fulfilled: number;
8097
+ }>;
8098
+ totals: z.ZodArray<z.ZodObject<{
8099
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
8100
+ display_text: z.ZodOptional<z.ZodString>;
8101
+ amount: z.ZodNumber;
8102
+ }, "strip", z.ZodTypeAny, {
8103
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8104
+ amount: number;
8105
+ display_text?: string | undefined;
8106
+ }, {
8107
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8108
+ amount: number;
8109
+ display_text?: string | undefined;
8110
+ }>, "many">;
8111
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
8112
+ parent_id: z.ZodOptional<z.ZodString>;
8113
+ }, "strip", z.ZodTypeAny, {
8114
+ id: string;
8115
+ status: "fulfilled" | "processing" | "partial";
8116
+ item: {
8117
+ id: string;
8118
+ title: string;
8119
+ price: number;
8120
+ image_url?: string | undefined;
8121
+ };
8122
+ quantity: {
8123
+ total: number;
8124
+ fulfilled: number;
8125
+ };
8126
+ totals: {
8127
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8128
+ amount: number;
8129
+ display_text?: string | undefined;
8130
+ }[];
8131
+ parent_id?: string | undefined;
8132
+ }, {
8133
+ id: string;
8134
+ status: "fulfilled" | "processing" | "partial";
8135
+ item: {
8136
+ id: string;
8137
+ title: string;
8138
+ price: number;
8139
+ image_url?: string | undefined;
8140
+ };
8141
+ quantity: {
8142
+ total: number;
8143
+ fulfilled: number;
8144
+ };
8145
+ totals: {
8146
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8147
+ amount: number;
8148
+ display_text?: string | undefined;
8149
+ }[];
8150
+ parent_id?: string | undefined;
8151
+ }>, "many">;
8152
+ fulfillment: z.ZodObject<{
8153
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8154
+ id: z.ZodString;
8155
+ line_items: z.ZodArray<z.ZodObject<{
8156
+ id: z.ZodString;
8157
+ quantity: z.ZodNumber;
8158
+ }, "strip", z.ZodTypeAny, {
8159
+ id: string;
8160
+ quantity: number;
8161
+ }, {
8162
+ id: string;
8163
+ quantity: number;
8164
+ }>, "many">;
8165
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
8166
+ destination: z.ZodObject<{
8167
+ extended_address: z.ZodOptional<z.ZodString>;
8168
+ street_address: z.ZodOptional<z.ZodString>;
8169
+ address_locality: z.ZodOptional<z.ZodString>;
8170
+ address_region: z.ZodOptional<z.ZodString>;
8171
+ address_country: z.ZodOptional<z.ZodString>;
8172
+ postal_code: z.ZodOptional<z.ZodString>;
8173
+ first_name: z.ZodOptional<z.ZodString>;
8174
+ last_name: z.ZodOptional<z.ZodString>;
8175
+ phone_number: z.ZodOptional<z.ZodString>;
8176
+ }, "strip", z.ZodTypeAny, {
8177
+ first_name?: string | undefined;
8178
+ last_name?: string | undefined;
8179
+ phone_number?: string | undefined;
8180
+ address_country?: string | undefined;
8181
+ address_region?: string | undefined;
8182
+ postal_code?: string | undefined;
8183
+ extended_address?: string | undefined;
8184
+ street_address?: string | undefined;
8185
+ address_locality?: string | undefined;
8186
+ }, {
8187
+ first_name?: string | undefined;
8188
+ last_name?: string | undefined;
8189
+ phone_number?: string | undefined;
8190
+ address_country?: string | undefined;
8191
+ address_region?: string | undefined;
8192
+ postal_code?: string | undefined;
8193
+ extended_address?: string | undefined;
8194
+ street_address?: string | undefined;
8195
+ address_locality?: string | undefined;
8196
+ }>;
8197
+ description: z.ZodOptional<z.ZodString>;
8198
+ fulfillable_on: z.ZodOptional<z.ZodString>;
8199
+ }, "strip", z.ZodTypeAny, {
8200
+ id: string;
8201
+ line_items: {
8202
+ id: string;
8203
+ quantity: number;
8204
+ }[];
8205
+ method_type: "shipping" | "pickup" | "digital";
8206
+ destination: {
8207
+ first_name?: string | undefined;
8208
+ last_name?: string | undefined;
8209
+ phone_number?: string | undefined;
8210
+ address_country?: string | undefined;
8211
+ address_region?: string | undefined;
8212
+ postal_code?: string | undefined;
8213
+ extended_address?: string | undefined;
8214
+ street_address?: string | undefined;
8215
+ address_locality?: string | undefined;
8216
+ };
8217
+ description?: string | undefined;
8218
+ fulfillable_on?: string | undefined;
8219
+ }, {
8220
+ id: string;
8221
+ line_items: {
8222
+ id: string;
8223
+ quantity: number;
8224
+ }[];
8225
+ method_type: "shipping" | "pickup" | "digital";
8226
+ destination: {
8227
+ first_name?: string | undefined;
8228
+ last_name?: string | undefined;
8229
+ phone_number?: string | undefined;
8230
+ address_country?: string | undefined;
8231
+ address_region?: string | undefined;
8232
+ postal_code?: string | undefined;
8233
+ extended_address?: string | undefined;
8234
+ street_address?: string | undefined;
8235
+ address_locality?: string | undefined;
8236
+ };
8237
+ description?: string | undefined;
8238
+ fulfillable_on?: string | undefined;
8239
+ }>, "many">>;
8240
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
8241
+ id: z.ZodString;
8242
+ occurred_at: z.ZodString;
8243
+ type: z.ZodString;
8244
+ line_items: z.ZodArray<z.ZodObject<{
8245
+ id: z.ZodString;
8246
+ quantity: z.ZodNumber;
8247
+ }, "strip", z.ZodTypeAny, {
8248
+ id: string;
8249
+ quantity: number;
8250
+ }, {
8251
+ id: string;
8252
+ quantity: number;
8253
+ }>, "many">;
8254
+ tracking_number: z.ZodOptional<z.ZodString>;
8255
+ tracking_url: z.ZodOptional<z.ZodString>;
8256
+ carrier: z.ZodOptional<z.ZodString>;
8257
+ description: z.ZodOptional<z.ZodString>;
8258
+ }, "strip", z.ZodTypeAny, {
8259
+ id: string;
8260
+ type: string;
8261
+ line_items: {
8262
+ id: string;
8263
+ quantity: number;
8264
+ }[];
8265
+ occurred_at: string;
8266
+ description?: string | undefined;
8267
+ carrier?: string | undefined;
8268
+ tracking_number?: string | undefined;
8269
+ tracking_url?: string | undefined;
8270
+ }, {
8271
+ id: string;
8272
+ type: string;
8273
+ line_items: {
8274
+ id: string;
8275
+ quantity: number;
8276
+ }[];
8277
+ occurred_at: string;
8278
+ description?: string | undefined;
8279
+ carrier?: string | undefined;
8280
+ tracking_number?: string | undefined;
8281
+ tracking_url?: string | undefined;
8282
+ }>, "many">>;
8283
+ }, "strip", z.ZodTypeAny, {
8284
+ expectations?: {
8285
+ id: string;
8286
+ line_items: {
8287
+ id: string;
8288
+ quantity: number;
8289
+ }[];
8290
+ method_type: "shipping" | "pickup" | "digital";
8291
+ destination: {
8292
+ first_name?: string | undefined;
8293
+ last_name?: string | undefined;
8294
+ phone_number?: string | undefined;
8295
+ address_country?: string | undefined;
8296
+ address_region?: string | undefined;
8297
+ postal_code?: string | undefined;
8298
+ extended_address?: string | undefined;
8299
+ street_address?: string | undefined;
8300
+ address_locality?: string | undefined;
8301
+ };
8302
+ description?: string | undefined;
8303
+ fulfillable_on?: string | undefined;
8304
+ }[] | undefined;
8305
+ events?: {
8306
+ id: string;
8307
+ type: string;
8308
+ line_items: {
8309
+ id: string;
8310
+ quantity: number;
8311
+ }[];
8312
+ occurred_at: string;
8313
+ description?: string | undefined;
8314
+ carrier?: string | undefined;
8315
+ tracking_number?: string | undefined;
8316
+ tracking_url?: string | undefined;
8317
+ }[] | undefined;
8318
+ }, {
8319
+ expectations?: {
8320
+ id: string;
8321
+ line_items: {
8322
+ id: string;
8323
+ quantity: number;
8324
+ }[];
8325
+ method_type: "shipping" | "pickup" | "digital";
8326
+ destination: {
8327
+ first_name?: string | undefined;
8328
+ last_name?: string | undefined;
8329
+ phone_number?: string | undefined;
8330
+ address_country?: string | undefined;
8331
+ address_region?: string | undefined;
8332
+ postal_code?: string | undefined;
8333
+ extended_address?: string | undefined;
8334
+ street_address?: string | undefined;
8335
+ address_locality?: string | undefined;
8336
+ };
8337
+ description?: string | undefined;
8338
+ fulfillable_on?: string | undefined;
8339
+ }[] | undefined;
8340
+ events?: {
8341
+ id: string;
8342
+ type: string;
8343
+ line_items: {
8344
+ id: string;
8345
+ quantity: number;
8346
+ }[];
8347
+ occurred_at: string;
8348
+ description?: string | undefined;
8349
+ carrier?: string | undefined;
8350
+ tracking_number?: string | undefined;
8351
+ tracking_url?: string | undefined;
8352
+ }[] | undefined;
8353
+ }>;
8354
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
8355
+ id: z.ZodString;
8356
+ type: z.ZodString;
8357
+ occurred_at: z.ZodString;
8358
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
8359
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
8360
+ id: z.ZodString;
8361
+ quantity: z.ZodNumber;
8362
+ }, "strip", z.ZodTypeAny, {
8363
+ id: string;
8364
+ quantity: number;
8365
+ }, {
8366
+ id: string;
8367
+ quantity: number;
8368
+ }>, "many">>;
8369
+ amount: z.ZodOptional<z.ZodNumber>;
8370
+ description: z.ZodOptional<z.ZodString>;
8371
+ }, "strip", z.ZodTypeAny, {
8372
+ id: string;
8373
+ type: string;
8374
+ status: "completed" | "pending" | "failed";
8375
+ occurred_at: string;
8376
+ amount?: number | undefined;
8377
+ line_items?: {
8378
+ id: string;
8379
+ quantity: number;
8380
+ }[] | undefined;
8381
+ description?: string | undefined;
8382
+ }, {
8383
+ id: string;
8384
+ type: string;
8385
+ status: "completed" | "pending" | "failed";
8386
+ occurred_at: string;
8387
+ amount?: number | undefined;
8388
+ line_items?: {
8389
+ id: string;
8390
+ quantity: number;
8391
+ }[] | undefined;
8392
+ description?: string | undefined;
8393
+ }>, "many">>;
8394
+ totals: z.ZodArray<z.ZodObject<{
8395
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
8396
+ display_text: z.ZodOptional<z.ZodString>;
8397
+ amount: z.ZodNumber;
8398
+ }, "strip", z.ZodTypeAny, {
8399
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8400
+ amount: number;
8401
+ display_text?: string | undefined;
8402
+ }, {
8403
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8404
+ amount: number;
8405
+ display_text?: string | undefined;
8406
+ }>, "many">;
8407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8408
+ ucp: z.ZodIntersection<z.ZodObject<{
8409
+ version: z.ZodString;
8410
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8411
+ version: z.ZodString;
8412
+ spec: z.ZodOptional<z.ZodString>;
8413
+ schema: z.ZodOptional<z.ZodString>;
8414
+ id: z.ZodOptional<z.ZodString>;
8415
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8416
+ }, "strip", z.ZodTypeAny, {
8417
+ version: string;
8418
+ spec?: string | undefined;
8419
+ schema?: string | undefined;
8420
+ id?: string | undefined;
8421
+ config?: Record<string, unknown> | undefined;
8422
+ }, {
8423
+ version: string;
8424
+ spec?: string | undefined;
8425
+ schema?: string | undefined;
8426
+ id?: string | undefined;
8427
+ config?: Record<string, unknown> | undefined;
8428
+ }>, z.ZodObject<{
8429
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
8430
+ endpoint: z.ZodOptional<z.ZodString>;
8431
+ }, "strip", z.ZodTypeAny, {
8432
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8433
+ endpoint?: string | undefined;
8434
+ }, {
8435
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8436
+ endpoint?: string | undefined;
8437
+ }>>, "many">>>;
8438
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8439
+ version: z.ZodString;
8440
+ spec: z.ZodOptional<z.ZodString>;
8441
+ schema: z.ZodOptional<z.ZodString>;
8442
+ id: z.ZodOptional<z.ZodString>;
8443
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8444
+ }, "strip", z.ZodTypeAny, {
8445
+ version: string;
8446
+ spec?: string | undefined;
8447
+ schema?: string | undefined;
8448
+ id?: string | undefined;
8449
+ config?: Record<string, unknown> | undefined;
8450
+ }, {
8451
+ version: string;
8452
+ spec?: string | undefined;
8453
+ schema?: string | undefined;
8454
+ id?: string | undefined;
8455
+ config?: Record<string, unknown> | undefined;
8456
+ }>, z.ZodObject<{
8457
+ extends: z.ZodOptional<z.ZodString>;
8458
+ }, "strip", z.ZodTypeAny, {
8459
+ extends?: string | undefined;
8460
+ }, {
8461
+ extends?: string | undefined;
8462
+ }>>, "many">>>;
8463
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8464
+ version: z.ZodString;
8465
+ spec: z.ZodOptional<z.ZodString>;
8466
+ schema: z.ZodOptional<z.ZodString>;
8467
+ id: z.ZodOptional<z.ZodString>;
8468
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8469
+ }, "strip", z.ZodTypeAny, {
8470
+ version: string;
8471
+ spec?: string | undefined;
8472
+ schema?: string | undefined;
8473
+ id?: string | undefined;
8474
+ config?: Record<string, unknown> | undefined;
8475
+ }, {
8476
+ version: string;
8477
+ spec?: string | undefined;
8478
+ schema?: string | undefined;
8479
+ id?: string | undefined;
8480
+ config?: Record<string, unknown> | undefined;
8481
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
8482
+ }, "strip", z.ZodTypeAny, {
8483
+ version: string;
8484
+ services?: Record<string, ({
8485
+ version: string;
8486
+ spec?: string | undefined;
8487
+ schema?: string | undefined;
8488
+ id?: string | undefined;
8489
+ config?: Record<string, unknown> | undefined;
8490
+ } & {
8491
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8492
+ endpoint?: string | undefined;
8493
+ })[]> | undefined;
8494
+ capabilities?: Record<string, ({
8495
+ version: string;
8496
+ spec?: string | undefined;
8497
+ schema?: string | undefined;
8498
+ id?: string | undefined;
8499
+ config?: Record<string, unknown> | undefined;
8500
+ } & {
8501
+ extends?: string | undefined;
8502
+ })[]> | undefined;
8503
+ payment_handlers?: Record<string, ({
8504
+ version: string;
8505
+ spec?: string | undefined;
8506
+ schema?: string | undefined;
8507
+ id?: string | undefined;
8508
+ config?: Record<string, unknown> | undefined;
8509
+ } & Record<string, unknown>)[]> | undefined;
8510
+ }, {
8511
+ version: string;
8512
+ services?: Record<string, ({
8513
+ version: string;
8514
+ spec?: string | undefined;
8515
+ schema?: string | undefined;
8516
+ id?: string | undefined;
8517
+ config?: Record<string, unknown> | undefined;
8518
+ } & {
8519
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8520
+ endpoint?: string | undefined;
8521
+ })[]> | undefined;
8522
+ capabilities?: Record<string, ({
8523
+ version: string;
8524
+ spec?: string | undefined;
8525
+ schema?: string | undefined;
8526
+ id?: string | undefined;
8527
+ config?: Record<string, unknown> | undefined;
8528
+ } & {
8529
+ extends?: string | undefined;
8530
+ })[]> | undefined;
8531
+ payment_handlers?: Record<string, ({
8532
+ version: string;
8533
+ spec?: string | undefined;
8534
+ schema?: string | undefined;
8535
+ id?: string | undefined;
8536
+ config?: Record<string, unknown> | undefined;
8537
+ } & Record<string, unknown>)[]> | undefined;
8538
+ }>, z.ZodObject<{
8539
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8540
+ version: z.ZodString;
8541
+ spec: z.ZodOptional<z.ZodString>;
8542
+ schema: z.ZodOptional<z.ZodString>;
8543
+ id: z.ZodOptional<z.ZodString>;
8544
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8545
+ }, "strip", z.ZodTypeAny, {
8546
+ version: string;
8547
+ spec?: string | undefined;
8548
+ schema?: string | undefined;
8549
+ id?: string | undefined;
8550
+ config?: Record<string, unknown> | undefined;
8551
+ }, {
8552
+ version: string;
8553
+ spec?: string | undefined;
8554
+ schema?: string | undefined;
8555
+ id?: string | undefined;
8556
+ config?: Record<string, unknown> | undefined;
8557
+ }>, z.ZodObject<{
8558
+ extends: z.ZodOptional<z.ZodString>;
8559
+ }, "strip", z.ZodTypeAny, {
8560
+ extends?: string | undefined;
8561
+ }, {
8562
+ extends?: string | undefined;
8563
+ }>>, "many">>>;
8564
+ }, "strip", z.ZodTypeAny, {
8565
+ capabilities?: Record<string, ({
8566
+ version: string;
8567
+ spec?: string | undefined;
8568
+ schema?: string | undefined;
8569
+ id?: string | undefined;
8570
+ config?: Record<string, unknown> | undefined;
8571
+ } & {
8572
+ extends?: string | undefined;
8573
+ })[]> | undefined;
8574
+ }, {
8575
+ capabilities?: Record<string, ({
8576
+ version: string;
8577
+ spec?: string | undefined;
8578
+ schema?: string | undefined;
8579
+ id?: string | undefined;
8580
+ config?: Record<string, unknown> | undefined;
8581
+ } & {
8582
+ extends?: string | undefined;
8583
+ })[]> | undefined;
8584
+ }>>;
8585
+ id: z.ZodString;
8586
+ checkout_id: z.ZodString;
8587
+ permalink_url: z.ZodString;
8588
+ line_items: z.ZodArray<z.ZodObject<{
8589
+ id: z.ZodString;
8590
+ item: z.ZodObject<{
8591
+ id: z.ZodString;
8592
+ title: z.ZodString;
8593
+ price: z.ZodNumber;
8594
+ image_url: z.ZodOptional<z.ZodString>;
8595
+ }, "strip", z.ZodTypeAny, {
8596
+ id: string;
8597
+ title: string;
8598
+ price: number;
8599
+ image_url?: string | undefined;
8600
+ }, {
8601
+ id: string;
8602
+ title: string;
8603
+ price: number;
8604
+ image_url?: string | undefined;
8605
+ }>;
8606
+ quantity: z.ZodObject<{
8607
+ total: z.ZodNumber;
8608
+ fulfilled: z.ZodNumber;
8609
+ }, "strip", z.ZodTypeAny, {
8610
+ total: number;
8611
+ fulfilled: number;
8612
+ }, {
8613
+ total: number;
8614
+ fulfilled: number;
8615
+ }>;
8616
+ totals: z.ZodArray<z.ZodObject<{
8617
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
8618
+ display_text: z.ZodOptional<z.ZodString>;
8619
+ amount: z.ZodNumber;
8620
+ }, "strip", z.ZodTypeAny, {
8621
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8622
+ amount: number;
8623
+ display_text?: string | undefined;
8624
+ }, {
8625
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8626
+ amount: number;
8627
+ display_text?: string | undefined;
8628
+ }>, "many">;
8629
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
8630
+ parent_id: z.ZodOptional<z.ZodString>;
8631
+ }, "strip", z.ZodTypeAny, {
8632
+ id: string;
8633
+ status: "fulfilled" | "processing" | "partial";
8634
+ item: {
8635
+ id: string;
8636
+ title: string;
8637
+ price: number;
8638
+ image_url?: string | undefined;
8639
+ };
8640
+ quantity: {
8641
+ total: number;
8642
+ fulfilled: number;
8643
+ };
8644
+ totals: {
8645
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8646
+ amount: number;
8647
+ display_text?: string | undefined;
8648
+ }[];
8649
+ parent_id?: string | undefined;
8650
+ }, {
8651
+ id: string;
8652
+ status: "fulfilled" | "processing" | "partial";
8653
+ item: {
8654
+ id: string;
8655
+ title: string;
8656
+ price: number;
8657
+ image_url?: string | undefined;
8658
+ };
8659
+ quantity: {
8660
+ total: number;
8661
+ fulfilled: number;
8662
+ };
8663
+ totals: {
8664
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8665
+ amount: number;
8666
+ display_text?: string | undefined;
8667
+ }[];
8668
+ parent_id?: string | undefined;
8669
+ }>, "many">;
8670
+ fulfillment: z.ZodObject<{
8671
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8672
+ id: z.ZodString;
8673
+ line_items: z.ZodArray<z.ZodObject<{
8674
+ id: z.ZodString;
8675
+ quantity: z.ZodNumber;
8676
+ }, "strip", z.ZodTypeAny, {
8677
+ id: string;
8678
+ quantity: number;
8679
+ }, {
8680
+ id: string;
8681
+ quantity: number;
8682
+ }>, "many">;
8683
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
8684
+ destination: z.ZodObject<{
8685
+ extended_address: z.ZodOptional<z.ZodString>;
8686
+ street_address: z.ZodOptional<z.ZodString>;
8687
+ address_locality: z.ZodOptional<z.ZodString>;
8688
+ address_region: z.ZodOptional<z.ZodString>;
8689
+ address_country: z.ZodOptional<z.ZodString>;
8690
+ postal_code: z.ZodOptional<z.ZodString>;
8691
+ first_name: z.ZodOptional<z.ZodString>;
8692
+ last_name: z.ZodOptional<z.ZodString>;
8693
+ phone_number: z.ZodOptional<z.ZodString>;
8694
+ }, "strip", z.ZodTypeAny, {
8695
+ first_name?: string | undefined;
8696
+ last_name?: string | undefined;
8697
+ phone_number?: string | undefined;
8698
+ address_country?: string | undefined;
8699
+ address_region?: string | undefined;
8700
+ postal_code?: string | undefined;
8701
+ extended_address?: string | undefined;
8702
+ street_address?: string | undefined;
8703
+ address_locality?: string | undefined;
8704
+ }, {
8705
+ first_name?: string | undefined;
8706
+ last_name?: string | undefined;
8707
+ phone_number?: string | undefined;
8708
+ address_country?: string | undefined;
8709
+ address_region?: string | undefined;
8710
+ postal_code?: string | undefined;
8711
+ extended_address?: string | undefined;
8712
+ street_address?: string | undefined;
8713
+ address_locality?: string | undefined;
8714
+ }>;
8715
+ description: z.ZodOptional<z.ZodString>;
8716
+ fulfillable_on: z.ZodOptional<z.ZodString>;
8717
+ }, "strip", z.ZodTypeAny, {
8718
+ id: string;
8719
+ line_items: {
8720
+ id: string;
8721
+ quantity: number;
8722
+ }[];
8723
+ method_type: "shipping" | "pickup" | "digital";
8724
+ destination: {
8725
+ first_name?: string | undefined;
8726
+ last_name?: string | undefined;
8727
+ phone_number?: string | undefined;
8728
+ address_country?: string | undefined;
8729
+ address_region?: string | undefined;
8730
+ postal_code?: string | undefined;
8731
+ extended_address?: string | undefined;
8732
+ street_address?: string | undefined;
8733
+ address_locality?: string | undefined;
8734
+ };
8735
+ description?: string | undefined;
8736
+ fulfillable_on?: string | undefined;
8737
+ }, {
8738
+ id: string;
8739
+ line_items: {
8740
+ id: string;
8741
+ quantity: number;
8742
+ }[];
8743
+ method_type: "shipping" | "pickup" | "digital";
8744
+ destination: {
8745
+ first_name?: string | undefined;
8746
+ last_name?: string | undefined;
8747
+ phone_number?: string | undefined;
8748
+ address_country?: string | undefined;
8749
+ address_region?: string | undefined;
8750
+ postal_code?: string | undefined;
8751
+ extended_address?: string | undefined;
8752
+ street_address?: string | undefined;
8753
+ address_locality?: string | undefined;
8754
+ };
8755
+ description?: string | undefined;
8756
+ fulfillable_on?: string | undefined;
8757
+ }>, "many">>;
8758
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
8759
+ id: z.ZodString;
8760
+ occurred_at: z.ZodString;
8761
+ type: z.ZodString;
8762
+ line_items: z.ZodArray<z.ZodObject<{
8763
+ id: z.ZodString;
8764
+ quantity: z.ZodNumber;
8765
+ }, "strip", z.ZodTypeAny, {
8766
+ id: string;
8767
+ quantity: number;
8768
+ }, {
8769
+ id: string;
8770
+ quantity: number;
8771
+ }>, "many">;
8772
+ tracking_number: z.ZodOptional<z.ZodString>;
8773
+ tracking_url: z.ZodOptional<z.ZodString>;
8774
+ carrier: z.ZodOptional<z.ZodString>;
8775
+ description: z.ZodOptional<z.ZodString>;
8776
+ }, "strip", z.ZodTypeAny, {
8777
+ id: string;
8778
+ type: string;
8779
+ line_items: {
8780
+ id: string;
8781
+ quantity: number;
8782
+ }[];
8783
+ occurred_at: string;
8784
+ description?: string | undefined;
8785
+ carrier?: string | undefined;
8786
+ tracking_number?: string | undefined;
8787
+ tracking_url?: string | undefined;
8788
+ }, {
8789
+ id: string;
8790
+ type: string;
8791
+ line_items: {
8792
+ id: string;
8793
+ quantity: number;
8794
+ }[];
8795
+ occurred_at: string;
8796
+ description?: string | undefined;
8797
+ carrier?: string | undefined;
8798
+ tracking_number?: string | undefined;
8799
+ tracking_url?: string | undefined;
8800
+ }>, "many">>;
8801
+ }, "strip", z.ZodTypeAny, {
8802
+ expectations?: {
8803
+ id: string;
8804
+ line_items: {
8805
+ id: string;
8806
+ quantity: number;
8807
+ }[];
8808
+ method_type: "shipping" | "pickup" | "digital";
8809
+ destination: {
8810
+ first_name?: string | undefined;
8811
+ last_name?: string | undefined;
8812
+ phone_number?: string | undefined;
8813
+ address_country?: string | undefined;
8814
+ address_region?: string | undefined;
8815
+ postal_code?: string | undefined;
8816
+ extended_address?: string | undefined;
8817
+ street_address?: string | undefined;
8818
+ address_locality?: string | undefined;
8819
+ };
8820
+ description?: string | undefined;
8821
+ fulfillable_on?: string | undefined;
8822
+ }[] | undefined;
8823
+ events?: {
8824
+ id: string;
8825
+ type: string;
8826
+ line_items: {
8827
+ id: string;
8828
+ quantity: number;
8829
+ }[];
8830
+ occurred_at: string;
8831
+ description?: string | undefined;
8832
+ carrier?: string | undefined;
8833
+ tracking_number?: string | undefined;
8834
+ tracking_url?: string | undefined;
8835
+ }[] | undefined;
8836
+ }, {
8837
+ expectations?: {
8838
+ id: string;
8839
+ line_items: {
8840
+ id: string;
8841
+ quantity: number;
8842
+ }[];
8843
+ method_type: "shipping" | "pickup" | "digital";
8844
+ destination: {
8845
+ first_name?: string | undefined;
8846
+ last_name?: string | undefined;
8847
+ phone_number?: string | undefined;
8848
+ address_country?: string | undefined;
8849
+ address_region?: string | undefined;
8850
+ postal_code?: string | undefined;
8851
+ extended_address?: string | undefined;
8852
+ street_address?: string | undefined;
8853
+ address_locality?: string | undefined;
8854
+ };
8855
+ description?: string | undefined;
8856
+ fulfillable_on?: string | undefined;
8857
+ }[] | undefined;
8858
+ events?: {
8859
+ id: string;
8860
+ type: string;
8861
+ line_items: {
8862
+ id: string;
8863
+ quantity: number;
8864
+ }[];
8865
+ occurred_at: string;
8866
+ description?: string | undefined;
8867
+ carrier?: string | undefined;
8868
+ tracking_number?: string | undefined;
8869
+ tracking_url?: string | undefined;
8870
+ }[] | undefined;
8871
+ }>;
8872
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
8873
+ id: z.ZodString;
8874
+ type: z.ZodString;
8875
+ occurred_at: z.ZodString;
8876
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
8877
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
8878
+ id: z.ZodString;
8879
+ quantity: z.ZodNumber;
8880
+ }, "strip", z.ZodTypeAny, {
8881
+ id: string;
8882
+ quantity: number;
8883
+ }, {
8884
+ id: string;
8885
+ quantity: number;
8886
+ }>, "many">>;
8887
+ amount: z.ZodOptional<z.ZodNumber>;
8888
+ description: z.ZodOptional<z.ZodString>;
8889
+ }, "strip", z.ZodTypeAny, {
8890
+ id: string;
8891
+ type: string;
8892
+ status: "completed" | "pending" | "failed";
8893
+ occurred_at: string;
8894
+ amount?: number | undefined;
8895
+ line_items?: {
8896
+ id: string;
8897
+ quantity: number;
8898
+ }[] | undefined;
8899
+ description?: string | undefined;
8900
+ }, {
8901
+ id: string;
8902
+ type: string;
8903
+ status: "completed" | "pending" | "failed";
8904
+ occurred_at: string;
8905
+ amount?: number | undefined;
8906
+ line_items?: {
8907
+ id: string;
8908
+ quantity: number;
8909
+ }[] | undefined;
8910
+ description?: string | undefined;
8911
+ }>, "many">>;
8912
+ totals: z.ZodArray<z.ZodObject<{
8913
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
8914
+ display_text: z.ZodOptional<z.ZodString>;
8915
+ amount: z.ZodNumber;
8916
+ }, "strip", z.ZodTypeAny, {
8917
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8918
+ amount: number;
8919
+ display_text?: string | undefined;
8920
+ }, {
8921
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
8922
+ amount: number;
8923
+ display_text?: string | undefined;
8924
+ }>, "many">;
8925
+ }, z.ZodTypeAny, "passthrough">>;
8926
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8927
+ event_id: z.ZodString;
8928
+ created_time: z.ZodString;
8929
+ order: z.ZodObject<{
8930
+ ucp: z.ZodIntersection<z.ZodObject<{
8931
+ version: z.ZodString;
8932
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8933
+ version: z.ZodString;
8934
+ spec: z.ZodOptional<z.ZodString>;
8935
+ schema: z.ZodOptional<z.ZodString>;
8936
+ id: z.ZodOptional<z.ZodString>;
8937
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8938
+ }, "strip", z.ZodTypeAny, {
8939
+ version: string;
8940
+ spec?: string | undefined;
8941
+ schema?: string | undefined;
8942
+ id?: string | undefined;
8943
+ config?: Record<string, unknown> | undefined;
8944
+ }, {
8945
+ version: string;
8946
+ spec?: string | undefined;
8947
+ schema?: string | undefined;
8948
+ id?: string | undefined;
8949
+ config?: Record<string, unknown> | undefined;
8950
+ }>, z.ZodObject<{
8951
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
8952
+ endpoint: z.ZodOptional<z.ZodString>;
8953
+ }, "strip", z.ZodTypeAny, {
8954
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8955
+ endpoint?: string | undefined;
8956
+ }, {
8957
+ transport: "rest" | "mcp" | "a2a" | "embedded";
8958
+ endpoint?: string | undefined;
8959
+ }>>, "many">>>;
8960
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8961
+ version: z.ZodString;
8962
+ spec: z.ZodOptional<z.ZodString>;
8963
+ schema: z.ZodOptional<z.ZodString>;
8964
+ id: z.ZodOptional<z.ZodString>;
8965
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8966
+ }, "strip", z.ZodTypeAny, {
8967
+ version: string;
8968
+ spec?: string | undefined;
8969
+ schema?: string | undefined;
8970
+ id?: string | undefined;
8971
+ config?: Record<string, unknown> | undefined;
8972
+ }, {
8973
+ version: string;
8974
+ spec?: string | undefined;
8975
+ schema?: string | undefined;
8976
+ id?: string | undefined;
8977
+ config?: Record<string, unknown> | undefined;
8978
+ }>, z.ZodObject<{
8979
+ extends: z.ZodOptional<z.ZodString>;
8980
+ }, "strip", z.ZodTypeAny, {
8981
+ extends?: string | undefined;
8982
+ }, {
8983
+ extends?: string | undefined;
8984
+ }>>, "many">>>;
8985
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
8986
+ version: z.ZodString;
8987
+ spec: z.ZodOptional<z.ZodString>;
8988
+ schema: z.ZodOptional<z.ZodString>;
8989
+ id: z.ZodOptional<z.ZodString>;
8990
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8991
+ }, "strip", z.ZodTypeAny, {
8992
+ version: string;
8993
+ spec?: string | undefined;
8994
+ schema?: string | undefined;
8995
+ id?: string | undefined;
8996
+ config?: Record<string, unknown> | undefined;
8997
+ }, {
8998
+ version: string;
8999
+ spec?: string | undefined;
9000
+ schema?: string | undefined;
9001
+ id?: string | undefined;
9002
+ config?: Record<string, unknown> | undefined;
9003
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
9004
+ }, "strip", z.ZodTypeAny, {
9005
+ version: string;
9006
+ services?: Record<string, ({
9007
+ version: string;
9008
+ spec?: string | undefined;
9009
+ schema?: string | undefined;
9010
+ id?: string | undefined;
9011
+ config?: Record<string, unknown> | undefined;
9012
+ } & {
9013
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9014
+ endpoint?: string | undefined;
9015
+ })[]> | undefined;
9016
+ capabilities?: Record<string, ({
9017
+ version: string;
9018
+ spec?: string | undefined;
9019
+ schema?: string | undefined;
9020
+ id?: string | undefined;
9021
+ config?: Record<string, unknown> | undefined;
9022
+ } & {
9023
+ extends?: string | undefined;
9024
+ })[]> | undefined;
9025
+ payment_handlers?: Record<string, ({
9026
+ version: string;
9027
+ spec?: string | undefined;
9028
+ schema?: string | undefined;
9029
+ id?: string | undefined;
9030
+ config?: Record<string, unknown> | undefined;
9031
+ } & Record<string, unknown>)[]> | undefined;
9032
+ }, {
9033
+ version: string;
9034
+ services?: Record<string, ({
9035
+ version: string;
9036
+ spec?: string | undefined;
9037
+ schema?: string | undefined;
9038
+ id?: string | undefined;
9039
+ config?: Record<string, unknown> | undefined;
9040
+ } & {
9041
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9042
+ endpoint?: string | undefined;
9043
+ })[]> | undefined;
9044
+ capabilities?: Record<string, ({
9045
+ version: string;
9046
+ spec?: string | undefined;
9047
+ schema?: string | undefined;
9048
+ id?: string | undefined;
9049
+ config?: Record<string, unknown> | undefined;
9050
+ } & {
9051
+ extends?: string | undefined;
9052
+ })[]> | undefined;
9053
+ payment_handlers?: Record<string, ({
9054
+ version: string;
9055
+ spec?: string | undefined;
9056
+ schema?: string | undefined;
9057
+ id?: string | undefined;
9058
+ config?: Record<string, unknown> | undefined;
9059
+ } & Record<string, unknown>)[]> | undefined;
9060
+ }>, z.ZodObject<{
9061
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9062
+ version: z.ZodString;
9063
+ spec: z.ZodOptional<z.ZodString>;
9064
+ schema: z.ZodOptional<z.ZodString>;
9065
+ id: z.ZodOptional<z.ZodString>;
9066
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9067
+ }, "strip", z.ZodTypeAny, {
9068
+ version: string;
9069
+ spec?: string | undefined;
9070
+ schema?: string | undefined;
9071
+ id?: string | undefined;
9072
+ config?: Record<string, unknown> | undefined;
9073
+ }, {
9074
+ version: string;
9075
+ spec?: string | undefined;
9076
+ schema?: string | undefined;
9077
+ id?: string | undefined;
9078
+ config?: Record<string, unknown> | undefined;
9079
+ }>, z.ZodObject<{
9080
+ extends: z.ZodOptional<z.ZodString>;
9081
+ }, "strip", z.ZodTypeAny, {
9082
+ extends?: string | undefined;
9083
+ }, {
9084
+ extends?: string | undefined;
9085
+ }>>, "many">>>;
9086
+ }, "strip", z.ZodTypeAny, {
9087
+ capabilities?: Record<string, ({
9088
+ version: string;
9089
+ spec?: string | undefined;
9090
+ schema?: string | undefined;
9091
+ id?: string | undefined;
9092
+ config?: Record<string, unknown> | undefined;
9093
+ } & {
9094
+ extends?: string | undefined;
9095
+ })[]> | undefined;
9096
+ }, {
9097
+ capabilities?: Record<string, ({
9098
+ version: string;
9099
+ spec?: string | undefined;
9100
+ schema?: string | undefined;
9101
+ id?: string | undefined;
9102
+ config?: Record<string, unknown> | undefined;
9103
+ } & {
9104
+ extends?: string | undefined;
9105
+ })[]> | undefined;
9106
+ }>>;
9107
+ id: z.ZodString;
9108
+ checkout_id: z.ZodString;
9109
+ permalink_url: z.ZodString;
9110
+ line_items: z.ZodArray<z.ZodObject<{
9111
+ id: z.ZodString;
9112
+ item: z.ZodObject<{
9113
+ id: z.ZodString;
9114
+ title: z.ZodString;
9115
+ price: z.ZodNumber;
9116
+ image_url: z.ZodOptional<z.ZodString>;
9117
+ }, "strip", z.ZodTypeAny, {
9118
+ id: string;
9119
+ title: string;
9120
+ price: number;
9121
+ image_url?: string | undefined;
9122
+ }, {
9123
+ id: string;
9124
+ title: string;
9125
+ price: number;
9126
+ image_url?: string | undefined;
9127
+ }>;
9128
+ quantity: z.ZodObject<{
9129
+ total: z.ZodNumber;
9130
+ fulfilled: z.ZodNumber;
9131
+ }, "strip", z.ZodTypeAny, {
9132
+ total: number;
9133
+ fulfilled: number;
9134
+ }, {
9135
+ total: number;
9136
+ fulfilled: number;
9137
+ }>;
9138
+ totals: z.ZodArray<z.ZodObject<{
9139
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
9140
+ display_text: z.ZodOptional<z.ZodString>;
9141
+ amount: z.ZodNumber;
9142
+ }, "strip", z.ZodTypeAny, {
9143
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9144
+ amount: number;
9145
+ display_text?: string | undefined;
9146
+ }, {
9147
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9148
+ amount: number;
9149
+ display_text?: string | undefined;
9150
+ }>, "many">;
9151
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
9152
+ parent_id: z.ZodOptional<z.ZodString>;
9153
+ }, "strip", z.ZodTypeAny, {
9154
+ id: string;
9155
+ status: "fulfilled" | "processing" | "partial";
9156
+ item: {
9157
+ id: string;
9158
+ title: string;
9159
+ price: number;
9160
+ image_url?: string | undefined;
9161
+ };
9162
+ quantity: {
9163
+ total: number;
9164
+ fulfilled: number;
9165
+ };
9166
+ totals: {
9167
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9168
+ amount: number;
9169
+ display_text?: string | undefined;
9170
+ }[];
9171
+ parent_id?: string | undefined;
9172
+ }, {
9173
+ id: string;
9174
+ status: "fulfilled" | "processing" | "partial";
9175
+ item: {
9176
+ id: string;
9177
+ title: string;
9178
+ price: number;
9179
+ image_url?: string | undefined;
9180
+ };
9181
+ quantity: {
9182
+ total: number;
9183
+ fulfilled: number;
9184
+ };
9185
+ totals: {
9186
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9187
+ amount: number;
9188
+ display_text?: string | undefined;
9189
+ }[];
9190
+ parent_id?: string | undefined;
9191
+ }>, "many">;
9192
+ fulfillment: z.ZodObject<{
9193
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9194
+ id: z.ZodString;
9195
+ line_items: z.ZodArray<z.ZodObject<{
9196
+ id: z.ZodString;
9197
+ quantity: z.ZodNumber;
9198
+ }, "strip", z.ZodTypeAny, {
9199
+ id: string;
9200
+ quantity: number;
9201
+ }, {
9202
+ id: string;
9203
+ quantity: number;
9204
+ }>, "many">;
9205
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
9206
+ destination: z.ZodObject<{
9207
+ extended_address: z.ZodOptional<z.ZodString>;
9208
+ street_address: z.ZodOptional<z.ZodString>;
9209
+ address_locality: z.ZodOptional<z.ZodString>;
9210
+ address_region: z.ZodOptional<z.ZodString>;
9211
+ address_country: z.ZodOptional<z.ZodString>;
9212
+ postal_code: z.ZodOptional<z.ZodString>;
9213
+ first_name: z.ZodOptional<z.ZodString>;
9214
+ last_name: z.ZodOptional<z.ZodString>;
9215
+ phone_number: z.ZodOptional<z.ZodString>;
9216
+ }, "strip", z.ZodTypeAny, {
9217
+ first_name?: string | undefined;
9218
+ last_name?: string | undefined;
9219
+ phone_number?: string | undefined;
9220
+ address_country?: string | undefined;
9221
+ address_region?: string | undefined;
9222
+ postal_code?: string | undefined;
9223
+ extended_address?: string | undefined;
9224
+ street_address?: string | undefined;
9225
+ address_locality?: string | undefined;
9226
+ }, {
9227
+ first_name?: string | undefined;
9228
+ last_name?: string | undefined;
9229
+ phone_number?: string | undefined;
9230
+ address_country?: string | undefined;
9231
+ address_region?: string | undefined;
9232
+ postal_code?: string | undefined;
9233
+ extended_address?: string | undefined;
9234
+ street_address?: string | undefined;
9235
+ address_locality?: string | undefined;
9236
+ }>;
9237
+ description: z.ZodOptional<z.ZodString>;
9238
+ fulfillable_on: z.ZodOptional<z.ZodString>;
9239
+ }, "strip", z.ZodTypeAny, {
9240
+ id: string;
9241
+ line_items: {
9242
+ id: string;
9243
+ quantity: number;
9244
+ }[];
9245
+ method_type: "shipping" | "pickup" | "digital";
9246
+ destination: {
9247
+ first_name?: string | undefined;
9248
+ last_name?: string | undefined;
9249
+ phone_number?: string | undefined;
9250
+ address_country?: string | undefined;
9251
+ address_region?: string | undefined;
9252
+ postal_code?: string | undefined;
9253
+ extended_address?: string | undefined;
9254
+ street_address?: string | undefined;
9255
+ address_locality?: string | undefined;
9256
+ };
9257
+ description?: string | undefined;
9258
+ fulfillable_on?: string | undefined;
9259
+ }, {
9260
+ id: string;
9261
+ line_items: {
9262
+ id: string;
9263
+ quantity: number;
9264
+ }[];
9265
+ method_type: "shipping" | "pickup" | "digital";
9266
+ destination: {
9267
+ first_name?: string | undefined;
9268
+ last_name?: string | undefined;
9269
+ phone_number?: string | undefined;
9270
+ address_country?: string | undefined;
9271
+ address_region?: string | undefined;
9272
+ postal_code?: string | undefined;
9273
+ extended_address?: string | undefined;
9274
+ street_address?: string | undefined;
9275
+ address_locality?: string | undefined;
9276
+ };
9277
+ description?: string | undefined;
9278
+ fulfillable_on?: string | undefined;
9279
+ }>, "many">>;
9280
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
9281
+ id: z.ZodString;
9282
+ occurred_at: z.ZodString;
9283
+ type: z.ZodString;
9284
+ line_items: z.ZodArray<z.ZodObject<{
9285
+ id: z.ZodString;
9286
+ quantity: z.ZodNumber;
9287
+ }, "strip", z.ZodTypeAny, {
9288
+ id: string;
9289
+ quantity: number;
9290
+ }, {
9291
+ id: string;
9292
+ quantity: number;
9293
+ }>, "many">;
9294
+ tracking_number: z.ZodOptional<z.ZodString>;
9295
+ tracking_url: z.ZodOptional<z.ZodString>;
9296
+ carrier: z.ZodOptional<z.ZodString>;
9297
+ description: z.ZodOptional<z.ZodString>;
9298
+ }, "strip", z.ZodTypeAny, {
9299
+ id: string;
9300
+ type: string;
9301
+ line_items: {
9302
+ id: string;
9303
+ quantity: number;
9304
+ }[];
9305
+ occurred_at: string;
9306
+ description?: string | undefined;
9307
+ carrier?: string | undefined;
9308
+ tracking_number?: string | undefined;
9309
+ tracking_url?: string | undefined;
9310
+ }, {
9311
+ id: string;
9312
+ type: string;
9313
+ line_items: {
9314
+ id: string;
9315
+ quantity: number;
9316
+ }[];
9317
+ occurred_at: string;
9318
+ description?: string | undefined;
9319
+ carrier?: string | undefined;
9320
+ tracking_number?: string | undefined;
9321
+ tracking_url?: string | undefined;
9322
+ }>, "many">>;
9323
+ }, "strip", z.ZodTypeAny, {
9324
+ expectations?: {
9325
+ id: string;
9326
+ line_items: {
9327
+ id: string;
9328
+ quantity: number;
9329
+ }[];
9330
+ method_type: "shipping" | "pickup" | "digital";
9331
+ destination: {
9332
+ first_name?: string | undefined;
9333
+ last_name?: string | undefined;
9334
+ phone_number?: string | undefined;
9335
+ address_country?: string | undefined;
9336
+ address_region?: string | undefined;
9337
+ postal_code?: string | undefined;
9338
+ extended_address?: string | undefined;
9339
+ street_address?: string | undefined;
9340
+ address_locality?: string | undefined;
9341
+ };
9342
+ description?: string | undefined;
9343
+ fulfillable_on?: string | undefined;
9344
+ }[] | undefined;
9345
+ events?: {
9346
+ id: string;
9347
+ type: string;
9348
+ line_items: {
9349
+ id: string;
9350
+ quantity: number;
9351
+ }[];
9352
+ occurred_at: string;
9353
+ description?: string | undefined;
9354
+ carrier?: string | undefined;
9355
+ tracking_number?: string | undefined;
9356
+ tracking_url?: string | undefined;
9357
+ }[] | undefined;
9358
+ }, {
9359
+ expectations?: {
9360
+ id: string;
9361
+ line_items: {
9362
+ id: string;
9363
+ quantity: number;
9364
+ }[];
9365
+ method_type: "shipping" | "pickup" | "digital";
9366
+ destination: {
9367
+ first_name?: string | undefined;
9368
+ last_name?: string | undefined;
9369
+ phone_number?: string | undefined;
9370
+ address_country?: string | undefined;
9371
+ address_region?: string | undefined;
9372
+ postal_code?: string | undefined;
9373
+ extended_address?: string | undefined;
9374
+ street_address?: string | undefined;
9375
+ address_locality?: string | undefined;
9376
+ };
9377
+ description?: string | undefined;
9378
+ fulfillable_on?: string | undefined;
9379
+ }[] | undefined;
9380
+ events?: {
9381
+ id: string;
9382
+ type: string;
9383
+ line_items: {
9384
+ id: string;
9385
+ quantity: number;
9386
+ }[];
9387
+ occurred_at: string;
9388
+ description?: string | undefined;
9389
+ carrier?: string | undefined;
9390
+ tracking_number?: string | undefined;
9391
+ tracking_url?: string | undefined;
9392
+ }[] | undefined;
9393
+ }>;
9394
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9395
+ id: z.ZodString;
9396
+ type: z.ZodString;
9397
+ occurred_at: z.ZodString;
9398
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
9399
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
9400
+ id: z.ZodString;
9401
+ quantity: z.ZodNumber;
9402
+ }, "strip", z.ZodTypeAny, {
9403
+ id: string;
9404
+ quantity: number;
9405
+ }, {
9406
+ id: string;
9407
+ quantity: number;
9408
+ }>, "many">>;
9409
+ amount: z.ZodOptional<z.ZodNumber>;
9410
+ description: z.ZodOptional<z.ZodString>;
9411
+ }, "strip", z.ZodTypeAny, {
9412
+ id: string;
9413
+ type: string;
9414
+ status: "completed" | "pending" | "failed";
9415
+ occurred_at: string;
9416
+ amount?: number | undefined;
9417
+ line_items?: {
9418
+ id: string;
9419
+ quantity: number;
9420
+ }[] | undefined;
9421
+ description?: string | undefined;
9422
+ }, {
9423
+ id: string;
9424
+ type: string;
9425
+ status: "completed" | "pending" | "failed";
9426
+ occurred_at: string;
9427
+ amount?: number | undefined;
9428
+ line_items?: {
9429
+ id: string;
9430
+ quantity: number;
9431
+ }[] | undefined;
9432
+ description?: string | undefined;
9433
+ }>, "many">>;
9434
+ totals: z.ZodArray<z.ZodObject<{
9435
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
9436
+ display_text: z.ZodOptional<z.ZodString>;
9437
+ amount: z.ZodNumber;
9438
+ }, "strip", z.ZodTypeAny, {
9439
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9440
+ amount: number;
9441
+ display_text?: string | undefined;
9442
+ }, {
9443
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9444
+ amount: number;
9445
+ display_text?: string | undefined;
9446
+ }>, "many">;
9447
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9448
+ ucp: z.ZodIntersection<z.ZodObject<{
9449
+ version: z.ZodString;
9450
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9451
+ version: z.ZodString;
9452
+ spec: z.ZodOptional<z.ZodString>;
9453
+ schema: z.ZodOptional<z.ZodString>;
9454
+ id: z.ZodOptional<z.ZodString>;
9455
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9456
+ }, "strip", z.ZodTypeAny, {
9457
+ version: string;
9458
+ spec?: string | undefined;
9459
+ schema?: string | undefined;
9460
+ id?: string | undefined;
9461
+ config?: Record<string, unknown> | undefined;
9462
+ }, {
9463
+ version: string;
9464
+ spec?: string | undefined;
9465
+ schema?: string | undefined;
9466
+ id?: string | undefined;
9467
+ config?: Record<string, unknown> | undefined;
9468
+ }>, z.ZodObject<{
9469
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
9470
+ endpoint: z.ZodOptional<z.ZodString>;
9471
+ }, "strip", z.ZodTypeAny, {
9472
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9473
+ endpoint?: string | undefined;
9474
+ }, {
9475
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9476
+ endpoint?: string | undefined;
9477
+ }>>, "many">>>;
9478
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9479
+ version: z.ZodString;
9480
+ spec: z.ZodOptional<z.ZodString>;
9481
+ schema: z.ZodOptional<z.ZodString>;
9482
+ id: z.ZodOptional<z.ZodString>;
9483
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9484
+ }, "strip", z.ZodTypeAny, {
9485
+ version: string;
9486
+ spec?: string | undefined;
9487
+ schema?: string | undefined;
9488
+ id?: string | undefined;
9489
+ config?: Record<string, unknown> | undefined;
9490
+ }, {
9491
+ version: string;
9492
+ spec?: string | undefined;
9493
+ schema?: string | undefined;
9494
+ id?: string | undefined;
9495
+ config?: Record<string, unknown> | undefined;
9496
+ }>, z.ZodObject<{
9497
+ extends: z.ZodOptional<z.ZodString>;
9498
+ }, "strip", z.ZodTypeAny, {
9499
+ extends?: string | undefined;
9500
+ }, {
9501
+ extends?: string | undefined;
9502
+ }>>, "many">>>;
9503
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9504
+ version: z.ZodString;
9505
+ spec: z.ZodOptional<z.ZodString>;
9506
+ schema: z.ZodOptional<z.ZodString>;
9507
+ id: z.ZodOptional<z.ZodString>;
9508
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9509
+ }, "strip", z.ZodTypeAny, {
9510
+ version: string;
9511
+ spec?: string | undefined;
9512
+ schema?: string | undefined;
9513
+ id?: string | undefined;
9514
+ config?: Record<string, unknown> | undefined;
9515
+ }, {
9516
+ version: string;
9517
+ spec?: string | undefined;
9518
+ schema?: string | undefined;
9519
+ id?: string | undefined;
9520
+ config?: Record<string, unknown> | undefined;
9521
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
9522
+ }, "strip", z.ZodTypeAny, {
9523
+ version: string;
9524
+ services?: Record<string, ({
9525
+ version: string;
9526
+ spec?: string | undefined;
9527
+ schema?: string | undefined;
9528
+ id?: string | undefined;
9529
+ config?: Record<string, unknown> | undefined;
9530
+ } & {
9531
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9532
+ endpoint?: string | undefined;
9533
+ })[]> | undefined;
9534
+ capabilities?: Record<string, ({
9535
+ version: string;
9536
+ spec?: string | undefined;
9537
+ schema?: string | undefined;
9538
+ id?: string | undefined;
9539
+ config?: Record<string, unknown> | undefined;
9540
+ } & {
9541
+ extends?: string | undefined;
9542
+ })[]> | undefined;
9543
+ payment_handlers?: Record<string, ({
9544
+ version: string;
9545
+ spec?: string | undefined;
9546
+ schema?: string | undefined;
9547
+ id?: string | undefined;
9548
+ config?: Record<string, unknown> | undefined;
9549
+ } & Record<string, unknown>)[]> | undefined;
9550
+ }, {
9551
+ version: string;
9552
+ services?: Record<string, ({
9553
+ version: string;
9554
+ spec?: string | undefined;
9555
+ schema?: string | undefined;
9556
+ id?: string | undefined;
9557
+ config?: Record<string, unknown> | undefined;
9558
+ } & {
9559
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9560
+ endpoint?: string | undefined;
9561
+ })[]> | undefined;
9562
+ capabilities?: Record<string, ({
9563
+ version: string;
9564
+ spec?: string | undefined;
9565
+ schema?: string | undefined;
9566
+ id?: string | undefined;
9567
+ config?: Record<string, unknown> | undefined;
9568
+ } & {
9569
+ extends?: string | undefined;
9570
+ })[]> | undefined;
9571
+ payment_handlers?: Record<string, ({
9572
+ version: string;
9573
+ spec?: string | undefined;
9574
+ schema?: string | undefined;
9575
+ id?: string | undefined;
9576
+ config?: Record<string, unknown> | undefined;
9577
+ } & Record<string, unknown>)[]> | undefined;
9578
+ }>, z.ZodObject<{
9579
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9580
+ version: z.ZodString;
9581
+ spec: z.ZodOptional<z.ZodString>;
9582
+ schema: z.ZodOptional<z.ZodString>;
9583
+ id: z.ZodOptional<z.ZodString>;
9584
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9585
+ }, "strip", z.ZodTypeAny, {
9586
+ version: string;
9587
+ spec?: string | undefined;
9588
+ schema?: string | undefined;
9589
+ id?: string | undefined;
9590
+ config?: Record<string, unknown> | undefined;
9591
+ }, {
9592
+ version: string;
9593
+ spec?: string | undefined;
9594
+ schema?: string | undefined;
9595
+ id?: string | undefined;
9596
+ config?: Record<string, unknown> | undefined;
9597
+ }>, z.ZodObject<{
9598
+ extends: z.ZodOptional<z.ZodString>;
9599
+ }, "strip", z.ZodTypeAny, {
9600
+ extends?: string | undefined;
9601
+ }, {
9602
+ extends?: string | undefined;
9603
+ }>>, "many">>>;
9604
+ }, "strip", z.ZodTypeAny, {
9605
+ capabilities?: Record<string, ({
9606
+ version: string;
9607
+ spec?: string | undefined;
9608
+ schema?: string | undefined;
9609
+ id?: string | undefined;
9610
+ config?: Record<string, unknown> | undefined;
9611
+ } & {
9612
+ extends?: string | undefined;
9613
+ })[]> | undefined;
9614
+ }, {
9615
+ capabilities?: Record<string, ({
9616
+ version: string;
9617
+ spec?: string | undefined;
9618
+ schema?: string | undefined;
9619
+ id?: string | undefined;
9620
+ config?: Record<string, unknown> | undefined;
9621
+ } & {
9622
+ extends?: string | undefined;
9623
+ })[]> | undefined;
9624
+ }>>;
9625
+ id: z.ZodString;
9626
+ checkout_id: z.ZodString;
9627
+ permalink_url: z.ZodString;
9628
+ line_items: z.ZodArray<z.ZodObject<{
9629
+ id: z.ZodString;
9630
+ item: z.ZodObject<{
9631
+ id: z.ZodString;
9632
+ title: z.ZodString;
9633
+ price: z.ZodNumber;
9634
+ image_url: z.ZodOptional<z.ZodString>;
9635
+ }, "strip", z.ZodTypeAny, {
9636
+ id: string;
9637
+ title: string;
9638
+ price: number;
9639
+ image_url?: string | undefined;
9640
+ }, {
9641
+ id: string;
9642
+ title: string;
9643
+ price: number;
9644
+ image_url?: string | undefined;
9645
+ }>;
9646
+ quantity: z.ZodObject<{
9647
+ total: z.ZodNumber;
9648
+ fulfilled: z.ZodNumber;
9649
+ }, "strip", z.ZodTypeAny, {
9650
+ total: number;
9651
+ fulfilled: number;
9652
+ }, {
9653
+ total: number;
9654
+ fulfilled: number;
9655
+ }>;
9656
+ totals: z.ZodArray<z.ZodObject<{
9657
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
9658
+ display_text: z.ZodOptional<z.ZodString>;
9659
+ amount: z.ZodNumber;
9660
+ }, "strip", z.ZodTypeAny, {
9661
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9662
+ amount: number;
9663
+ display_text?: string | undefined;
9664
+ }, {
9665
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9666
+ amount: number;
9667
+ display_text?: string | undefined;
9668
+ }>, "many">;
9669
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
9670
+ parent_id: z.ZodOptional<z.ZodString>;
9671
+ }, "strip", z.ZodTypeAny, {
9672
+ id: string;
9673
+ status: "fulfilled" | "processing" | "partial";
9674
+ item: {
9675
+ id: string;
9676
+ title: string;
9677
+ price: number;
9678
+ image_url?: string | undefined;
9679
+ };
9680
+ quantity: {
9681
+ total: number;
9682
+ fulfilled: number;
9683
+ };
9684
+ totals: {
9685
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9686
+ amount: number;
9687
+ display_text?: string | undefined;
9688
+ }[];
9689
+ parent_id?: string | undefined;
9690
+ }, {
9691
+ id: string;
9692
+ status: "fulfilled" | "processing" | "partial";
9693
+ item: {
9694
+ id: string;
9695
+ title: string;
9696
+ price: number;
9697
+ image_url?: string | undefined;
9698
+ };
9699
+ quantity: {
9700
+ total: number;
9701
+ fulfilled: number;
9702
+ };
9703
+ totals: {
9704
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9705
+ amount: number;
9706
+ display_text?: string | undefined;
9707
+ }[];
9708
+ parent_id?: string | undefined;
9709
+ }>, "many">;
9710
+ fulfillment: z.ZodObject<{
9711
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9712
+ id: z.ZodString;
9713
+ line_items: z.ZodArray<z.ZodObject<{
9714
+ id: z.ZodString;
9715
+ quantity: z.ZodNumber;
9716
+ }, "strip", z.ZodTypeAny, {
9717
+ id: string;
9718
+ quantity: number;
9719
+ }, {
9720
+ id: string;
9721
+ quantity: number;
9722
+ }>, "many">;
9723
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
9724
+ destination: z.ZodObject<{
9725
+ extended_address: z.ZodOptional<z.ZodString>;
9726
+ street_address: z.ZodOptional<z.ZodString>;
9727
+ address_locality: z.ZodOptional<z.ZodString>;
9728
+ address_region: z.ZodOptional<z.ZodString>;
9729
+ address_country: z.ZodOptional<z.ZodString>;
9730
+ postal_code: z.ZodOptional<z.ZodString>;
9731
+ first_name: z.ZodOptional<z.ZodString>;
9732
+ last_name: z.ZodOptional<z.ZodString>;
9733
+ phone_number: z.ZodOptional<z.ZodString>;
9734
+ }, "strip", z.ZodTypeAny, {
9735
+ first_name?: string | undefined;
9736
+ last_name?: string | undefined;
9737
+ phone_number?: string | undefined;
9738
+ address_country?: string | undefined;
9739
+ address_region?: string | undefined;
9740
+ postal_code?: string | undefined;
9741
+ extended_address?: string | undefined;
9742
+ street_address?: string | undefined;
9743
+ address_locality?: string | undefined;
9744
+ }, {
9745
+ first_name?: string | undefined;
9746
+ last_name?: string | undefined;
9747
+ phone_number?: string | undefined;
9748
+ address_country?: string | undefined;
9749
+ address_region?: string | undefined;
9750
+ postal_code?: string | undefined;
9751
+ extended_address?: string | undefined;
9752
+ street_address?: string | undefined;
9753
+ address_locality?: string | undefined;
9754
+ }>;
9755
+ description: z.ZodOptional<z.ZodString>;
9756
+ fulfillable_on: z.ZodOptional<z.ZodString>;
9757
+ }, "strip", z.ZodTypeAny, {
9758
+ id: string;
9759
+ line_items: {
9760
+ id: string;
9761
+ quantity: number;
9762
+ }[];
9763
+ method_type: "shipping" | "pickup" | "digital";
9764
+ destination: {
9765
+ first_name?: string | undefined;
9766
+ last_name?: string | undefined;
9767
+ phone_number?: string | undefined;
9768
+ address_country?: string | undefined;
9769
+ address_region?: string | undefined;
9770
+ postal_code?: string | undefined;
9771
+ extended_address?: string | undefined;
9772
+ street_address?: string | undefined;
9773
+ address_locality?: string | undefined;
9774
+ };
9775
+ description?: string | undefined;
9776
+ fulfillable_on?: string | undefined;
9777
+ }, {
9778
+ id: string;
9779
+ line_items: {
9780
+ id: string;
9781
+ quantity: number;
9782
+ }[];
9783
+ method_type: "shipping" | "pickup" | "digital";
9784
+ destination: {
9785
+ first_name?: string | undefined;
9786
+ last_name?: string | undefined;
9787
+ phone_number?: string | undefined;
9788
+ address_country?: string | undefined;
9789
+ address_region?: string | undefined;
9790
+ postal_code?: string | undefined;
9791
+ extended_address?: string | undefined;
9792
+ street_address?: string | undefined;
9793
+ address_locality?: string | undefined;
9794
+ };
9795
+ description?: string | undefined;
9796
+ fulfillable_on?: string | undefined;
9797
+ }>, "many">>;
9798
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
9799
+ id: z.ZodString;
9800
+ occurred_at: z.ZodString;
9801
+ type: z.ZodString;
9802
+ line_items: z.ZodArray<z.ZodObject<{
9803
+ id: z.ZodString;
9804
+ quantity: z.ZodNumber;
9805
+ }, "strip", z.ZodTypeAny, {
9806
+ id: string;
9807
+ quantity: number;
9808
+ }, {
9809
+ id: string;
9810
+ quantity: number;
9811
+ }>, "many">;
9812
+ tracking_number: z.ZodOptional<z.ZodString>;
9813
+ tracking_url: z.ZodOptional<z.ZodString>;
9814
+ carrier: z.ZodOptional<z.ZodString>;
9815
+ description: z.ZodOptional<z.ZodString>;
9816
+ }, "strip", z.ZodTypeAny, {
9817
+ id: string;
9818
+ type: string;
9819
+ line_items: {
9820
+ id: string;
9821
+ quantity: number;
9822
+ }[];
9823
+ occurred_at: string;
9824
+ description?: string | undefined;
9825
+ carrier?: string | undefined;
9826
+ tracking_number?: string | undefined;
9827
+ tracking_url?: string | undefined;
9828
+ }, {
9829
+ id: string;
9830
+ type: string;
9831
+ line_items: {
9832
+ id: string;
9833
+ quantity: number;
9834
+ }[];
9835
+ occurred_at: string;
9836
+ description?: string | undefined;
9837
+ carrier?: string | undefined;
9838
+ tracking_number?: string | undefined;
9839
+ tracking_url?: string | undefined;
9840
+ }>, "many">>;
9841
+ }, "strip", z.ZodTypeAny, {
9842
+ expectations?: {
9843
+ id: string;
9844
+ line_items: {
9845
+ id: string;
9846
+ quantity: number;
9847
+ }[];
9848
+ method_type: "shipping" | "pickup" | "digital";
9849
+ destination: {
9850
+ first_name?: string | undefined;
9851
+ last_name?: string | undefined;
9852
+ phone_number?: string | undefined;
9853
+ address_country?: string | undefined;
9854
+ address_region?: string | undefined;
9855
+ postal_code?: string | undefined;
9856
+ extended_address?: string | undefined;
9857
+ street_address?: string | undefined;
9858
+ address_locality?: string | undefined;
9859
+ };
9860
+ description?: string | undefined;
9861
+ fulfillable_on?: string | undefined;
9862
+ }[] | undefined;
9863
+ events?: {
9864
+ id: string;
9865
+ type: string;
9866
+ line_items: {
9867
+ id: string;
9868
+ quantity: number;
9869
+ }[];
9870
+ occurred_at: string;
9871
+ description?: string | undefined;
9872
+ carrier?: string | undefined;
9873
+ tracking_number?: string | undefined;
9874
+ tracking_url?: string | undefined;
9875
+ }[] | undefined;
9876
+ }, {
9877
+ expectations?: {
9878
+ id: string;
9879
+ line_items: {
9880
+ id: string;
9881
+ quantity: number;
9882
+ }[];
9883
+ method_type: "shipping" | "pickup" | "digital";
9884
+ destination: {
9885
+ first_name?: string | undefined;
9886
+ last_name?: string | undefined;
9887
+ phone_number?: string | undefined;
9888
+ address_country?: string | undefined;
9889
+ address_region?: string | undefined;
9890
+ postal_code?: string | undefined;
9891
+ extended_address?: string | undefined;
9892
+ street_address?: string | undefined;
9893
+ address_locality?: string | undefined;
9894
+ };
9895
+ description?: string | undefined;
9896
+ fulfillable_on?: string | undefined;
9897
+ }[] | undefined;
9898
+ events?: {
9899
+ id: string;
9900
+ type: string;
9901
+ line_items: {
9902
+ id: string;
9903
+ quantity: number;
9904
+ }[];
9905
+ occurred_at: string;
9906
+ description?: string | undefined;
9907
+ carrier?: string | undefined;
9908
+ tracking_number?: string | undefined;
9909
+ tracking_url?: string | undefined;
9910
+ }[] | undefined;
9911
+ }>;
9912
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9913
+ id: z.ZodString;
9914
+ type: z.ZodString;
9915
+ occurred_at: z.ZodString;
9916
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
9917
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
9918
+ id: z.ZodString;
9919
+ quantity: z.ZodNumber;
9920
+ }, "strip", z.ZodTypeAny, {
9921
+ id: string;
9922
+ quantity: number;
9923
+ }, {
9924
+ id: string;
9925
+ quantity: number;
9926
+ }>, "many">>;
9927
+ amount: z.ZodOptional<z.ZodNumber>;
9928
+ description: z.ZodOptional<z.ZodString>;
9929
+ }, "strip", z.ZodTypeAny, {
9930
+ id: string;
9931
+ type: string;
9932
+ status: "completed" | "pending" | "failed";
9933
+ occurred_at: string;
9934
+ amount?: number | undefined;
9935
+ line_items?: {
9936
+ id: string;
9937
+ quantity: number;
9938
+ }[] | undefined;
9939
+ description?: string | undefined;
9940
+ }, {
9941
+ id: string;
9942
+ type: string;
9943
+ status: "completed" | "pending" | "failed";
9944
+ occurred_at: string;
9945
+ amount?: number | undefined;
9946
+ line_items?: {
9947
+ id: string;
9948
+ quantity: number;
9949
+ }[] | undefined;
9950
+ description?: string | undefined;
9951
+ }>, "many">>;
9952
+ totals: z.ZodArray<z.ZodObject<{
9953
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
9954
+ display_text: z.ZodOptional<z.ZodString>;
9955
+ amount: z.ZodNumber;
9956
+ }, "strip", z.ZodTypeAny, {
9957
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9958
+ amount: number;
9959
+ display_text?: string | undefined;
9960
+ }, {
9961
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
9962
+ amount: number;
9963
+ display_text?: string | undefined;
9964
+ }>, "many">;
9965
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9966
+ ucp: z.ZodIntersection<z.ZodObject<{
9967
+ version: z.ZodString;
9968
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9969
+ version: z.ZodString;
9970
+ spec: z.ZodOptional<z.ZodString>;
9971
+ schema: z.ZodOptional<z.ZodString>;
9972
+ id: z.ZodOptional<z.ZodString>;
9973
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9974
+ }, "strip", z.ZodTypeAny, {
9975
+ version: string;
9976
+ spec?: string | undefined;
9977
+ schema?: string | undefined;
9978
+ id?: string | undefined;
9979
+ config?: Record<string, unknown> | undefined;
9980
+ }, {
9981
+ version: string;
9982
+ spec?: string | undefined;
9983
+ schema?: string | undefined;
9984
+ id?: string | undefined;
9985
+ config?: Record<string, unknown> | undefined;
9986
+ }>, z.ZodObject<{
9987
+ transport: z.ZodEnum<["rest", "mcp", "a2a", "embedded"]>;
9988
+ endpoint: z.ZodOptional<z.ZodString>;
9989
+ }, "strip", z.ZodTypeAny, {
9990
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9991
+ endpoint?: string | undefined;
9992
+ }, {
9993
+ transport: "rest" | "mcp" | "a2a" | "embedded";
9994
+ endpoint?: string | undefined;
9995
+ }>>, "many">>>;
9996
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
9997
+ version: z.ZodString;
9998
+ spec: z.ZodOptional<z.ZodString>;
9999
+ schema: z.ZodOptional<z.ZodString>;
10000
+ id: z.ZodOptional<z.ZodString>;
10001
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10002
+ }, "strip", z.ZodTypeAny, {
10003
+ version: string;
10004
+ spec?: string | undefined;
10005
+ schema?: string | undefined;
10006
+ id?: string | undefined;
10007
+ config?: Record<string, unknown> | undefined;
10008
+ }, {
10009
+ version: string;
10010
+ spec?: string | undefined;
10011
+ schema?: string | undefined;
10012
+ id?: string | undefined;
10013
+ config?: Record<string, unknown> | undefined;
10014
+ }>, z.ZodObject<{
10015
+ extends: z.ZodOptional<z.ZodString>;
10016
+ }, "strip", z.ZodTypeAny, {
10017
+ extends?: string | undefined;
10018
+ }, {
10019
+ extends?: string | undefined;
10020
+ }>>, "many">>>;
10021
+ payment_handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
10022
+ version: z.ZodString;
10023
+ spec: z.ZodOptional<z.ZodString>;
10024
+ schema: z.ZodOptional<z.ZodString>;
10025
+ id: z.ZodOptional<z.ZodString>;
10026
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10027
+ }, "strip", z.ZodTypeAny, {
10028
+ version: string;
10029
+ spec?: string | undefined;
10030
+ schema?: string | undefined;
10031
+ id?: string | undefined;
10032
+ config?: Record<string, unknown> | undefined;
10033
+ }, {
10034
+ version: string;
10035
+ spec?: string | undefined;
10036
+ schema?: string | undefined;
10037
+ id?: string | undefined;
10038
+ config?: Record<string, unknown> | undefined;
10039
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>, "many">>>;
10040
+ }, "strip", z.ZodTypeAny, {
10041
+ version: string;
10042
+ services?: Record<string, ({
10043
+ version: string;
10044
+ spec?: string | undefined;
10045
+ schema?: string | undefined;
10046
+ id?: string | undefined;
10047
+ config?: Record<string, unknown> | undefined;
10048
+ } & {
10049
+ transport: "rest" | "mcp" | "a2a" | "embedded";
10050
+ endpoint?: string | undefined;
10051
+ })[]> | undefined;
10052
+ capabilities?: Record<string, ({
10053
+ version: string;
10054
+ spec?: string | undefined;
10055
+ schema?: string | undefined;
10056
+ id?: string | undefined;
10057
+ config?: Record<string, unknown> | undefined;
10058
+ } & {
10059
+ extends?: string | undefined;
10060
+ })[]> | undefined;
10061
+ payment_handlers?: Record<string, ({
10062
+ version: string;
10063
+ spec?: string | undefined;
10064
+ schema?: string | undefined;
10065
+ id?: string | undefined;
10066
+ config?: Record<string, unknown> | undefined;
10067
+ } & Record<string, unknown>)[]> | undefined;
10068
+ }, {
10069
+ version: string;
10070
+ services?: Record<string, ({
10071
+ version: string;
10072
+ spec?: string | undefined;
10073
+ schema?: string | undefined;
10074
+ id?: string | undefined;
10075
+ config?: Record<string, unknown> | undefined;
10076
+ } & {
10077
+ transport: "rest" | "mcp" | "a2a" | "embedded";
10078
+ endpoint?: string | undefined;
10079
+ })[]> | undefined;
10080
+ capabilities?: Record<string, ({
10081
+ version: string;
10082
+ spec?: string | undefined;
10083
+ schema?: string | undefined;
10084
+ id?: string | undefined;
10085
+ config?: Record<string, unknown> | undefined;
10086
+ } & {
10087
+ extends?: string | undefined;
10088
+ })[]> | undefined;
10089
+ payment_handlers?: Record<string, ({
10090
+ version: string;
10091
+ spec?: string | undefined;
10092
+ schema?: string | undefined;
10093
+ id?: string | undefined;
10094
+ config?: Record<string, unknown> | undefined;
10095
+ } & Record<string, unknown>)[]> | undefined;
10096
+ }>, z.ZodObject<{
10097
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
10098
+ version: z.ZodString;
10099
+ spec: z.ZodOptional<z.ZodString>;
10100
+ schema: z.ZodOptional<z.ZodString>;
10101
+ id: z.ZodOptional<z.ZodString>;
10102
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10103
+ }, "strip", z.ZodTypeAny, {
10104
+ version: string;
10105
+ spec?: string | undefined;
10106
+ schema?: string | undefined;
10107
+ id?: string | undefined;
10108
+ config?: Record<string, unknown> | undefined;
10109
+ }, {
10110
+ version: string;
10111
+ spec?: string | undefined;
10112
+ schema?: string | undefined;
10113
+ id?: string | undefined;
10114
+ config?: Record<string, unknown> | undefined;
10115
+ }>, z.ZodObject<{
10116
+ extends: z.ZodOptional<z.ZodString>;
10117
+ }, "strip", z.ZodTypeAny, {
10118
+ extends?: string | undefined;
10119
+ }, {
10120
+ extends?: string | undefined;
10121
+ }>>, "many">>>;
10122
+ }, "strip", z.ZodTypeAny, {
10123
+ capabilities?: Record<string, ({
10124
+ version: string;
10125
+ spec?: string | undefined;
10126
+ schema?: string | undefined;
10127
+ id?: string | undefined;
10128
+ config?: Record<string, unknown> | undefined;
10129
+ } & {
10130
+ extends?: string | undefined;
10131
+ })[]> | undefined;
10132
+ }, {
10133
+ capabilities?: Record<string, ({
10134
+ version: string;
10135
+ spec?: string | undefined;
10136
+ schema?: string | undefined;
10137
+ id?: string | undefined;
10138
+ config?: Record<string, unknown> | undefined;
10139
+ } & {
10140
+ extends?: string | undefined;
10141
+ })[]> | undefined;
10142
+ }>>;
10143
+ id: z.ZodString;
10144
+ checkout_id: z.ZodString;
10145
+ permalink_url: z.ZodString;
10146
+ line_items: z.ZodArray<z.ZodObject<{
10147
+ id: z.ZodString;
10148
+ item: z.ZodObject<{
10149
+ id: z.ZodString;
10150
+ title: z.ZodString;
10151
+ price: z.ZodNumber;
10152
+ image_url: z.ZodOptional<z.ZodString>;
10153
+ }, "strip", z.ZodTypeAny, {
10154
+ id: string;
10155
+ title: string;
10156
+ price: number;
10157
+ image_url?: string | undefined;
10158
+ }, {
10159
+ id: string;
10160
+ title: string;
10161
+ price: number;
10162
+ image_url?: string | undefined;
10163
+ }>;
10164
+ quantity: z.ZodObject<{
10165
+ total: z.ZodNumber;
10166
+ fulfilled: z.ZodNumber;
10167
+ }, "strip", z.ZodTypeAny, {
10168
+ total: number;
10169
+ fulfilled: number;
10170
+ }, {
10171
+ total: number;
10172
+ fulfilled: number;
10173
+ }>;
10174
+ totals: z.ZodArray<z.ZodObject<{
10175
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
10176
+ display_text: z.ZodOptional<z.ZodString>;
10177
+ amount: z.ZodNumber;
10178
+ }, "strip", z.ZodTypeAny, {
10179
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10180
+ amount: number;
10181
+ display_text?: string | undefined;
10182
+ }, {
10183
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10184
+ amount: number;
10185
+ display_text?: string | undefined;
10186
+ }>, "many">;
10187
+ status: z.ZodEnum<["processing", "partial", "fulfilled"]>;
10188
+ parent_id: z.ZodOptional<z.ZodString>;
10189
+ }, "strip", z.ZodTypeAny, {
10190
+ id: string;
10191
+ status: "fulfilled" | "processing" | "partial";
10192
+ item: {
10193
+ id: string;
10194
+ title: string;
10195
+ price: number;
10196
+ image_url?: string | undefined;
10197
+ };
10198
+ quantity: {
10199
+ total: number;
10200
+ fulfilled: number;
10201
+ };
10202
+ totals: {
10203
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10204
+ amount: number;
10205
+ display_text?: string | undefined;
10206
+ }[];
10207
+ parent_id?: string | undefined;
10208
+ }, {
10209
+ id: string;
10210
+ status: "fulfilled" | "processing" | "partial";
10211
+ item: {
10212
+ id: string;
10213
+ title: string;
10214
+ price: number;
10215
+ image_url?: string | undefined;
10216
+ };
10217
+ quantity: {
10218
+ total: number;
10219
+ fulfilled: number;
10220
+ };
10221
+ totals: {
10222
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10223
+ amount: number;
10224
+ display_text?: string | undefined;
10225
+ }[];
10226
+ parent_id?: string | undefined;
10227
+ }>, "many">;
10228
+ fulfillment: z.ZodObject<{
10229
+ expectations: z.ZodOptional<z.ZodArray<z.ZodObject<{
10230
+ id: z.ZodString;
10231
+ line_items: z.ZodArray<z.ZodObject<{
10232
+ id: z.ZodString;
10233
+ quantity: z.ZodNumber;
10234
+ }, "strip", z.ZodTypeAny, {
10235
+ id: string;
10236
+ quantity: number;
10237
+ }, {
10238
+ id: string;
10239
+ quantity: number;
10240
+ }>, "many">;
10241
+ method_type: z.ZodEnum<["shipping", "pickup", "digital"]>;
10242
+ destination: z.ZodObject<{
10243
+ extended_address: z.ZodOptional<z.ZodString>;
10244
+ street_address: z.ZodOptional<z.ZodString>;
10245
+ address_locality: z.ZodOptional<z.ZodString>;
10246
+ address_region: z.ZodOptional<z.ZodString>;
10247
+ address_country: z.ZodOptional<z.ZodString>;
10248
+ postal_code: z.ZodOptional<z.ZodString>;
10249
+ first_name: z.ZodOptional<z.ZodString>;
10250
+ last_name: z.ZodOptional<z.ZodString>;
10251
+ phone_number: z.ZodOptional<z.ZodString>;
10252
+ }, "strip", z.ZodTypeAny, {
10253
+ first_name?: string | undefined;
10254
+ last_name?: string | undefined;
10255
+ phone_number?: string | undefined;
10256
+ address_country?: string | undefined;
10257
+ address_region?: string | undefined;
10258
+ postal_code?: string | undefined;
10259
+ extended_address?: string | undefined;
10260
+ street_address?: string | undefined;
10261
+ address_locality?: string | undefined;
10262
+ }, {
10263
+ first_name?: string | undefined;
10264
+ last_name?: string | undefined;
10265
+ phone_number?: string | undefined;
10266
+ address_country?: string | undefined;
10267
+ address_region?: string | undefined;
10268
+ postal_code?: string | undefined;
10269
+ extended_address?: string | undefined;
10270
+ street_address?: string | undefined;
10271
+ address_locality?: string | undefined;
10272
+ }>;
10273
+ description: z.ZodOptional<z.ZodString>;
10274
+ fulfillable_on: z.ZodOptional<z.ZodString>;
10275
+ }, "strip", z.ZodTypeAny, {
10276
+ id: string;
10277
+ line_items: {
10278
+ id: string;
10279
+ quantity: number;
10280
+ }[];
10281
+ method_type: "shipping" | "pickup" | "digital";
10282
+ destination: {
10283
+ first_name?: string | undefined;
10284
+ last_name?: string | undefined;
10285
+ phone_number?: string | undefined;
10286
+ address_country?: string | undefined;
10287
+ address_region?: string | undefined;
10288
+ postal_code?: string | undefined;
10289
+ extended_address?: string | undefined;
10290
+ street_address?: string | undefined;
10291
+ address_locality?: string | undefined;
10292
+ };
10293
+ description?: string | undefined;
10294
+ fulfillable_on?: string | undefined;
10295
+ }, {
10296
+ id: string;
10297
+ line_items: {
10298
+ id: string;
10299
+ quantity: number;
10300
+ }[];
10301
+ method_type: "shipping" | "pickup" | "digital";
10302
+ destination: {
10303
+ first_name?: string | undefined;
10304
+ last_name?: string | undefined;
10305
+ phone_number?: string | undefined;
10306
+ address_country?: string | undefined;
10307
+ address_region?: string | undefined;
10308
+ postal_code?: string | undefined;
10309
+ extended_address?: string | undefined;
10310
+ street_address?: string | undefined;
10311
+ address_locality?: string | undefined;
10312
+ };
10313
+ description?: string | undefined;
10314
+ fulfillable_on?: string | undefined;
10315
+ }>, "many">>;
10316
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
10317
+ id: z.ZodString;
10318
+ occurred_at: z.ZodString;
10319
+ type: z.ZodString;
10320
+ line_items: z.ZodArray<z.ZodObject<{
10321
+ id: z.ZodString;
10322
+ quantity: z.ZodNumber;
10323
+ }, "strip", z.ZodTypeAny, {
10324
+ id: string;
10325
+ quantity: number;
10326
+ }, {
10327
+ id: string;
10328
+ quantity: number;
10329
+ }>, "many">;
10330
+ tracking_number: z.ZodOptional<z.ZodString>;
10331
+ tracking_url: z.ZodOptional<z.ZodString>;
10332
+ carrier: z.ZodOptional<z.ZodString>;
10333
+ description: z.ZodOptional<z.ZodString>;
10334
+ }, "strip", z.ZodTypeAny, {
10335
+ id: string;
10336
+ type: string;
10337
+ line_items: {
10338
+ id: string;
10339
+ quantity: number;
10340
+ }[];
10341
+ occurred_at: string;
10342
+ description?: string | undefined;
10343
+ carrier?: string | undefined;
10344
+ tracking_number?: string | undefined;
10345
+ tracking_url?: string | undefined;
10346
+ }, {
10347
+ id: string;
10348
+ type: string;
10349
+ line_items: {
10350
+ id: string;
10351
+ quantity: number;
10352
+ }[];
10353
+ occurred_at: string;
10354
+ description?: string | undefined;
10355
+ carrier?: string | undefined;
10356
+ tracking_number?: string | undefined;
10357
+ tracking_url?: string | undefined;
10358
+ }>, "many">>;
10359
+ }, "strip", z.ZodTypeAny, {
10360
+ expectations?: {
10361
+ id: string;
10362
+ line_items: {
10363
+ id: string;
10364
+ quantity: number;
10365
+ }[];
10366
+ method_type: "shipping" | "pickup" | "digital";
10367
+ destination: {
10368
+ first_name?: string | undefined;
10369
+ last_name?: string | undefined;
10370
+ phone_number?: string | undefined;
10371
+ address_country?: string | undefined;
10372
+ address_region?: string | undefined;
10373
+ postal_code?: string | undefined;
10374
+ extended_address?: string | undefined;
10375
+ street_address?: string | undefined;
10376
+ address_locality?: string | undefined;
10377
+ };
10378
+ description?: string | undefined;
10379
+ fulfillable_on?: string | undefined;
10380
+ }[] | undefined;
10381
+ events?: {
10382
+ id: string;
10383
+ type: string;
10384
+ line_items: {
10385
+ id: string;
10386
+ quantity: number;
10387
+ }[];
10388
+ occurred_at: string;
10389
+ description?: string | undefined;
10390
+ carrier?: string | undefined;
10391
+ tracking_number?: string | undefined;
10392
+ tracking_url?: string | undefined;
10393
+ }[] | undefined;
10394
+ }, {
10395
+ expectations?: {
10396
+ id: string;
10397
+ line_items: {
10398
+ id: string;
10399
+ quantity: number;
10400
+ }[];
10401
+ method_type: "shipping" | "pickup" | "digital";
10402
+ destination: {
10403
+ first_name?: string | undefined;
10404
+ last_name?: string | undefined;
10405
+ phone_number?: string | undefined;
10406
+ address_country?: string | undefined;
10407
+ address_region?: string | undefined;
10408
+ postal_code?: string | undefined;
10409
+ extended_address?: string | undefined;
10410
+ street_address?: string | undefined;
10411
+ address_locality?: string | undefined;
10412
+ };
10413
+ description?: string | undefined;
10414
+ fulfillable_on?: string | undefined;
10415
+ }[] | undefined;
10416
+ events?: {
10417
+ id: string;
10418
+ type: string;
10419
+ line_items: {
10420
+ id: string;
10421
+ quantity: number;
10422
+ }[];
10423
+ occurred_at: string;
10424
+ description?: string | undefined;
10425
+ carrier?: string | undefined;
10426
+ tracking_number?: string | undefined;
10427
+ tracking_url?: string | undefined;
10428
+ }[] | undefined;
10429
+ }>;
10430
+ adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
10431
+ id: z.ZodString;
10432
+ type: z.ZodString;
10433
+ occurred_at: z.ZodString;
10434
+ status: z.ZodEnum<["pending", "completed", "failed"]>;
10435
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
10436
+ id: z.ZodString;
10437
+ quantity: z.ZodNumber;
10438
+ }, "strip", z.ZodTypeAny, {
10439
+ id: string;
10440
+ quantity: number;
10441
+ }, {
10442
+ id: string;
10443
+ quantity: number;
10444
+ }>, "many">>;
10445
+ amount: z.ZodOptional<z.ZodNumber>;
10446
+ description: z.ZodOptional<z.ZodString>;
10447
+ }, "strip", z.ZodTypeAny, {
10448
+ id: string;
10449
+ type: string;
10450
+ status: "completed" | "pending" | "failed";
10451
+ occurred_at: string;
10452
+ amount?: number | undefined;
10453
+ line_items?: {
10454
+ id: string;
10455
+ quantity: number;
10456
+ }[] | undefined;
10457
+ description?: string | undefined;
10458
+ }, {
10459
+ id: string;
10460
+ type: string;
10461
+ status: "completed" | "pending" | "failed";
10462
+ occurred_at: string;
10463
+ amount?: number | undefined;
10464
+ line_items?: {
10465
+ id: string;
10466
+ quantity: number;
10467
+ }[] | undefined;
10468
+ description?: string | undefined;
10469
+ }>, "many">>;
10470
+ totals: z.ZodArray<z.ZodObject<{
10471
+ type: z.ZodEnum<["items_discount", "subtotal", "discount", "fulfillment", "tax", "fee", "total"]>;
10472
+ display_text: z.ZodOptional<z.ZodString>;
10473
+ amount: z.ZodNumber;
10474
+ }, "strip", z.ZodTypeAny, {
10475
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10476
+ amount: number;
10477
+ display_text?: string | undefined;
10478
+ }, {
10479
+ type: "items_discount" | "subtotal" | "discount" | "fulfillment" | "tax" | "fee" | "total";
10480
+ amount: number;
10481
+ display_text?: string | undefined;
10482
+ }>, "many">;
10483
+ }, z.ZodTypeAny, "passthrough">>;
10484
+ }, z.ZodTypeAny, "passthrough">>;
5782
10485
  declare const JWKSchema: z.ZodObject<{
5783
10486
  kty: z.ZodString;
5784
10487
  kid: z.ZodOptional<z.ZodString>;
@@ -5806,5 +10509,5 @@ declare const JWKSchema: z.ZodObject<{
5806
10509
  }, z.ZodTypeAny, "passthrough">>; //#endregion
5807
10510
 
5808
10511
  //# sourceMappingURL=schemas.d.ts.map
5809
- export { AccountInfoSchema, AdapterOptions, AdjustmentSchema, AgentTool, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, AuthorizationParams, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsent, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential, CardCredentialSchema, CardPaymentInstrumentSchema, CheckoutCapability, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutExtensions, CheckoutResponseSchema, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutSession, CheckoutSessionSchema, CheckoutSessionStatus, CheckoutUpdateRequestSchema, CompleteCheckoutPayload, CompleteCheckoutRequestSchema, ConnectedClient, ContentType, ContextSchema, CreateCheckoutPayload, CreateCheckoutRequestSchema, DEFAULT_UCP_VERSION, DiscountAllocationSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ExpectationSchema, ExtendedPaymentCredentialSchema, FulfillmentAvailableMethodSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, IdentityLinkingCapability, ItemResponseSchema, ItemSchema, JWK, JWKSchema, JsonSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdateRequestSchema, LinkSchema, LocalizationContext, MerchantFulfillmentConfigSchema, MessageErrorSchema, MessageInfoSchema, MessageSchema, MessageSeverity, MessageType, MessageWarningSchema, OAuthServerMetadata, OrderCapability, OrderConfirmationSchema, OrderLineItemSchema, OrderUpdateSchema, PaymentCredential, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerInstance, PaymentHandlerMap, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrument, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformConfigSchema, PlatformFulfillmentConfigSchema, PostalAddress, PostalAddressSchema, RetailLocationSchema, ServiceBaseSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, TokenCredential, TokenCredentialSchema, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, TotalResponseSchema, TotalSchema, UCPClient, UCPClientConfig, UCPError, UCPEscalationError, UCPIdempotencyConflictError, UCPMessage, UCPOAuthError, UCPProfile, UCPProfileSchema, UCPSpecOrder, OrderSchema as UCPSpecOrderSchema, UCP_CAPABILITIES, UcpBaseSchema, UcpBusinessSchema, UcpEntitySchema, UcpPlatformSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpReverseDomainNameSchema, UcpVersionSchema, UpdateCheckoutPayload, UpdateCheckoutRequestSchema, WebhookEvent, WebhookVerifier, connect, createWebhookVerifier, getAgentTools, verifyRequestSignature };
10512
+ export { AccountInfoSchema, AdapterOptions, AdjustmentSchema, AgentTool, Ap2MandateAp2WithCheckoutMandateSchema, Ap2MandateAp2WithMerchantAuthorizationSchema, Ap2MandateCheckoutMandateSchema, Ap2MandateErrorCodeSchema, Ap2MandateMerchantAuthorizationSchema, AuthorizationParams, BindingSchema, BusinessFulfillmentConfigSchema, BuyerConsent, BuyerConsentBuyerSchema, BuyerConsentConsentSchema, BuyerSchema, CapabilityBaseSchema, CapabilityBusinessSchema, CapabilityPlatformSchema, CapabilityResponseSchema, CardCredential, CardCredentialSchema, CardPaymentInstrumentSchema, CheckoutCapability, CheckoutCompleteRequestSchema, CheckoutCreateRequestSchema, CheckoutExtensions, CheckoutResponseSchema, CheckoutResponseStatusSchema, CheckoutSchema, CheckoutSession, CheckoutSessionSchema, CheckoutSessionStatus, CheckoutUpdateRequestSchema, CompleteCheckoutPayload, CompleteCheckoutRequestSchema, ConnectedClient, ContentType, ContextSchema, CreateCheckoutPayload, CreateCheckoutRequestSchema, DEFAULT_UCP_VERSION, DiscountAllocationSchema, DiscountAppliedDiscountSchema, DiscountDiscountsObjectSchema, EmbeddedConfigSchema, ExpectationSchema, ExtendedPaymentCredentialSchema, FulfillmentAvailableMethodSchema, FulfillmentDestinationSchema, FulfillmentEventSchema, FulfillmentExtensionFulfillmentAvailableMethodSchema, FulfillmentExtensionFulfillmentGroupSchema, FulfillmentExtensionFulfillmentMethodSchema, FulfillmentExtensionFulfillmentOptionSchema, FulfillmentExtensionFulfillmentSchema, FulfillmentGroupSchema, FulfillmentGroupUpdateRequestSchema, FulfillmentMethodCreateRequestSchema, FulfillmentMethodResponseSchema, FulfillmentMethodSchema, FulfillmentMethodUpdateRequestSchema, FulfillmentOptionSchema, FulfillmentResponseSchema, FulfillmentSchema, IdentityLinkingCapability, ItemResponseSchema, ItemSchema, JWK, JWKSchema, JsonSchema, LineItemResponseSchema, LineItemSchema, LineItemUpdateRequestSchema, LinkSchema, LocalizationContext, MerchantFulfillmentConfigSchema, MessageErrorSchema, MessageInfoSchema, MessageSchema, MessageSeverity, MessageType, MessageWarningSchema, OAuthServerMetadata, OrderCapability, OrderConfirmationSchema, OrderLineItemSchema, OrderUpdateSchema, PaymentCredential, PaymentCredentialSchema, PaymentHandlerBaseSchema, PaymentHandlerBusinessSchema, PaymentHandlerInstance, PaymentHandlerMap, PaymentHandlerPlatformSchema, PaymentHandlerResponseSchema, PaymentIdentitySchema, PaymentInstrument, PaymentInstrumentResponseSchema, PaymentInstrumentSchema, PaymentResponseSchema, PaymentSchema, PlatformConfigSchema, PlatformFulfillmentConfigSchema, PostalAddress, PostalAddressSchema, RetailLocationSchema, ServiceBaseSchema, ServiceBusinessSchema, ServicePlatformSchema, ServiceResponseSchema, ShippingDestinationSchema, TokenCredential, TokenCredentialSchema, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, ToolErrorResult, TotalResponseSchema, TotalSchema, UCPClient, UCPClientConfig, UCPError, UCPEscalationError, UCPIdempotencyConflictError, UCPMessage, UCPOAuthError, UCPProfile, UCPProfileSchema, UCPSpecOrder, OrderSchema as UCPSpecOrderSchema, UCP_CAPABILITIES, UcpBaseSchema, UcpBusinessSchema, UcpEntitySchema, UcpPlatformSchema, UcpResponseCheckoutSchema, UcpResponseOrderSchema, UcpReverseDomainNameSchema, UcpVersionSchema, UpdateCheckoutPayload, UpdateCheckoutRequestSchema, WebhookEvent, WebhookEventSchema, WebhookVerifier, connect, createWebhookVerifier, getAgentTools, parseWebhookEvent, verifyRequestSignature };
5810
10513
  //# sourceMappingURL=index.d.cts.map