@modainteract/moda-interact-shared 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -0
- package/dist/ai-response-delay.d.ts +26 -0
- package/dist/ai-response-delay.js +26 -0
- package/dist/ai-response-delay.js.map +1 -0
- package/dist/{chunk-H7AUKACO.js → chunk-HR7T3UEW.js} +231 -19
- package/dist/chunk-HR7T3UEW.js.map +1 -0
- package/dist/{chunk-PE2JHOJX.js → chunk-QG2M5FDO.js} +27 -10
- package/dist/chunk-QG2M5FDO.js.map +1 -0
- package/dist/commerce/index.d.ts +35 -10
- package/dist/commerce/index.js +41 -2
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/model/node.d.ts +2 -2
- package/dist/commerce/model/node.js +1 -1
- package/dist/commerce/runner/index.d.ts +4 -4
- package/dist/commerce/runner/index.js +56 -12
- package/dist/commerce/runner/index.js.map +1 -1
- package/dist/index.js +26 -26
- package/dist/{response-CAw8y5nS.d.ts → response-rqk1DJFJ.d.ts} +442 -26
- package/dist/{types-C0bsVczG.d.ts → types-BYjEnygI.d.ts} +1 -1
- package/package.json +7 -2
- package/dist/chunk-H7AUKACO.js.map +0 -1
- package/dist/chunk-PE2JHOJX.js.map +0 -1
|
@@ -36,29 +36,121 @@ declare function matchesSubset(schema: SubsetSchema, value: unknown): boolean;
|
|
|
36
36
|
declare function compileSubset(schema: SubsetSchema, mode: "input" | "details"): z.ZodCustom<Record<string, Json>, Record<string, Json>>;
|
|
37
37
|
|
|
38
38
|
declare const ToolNameSchema: z.ZodString;
|
|
39
|
-
declare const
|
|
39
|
+
declare const PublishedGrantedToolSchema: z.ZodObject<{
|
|
40
40
|
toolId: z.ZodString;
|
|
41
41
|
toolRevisionId: z.ZodString;
|
|
42
42
|
toolName: z.ZodString;
|
|
43
43
|
definitionVersion: z.ZodString;
|
|
44
44
|
capabilityKeys: z.ZodArray<z.ZodString>;
|
|
45
45
|
}, z.core.$strict>;
|
|
46
|
-
declare const
|
|
46
|
+
declare const PublishedToolDescriptorSchema: z.ZodObject<{
|
|
47
|
+
toolId: z.ZodString;
|
|
48
|
+
toolRevisionId: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
definitionVersion: z.ZodString;
|
|
51
|
+
description: z.ZodString;
|
|
52
|
+
inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
declare const CommerceBuiltInToolNameSchema: z.ZodEnum<{
|
|
55
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
56
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
57
|
+
}>;
|
|
58
|
+
declare const CommerceBuiltInToolGrantSchema: z.ZodObject<{
|
|
59
|
+
kind: z.ZodEnum<{
|
|
60
|
+
BUILT_IN: "BUILT_IN";
|
|
61
|
+
}>;
|
|
62
|
+
toolName: z.ZodEnum<{
|
|
63
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
64
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
65
|
+
}>;
|
|
66
|
+
definitionVersion: z.ZodEnum<{
|
|
67
|
+
"1.0.0": "1.0.0";
|
|
68
|
+
}>;
|
|
69
|
+
contractHash: z.ZodString;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
declare const CommerceBuiltInToolDescriptorSchema: z.ZodObject<{
|
|
72
|
+
kind: z.ZodEnum<{
|
|
73
|
+
BUILT_IN: "BUILT_IN";
|
|
74
|
+
}>;
|
|
75
|
+
name: z.ZodEnum<{
|
|
76
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
77
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
78
|
+
}>;
|
|
79
|
+
definitionVersion: z.ZodEnum<{
|
|
80
|
+
"1.0.0": "1.0.0";
|
|
81
|
+
}>;
|
|
82
|
+
contractHash: z.ZodString;
|
|
83
|
+
description: z.ZodString;
|
|
84
|
+
inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
type PublishedGrantedTool = z.infer<typeof PublishedGrantedToolSchema>;
|
|
87
|
+
type PublishedToolDescriptor = z.infer<typeof PublishedToolDescriptorSchema>;
|
|
88
|
+
type CommerceBuiltInToolGrant = z.infer<typeof CommerceBuiltInToolGrantSchema>;
|
|
89
|
+
type CommerceBuiltInToolDescriptor = z.infer<typeof CommerceBuiltInToolDescriptorSchema>;
|
|
90
|
+
declare const GrantedToolSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
91
|
toolId: z.ZodString;
|
|
48
92
|
toolRevisionId: z.ZodString;
|
|
49
93
|
toolName: z.ZodString;
|
|
50
94
|
definitionVersion: z.ZodString;
|
|
51
95
|
capabilityKeys: z.ZodArray<z.ZodString>;
|
|
52
|
-
}, z.core.$strict
|
|
53
|
-
|
|
96
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
97
|
+
kind: z.ZodEnum<{
|
|
98
|
+
BUILT_IN: "BUILT_IN";
|
|
99
|
+
}>;
|
|
100
|
+
toolName: z.ZodEnum<{
|
|
101
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
102
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
103
|
+
}>;
|
|
104
|
+
definitionVersion: z.ZodEnum<{
|
|
105
|
+
"1.0.0": "1.0.0";
|
|
106
|
+
}>;
|
|
107
|
+
contractHash: z.ZodString;
|
|
108
|
+
}, z.core.$strict>]>;
|
|
109
|
+
declare const ToolDescriptorSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
54
110
|
toolId: z.ZodString;
|
|
55
111
|
toolRevisionId: z.ZodString;
|
|
56
112
|
name: z.ZodString;
|
|
57
113
|
definitionVersion: z.ZodString;
|
|
58
114
|
description: z.ZodString;
|
|
59
115
|
inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
|
|
60
|
-
}, z.core.$strict
|
|
61
|
-
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
kind: z.ZodEnum<{
|
|
118
|
+
BUILT_IN: "BUILT_IN";
|
|
119
|
+
}>;
|
|
120
|
+
name: z.ZodEnum<{
|
|
121
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
122
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
123
|
+
}>;
|
|
124
|
+
definitionVersion: z.ZodEnum<{
|
|
125
|
+
"1.0.0": "1.0.0";
|
|
126
|
+
}>;
|
|
127
|
+
contractHash: z.ZodString;
|
|
128
|
+
description: z.ZodString;
|
|
129
|
+
inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
|
|
130
|
+
}, z.core.$strict>]>;
|
|
131
|
+
declare const GrantedToolsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
132
|
+
toolId: z.ZodString;
|
|
133
|
+
toolRevisionId: z.ZodString;
|
|
134
|
+
toolName: z.ZodString;
|
|
135
|
+
definitionVersion: z.ZodString;
|
|
136
|
+
capabilityKeys: z.ZodArray<z.ZodString>;
|
|
137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
+
kind: z.ZodEnum<{
|
|
139
|
+
BUILT_IN: "BUILT_IN";
|
|
140
|
+
}>;
|
|
141
|
+
toolName: z.ZodEnum<{
|
|
142
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
143
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
144
|
+
}>;
|
|
145
|
+
definitionVersion: z.ZodEnum<{
|
|
146
|
+
"1.0.0": "1.0.0";
|
|
147
|
+
}>;
|
|
148
|
+
contractHash: z.ZodString;
|
|
149
|
+
}, z.core.$strict>]>>;
|
|
150
|
+
declare const isBuiltInTool: <T extends GrantedTool | ToolDescriptor>(value: T) => value is Extract<T, {
|
|
151
|
+
kind: "BUILT_IN";
|
|
152
|
+
}>;
|
|
153
|
+
declare const POLICY_OPERATIONS: readonly ["taxonomy.resolveCategories", "products.search", "products.get", "shipping.getInformation", "recovery.getBasket", "shopify.searchProducts", "discounts.getOptions", "discounts.evaluate", "products.findQualifying", "products.findSimilar"];
|
|
62
154
|
declare const ExternalHttpExecutionSchema: z.ZodObject<{
|
|
63
155
|
kind: z.ZodLiteral<"EXTERNAL_HTTP">;
|
|
64
156
|
executorVersion: z.ZodLiteral<"1.0.0">;
|
|
@@ -141,6 +233,10 @@ declare const CommerceExecutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
141
233
|
}, z.core.$strict>, z.ZodObject<{
|
|
142
234
|
kind: z.ZodLiteral<"POLICY_OPERATION">;
|
|
143
235
|
operation: z.ZodEnum<{
|
|
236
|
+
"taxonomy.resolveCategories": "taxonomy.resolveCategories";
|
|
237
|
+
"products.search": "products.search";
|
|
238
|
+
"products.get": "products.get";
|
|
239
|
+
"shipping.getInformation": "shipping.getInformation";
|
|
144
240
|
"recovery.getBasket": "recovery.getBasket";
|
|
145
241
|
"shopify.searchProducts": "shopify.searchProducts";
|
|
146
242
|
"discounts.getOptions": "discounts.getOptions";
|
|
@@ -253,6 +349,10 @@ declare const CommerceToolDefinitionSchema: z.ZodObject<{
|
|
|
253
349
|
}, z.core.$strict>, z.ZodObject<{
|
|
254
350
|
kind: z.ZodLiteral<"POLICY_OPERATION">;
|
|
255
351
|
operation: z.ZodEnum<{
|
|
352
|
+
"taxonomy.resolveCategories": "taxonomy.resolveCategories";
|
|
353
|
+
"products.search": "products.search";
|
|
354
|
+
"products.get": "products.get";
|
|
355
|
+
"shipping.getInformation": "shipping.getInformation";
|
|
256
356
|
"recovery.getBasket": "recovery.getBasket";
|
|
257
357
|
"shopify.searchProducts": "shopify.searchProducts";
|
|
258
358
|
"discounts.getOptions": "discounts.getOptions";
|
|
@@ -433,7 +533,7 @@ declare function validateDefinitionForPublication(raw: unknown, compiler: Commer
|
|
|
433
533
|
resultPath: string;
|
|
434
534
|
} | {
|
|
435
535
|
kind: "POLICY_OPERATION";
|
|
436
|
-
operation: "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
536
|
+
operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
437
537
|
operationVersion: "1.0.0";
|
|
438
538
|
arguments: Record<string, {
|
|
439
539
|
input: string;
|
|
@@ -532,7 +632,7 @@ declare const toolHashInput: (definition: CommerceToolDefinition) => {
|
|
|
532
632
|
resultPath: string;
|
|
533
633
|
} | {
|
|
534
634
|
kind: "POLICY_OPERATION";
|
|
535
|
-
operation: "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
635
|
+
operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
536
636
|
operationVersion: "1.0.0";
|
|
537
637
|
arguments: Record<string, {
|
|
538
638
|
input: string;
|
|
@@ -571,7 +671,7 @@ declare const CommerceToolRevisionIdentitySchema: z.ZodObject<{
|
|
|
571
671
|
contentHash: z.ZodString;
|
|
572
672
|
}, z.core.$strict>;
|
|
573
673
|
declare const POLICY_OPERATION_DESCRIPTORS: {
|
|
574
|
-
operation: "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
674
|
+
operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
|
|
575
675
|
operationVersion: "1.0.0";
|
|
576
676
|
}[];
|
|
577
677
|
|
|
@@ -590,13 +690,25 @@ declare const CommerceConversationGrantSchema: z.ZodObject<{
|
|
|
590
690
|
initialInboundVersion: z.ZodNumber;
|
|
591
691
|
releaseId: z.ZodString;
|
|
592
692
|
selectedCapabilityKeys: z.ZodArray<z.ZodString>;
|
|
593
|
-
grantedTools: z.ZodArray<z.ZodObject<{
|
|
693
|
+
grantedTools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
594
694
|
toolId: z.ZodString;
|
|
595
695
|
toolRevisionId: z.ZodString;
|
|
596
696
|
toolName: z.ZodString;
|
|
597
697
|
definitionVersion: z.ZodString;
|
|
598
698
|
capabilityKeys: z.ZodArray<z.ZodString>;
|
|
599
|
-
}, z.core.$strict
|
|
699
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
700
|
+
kind: z.ZodEnum<{
|
|
701
|
+
BUILT_IN: "BUILT_IN";
|
|
702
|
+
}>;
|
|
703
|
+
toolName: z.ZodEnum<{
|
|
704
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
705
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
706
|
+
}>;
|
|
707
|
+
definitionVersion: z.ZodEnum<{
|
|
708
|
+
"1.0.0": "1.0.0";
|
|
709
|
+
}>;
|
|
710
|
+
contractHash: z.ZodString;
|
|
711
|
+
}, z.core.$strict>]>>;
|
|
600
712
|
runnerVersion: z.ZodString;
|
|
601
713
|
createdAt: z.ZodISODateTime;
|
|
602
714
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -625,13 +737,40 @@ declare const CommerceManifestSchema: z.ZodObject<{
|
|
|
625
737
|
behaviourPrompt: z.ZodString;
|
|
626
738
|
}, z.core.$strict>>;
|
|
627
739
|
selectedCapabilityKeys: z.ZodArray<z.ZodString>;
|
|
628
|
-
|
|
740
|
+
builtInTools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
741
|
+
kind: z.ZodEnum<{
|
|
742
|
+
BUILT_IN: "BUILT_IN";
|
|
743
|
+
}>;
|
|
744
|
+
name: z.ZodEnum<{
|
|
745
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
746
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
747
|
+
}>;
|
|
748
|
+
definitionVersion: z.ZodEnum<{
|
|
749
|
+
"1.0.0": "1.0.0";
|
|
750
|
+
}>;
|
|
751
|
+
contractHash: z.ZodString;
|
|
752
|
+
description: z.ZodString;
|
|
753
|
+
inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
|
|
754
|
+
}, z.core.$strict>>>;
|
|
755
|
+
grantedTools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
629
756
|
toolId: z.ZodString;
|
|
630
757
|
toolRevisionId: z.ZodString;
|
|
631
758
|
toolName: z.ZodString;
|
|
632
759
|
definitionVersion: z.ZodString;
|
|
633
760
|
capabilityKeys: z.ZodArray<z.ZodString>;
|
|
634
|
-
}, z.core.$strict
|
|
761
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
762
|
+
kind: z.ZodEnum<{
|
|
763
|
+
BUILT_IN: "BUILT_IN";
|
|
764
|
+
}>;
|
|
765
|
+
toolName: z.ZodEnum<{
|
|
766
|
+
commerce_get_discount_options: "commerce_get_discount_options";
|
|
767
|
+
commerce_get_discount_details: "commerce_get_discount_details";
|
|
768
|
+
}>;
|
|
769
|
+
definitionVersion: z.ZodEnum<{
|
|
770
|
+
"1.0.0": "1.0.0";
|
|
771
|
+
}>;
|
|
772
|
+
contractHash: z.ZodString;
|
|
773
|
+
}, z.core.$strict>]>>;
|
|
635
774
|
responseContract: z.ZodObject<{
|
|
636
775
|
version: z.ZodLiteral<"response.v1">;
|
|
637
776
|
instructions: z.ZodString;
|
|
@@ -748,8 +887,8 @@ declare const CommerceOfferSchema: z.ZodObject<{
|
|
|
748
887
|
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
749
888
|
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
750
889
|
support: z.ZodEnum<{
|
|
751
|
-
SUPPORTED: "SUPPORTED";
|
|
752
890
|
UNSUPPORTED: "UNSUPPORTED";
|
|
891
|
+
SUPPORTED: "SUPPORTED";
|
|
753
892
|
UNKNOWN: "UNKNOWN";
|
|
754
893
|
}>;
|
|
755
894
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
@@ -856,8 +995,8 @@ declare const CommerceDiscountDetailsSchema: z.ZodObject<{
|
|
|
856
995
|
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
857
996
|
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
858
997
|
support: z.ZodEnum<{
|
|
859
|
-
SUPPORTED: "SUPPORTED";
|
|
860
998
|
UNSUPPORTED: "UNSUPPORTED";
|
|
999
|
+
SUPPORTED: "SUPPORTED";
|
|
861
1000
|
UNKNOWN: "UNKNOWN";
|
|
862
1001
|
}>;
|
|
863
1002
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
@@ -1073,11 +1212,11 @@ declare const CommerceAlternativeSchema: z.ZodObject<{
|
|
|
1073
1212
|
declare const CommerceErrorCodeSchema: z.ZodEnum<{
|
|
1074
1213
|
DEADLINE: "DEADLINE";
|
|
1075
1214
|
THROTTLED: "THROTTLED";
|
|
1215
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1076
1216
|
INVALID_INPUT: "INVALID_INPUT";
|
|
1077
1217
|
DENIED: "DENIED";
|
|
1078
1218
|
STALE_TURN: "STALE_TURN";
|
|
1079
1219
|
NOT_FOUND: "NOT_FOUND";
|
|
1080
|
-
UNAVAILABLE: "UNAVAILABLE";
|
|
1081
1220
|
INCOMPATIBLE_VERSION: "INCOMPATIBLE_VERSION";
|
|
1082
1221
|
}>;
|
|
1083
1222
|
declare function commerceToolResultSchema<T extends z.ZodType>(data: T): z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1091,11 +1230,11 @@ declare function commerceToolResultSchema<T extends z.ZodType>(data: T): z.ZodUn
|
|
|
1091
1230
|
code: z.ZodEnum<{
|
|
1092
1231
|
DEADLINE: "DEADLINE";
|
|
1093
1232
|
THROTTLED: "THROTTLED";
|
|
1233
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1094
1234
|
INVALID_INPUT: "INVALID_INPUT";
|
|
1095
1235
|
DENIED: "DENIED";
|
|
1096
1236
|
STALE_TURN: "STALE_TURN";
|
|
1097
1237
|
NOT_FOUND: "NOT_FOUND";
|
|
1098
|
-
UNAVAILABLE: "UNAVAILABLE";
|
|
1099
1238
|
INCOMPATIBLE_VERSION: "INCOMPATIBLE_VERSION";
|
|
1100
1239
|
}>;
|
|
1101
1240
|
retryable: z.ZodBoolean;
|
|
@@ -1112,21 +1251,199 @@ declare const CommerceToolResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1112
1251
|
code: z.ZodEnum<{
|
|
1113
1252
|
DEADLINE: "DEADLINE";
|
|
1114
1253
|
THROTTLED: "THROTTLED";
|
|
1254
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1115
1255
|
INVALID_INPUT: "INVALID_INPUT";
|
|
1116
1256
|
DENIED: "DENIED";
|
|
1117
1257
|
STALE_TURN: "STALE_TURN";
|
|
1118
1258
|
NOT_FOUND: "NOT_FOUND";
|
|
1119
|
-
UNAVAILABLE: "UNAVAILABLE";
|
|
1120
1259
|
INCOMPATIBLE_VERSION: "INCOMPATIBLE_VERSION";
|
|
1121
1260
|
}>;
|
|
1122
1261
|
retryable: z.ZodBoolean;
|
|
1123
1262
|
renderedText: z.ZodOptional<z.ZodString>;
|
|
1124
1263
|
}, z.core.$strict>]>;
|
|
1125
1264
|
type CommerceToolResult = z.infer<typeof CommerceToolResultSchema>;
|
|
1265
|
+
declare const CommerceCategoryCandidateSchema: z.ZodObject<{
|
|
1266
|
+
categoryId: z.ZodString;
|
|
1267
|
+
name: z.ZodString;
|
|
1268
|
+
fullName: z.ZodString;
|
|
1269
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
1270
|
+
level: z.ZodNumber;
|
|
1271
|
+
ancestorIds: z.ZodArray<z.ZodString>;
|
|
1272
|
+
distance: z.ZodNumber;
|
|
1273
|
+
}, z.core.$strict>;
|
|
1274
|
+
type CommerceCategoryCandidate = z.infer<typeof CommerceCategoryCandidateSchema>;
|
|
1275
|
+
declare const CommerceCategoryResolutionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1276
|
+
outcome: z.ZodEnum<{
|
|
1277
|
+
CANDIDATES: "CANDIDATES";
|
|
1278
|
+
NO_CANDIDATES: "NO_CANDIDATES";
|
|
1279
|
+
}>;
|
|
1280
|
+
generationId: z.ZodString;
|
|
1281
|
+
source: z.ZodEnum<{
|
|
1282
|
+
SHOPIFY_STANDARD_PRODUCT_TAXONOMY: "SHOPIFY_STANDARD_PRODUCT_TAXONOMY";
|
|
1283
|
+
}>;
|
|
1284
|
+
taxonomyVersion: z.ZodString;
|
|
1285
|
+
languageTag: z.ZodString;
|
|
1286
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
1287
|
+
categoryId: z.ZodString;
|
|
1288
|
+
name: z.ZodString;
|
|
1289
|
+
fullName: z.ZodString;
|
|
1290
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
1291
|
+
level: z.ZodNumber;
|
|
1292
|
+
ancestorIds: z.ZodArray<z.ZodString>;
|
|
1293
|
+
distance: z.ZodNumber;
|
|
1294
|
+
}, z.core.$strict>>;
|
|
1295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1296
|
+
outcome: z.ZodEnum<{
|
|
1297
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1298
|
+
}>;
|
|
1299
|
+
reasonCode: z.ZodEnum<{
|
|
1300
|
+
NOT_READY: "NOT_READY";
|
|
1301
|
+
TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
|
|
1302
|
+
}>;
|
|
1303
|
+
}, z.core.$strict>]>;
|
|
1304
|
+
type CommerceCategoryResolution = z.infer<typeof CommerceCategoryResolutionSchema>;
|
|
1305
|
+
declare const CommerceOptionalLookupUnavailableSchema: z.ZodObject<{
|
|
1306
|
+
outcome: z.ZodEnum<{
|
|
1307
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1308
|
+
}>;
|
|
1309
|
+
reasonCode: z.ZodEnum<{
|
|
1310
|
+
TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
|
|
1311
|
+
}>;
|
|
1312
|
+
}, z.core.$strict>;
|
|
1313
|
+
type CommerceOptionalLookupUnavailable = z.infer<typeof CommerceOptionalLookupUnavailableSchema>;
|
|
1314
|
+
declare const CommerceConversationToolContextSchema: z.ZodObject<{
|
|
1315
|
+
purpose: z.ZodEnum<{
|
|
1316
|
+
CONVERSATION: "CONVERSATION";
|
|
1317
|
+
}>;
|
|
1318
|
+
conversationId: z.ZodString;
|
|
1319
|
+
inboundVersion: z.ZodNumber;
|
|
1320
|
+
grantId: z.ZodNullable<z.ZodString>;
|
|
1321
|
+
}, z.core.$strict>;
|
|
1322
|
+
type CommerceConversationToolContext = z.infer<typeof CommerceConversationToolContextSchema>;
|
|
1323
|
+
declare const CommerceProductRecommendationSelectionSchema: z.ZodObject<{
|
|
1324
|
+
productRecommendationVersion: z.ZodOptional<z.ZodEnum<{
|
|
1325
|
+
1: "1";
|
|
1326
|
+
}>>;
|
|
1327
|
+
productRecommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1328
|
+
scope: z.ZodEnum<{
|
|
1329
|
+
PRODUCT_ONLY: "PRODUCT_ONLY";
|
|
1330
|
+
ADD_TO_BASKET: "ADD_TO_BASKET";
|
|
1331
|
+
REPLACE_BASKET_LINE: "REPLACE_BASKET_LINE";
|
|
1332
|
+
}>;
|
|
1333
|
+
basketLineId: z.ZodNullable<z.ZodString>;
|
|
1334
|
+
productId: z.ZodString;
|
|
1335
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
quantity: z.ZodNumber;
|
|
1337
|
+
promotionKind: z.ZodEnum<{
|
|
1338
|
+
NONE: "NONE";
|
|
1339
|
+
NATIVE_SALE: "NATIVE_SALE";
|
|
1340
|
+
DISCOUNT: "DISCOUNT";
|
|
1341
|
+
}>;
|
|
1342
|
+
offerIds: z.ZodArray<z.ZodString>;
|
|
1343
|
+
}, z.core.$strict>>>;
|
|
1344
|
+
}, z.core.$strict>;
|
|
1345
|
+
type CommerceProductRecommendationSelection = z.infer<typeof CommerceProductRecommendationSelectionSchema>;
|
|
1346
|
+
declare const CommerceResponseDispositionSchema: z.ZodEnum<{
|
|
1347
|
+
STANDARD: "STANDARD";
|
|
1348
|
+
OUT_OF_SCOPE_REDIRECT: "OUT_OF_SCOPE_REDIRECT";
|
|
1349
|
+
SHIPPING_INFORMATION_UNVERIFIED: "SHIPPING_INFORMATION_UNVERIFIED";
|
|
1350
|
+
}>;
|
|
1351
|
+
type CommerceResponseDisposition = z.infer<typeof CommerceResponseDispositionSchema>;
|
|
1352
|
+
declare const CommerceAnswerPresentationSelectionSchema: z.ZodObject<{
|
|
1353
|
+
responseDisposition: z.ZodOptional<z.ZodEnum<{
|
|
1354
|
+
STANDARD: "STANDARD";
|
|
1355
|
+
OUT_OF_SCOPE_REDIRECT: "OUT_OF_SCOPE_REDIRECT";
|
|
1356
|
+
SHIPPING_INFORMATION_UNVERIFIED: "SHIPPING_INFORMATION_UNVERIFIED";
|
|
1357
|
+
}>>;
|
|
1358
|
+
shippingInformationSelection: z.ZodOptional<z.ZodObject<{
|
|
1359
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1360
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1361
|
+
}, z.core.$strict>>;
|
|
1362
|
+
}, z.core.$strict>;
|
|
1363
|
+
type CommerceAnswerPresentationSelection = z.infer<typeof CommerceAnswerPresentationSelectionSchema>;
|
|
1364
|
+
declare const CommerceShippingInformationInputSchema: z.ZodObject<{
|
|
1365
|
+
productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1366
|
+
variantId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1367
|
+
}, z.core.$strict>;
|
|
1368
|
+
type CommerceShippingInformationInput = z.infer<typeof CommerceShippingInformationInputSchema>;
|
|
1369
|
+
declare const CommerceShippingInformationSchema: z.ZodObject<{
|
|
1370
|
+
provider: z.ZodEnum<{
|
|
1371
|
+
SHOPIFY: "SHOPIFY";
|
|
1372
|
+
WOOCOMMERCE: "WOOCOMMERCE";
|
|
1373
|
+
}>;
|
|
1374
|
+
observedAt: z.ZodISODateTime;
|
|
1375
|
+
product: z.ZodObject<{
|
|
1376
|
+
status: z.ZodEnum<{
|
|
1377
|
+
NOT_REQUESTED: "NOT_REQUESTED";
|
|
1378
|
+
VARIANT_REQUIRED: "VARIANT_REQUIRED";
|
|
1379
|
+
AVAILABLE: "AVAILABLE";
|
|
1380
|
+
}>;
|
|
1381
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
requiresShipping: z.ZodNullable<z.ZodBoolean>;
|
|
1384
|
+
virtual: z.ZodNullable<z.ZodBoolean>;
|
|
1385
|
+
weight: z.ZodNullable<z.ZodObject<{
|
|
1386
|
+
value: z.ZodNumber;
|
|
1387
|
+
unit: z.ZodNullable<z.ZodEnum<{
|
|
1388
|
+
GRAMS: "GRAMS";
|
|
1389
|
+
KILOGRAMS: "KILOGRAMS";
|
|
1390
|
+
OUNCES: "OUNCES";
|
|
1391
|
+
POUNDS: "POUNDS";
|
|
1392
|
+
}>>;
|
|
1393
|
+
}, z.core.$strict>>;
|
|
1394
|
+
dimensions: z.ZodNullable<z.ZodObject<{
|
|
1395
|
+
length: z.ZodNullable<z.ZodNumber>;
|
|
1396
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
1397
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
1398
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
1399
|
+
}, z.core.$strict>>;
|
|
1400
|
+
shippingClassId: z.ZodNullable<z.ZodString>;
|
|
1401
|
+
shippingClassSlug: z.ZodNullable<z.ZodString>;
|
|
1402
|
+
}, z.core.$strict>;
|
|
1403
|
+
policy: z.ZodObject<{
|
|
1404
|
+
status: z.ZodEnum<{
|
|
1405
|
+
AVAILABLE: "AVAILABLE";
|
|
1406
|
+
NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
1407
|
+
SCOPE_NOT_GRANTED: "SCOPE_NOT_GRANTED";
|
|
1408
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
1409
|
+
}>;
|
|
1410
|
+
trust: z.ZodEnum<{
|
|
1411
|
+
UNTRUSTED_REFERENCE: "UNTRUSTED_REFERENCE";
|
|
1412
|
+
}>;
|
|
1413
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1414
|
+
bodyStatus: z.ZodEnum<{
|
|
1415
|
+
AVAILABLE: "AVAILABLE";
|
|
1416
|
+
EMPTY: "EMPTY";
|
|
1417
|
+
TOO_LARGE: "TOO_LARGE";
|
|
1418
|
+
NOT_AVAILABLE: "NOT_AVAILABLE";
|
|
1419
|
+
}>;
|
|
1420
|
+
bodyHtml: z.ZodNullable<z.ZodString>;
|
|
1421
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
1422
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1423
|
+
}, z.core.$strict>;
|
|
1424
|
+
}, z.core.$strict>;
|
|
1425
|
+
type CommerceShippingInformation = z.infer<typeof CommerceShippingInformationSchema>;
|
|
1126
1426
|
declare const CommerceToolInputs: {
|
|
1427
|
+
commerce_resolve_product_categories: z.ZodObject<{
|
|
1428
|
+
query: z.ZodString;
|
|
1429
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1430
|
+
}, z.core.$strict>;
|
|
1431
|
+
commerce_get_shipping_information: z.ZodObject<{
|
|
1432
|
+
productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1433
|
+
variantId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1434
|
+
}, z.core.$strict>;
|
|
1127
1435
|
commerce_get_basket: z.ZodObject<{}, z.core.$strict>;
|
|
1128
1436
|
commerce_search_products: z.ZodObject<{
|
|
1129
|
-
query: z.ZodString
|
|
1437
|
+
query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1438
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
1439
|
+
system: z.ZodEnum<{
|
|
1440
|
+
SHOPIFY_STANDARD_PRODUCT_TAXONOMY: "SHOPIFY_STANDARD_PRODUCT_TAXONOMY";
|
|
1441
|
+
WOOCOMMERCE_PRODUCT_CATEGORY: "WOOCOMMERCE_PRODUCT_CATEGORY";
|
|
1442
|
+
}>;
|
|
1443
|
+
id: z.ZodString;
|
|
1444
|
+
taxonomyVersion: z.ZodNullable<z.ZodString>;
|
|
1445
|
+
}, z.core.$strict>>;
|
|
1446
|
+
browse: z.ZodDefault<z.ZodBoolean>;
|
|
1130
1447
|
maximumPrice: z.ZodOptional<z.ZodString>;
|
|
1131
1448
|
availableOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1132
1449
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1170,6 +1487,91 @@ declare const CommerceToolInputs: {
|
|
|
1170
1487
|
}, z.core.$strict>;
|
|
1171
1488
|
};
|
|
1172
1489
|
declare const CommerceToolOutputs: {
|
|
1490
|
+
commerce_resolve_product_categories: z.ZodUnion<readonly [z.ZodObject<{
|
|
1491
|
+
outcome: z.ZodEnum<{
|
|
1492
|
+
CANDIDATES: "CANDIDATES";
|
|
1493
|
+
NO_CANDIDATES: "NO_CANDIDATES";
|
|
1494
|
+
}>;
|
|
1495
|
+
generationId: z.ZodString;
|
|
1496
|
+
source: z.ZodEnum<{
|
|
1497
|
+
SHOPIFY_STANDARD_PRODUCT_TAXONOMY: "SHOPIFY_STANDARD_PRODUCT_TAXONOMY";
|
|
1498
|
+
}>;
|
|
1499
|
+
taxonomyVersion: z.ZodString;
|
|
1500
|
+
languageTag: z.ZodString;
|
|
1501
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
1502
|
+
categoryId: z.ZodString;
|
|
1503
|
+
name: z.ZodString;
|
|
1504
|
+
fullName: z.ZodString;
|
|
1505
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
level: z.ZodNumber;
|
|
1507
|
+
ancestorIds: z.ZodArray<z.ZodString>;
|
|
1508
|
+
distance: z.ZodNumber;
|
|
1509
|
+
}, z.core.$strict>>;
|
|
1510
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1511
|
+
outcome: z.ZodEnum<{
|
|
1512
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1513
|
+
}>;
|
|
1514
|
+
reasonCode: z.ZodEnum<{
|
|
1515
|
+
NOT_READY: "NOT_READY";
|
|
1516
|
+
TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
|
|
1517
|
+
}>;
|
|
1518
|
+
}, z.core.$strict>]>;
|
|
1519
|
+
commerce_get_shipping_information: z.ZodObject<{
|
|
1520
|
+
provider: z.ZodEnum<{
|
|
1521
|
+
SHOPIFY: "SHOPIFY";
|
|
1522
|
+
WOOCOMMERCE: "WOOCOMMERCE";
|
|
1523
|
+
}>;
|
|
1524
|
+
observedAt: z.ZodISODateTime;
|
|
1525
|
+
product: z.ZodObject<{
|
|
1526
|
+
status: z.ZodEnum<{
|
|
1527
|
+
NOT_REQUESTED: "NOT_REQUESTED";
|
|
1528
|
+
VARIANT_REQUIRED: "VARIANT_REQUIRED";
|
|
1529
|
+
AVAILABLE: "AVAILABLE";
|
|
1530
|
+
}>;
|
|
1531
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1532
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1533
|
+
requiresShipping: z.ZodNullable<z.ZodBoolean>;
|
|
1534
|
+
virtual: z.ZodNullable<z.ZodBoolean>;
|
|
1535
|
+
weight: z.ZodNullable<z.ZodObject<{
|
|
1536
|
+
value: z.ZodNumber;
|
|
1537
|
+
unit: z.ZodNullable<z.ZodEnum<{
|
|
1538
|
+
GRAMS: "GRAMS";
|
|
1539
|
+
KILOGRAMS: "KILOGRAMS";
|
|
1540
|
+
OUNCES: "OUNCES";
|
|
1541
|
+
POUNDS: "POUNDS";
|
|
1542
|
+
}>>;
|
|
1543
|
+
}, z.core.$strict>>;
|
|
1544
|
+
dimensions: z.ZodNullable<z.ZodObject<{
|
|
1545
|
+
length: z.ZodNullable<z.ZodNumber>;
|
|
1546
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
1547
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
1548
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
1549
|
+
}, z.core.$strict>>;
|
|
1550
|
+
shippingClassId: z.ZodNullable<z.ZodString>;
|
|
1551
|
+
shippingClassSlug: z.ZodNullable<z.ZodString>;
|
|
1552
|
+
}, z.core.$strict>;
|
|
1553
|
+
policy: z.ZodObject<{
|
|
1554
|
+
status: z.ZodEnum<{
|
|
1555
|
+
AVAILABLE: "AVAILABLE";
|
|
1556
|
+
NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
1557
|
+
SCOPE_NOT_GRANTED: "SCOPE_NOT_GRANTED";
|
|
1558
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
1559
|
+
}>;
|
|
1560
|
+
trust: z.ZodEnum<{
|
|
1561
|
+
UNTRUSTED_REFERENCE: "UNTRUSTED_REFERENCE";
|
|
1562
|
+
}>;
|
|
1563
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1564
|
+
bodyStatus: z.ZodEnum<{
|
|
1565
|
+
AVAILABLE: "AVAILABLE";
|
|
1566
|
+
EMPTY: "EMPTY";
|
|
1567
|
+
TOO_LARGE: "TOO_LARGE";
|
|
1568
|
+
NOT_AVAILABLE: "NOT_AVAILABLE";
|
|
1569
|
+
}>;
|
|
1570
|
+
bodyHtml: z.ZodNullable<z.ZodString>;
|
|
1571
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
1572
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1573
|
+
}, z.core.$strict>;
|
|
1574
|
+
}, z.core.$strict>;
|
|
1173
1575
|
commerce_get_basket: z.ZodObject<{
|
|
1174
1576
|
basketId: z.ZodString;
|
|
1175
1577
|
source: z.ZodEnum<{
|
|
@@ -1236,7 +1638,14 @@ declare const CommerceToolOutputs: {
|
|
|
1236
1638
|
observedAt: z.ZodISODateTime;
|
|
1237
1639
|
}, z.core.$strict>>;
|
|
1238
1640
|
}, z.core.$strict>;
|
|
1239
|
-
commerce_get_discount_options: z.ZodObject<{
|
|
1641
|
+
commerce_get_discount_options: z.ZodUnion<readonly [z.ZodObject<{
|
|
1642
|
+
outcome: z.ZodEnum<{
|
|
1643
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1644
|
+
}>;
|
|
1645
|
+
reasonCode: z.ZodEnum<{
|
|
1646
|
+
TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
|
|
1647
|
+
}>;
|
|
1648
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1240
1649
|
mode: z.ZodEnum<{
|
|
1241
1650
|
NONE: "NONE";
|
|
1242
1651
|
FIXED: "FIXED";
|
|
@@ -1253,16 +1662,23 @@ declare const CommerceToolOutputs: {
|
|
|
1253
1662
|
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1254
1663
|
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1255
1664
|
support: z.ZodEnum<{
|
|
1256
|
-
SUPPORTED: "SUPPORTED";
|
|
1257
1665
|
UNSUPPORTED: "UNSUPPORTED";
|
|
1666
|
+
SUPPORTED: "SUPPORTED";
|
|
1258
1667
|
UNKNOWN: "UNKNOWN";
|
|
1259
1668
|
}>;
|
|
1260
1669
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
1261
1670
|
}, z.core.$strict>>;
|
|
1262
1671
|
truncated: z.ZodBoolean;
|
|
1263
1672
|
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1264
|
-
}, z.core.$strict>;
|
|
1265
|
-
commerce_get_discount_details: z.ZodObject<{
|
|
1673
|
+
}, z.core.$strict>]>;
|
|
1674
|
+
commerce_get_discount_details: z.ZodUnion<readonly [z.ZodObject<{
|
|
1675
|
+
outcome: z.ZodEnum<{
|
|
1676
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
1677
|
+
}>;
|
|
1678
|
+
reasonCode: z.ZodEnum<{
|
|
1679
|
+
TEMPORARY_UNAVAILABLE: "TEMPORARY_UNAVAILABLE";
|
|
1680
|
+
}>;
|
|
1681
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1266
1682
|
details: z.ZodNullable<z.ZodObject<{
|
|
1267
1683
|
offer: z.ZodObject<{
|
|
1268
1684
|
offerId: z.ZodString;
|
|
@@ -1275,8 +1691,8 @@ declare const CommerceToolOutputs: {
|
|
|
1275
1691
|
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1276
1692
|
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1277
1693
|
support: z.ZodEnum<{
|
|
1278
|
-
SUPPORTED: "SUPPORTED";
|
|
1279
1694
|
UNSUPPORTED: "UNSUPPORTED";
|
|
1695
|
+
SUPPORTED: "SUPPORTED";
|
|
1280
1696
|
UNKNOWN: "UNKNOWN";
|
|
1281
1697
|
}>;
|
|
1282
1698
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
@@ -1356,7 +1772,7 @@ declare const CommerceToolOutputs: {
|
|
|
1356
1772
|
}, z.core.$strict>;
|
|
1357
1773
|
providerDiscountId: z.ZodNullable<z.ZodString>;
|
|
1358
1774
|
}, z.core.$strict>>;
|
|
1359
|
-
}, z.core.$strict>;
|
|
1775
|
+
}, z.core.$strict>]>;
|
|
1360
1776
|
commerce_evaluate_discount: z.ZodObject<{
|
|
1361
1777
|
evidenceId: z.ZodString;
|
|
1362
1778
|
turn: z.ZodObject<{
|
|
@@ -1638,4 +2054,4 @@ declare function verifyResponseContract(definition: unknown, hash: string, diges
|
|
|
1638
2054
|
/** JSON Schema branches retain the immutable envelope; only ANSWER details vary. */
|
|
1639
2055
|
declare function finalResponseToolSchema(definition: CommerceResponseContract): Json;
|
|
1640
2056
|
|
|
1641
|
-
export { type
|
|
2057
|
+
export { type CommerceResponseContract as $, CommerceDiscountConditionFactsSchema as A, type CommerceDiscountDetails as B, type CommerceTurnIdentity as C, type Digest as D, CommerceDiscountDetailsSchema as E, CommerceErrorCodeSchema as F, type GrantedTool as G, type CommerceEvidence as H, CommerceEvidenceSchema as I, CommerceExecuteAssertionSchema as J, CommerceExecutionSchema as K, CommerceFinalResponseSchema as L, CommerceManifestSchema as M, CommerceOfferSchema as N, type CommerceOptionalLookupUnavailable as O, type PublishedToolDescriptor as P, CommerceOptionalLookupUnavailableSchema as Q, type CommerceProductRecommendationSelection as R, type SubsetSchema as S, type ToolDescriptor as T, CommerceProductRecommendationSelectionSchema as U, type CommerceProductSaleEvidence as V, CommerceProductSaleEvidenceSchema as W, CommerceProductSchema as X, CommerceProposalSchema as Y, CommerceReleaseIdentitySchema as Z, CommerceResolveAssertionSchema as _, type CommerceConversationGrant as a, CommerceResponseContractSchema as a0, type CommerceResponseDisposition as a1, CommerceResponseDispositionSchema as a2, type CommerceShippingInformation as a3, type CommerceShippingInformationInput as a4, CommerceShippingInformationInputSchema as a5, CommerceShippingInformationSchema as a6, CommerceToolDefinitionSchema as a7, type CommerceToolDraftDefinition as a8, CommerceToolDraftDefinitionSchema as a9, compileSubset as aA, definitionToMcpDescriptor as aB, finalResponseSchema as aC, finalResponseToolSchema as aD, isBuiltInTool as aE, jsonBytes as aF, mapToolArguments as aG, matchesSubset as aH, productBelongsToDomain as aI, responseContractCanonicalJson as aJ, safeName as aK, safePath as aL, toolHashInput as aM, validateDefinitionForPublication as aN, validateDefinitionVersion as aO, validateSubset as aP, verifyResponseContract as aQ, CommerceToolIdentitySchema as aa, CommerceToolInputs as ab, CommerceToolOutputs as ac, CommerceToolResultSchema as ad, CommerceToolRevisionIdentitySchema as ae, CommerceTurnIdentitySchema as af, DetailsSchemaSchema as ag, EMPTY_RESPONSE_CONTRACT as ah, type ExternalHttpExecution as ai, ExternalHttpExecutionSchema as aj, GrantedToolSchema as ak, GrantedToolsSchema as al, InputSchemaSchema as am, type Json as an, MONEY_PATTERN as ao, POLICY_OPERATIONS as ap, POLICY_OPERATION_DESCRIPTORS as aq, type PublishedGrantedTool as ar, PublishedGrantedToolSchema as as, PublishedToolDescriptorSchema as at, ReferralReasonSchema as au, ResponseTemplateSchema as av, ToolDescriptorSchema as aw, ToolNameSchema as ax, canonicalJson as ay, commerceToolResultSchema as az, type CommerceManifest as b, type CommerceToolResult as c, type CommerceFinalResponse as d, type CommerceBuiltInToolDescriptor as e, type CommerceToolDefinition as f, type CommerceBuiltInToolGrant as g, CommerceAlternativeSchema as h, type CommerceAnswerPresentationSelection as i, CommerceAnswerPresentationSelectionSchema as j, CommerceAssertionSchema as k, CommerceBasketSchema as l, CommerceBuiltInToolDescriptorSchema as m, CommerceBuiltInToolGrantSchema as n, CommerceBuiltInToolNameSchema as o, type CommerceCategoryCandidate as p, CommerceCategoryCandidateSchema as q, type CommerceCategoryResolution as r, CommerceCategoryResolutionSchema as s, CommerceConversationGrantSchema as t, type CommerceConversationToolContext as u, CommerceConversationToolContextSchema as v, type CommerceDefinitionCompiler as w, type CommerceDiscountCombinationFacts as x, CommerceDiscountCombinationFactsSchema as y, type CommerceDiscountConditionFacts as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CommerceTurnIdentity, a as CommerceConversationGrant, b as CommerceManifest, T as ToolDescriptor, G as GrantedTool, c as CommerceToolResult, D as Digest, d as CommerceFinalResponse } from './response-
|
|
1
|
+
import { C as CommerceTurnIdentity, a as CommerceConversationGrant, b as CommerceManifest, T as ToolDescriptor, G as GrantedTool, c as CommerceToolResult, D as Digest, d as CommerceFinalResponse } from './response-rqk1DJFJ.js';
|
|
2
2
|
import { S as StructuredLogger } from './types-B32wDMLO.js';
|
|
3
3
|
|
|
4
4
|
/** Finite, non-customer-facing failure taxonomy for Commerce hosts and logs. */
|