@modainteract/moda-interact-shared 5.4.0 → 5.6.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.
@@ -35,704 +35,32 @@ declare const DetailsSchemaSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
35
35
  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
- declare const ToolNameSchema: z.ZodString;
39
- declare const CommerceExecutionPurposeSchema: z.ZodLiteral<"INITIAL_RECOVERY_OUTREACH">;
40
- declare const CommercePurposeProfileSchema: z.ZodPipe<z.ZodObject<{
41
- purpose: z.ZodLiteral<"INITIAL_RECOVERY_OUTREACH">;
42
- featureId: z.ZodString;
43
- releaseId: z.ZodString;
44
- behaviourPrompt: z.ZodString;
45
- capabilities: z.ZodArray<z.ZodObject<{
46
- capabilityId: z.ZodString;
47
- toolId: z.ZodString;
48
- revisionId: z.ZodString;
49
- name: z.ZodString;
50
- position: z.ZodNumber;
51
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
52
- outputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
53
- }, z.core.$strict>>;
54
- }, z.core.$strict>, z.ZodTransform<{
55
- purpose: "INITIAL_RECOVERY_OUTREACH";
56
- featureId: string;
57
- releaseId: string;
58
- behaviourPrompt: string;
59
- capabilities: {
60
- capabilityId: string;
61
- toolId: string;
62
- revisionId: string;
63
- name: string;
64
- position: number;
65
- inputSchema: SubsetSchema;
66
- outputSchema: SubsetSchema;
67
- }[];
68
- }, {
69
- purpose: "INITIAL_RECOVERY_OUTREACH";
70
- featureId: string;
71
- releaseId: string;
72
- behaviourPrompt: string;
73
- capabilities: {
74
- capabilityId: string;
75
- toolId: string;
76
- revisionId: string;
77
- name: string;
78
- position: number;
79
- inputSchema: SubsetSchema;
80
- outputSchema: SubsetSchema;
81
- }[];
82
- }>>;
83
- /** New outreach callers must resolve a present validated snapshot; legacy conversation parsing remains optional. */
84
- declare function requireCommercePurposeProfile(raw: unknown): {
85
- purpose: "INITIAL_RECOVERY_OUTREACH";
86
- featureId: string;
87
- releaseId: string;
88
- behaviourPrompt: string;
89
- capabilities: {
90
- capabilityId: string;
91
- toolId: string;
92
- revisionId: string;
93
- name: string;
94
- position: number;
95
- inputSchema: SubsetSchema;
96
- outputSchema: SubsetSchema;
97
- }[];
98
- };
99
- type CommerceExecutionPurpose = z.infer<typeof CommerceExecutionPurposeSchema>;
100
- type CommercePurposeProfile = z.infer<typeof CommercePurposeProfileSchema>;
101
- declare const PublishedGrantedToolSchema: z.ZodObject<{
102
- toolId: z.ZodString;
103
- toolRevisionId: z.ZodString;
104
- toolName: z.ZodString;
105
- definitionVersion: z.ZodString;
106
- capabilityKeys: z.ZodArray<z.ZodString>;
107
- }, z.core.$strict>;
108
- declare const PublishedToolDescriptorSchema: z.ZodObject<{
109
- toolId: z.ZodString;
110
- toolRevisionId: z.ZodString;
111
- name: z.ZodString;
112
- definitionVersion: z.ZodString;
113
- description: z.ZodString;
114
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
115
- }, z.core.$strict>;
116
- declare const CommerceBuiltInToolNameSchema: z.ZodEnum<{
117
- commerce_get_discount_options: "commerce_get_discount_options";
118
- commerce_get_discount_details: "commerce_get_discount_details";
119
- }>;
120
- declare const CommerceBuiltInToolGrantSchema: z.ZodObject<{
121
- kind: z.ZodEnum<{
122
- BUILT_IN: "BUILT_IN";
123
- }>;
124
- toolName: z.ZodEnum<{
125
- commerce_get_discount_options: "commerce_get_discount_options";
126
- commerce_get_discount_details: "commerce_get_discount_details";
127
- }>;
128
- definitionVersion: z.ZodEnum<{
129
- "2.0.0": "2.0.0";
130
- }>;
131
- }, z.core.$strict>;
132
- declare const CommerceBuiltInToolDescriptorSchema: z.ZodObject<{
133
- kind: z.ZodEnum<{
134
- BUILT_IN: "BUILT_IN";
135
- }>;
136
- name: z.ZodEnum<{
137
- commerce_get_discount_options: "commerce_get_discount_options";
138
- commerce_get_discount_details: "commerce_get_discount_details";
139
- }>;
140
- definitionVersion: z.ZodEnum<{
141
- "2.0.0": "2.0.0";
142
- }>;
143
- description: z.ZodString;
144
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
145
- }, z.core.$strict>;
146
- type PublishedGrantedTool = z.infer<typeof PublishedGrantedToolSchema>;
147
- type PublishedToolDescriptor = z.infer<typeof PublishedToolDescriptorSchema>;
148
- type CommerceBuiltInToolGrant = z.infer<typeof CommerceBuiltInToolGrantSchema>;
149
- type CommerceBuiltInToolDescriptor = z.infer<typeof CommerceBuiltInToolDescriptorSchema>;
150
- declare const GrantedToolSchema: z.ZodUnion<readonly [z.ZodObject<{
151
- toolId: z.ZodString;
152
- toolRevisionId: z.ZodString;
153
- toolName: z.ZodString;
154
- definitionVersion: z.ZodString;
155
- capabilityKeys: z.ZodArray<z.ZodString>;
156
- }, z.core.$strict>, z.ZodObject<{
157
- kind: z.ZodEnum<{
158
- BUILT_IN: "BUILT_IN";
159
- }>;
160
- toolName: z.ZodEnum<{
161
- commerce_get_discount_options: "commerce_get_discount_options";
162
- commerce_get_discount_details: "commerce_get_discount_details";
163
- }>;
164
- definitionVersion: z.ZodEnum<{
165
- "2.0.0": "2.0.0";
166
- }>;
167
- }, z.core.$strict>]>;
168
- declare const ToolDescriptorSchema: z.ZodUnion<readonly [z.ZodObject<{
169
- toolId: z.ZodString;
170
- toolRevisionId: z.ZodString;
171
- name: z.ZodString;
172
- definitionVersion: z.ZodString;
173
- description: z.ZodString;
174
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
175
- }, z.core.$strict>, z.ZodObject<{
176
- kind: z.ZodEnum<{
177
- BUILT_IN: "BUILT_IN";
178
- }>;
179
- name: z.ZodEnum<{
180
- commerce_get_discount_options: "commerce_get_discount_options";
181
- commerce_get_discount_details: "commerce_get_discount_details";
182
- }>;
183
- definitionVersion: z.ZodEnum<{
184
- "2.0.0": "2.0.0";
185
- }>;
186
- description: z.ZodString;
187
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
188
- }, z.core.$strict>]>;
189
- declare const GrantedToolsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
190
- toolId: z.ZodString;
191
- toolRevisionId: z.ZodString;
192
- toolName: z.ZodString;
193
- definitionVersion: z.ZodString;
194
- capabilityKeys: z.ZodArray<z.ZodString>;
195
- }, z.core.$strict>, z.ZodObject<{
196
- kind: z.ZodEnum<{
197
- BUILT_IN: "BUILT_IN";
198
- }>;
199
- toolName: z.ZodEnum<{
200
- commerce_get_discount_options: "commerce_get_discount_options";
201
- commerce_get_discount_details: "commerce_get_discount_details";
202
- }>;
203
- definitionVersion: z.ZodEnum<{
204
- "2.0.0": "2.0.0";
205
- }>;
206
- }, z.core.$strict>]>>;
207
- declare const isBuiltInTool: <T extends GrantedTool | ToolDescriptor>(value: T) => value is Extract<T, {
208
- kind: "BUILT_IN";
209
- }>;
210
- declare const POLICY_OPERATIONS: readonly ["taxonomy.resolveCategories", "products.search", "products.get", "shipping.getInformation", "recovery.getBasket", "shopify.searchProducts", "discounts.getOptions", "discounts.getDetails", "discounts.evaluate", "products.findQualifying", "products.findSimilar"];
211
- declare const ExternalHttpExecutionSchema: z.ZodObject<{
212
- kind: z.ZodLiteral<"EXTERNAL_HTTP">;
213
- executorVersion: z.ZodLiteral<"1.0.0">;
214
- connectionRevisionId: z.ZodString;
215
- method: z.ZodLiteral<"GET">;
216
- path: z.ZodString;
217
- query: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
218
- input: z.ZodString;
219
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
220
- }, z.core.$strict>, z.ZodObject<{
221
- literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
222
- }, z.core.$strict>]>>;
223
- responseFormat: z.ZodObject<{
224
- mode: z.ZodEnum<{
225
- JSON: "JSON";
226
- TEXT: "TEXT";
227
- }>;
228
- mediaTypes: z.ZodArray<z.ZodString>;
229
- }, z.core.$strict>;
230
- resultPath: z.ZodString;
231
- responseProcessing: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
232
- kind: z.ZodLiteral<"OBJECT">;
233
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
234
- path: z.ZodString;
235
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
236
- }, z.core.$strict>>;
237
- }, z.core.$strict>, z.ZodObject<{
238
- kind: z.ZodLiteral<"LIST">;
239
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
240
- path: z.ZodString;
241
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
242
- }, z.core.$strict>>;
243
- filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
244
- path: z.ZodString;
245
- op: z.ZodEnum<{
246
- GT: "GT";
247
- LT: "LT";
248
- NE: "NE";
249
- EQ: "EQ";
250
- GTE: "GTE";
251
- LTE: "LTE";
252
- CONTAINS: "CONTAINS";
253
- STARTS_WITH: "STARTS_WITH";
254
- }>;
255
- value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>;
256
- }, z.core.$strict>, z.ZodObject<{
257
- path: z.ZodString;
258
- op: z.ZodLiteral<"IN">;
259
- values: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
260
- }, z.core.$strict>], "op">>;
261
- sort: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
262
- path: z.ZodString;
263
- direction: z.ZodEnum<{
264
- ASC: "ASC";
265
- DESC: "DESC";
266
- }>;
267
- }, z.core.$strict>]>;
268
- limit: z.ZodInt;
269
- }, z.core.$strict>]>, z.ZodObject<{
270
- kind: z.ZodLiteral<"JAVASCRIPT">;
271
- runtimeVersion: z.ZodLiteral<"quickjs-sync.v1">;
272
- source: z.ZodString;
273
- }, z.core.$strict>]>;
274
- resultSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
275
- }, z.core.$strict>;
276
- declare const CommerceExecutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
277
- kind: z.ZodLiteral<"SHOPIFY_STOREFRONT_QUERY">;
278
- executorVersion: z.ZodLiteral<"1.0.0">;
279
- apiVersion: z.ZodLiteral<"2026-07">;
280
- schemaHash: z.ZodString;
281
- document: z.ZodString;
282
- operationName: z.ZodString;
283
- variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
284
- input: z.ZodString;
285
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
286
- }, z.core.$strict>, z.ZodObject<{
287
- literal: z.ZodUnknown;
288
- }, z.core.$strict>]>>;
289
- resultPath: z.ZodString;
290
- }, z.core.$strict>, z.ZodObject<{
291
- kind: z.ZodLiteral<"POLICY_OPERATION">;
292
- operation: z.ZodEnum<{
293
- "taxonomy.resolveCategories": "taxonomy.resolveCategories";
294
- "products.search": "products.search";
295
- "products.get": "products.get";
296
- "shipping.getInformation": "shipping.getInformation";
297
- "recovery.getBasket": "recovery.getBasket";
298
- "shopify.searchProducts": "shopify.searchProducts";
299
- "discounts.getOptions": "discounts.getOptions";
300
- "discounts.getDetails": "discounts.getDetails";
301
- "discounts.evaluate": "discounts.evaluate";
302
- "products.findQualifying": "products.findQualifying";
303
- "products.findSimilar": "products.findSimilar";
304
- }>;
305
- operationVersion: z.ZodLiteral<"1.0.0">;
306
- arguments: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
307
- input: z.ZodString;
308
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
309
- }, z.core.$strict>, z.ZodObject<{
310
- literal: z.ZodUnknown;
311
- }, z.core.$strict>]>>;
312
- }, z.core.$strict>, z.ZodObject<{
313
- kind: z.ZodLiteral<"EXTERNAL_HTTP">;
314
- executorVersion: z.ZodLiteral<"1.0.0">;
315
- connectionRevisionId: z.ZodString;
316
- method: z.ZodLiteral<"GET">;
317
- path: z.ZodString;
318
- query: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
319
- input: z.ZodString;
320
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
321
- }, z.core.$strict>, z.ZodObject<{
322
- literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
323
- }, z.core.$strict>]>>;
324
- responseFormat: z.ZodObject<{
325
- mode: z.ZodEnum<{
326
- JSON: "JSON";
327
- TEXT: "TEXT";
328
- }>;
329
- mediaTypes: z.ZodArray<z.ZodString>;
330
- }, z.core.$strict>;
331
- resultPath: z.ZodString;
332
- responseProcessing: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
333
- kind: z.ZodLiteral<"OBJECT">;
334
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
335
- path: z.ZodString;
336
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
337
- }, z.core.$strict>>;
338
- }, z.core.$strict>, z.ZodObject<{
339
- kind: z.ZodLiteral<"LIST">;
340
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
341
- path: z.ZodString;
342
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
343
- }, z.core.$strict>>;
344
- filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
345
- path: z.ZodString;
346
- op: z.ZodEnum<{
347
- GT: "GT";
348
- LT: "LT";
349
- NE: "NE";
350
- EQ: "EQ";
351
- GTE: "GTE";
352
- LTE: "LTE";
353
- CONTAINS: "CONTAINS";
354
- STARTS_WITH: "STARTS_WITH";
355
- }>;
356
- value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>;
357
- }, z.core.$strict>, z.ZodObject<{
358
- path: z.ZodString;
359
- op: z.ZodLiteral<"IN">;
360
- values: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
361
- }, z.core.$strict>], "op">>;
362
- sort: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
363
- path: z.ZodString;
364
- direction: z.ZodEnum<{
365
- ASC: "ASC";
366
- DESC: "DESC";
367
- }>;
368
- }, z.core.$strict>]>;
369
- limit: z.ZodInt;
370
- }, z.core.$strict>]>, z.ZodObject<{
371
- kind: z.ZodLiteral<"JAVASCRIPT">;
372
- runtimeVersion: z.ZodLiteral<"quickjs-sync.v1">;
373
- source: z.ZodString;
374
- }, z.core.$strict>]>;
375
- resultSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
376
- }, z.core.$strict>], "kind">;
377
- type ExternalHttpExecution = Extract<z.infer<typeof CommerceExecutionSchema>, {
378
- kind: "EXTERNAL_HTTP";
379
- }>;
380
- declare const ResponseTemplateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
- kind: z.ZodLiteral<"text">;
382
- text: z.ZodString;
383
- unavailable: z.ZodString;
384
- }, z.core.$strict>, z.ZodObject<{
385
- kind: z.ZodLiteral<"items">;
386
- itemsPath: z.ZodString;
387
- item: z.ZodString;
388
- empty: z.ZodString;
389
- unavailable: z.ZodString;
390
- }, z.core.$strict>], "kind">;
391
- declare const CommerceToolDefinitionSchema: z.ZodObject<{
392
- inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
393
- execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
- kind: z.ZodLiteral<"SHOPIFY_STOREFRONT_QUERY">;
395
- executorVersion: z.ZodLiteral<"1.0.0">;
396
- apiVersion: z.ZodLiteral<"2026-07">;
397
- schemaHash: z.ZodString;
398
- document: z.ZodString;
399
- operationName: z.ZodString;
400
- variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
401
- input: z.ZodString;
402
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
403
- }, z.core.$strict>, z.ZodObject<{
404
- literal: z.ZodUnknown;
405
- }, z.core.$strict>]>>;
406
- resultPath: z.ZodString;
407
- }, z.core.$strict>, z.ZodObject<{
408
- kind: z.ZodLiteral<"POLICY_OPERATION">;
409
- operation: z.ZodEnum<{
410
- "taxonomy.resolveCategories": "taxonomy.resolveCategories";
411
- "products.search": "products.search";
412
- "products.get": "products.get";
413
- "shipping.getInformation": "shipping.getInformation";
414
- "recovery.getBasket": "recovery.getBasket";
415
- "shopify.searchProducts": "shopify.searchProducts";
416
- "discounts.getOptions": "discounts.getOptions";
417
- "discounts.getDetails": "discounts.getDetails";
418
- "discounts.evaluate": "discounts.evaluate";
419
- "products.findQualifying": "products.findQualifying";
420
- "products.findSimilar": "products.findSimilar";
421
- }>;
422
- operationVersion: z.ZodLiteral<"1.0.0">;
423
- arguments: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
424
- input: z.ZodString;
425
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
426
- }, z.core.$strict>, z.ZodObject<{
427
- literal: z.ZodUnknown;
428
- }, z.core.$strict>]>>;
429
- }, z.core.$strict>, z.ZodObject<{
430
- kind: z.ZodLiteral<"EXTERNAL_HTTP">;
431
- executorVersion: z.ZodLiteral<"1.0.0">;
432
- connectionRevisionId: z.ZodString;
433
- method: z.ZodLiteral<"GET">;
434
- path: z.ZodString;
435
- query: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
436
- input: z.ZodString;
437
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
438
- }, z.core.$strict>, z.ZodObject<{
439
- literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
440
- }, z.core.$strict>]>>;
441
- responseFormat: z.ZodObject<{
442
- mode: z.ZodEnum<{
443
- JSON: "JSON";
444
- TEXT: "TEXT";
445
- }>;
446
- mediaTypes: z.ZodArray<z.ZodString>;
447
- }, z.core.$strict>;
448
- resultPath: z.ZodString;
449
- responseProcessing: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
450
- kind: z.ZodLiteral<"OBJECT">;
451
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
452
- path: z.ZodString;
453
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
454
- }, z.core.$strict>>;
455
- }, z.core.$strict>, z.ZodObject<{
456
- kind: z.ZodLiteral<"LIST">;
457
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
458
- path: z.ZodString;
459
- omitIfMissing: z.ZodOptional<z.ZodLiteral<true>>;
460
- }, z.core.$strict>>;
461
- filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
462
- path: z.ZodString;
463
- op: z.ZodEnum<{
464
- GT: "GT";
465
- LT: "LT";
466
- NE: "NE";
467
- EQ: "EQ";
468
- GTE: "GTE";
469
- LTE: "LTE";
470
- CONTAINS: "CONTAINS";
471
- STARTS_WITH: "STARTS_WITH";
472
- }>;
473
- value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>;
474
- }, z.core.$strict>, z.ZodObject<{
475
- path: z.ZodString;
476
- op: z.ZodLiteral<"IN">;
477
- values: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
478
- }, z.core.$strict>], "op">>;
479
- sort: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
480
- path: z.ZodString;
481
- direction: z.ZodEnum<{
482
- ASC: "ASC";
483
- DESC: "DESC";
484
- }>;
485
- }, z.core.$strict>]>;
486
- limit: z.ZodInt;
487
- }, z.core.$strict>]>, z.ZodObject<{
488
- kind: z.ZodLiteral<"JAVASCRIPT">;
489
- runtimeVersion: z.ZodLiteral<"quickjs-sync.v1">;
490
- source: z.ZodString;
491
- }, z.core.$strict>]>;
492
- resultSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
493
- }, z.core.$strict>], "kind">;
494
- responseTemplate: z.ZodDiscriminatedUnion<[z.ZodObject<{
495
- kind: z.ZodLiteral<"text">;
496
- text: z.ZodString;
497
- unavailable: z.ZodString;
498
- }, z.core.$strict>, z.ZodObject<{
499
- kind: z.ZodLiteral<"items">;
500
- itemsPath: z.ZodString;
501
- item: z.ZodString;
502
- empty: z.ZodString;
503
- unavailable: z.ZodString;
504
- }, z.core.$strict>], "kind">;
505
- name: z.ZodString;
506
- definitionVersion: z.ZodString;
507
- description: z.ZodString;
508
- }, z.core.$strict>;
509
- declare const CommerceToolDraftDefinitionSchema: z.ZodObject<{
510
- inputSchema: z.ZodUnknown;
511
- execution: z.ZodUnknown;
512
- responseTemplate: z.ZodUnknown;
513
- name: z.ZodString;
514
- definitionVersion: z.ZodString;
515
- description: z.ZodString;
516
- }, z.core.$strict>;
517
- type CommerceToolDefinition = z.infer<typeof CommerceToolDefinitionSchema>;
518
- type CommerceToolDraftDefinition = z.infer<typeof CommerceToolDraftDefinitionSchema>;
519
- type GrantedTool = z.infer<typeof GrantedToolSchema>;
520
- type ToolDescriptor = z.infer<typeof ToolDescriptorSchema>;
521
- /** Commerce owns schema-backed GraphQL parsing, restrictions and output derivation. */
522
- interface CommerceDefinitionCompiler {
523
- compile(execution: CommerceToolDefinition["execution"], input: SubsetSchema): {
524
- outputSchema: SubsetSchema;
525
- validateMappedArguments: (mapping: CommerceToolDefinition["execution"]) => boolean;
526
- };
527
- }
528
- declare function validateDefinitionForPublication(raw: unknown, compiler: CommerceDefinitionCompiler): {
529
- inputSchema: SubsetSchema;
530
- execution: {
531
- kind: "EXTERNAL_HTTP";
532
- executorVersion: "1.0.0";
533
- connectionRevisionId: string;
534
- method: "GET";
535
- path: string;
536
- query: Record<string, {
537
- input: string;
538
- omitIfMissing?: true | undefined;
539
- } | {
540
- literal: string | number | boolean;
541
- }>;
542
- responseFormat: {
543
- mode: "JSON" | "TEXT";
544
- mediaTypes: string[];
545
- };
546
- resultPath: string;
547
- responseProcessing: {
548
- kind: "OBJECT";
549
- fields: Record<string, {
550
- path: string;
551
- omitIfMissing?: true | undefined;
552
- }>;
553
- } | {
554
- kind: "LIST";
555
- fields: Record<string, {
556
- path: string;
557
- omitIfMissing?: true | undefined;
558
- }>;
559
- filters: ({
560
- path: string;
561
- op: "GT" | "LT" | "NE" | "EQ" | "GTE" | "LTE" | "CONTAINS" | "STARTS_WITH";
562
- value: string | number | boolean | null;
563
- } | {
564
- path: string;
565
- op: "IN";
566
- values: (string | number | boolean | null)[];
567
- })[];
568
- sort: {
569
- path: string;
570
- direction: "ASC" | "DESC";
571
- } | null;
572
- limit: number;
573
- } | {
574
- kind: "JAVASCRIPT";
575
- runtimeVersion: "quickjs-sync.v1";
576
- source: string;
577
- };
578
- resultSchema: SubsetSchema;
579
- } | {
580
- kind: "SHOPIFY_STOREFRONT_QUERY";
581
- executorVersion: "1.0.0";
582
- apiVersion: "2026-07";
583
- schemaHash: string;
584
- document: string;
585
- operationName: string;
586
- variables: Record<string, {
587
- input: string;
588
- omitIfMissing?: true | undefined;
589
- } | {
590
- literal: unknown;
591
- }>;
592
- resultPath: string;
593
- } | {
594
- kind: "POLICY_OPERATION";
595
- operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.getDetails" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
596
- operationVersion: "1.0.0";
597
- arguments: Record<string, {
598
- input: string;
599
- omitIfMissing?: true | undefined;
600
- } | {
601
- literal: unknown;
602
- }>;
603
- };
604
- responseTemplate: {
605
- kind: "text";
606
- text: string;
607
- unavailable: string;
608
- } | {
609
- kind: "items";
610
- itemsPath: string;
611
- item: string;
612
- empty: string;
613
- unavailable: string;
614
- };
615
- name: string;
616
- definitionVersion: string;
617
- description: string;
618
- };
619
- declare function definitionToMcpDescriptor(definition: CommerceToolDefinition): {
620
- name: string;
621
- description: string;
622
- inputSchema: SubsetSchema;
623
- };
624
- declare function mapToolArguments(definition: CommerceToolDefinition, raw: unknown): Record<string, unknown>;
625
- declare const toolHashInput: (definition: CommerceToolDefinition) => {
626
- contractVersion: "commerce.v1";
627
- definition: {
628
- inputSchema: SubsetSchema;
629
- execution: {
630
- kind: "EXTERNAL_HTTP";
631
- executorVersion: "1.0.0";
632
- connectionRevisionId: string;
633
- method: "GET";
634
- path: string;
635
- query: Record<string, {
636
- input: string;
637
- omitIfMissing?: true | undefined;
638
- } | {
639
- literal: string | number | boolean;
640
- }>;
641
- responseFormat: {
642
- mode: "JSON" | "TEXT";
643
- mediaTypes: string[];
644
- };
645
- resultPath: string;
646
- responseProcessing: {
647
- kind: "OBJECT";
648
- fields: Record<string, {
649
- path: string;
650
- omitIfMissing?: true | undefined;
651
- }>;
652
- } | {
653
- kind: "LIST";
654
- fields: Record<string, {
655
- path: string;
656
- omitIfMissing?: true | undefined;
657
- }>;
658
- filters: ({
659
- path: string;
660
- op: "GT" | "LT" | "NE" | "EQ" | "GTE" | "LTE" | "CONTAINS" | "STARTS_WITH";
661
- value: string | number | boolean | null;
662
- } | {
663
- path: string;
664
- op: "IN";
665
- values: (string | number | boolean | null)[];
666
- })[];
667
- sort: {
668
- path: string;
669
- direction: "ASC" | "DESC";
670
- } | null;
671
- limit: number;
672
- } | {
673
- kind: "JAVASCRIPT";
674
- runtimeVersion: "quickjs-sync.v1";
675
- source: string;
676
- };
677
- resultSchema: SubsetSchema;
678
- } | {
679
- kind: "SHOPIFY_STOREFRONT_QUERY";
680
- executorVersion: "1.0.0";
681
- apiVersion: "2026-07";
682
- schemaHash: string;
683
- document: string;
684
- operationName: string;
685
- variables: Record<string, {
686
- input: string;
687
- omitIfMissing?: true | undefined;
688
- } | {
689
- literal: unknown;
690
- }>;
691
- resultPath: string;
692
- } | {
693
- kind: "POLICY_OPERATION";
694
- operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.getDetails" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
695
- operationVersion: "1.0.0";
696
- arguments: Record<string, {
697
- input: string;
698
- omitIfMissing?: true | undefined;
699
- } | {
700
- literal: unknown;
701
- }>;
702
- };
703
- responseTemplate: {
704
- kind: "text";
705
- text: string;
706
- unavailable: string;
707
- } | {
708
- kind: "items";
709
- itemsPath: string;
710
- item: string;
711
- empty: string;
712
- unavailable: string;
713
- };
714
- name: string;
715
- definitionVersion: string;
716
- description: string;
717
- };
38
+ /** Purpose outputs preserve registered wire shapes, with implicit finite runtime
39
+ * caps of 4096 string characters / 128 array members when omitted by descriptors.
40
+ * These caps and the 32 KiB total result budget always apply, including unions. */
41
+ type CommercePurposeOutputSchema = {
42
+ type?: string | [string, "null"];
43
+ anyOf?: CommercePurposeOutputSchema[];
44
+ description?: string;
45
+ properties?: Record<string, CommercePurposeOutputSchema>;
46
+ required?: string[];
47
+ additionalProperties?: false;
48
+ items?: CommercePurposeOutputSchema;
49
+ enum?: (string | number | boolean | null)[];
50
+ minLength?: number;
51
+ maxLength?: number;
52
+ minimum?: number;
53
+ maximum?: number;
54
+ minItems?: number;
55
+ maxItems?: number;
56
+ pattern?: string;
57
+ format?: "uri" | "date-time";
718
58
  };
719
- /** Publication adapters supply the actual highest published version from persistence. */
720
- declare function validateDefinitionVersion(proposed: string, highestPublished: string | null): boolean;
721
- declare const CommerceToolIdentitySchema: z.ZodObject<{
722
- id: z.ZodString;
723
- name: z.ZodString;
724
- enabled: z.ZodBoolean;
725
- }, z.core.$strict>;
726
- declare const CommerceToolRevisionIdentitySchema: z.ZodObject<{
727
- toolId: z.ZodString;
728
- toolRevisionId: z.ZodString;
729
- definitionVersion: z.ZodString;
730
- contentHash: z.ZodString;
731
- }, z.core.$strict>;
732
- declare const POLICY_OPERATION_DESCRIPTORS: {
733
- operation: "taxonomy.resolveCategories" | "products.search" | "products.get" | "shipping.getInformation" | "recovery.getBasket" | "shopify.searchProducts" | "discounts.getOptions" | "discounts.getDetails" | "discounts.evaluate" | "products.findQualifying" | "products.findSimilar";
734
- operationVersion: "1.0.0";
735
- }[];
59
+ declare function validateCommercePurposeOutputSchema(value: unknown): value is CommercePurposeOutputSchema;
60
+ declare const CommercePurposeOutputSchemaSchema: z.ZodCustom<CommercePurposeOutputSchema, CommercePurposeOutputSchema>;
61
+ /** One canonical consumer compiler: validates schema first; validates complete JSON
62
+ * result without projection, coercion or changing existing generic Details users. */
63
+ declare function compileCommercePurposeOutputSchema(raw: unknown): z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
736
64
 
737
65
  declare const CommerceTurnIdentitySchema: z.ZodObject<{
738
66
  contractVersion: z.ZodLiteral<"commerce.v1">;
@@ -761,7 +89,7 @@ declare const CommerceConversationGrantSchema: z.ZodObject<{
761
89
  name: z.ZodString;
762
90
  position: z.ZodNumber;
763
91
  inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
764
- outputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
92
+ outputSchema: z.ZodCustom<CommercePurposeOutputSchema, CommercePurposeOutputSchema>;
765
93
  }, z.core.$strict>>;
766
94
  }, z.core.$strict>, z.ZodTransform<{
767
95
  purpose: "INITIAL_RECOVERY_OUTREACH";
@@ -775,7 +103,7 @@ declare const CommerceConversationGrantSchema: z.ZodObject<{
775
103
  name: string;
776
104
  position: number;
777
105
  inputSchema: SubsetSchema;
778
- outputSchema: SubsetSchema;
106
+ outputSchema: CommercePurposeOutputSchema;
779
107
  }[];
780
108
  }, {
781
109
  purpose: "INITIAL_RECOVERY_OUTREACH";
@@ -789,7 +117,7 @@ declare const CommerceConversationGrantSchema: z.ZodObject<{
789
117
  name: string;
790
118
  position: number;
791
119
  inputSchema: SubsetSchema;
792
- outputSchema: SubsetSchema;
120
+ outputSchema: CommercePurposeOutputSchema;
793
121
  }[];
794
122
  }>>>;
795
123
  grantedTools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -864,7 +192,7 @@ declare const CommerceManifestSchema: z.ZodObject<{
864
192
  name: z.ZodString;
865
193
  position: z.ZodNumber;
866
194
  inputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
867
- outputSchema: z.ZodCustom<SubsetSchema, SubsetSchema>;
195
+ outputSchema: z.ZodCustom<CommercePurposeOutputSchema, CommercePurposeOutputSchema>;
868
196
  }, z.core.$strict>>;
869
197
  }, z.core.$strict>, z.ZodTransform<{
870
198
  purpose: "INITIAL_RECOVERY_OUTREACH";
@@ -878,7 +206,7 @@ declare const CommerceManifestSchema: z.ZodObject<{
878
206
  name: string;
879
207
  position: number;
880
208
  inputSchema: SubsetSchema;
881
- outputSchema: SubsetSchema;
209
+ outputSchema: CommercePurposeOutputSchema;
882
210
  }[];
883
211
  }, {
884
212
  purpose: "INITIAL_RECOVERY_OUTREACH";
@@ -892,7 +220,7 @@ declare const CommerceManifestSchema: z.ZodObject<{
892
220
  name: string;
893
221
  position: number;
894
222
  inputSchema: SubsetSchema;
895
- outputSchema: SubsetSchema;
223
+ outputSchema: CommercePurposeOutputSchema;
896
224
  }[];
897
225
  }>>>;
898
226
  grantedTools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -997,7 +325,52 @@ declare const CommerceProductSaleEvidenceSchema: z.ZodObject<{
997
325
  observedAt: z.ZodISODateTime;
998
326
  }, z.core.$strict>;
999
327
  type CommerceProductSaleEvidence = z.infer<typeof CommerceProductSaleEvidenceSchema>;
328
+ /** Provider facts are bounded by omission, never by truncating factual labels. */
329
+ declare function normalizeCommerceProductOptions(raw: unknown): {
330
+ status: "AVAILABLE" | "NOT_PROVIDED" | "PARTIAL";
331
+ items: Array<{
332
+ name: string;
333
+ values: string[];
334
+ usedForVariants: boolean | null;
335
+ }>;
336
+ };
337
+ declare const CommerceProductOptionsSchema: z.ZodPreprocess<z.ZodObject<{
338
+ status: z.ZodEnum<{
339
+ AVAILABLE: "AVAILABLE";
340
+ NOT_PROVIDED: "NOT_PROVIDED";
341
+ PARTIAL: "PARTIAL";
342
+ }>;
343
+ items: z.ZodArray<z.ZodObject<{
344
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
345
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
346
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
347
+ }, z.core.$strict>>;
348
+ }, z.core.$strict>>;
349
+ declare function normalizeCommerceProductSelectedOptions(raw: unknown): Array<{
350
+ name: string;
351
+ value: string;
352
+ }>;
353
+ declare const CommerceProductSelectedOptionsSchema: z.ZodPreprocess<z.ZodArray<z.ZodObject<{
354
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
355
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
356
+ }, z.core.$strict>>>;
1000
357
  declare const CommerceProductSchema: z.ZodObject<{
358
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
359
+ status: z.ZodEnum<{
360
+ AVAILABLE: "AVAILABLE";
361
+ NOT_PROVIDED: "NOT_PROVIDED";
362
+ PARTIAL: "PARTIAL";
363
+ }>;
364
+ items: z.ZodArray<z.ZodObject<{
365
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
366
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
367
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
368
+ }, z.core.$strict>>;
369
+ }, z.core.$strict>>>;
370
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
371
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
372
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
373
+ }, z.core.$strict>>>>;
1001
374
  productId: z.ZodString;
1002
375
  variantId: z.ZodNullable<z.ZodString>;
1003
376
  title: z.ZodString;
@@ -1018,6 +391,7 @@ declare const CommerceProductSchema: z.ZodObject<{
1018
391
  }, z.core.$strict>>>;
1019
392
  observedAt: z.ZodISODateTime;
1020
393
  }, z.core.$strict>;
394
+ type CommerceProduct = z.infer<typeof CommerceProductSchema>;
1021
395
  declare const CommerceOfferSchema: z.ZodObject<{
1022
396
  offerId: z.ZodString;
1023
397
  title: z.ZodString;
@@ -1057,9 +431,9 @@ declare const CommerceDiscountConditionFactsSchema: z.ZodObject<{
1057
431
  WOOCOMMERCE: "WOOCOMMERCE";
1058
432
  }>;
1059
433
  completeness: z.ZodEnum<{
434
+ PARTIAL: "PARTIAL";
1060
435
  UNKNOWN: "UNKNOWN";
1061
436
  COMPLETE: "COMPLETE";
1062
- PARTIAL: "PARTIAL";
1063
437
  }>;
1064
438
  observedAt: z.ZodString;
1065
439
  providerStatus: z.ZodString;
@@ -1149,9 +523,9 @@ declare const CommerceDiscountDetailsSchema: z.ZodObject<{
1149
523
  WOOCOMMERCE: "WOOCOMMERCE";
1150
524
  }>;
1151
525
  completeness: z.ZodEnum<{
526
+ PARTIAL: "PARTIAL";
1152
527
  UNKNOWN: "UNKNOWN";
1153
528
  COMPLETE: "COMPLETE";
1154
- PARTIAL: "PARTIAL";
1155
529
  }>;
1156
530
  observedAt: z.ZodString;
1157
531
  providerStatus: z.ZodString;
@@ -1268,6 +642,22 @@ declare const CommerceEvidenceSchema: z.ZodObject<{
1268
642
  type CommerceEvidence = z.infer<typeof CommerceEvidenceSchema>;
1269
643
  declare const CommerceAlternativeSchema: z.ZodObject<{
1270
644
  product: z.ZodObject<{
645
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
646
+ status: z.ZodEnum<{
647
+ AVAILABLE: "AVAILABLE";
648
+ NOT_PROVIDED: "NOT_PROVIDED";
649
+ PARTIAL: "PARTIAL";
650
+ }>;
651
+ items: z.ZodArray<z.ZodObject<{
652
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
653
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
654
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
655
+ }, z.core.$strict>>;
656
+ }, z.core.$strict>>>;
657
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
658
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
659
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
660
+ }, z.core.$strict>>>>;
1271
661
  productId: z.ZodString;
1272
662
  variantId: z.ZodNullable<z.ZodString>;
1273
663
  title: z.ZodString;
@@ -1480,13 +870,19 @@ declare const CommerceResponseDispositionSchema: z.ZodEnum<{
1480
870
  STANDARD: "STANDARD";
1481
871
  OUT_OF_SCOPE_REDIRECT: "OUT_OF_SCOPE_REDIRECT";
1482
872
  SHIPPING_INFORMATION_UNVERIFIED: "SHIPPING_INFORMATION_UNVERIFIED";
873
+ PRODUCT_OPTIONS: "PRODUCT_OPTIONS";
1483
874
  }>;
1484
875
  type CommerceResponseDisposition = z.infer<typeof CommerceResponseDispositionSchema>;
1485
876
  declare const CommerceAnswerPresentationSelectionSchema: z.ZodObject<{
877
+ productOptionSelections: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ productId: z.ZodString;
879
+ variantId: z.ZodNullable<z.ZodString>;
880
+ }, z.core.$strict>>>;
1486
881
  responseDisposition: z.ZodOptional<z.ZodEnum<{
1487
882
  STANDARD: "STANDARD";
1488
883
  OUT_OF_SCOPE_REDIRECT: "OUT_OF_SCOPE_REDIRECT";
1489
884
  SHIPPING_INFORMATION_UNVERIFIED: "SHIPPING_INFORMATION_UNVERIFIED";
885
+ PRODUCT_OPTIONS: "PRODUCT_OPTIONS";
1490
886
  }>>;
1491
887
  shippingInformationSelection: z.ZodOptional<z.ZodObject<{
1492
888
  productId: z.ZodNullable<z.ZodString>;
@@ -1507,9 +903,9 @@ declare const CommerceShippingInformationSchema: z.ZodObject<{
1507
903
  observedAt: z.ZodISODateTime;
1508
904
  product: z.ZodObject<{
1509
905
  status: z.ZodEnum<{
906
+ AVAILABLE: "AVAILABLE";
1510
907
  NOT_REQUESTED: "NOT_REQUESTED";
1511
908
  VARIANT_REQUIRED: "VARIANT_REQUIRED";
1512
- AVAILABLE: "AVAILABLE";
1513
909
  }>;
1514
910
  productId: z.ZodNullable<z.ZodString>;
1515
911
  variantId: z.ZodNullable<z.ZodString>;
@@ -1535,8 +931,8 @@ declare const CommerceShippingInformationSchema: z.ZodObject<{
1535
931
  }, z.core.$strict>;
1536
932
  policy: z.ZodObject<{
1537
933
  status: z.ZodEnum<{
1538
- UNSUPPORTED: "UNSUPPORTED";
1539
934
  AVAILABLE: "AVAILABLE";
935
+ UNSUPPORTED: "UNSUPPORTED";
1540
936
  NOT_CONFIGURED: "NOT_CONFIGURED";
1541
937
  SCOPE_NOT_GRANTED: "SCOPE_NOT_GRANTED";
1542
938
  }>;
@@ -1657,9 +1053,9 @@ declare const CommerceToolOutputs: {
1657
1053
  observedAt: z.ZodISODateTime;
1658
1054
  product: z.ZodObject<{
1659
1055
  status: z.ZodEnum<{
1056
+ AVAILABLE: "AVAILABLE";
1660
1057
  NOT_REQUESTED: "NOT_REQUESTED";
1661
1058
  VARIANT_REQUIRED: "VARIANT_REQUIRED";
1662
- AVAILABLE: "AVAILABLE";
1663
1059
  }>;
1664
1060
  productId: z.ZodNullable<z.ZodString>;
1665
1061
  variantId: z.ZodNullable<z.ZodString>;
@@ -1685,8 +1081,8 @@ declare const CommerceToolOutputs: {
1685
1081
  }, z.core.$strict>;
1686
1082
  policy: z.ZodObject<{
1687
1083
  status: z.ZodEnum<{
1688
- UNSUPPORTED: "UNSUPPORTED";
1689
1084
  AVAILABLE: "AVAILABLE";
1085
+ UNSUPPORTED: "UNSUPPORTED";
1690
1086
  NOT_CONFIGURED: "NOT_CONFIGURED";
1691
1087
  SCOPE_NOT_GRANTED: "SCOPE_NOT_GRANTED";
1692
1088
  }>;
@@ -1725,6 +1121,22 @@ declare const CommerceToolOutputs: {
1725
1121
  }, z.core.$strict>;
1726
1122
  commerce_search_products: z.ZodObject<{
1727
1123
  products: z.ZodArray<z.ZodObject<{
1124
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
1125
+ status: z.ZodEnum<{
1126
+ AVAILABLE: "AVAILABLE";
1127
+ NOT_PROVIDED: "NOT_PROVIDED";
1128
+ PARTIAL: "PARTIAL";
1129
+ }>;
1130
+ items: z.ZodArray<z.ZodObject<{
1131
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1132
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
1133
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
1134
+ }, z.core.$strict>>;
1135
+ }, z.core.$strict>>>;
1136
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
1137
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1138
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1139
+ }, z.core.$strict>>>>;
1728
1140
  productId: z.ZodString;
1729
1141
  variantId: z.ZodNullable<z.ZodString>;
1730
1142
  title: z.ZodString;
@@ -1750,6 +1162,22 @@ declare const CommerceToolOutputs: {
1750
1162
  }, z.core.$strict>;
1751
1163
  commerce_get_product: z.ZodObject<{
1752
1164
  product: z.ZodNullable<z.ZodObject<{
1165
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
1166
+ status: z.ZodEnum<{
1167
+ AVAILABLE: "AVAILABLE";
1168
+ NOT_PROVIDED: "NOT_PROVIDED";
1169
+ PARTIAL: "PARTIAL";
1170
+ }>;
1171
+ items: z.ZodArray<z.ZodObject<{
1172
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1173
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
1174
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
1175
+ }, z.core.$strict>>;
1176
+ }, z.core.$strict>>>;
1177
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
1178
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1179
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1180
+ }, z.core.$strict>>>>;
1753
1181
  productId: z.ZodString;
1754
1182
  variantId: z.ZodNullable<z.ZodString>;
1755
1183
  title: z.ZodString;
@@ -1836,9 +1264,9 @@ declare const CommerceToolOutputs: {
1836
1264
  WOOCOMMERCE: "WOOCOMMERCE";
1837
1265
  }>;
1838
1266
  completeness: z.ZodEnum<{
1267
+ PARTIAL: "PARTIAL";
1839
1268
  UNKNOWN: "UNKNOWN";
1840
1269
  COMPLETE: "COMPLETE";
1841
- PARTIAL: "PARTIAL";
1842
1270
  }>;
1843
1271
  observedAt: z.ZodString;
1844
1272
  providerStatus: z.ZodString;
@@ -1955,6 +1383,22 @@ declare const CommerceToolOutputs: {
1955
1383
  commerce_find_qualifying_products: z.ZodObject<{
1956
1384
  alternatives: z.ZodArray<z.ZodObject<{
1957
1385
  product: z.ZodObject<{
1386
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
1387
+ status: z.ZodEnum<{
1388
+ AVAILABLE: "AVAILABLE";
1389
+ NOT_PROVIDED: "NOT_PROVIDED";
1390
+ PARTIAL: "PARTIAL";
1391
+ }>;
1392
+ items: z.ZodArray<z.ZodObject<{
1393
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1394
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
1395
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
1396
+ }, z.core.$strict>>;
1397
+ }, z.core.$strict>>>;
1398
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
1399
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1400
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1401
+ }, z.core.$strict>>>>;
1958
1402
  productId: z.ZodString;
1959
1403
  variantId: z.ZodNullable<z.ZodString>;
1960
1404
  title: z.ZodString;
@@ -2043,6 +1487,22 @@ declare const CommerceToolOutputs: {
2043
1487
  commerce_find_similar_products: z.ZodObject<{
2044
1488
  alternatives: z.ZodArray<z.ZodObject<{
2045
1489
  product: z.ZodObject<{
1490
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
1491
+ status: z.ZodEnum<{
1492
+ AVAILABLE: "AVAILABLE";
1493
+ NOT_PROVIDED: "NOT_PROVIDED";
1494
+ PARTIAL: "PARTIAL";
1495
+ }>;
1496
+ items: z.ZodArray<z.ZodObject<{
1497
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1498
+ values: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
1499
+ usedForVariants: z.ZodNullable<z.ZodBoolean>;
1500
+ }, z.core.$strict>>;
1501
+ }, z.core.$strict>>>;
1502
+ selectedOptions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
1503
+ name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1504
+ value: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
1505
+ }, z.core.$strict>>>>;
2046
1506
  productId: z.ZodString;
2047
1507
  variantId: z.ZodNullable<z.ZodString>;
2048
1508
  title: z.ZodString;
@@ -2187,4 +1647,4 @@ declare function verifyResponseContract(definition: unknown, hash: string, diges
2187
1647
  /** JSON Schema branches retain the immutable envelope; only ANSWER details vary. */
2188
1648
  declare function finalResponseToolSchema(definition: CommerceResponseContract): Json;
2189
1649
 
2190
- export { CommerceReleaseIdentitySchema as $, type CommerceDiscountDetails as A, CommerceDiscountDetailsSchema as B, type CommerceExecutionPurpose as C, type Digest as D, CommerceErrorCodeSchema as E, type CommerceEvidence as F, type GrantedTool as G, CommerceEvidenceSchema as H, CommerceExecuteAssertionSchema as I, CommerceExecutionPurposeSchema 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, type CommercePurposeProfile as Z, CommercePurposeProfileSchema as _, type CommerceTurnIdentity as a, CommerceResolveAssertionSchema as a0, type CommerceResponseContract as a1, CommerceResponseContractSchema as a2, type CommerceResponseDisposition as a3, CommerceResponseDispositionSchema as a4, type CommerceShippingInformation as a5, type CommerceShippingInformationInput as a6, CommerceShippingInformationInputSchema as a7, CommerceShippingInformationSchema as a8, CommerceToolDefinitionSchema as a9, canonicalJson as aA, commerceToolResultSchema as aB, compileSubset as aC, definitionToMcpDescriptor as aD, finalResponseSchema as aE, finalResponseToolSchema as aF, isBuiltInTool as aG, jsonBytes as aH, mapToolArguments as aI, matchesSubset as aJ, productBelongsToDomain as aK, requireCommercePurposeProfile as aL, responseContractCanonicalJson as aM, safeName as aN, safePath as aO, toolHashInput as aP, validateDefinitionForPublication as aQ, validateDefinitionVersion as aR, validateSubset as aS, verifyResponseContract as aT, type CommerceToolDraftDefinition as aa, CommerceToolDraftDefinitionSchema as ab, CommerceToolIdentitySchema as ac, CommerceToolInputs as ad, CommerceToolOutputs as ae, CommerceToolResultSchema as af, CommerceToolRevisionIdentitySchema as ag, CommerceTurnIdentitySchema as ah, DetailsSchemaSchema as ai, EMPTY_RESPONSE_CONTRACT as aj, type ExternalHttpExecution as ak, ExternalHttpExecutionSchema as al, GrantedToolSchema as am, GrantedToolsSchema as an, InputSchemaSchema as ao, type Json as ap, MONEY_PATTERN as aq, POLICY_OPERATIONS as ar, POLICY_OPERATION_DESCRIPTORS as as, type PublishedGrantedTool as at, PublishedGrantedToolSchema as au, PublishedToolDescriptorSchema as av, ReferralReasonSchema as aw, ResponseTemplateSchema as ax, ToolDescriptorSchema as ay, ToolNameSchema as az, type CommerceConversationGrant as b, type CommerceManifest as c, type CommerceToolResult as d, type CommerceFinalResponse as e, type CommerceBuiltInToolDescriptor as f, type CommerceToolDefinition as g, type CommerceBuiltInToolGrant as h, CommerceAlternativeSchema as i, type CommerceAnswerPresentationSelection as j, CommerceAnswerPresentationSelectionSchema as k, CommerceAssertionSchema as l, CommerceBasketSchema as m, CommerceBuiltInToolDescriptorSchema as n, CommerceBuiltInToolGrantSchema as o, CommerceBuiltInToolNameSchema as p, type CommerceCategoryCandidate as q, CommerceCategoryCandidateSchema as r, type CommerceCategoryResolution as s, CommerceCategoryResolutionSchema as t, CommerceConversationGrantSchema as u, type CommerceDefinitionCompiler as v, type CommerceDiscountCombinationFacts as w, CommerceDiscountCombinationFactsSchema as x, type CommerceDiscountConditionFacts as y, CommerceDiscountConditionFactsSchema as z };
1650
+ export { CommerceToolInputs as $, CommerceFinalResponseSchema as A, CommerceManifestSchema as B, type CommerceTurnIdentity as C, type Digest as D, CommerceOfferSchema as E, type CommerceOptionalLookupUnavailable as F, CommerceOptionalLookupUnavailableSchema as G, type CommerceProduct as H, CommerceProductOptionsSchema as I, type CommerceProductRecommendationSelection as J, CommerceProductRecommendationSelectionSchema as K, type CommerceProductSaleEvidence as L, CommerceProductSaleEvidenceSchema as M, CommerceProductSelectedOptionsSchema as N, CommerceProposalSchema as O, CommercePurposeOutputSchemaSchema as P, CommerceReleaseIdentitySchema as Q, CommerceResolveAssertionSchema as R, type SubsetSchema as S, type CommerceResponseContract as T, CommerceResponseContractSchema as U, type CommerceResponseDisposition as V, CommerceResponseDispositionSchema as W, type CommerceShippingInformation as X, type CommerceShippingInformationInput as Y, CommerceShippingInformationInputSchema as Z, CommerceShippingInformationSchema as _, type CommerceConversationGrant as a, CommerceToolOutputs as a0, CommerceToolResultSchema as a1, CommerceTurnIdentitySchema as a2, DetailsSchemaSchema as a3, EMPTY_RESPONSE_CONTRACT as a4, InputSchemaSchema as a5, type Json as a6, MONEY_PATTERN as a7, ReferralReasonSchema as a8, canonicalJson as a9, commerceToolResultSchema as aa, compileCommercePurposeOutputSchema as ab, compileSubset as ac, finalResponseSchema as ad, finalResponseToolSchema as ae, jsonBytes as af, matchesSubset as ag, normalizeCommerceProductOptions as ah, normalizeCommerceProductSelectedOptions as ai, productBelongsToDomain as aj, responseContractCanonicalJson as ak, safeName as al, safePath as am, validateCommercePurposeOutputSchema as an, validateSubset as ao, verifyResponseContract as ap, type CommerceManifest as b, type CommerceToolResult as c, type CommerceFinalResponse as d, type CommercePurposeOutputSchema as e, CommerceProductSchema as f, CommerceAlternativeSchema as g, type CommerceAnswerPresentationSelection as h, CommerceAnswerPresentationSelectionSchema as i, CommerceAssertionSchema as j, CommerceBasketSchema as k, type CommerceCategoryCandidate as l, CommerceCategoryCandidateSchema as m, type CommerceCategoryResolution as n, CommerceCategoryResolutionSchema as o, CommerceConversationGrantSchema as p, type CommerceDiscountCombinationFacts as q, CommerceDiscountCombinationFactsSchema as r, type CommerceDiscountConditionFacts as s, CommerceDiscountConditionFactsSchema as t, type CommerceDiscountDetails as u, CommerceDiscountDetailsSchema as v, CommerceErrorCodeSchema as w, type CommerceEvidence as x, CommerceEvidenceSchema as y, CommerceExecuteAssertionSchema as z };