@selleragent/api-contract 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/auth.d.ts +457 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +122 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/commerce.d.ts +1393 -0
  7. package/dist/commerce.d.ts.map +1 -0
  8. package/dist/commerce.js +255 -0
  9. package/dist/commerce.js.map +1 -0
  10. package/dist/conversations.d.ts +1956 -0
  11. package/dist/conversations.d.ts.map +1 -0
  12. package/dist/conversations.js +234 -0
  13. package/dist/conversations.js.map +1 -0
  14. package/dist/customers.d.ts +1235 -0
  15. package/dist/customers.d.ts.map +1 -0
  16. package/dist/customers.js +214 -0
  17. package/dist/customers.js.map +1 -0
  18. package/dist/followups.d.ts +382 -0
  19. package/dist/followups.d.ts.map +1 -0
  20. package/dist/followups.js +99 -0
  21. package/dist/followups.js.map +1 -0
  22. package/dist/index.d.ts +22 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +588 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/judge-files.d.ts +873 -0
  27. package/dist/judge-files.d.ts.map +1 -0
  28. package/dist/judge-files.js +280 -0
  29. package/dist/judge-files.js.map +1 -0
  30. package/dist/operations.d.ts +23537 -0
  31. package/dist/operations.d.ts.map +1 -0
  32. package/dist/operations.js +1832 -0
  33. package/dist/operations.js.map +1 -0
  34. package/dist/ops.d.ts +4438 -0
  35. package/dist/ops.d.ts.map +1 -0
  36. package/dist/ops.js +537 -0
  37. package/dist/ops.js.map +1 -0
  38. package/dist/runtime.d.ts +1051 -0
  39. package/dist/runtime.d.ts.map +1 -0
  40. package/dist/runtime.js +325 -0
  41. package/dist/runtime.js.map +1 -0
  42. package/dist/semantic-eval.d.ts +1234 -0
  43. package/dist/semantic-eval.d.ts.map +1 -0
  44. package/dist/semantic-eval.js +162 -0
  45. package/dist/semantic-eval.js.map +1 -0
  46. package/dist/system.d.ts +69 -0
  47. package/dist/system.d.ts.map +1 -0
  48. package/dist/system.js +52 -0
  49. package/dist/system.js.map +1 -0
  50. package/package.json +38 -0
@@ -0,0 +1,1393 @@
1
+ import { z } from 'zod';
2
+ export declare const catalogProductKindSchema: z.ZodEnum<{
3
+ base: "base";
4
+ option: "option";
5
+ service: "service";
6
+ bundle: "bundle";
7
+ }>;
8
+ export declare const catalogProductStatusSchema: z.ZodEnum<{
9
+ active: "active";
10
+ inactive: "inactive";
11
+ }>;
12
+ export declare const catalogRelationTypeSchema: z.ZodEnum<{
13
+ requires: "requires";
14
+ excludes: "excludes";
15
+ recommended_with: "recommended_with";
16
+ default_for: "default_for";
17
+ replaces: "replaces";
18
+ can_attach_to: "can_attach_to";
19
+ }>;
20
+ export declare const cartStatusSchema: z.ZodEnum<{
21
+ suggested: "suggested";
22
+ discussing: "discussing";
23
+ confirmed: "confirmed";
24
+ converted: "converted";
25
+ abandoned: "abandoned";
26
+ }>;
27
+ export declare const cartItemStatusSchema: z.ZodEnum<{
28
+ active: "active";
29
+ draft: "draft";
30
+ removed: "removed";
31
+ }>;
32
+ export declare const dealStatusSchema: z.ZodEnum<{
33
+ converted: "converted";
34
+ abandoned: "abandoned";
35
+ draft: "draft";
36
+ quoted: "quoted";
37
+ ready_for_payment: "ready_for_payment";
38
+ }>;
39
+ export declare const orderSnapshotStatusSchema: z.ZodEnum<{
40
+ confirmed: "confirmed";
41
+ paid: "paid";
42
+ fulfilled: "fulfilled";
43
+ cancelled: "cancelled";
44
+ }>;
45
+ export declare const pricingModelSchema: z.ZodEnum<{
46
+ fixed: "fixed";
47
+ per_unit: "per_unit";
48
+ }>;
49
+ export declare const validationIssueCodeSchema: z.ZodEnum<{
50
+ MISSING_REQUIRED: "MISSING_REQUIRED";
51
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
52
+ INVALID_PARENT: "INVALID_PARENT";
53
+ MISSING_PRODUCT: "MISSING_PRODUCT";
54
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
55
+ EMPTY_CART: "EMPTY_CART";
56
+ }>;
57
+ export declare const catalogProductSchema: z.ZodObject<{
58
+ productId: z.ZodString;
59
+ code: z.ZodString;
60
+ title: z.ZodString;
61
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
62
+ kind: z.ZodEnum<{
63
+ base: "base";
64
+ option: "option";
65
+ service: "service";
66
+ bundle: "bundle";
67
+ }>;
68
+ status: z.ZodEnum<{
69
+ active: "active";
70
+ inactive: "inactive";
71
+ }>;
72
+ pricingModel: z.ZodEnum<{
73
+ fixed: "fixed";
74
+ per_unit: "per_unit";
75
+ }>;
76
+ currency: z.ZodString;
77
+ baseUnitPrice: z.ZodNumber;
78
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
79
+ createdAt: z.ZodString;
80
+ updatedAt: z.ZodString;
81
+ }, z.core.$strip>;
82
+ export type CatalogProduct = z.infer<typeof catalogProductSchema>;
83
+ export declare const catalogProductInputSchema: z.ZodObject<{
84
+ productId: z.ZodOptional<z.ZodString>;
85
+ code: z.ZodString;
86
+ title: z.ZodString;
87
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ kind: z.ZodEnum<{
89
+ base: "base";
90
+ option: "option";
91
+ service: "service";
92
+ bundle: "bundle";
93
+ }>;
94
+ status: z.ZodDefault<z.ZodEnum<{
95
+ active: "active";
96
+ inactive: "inactive";
97
+ }>>;
98
+ pricingModel: z.ZodDefault<z.ZodEnum<{
99
+ fixed: "fixed";
100
+ per_unit: "per_unit";
101
+ }>>;
102
+ currency: z.ZodString;
103
+ baseUnitPrice: z.ZodNumber;
104
+ metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
105
+ }, z.core.$strip>;
106
+ export type CatalogProductInput = z.infer<typeof catalogProductInputSchema>;
107
+ export declare const catalogRelationSchema: z.ZodObject<{
108
+ relationId: z.ZodString;
109
+ fromProductId: z.ZodString;
110
+ toProductId: z.ZodString;
111
+ relationType: z.ZodEnum<{
112
+ requires: "requires";
113
+ excludes: "excludes";
114
+ recommended_with: "recommended_with";
115
+ default_for: "default_for";
116
+ replaces: "replaces";
117
+ can_attach_to: "can_attach_to";
118
+ }>;
119
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ createdAt: z.ZodString;
121
+ }, z.core.$strip>;
122
+ export type CatalogRelation = z.infer<typeof catalogRelationSchema>;
123
+ export declare const catalogRelationInputSchema: z.ZodObject<{
124
+ relationId: z.ZodOptional<z.ZodString>;
125
+ fromProductId: z.ZodString;
126
+ toProductId: z.ZodString;
127
+ relationType: z.ZodEnum<{
128
+ requires: "requires";
129
+ excludes: "excludes";
130
+ recommended_with: "recommended_with";
131
+ default_for: "default_for";
132
+ replaces: "replaces";
133
+ can_attach_to: "can_attach_to";
134
+ }>;
135
+ metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
136
+ }, z.core.$strip>;
137
+ export type CatalogRelationInput = z.infer<typeof catalogRelationInputSchema>;
138
+ export declare const pricingBreakdownSchema: z.ZodObject<{
139
+ currency: z.ZodString;
140
+ unitPrice: z.ZodNumber;
141
+ quantity: z.ZodNumber;
142
+ totalPrice: z.ZodNumber;
143
+ }, z.core.$strip>;
144
+ export type PricingBreakdown = z.infer<typeof pricingBreakdownSchema>;
145
+ export declare const cartItemSchema: z.ZodObject<{
146
+ cartItemId: z.ZodString;
147
+ cartId: z.ZodString;
148
+ catalogProductId: z.ZodString;
149
+ parentItemId: z.ZodNullable<z.ZodString>;
150
+ quantity: z.ZodNumber;
151
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
152
+ status: z.ZodEnum<{
153
+ active: "active";
154
+ draft: "draft";
155
+ removed: "removed";
156
+ }>;
157
+ pricingSnapshot: z.ZodObject<{
158
+ currency: z.ZodString;
159
+ unitPrice: z.ZodNumber;
160
+ quantity: z.ZodNumber;
161
+ totalPrice: z.ZodNumber;
162
+ }, z.core.$strip>;
163
+ createdAt: z.ZodString;
164
+ updatedAt: z.ZodString;
165
+ }, z.core.$strip>;
166
+ export type CartItem = z.infer<typeof cartItemSchema>;
167
+ export declare const cartItemInputSchema: z.ZodObject<{
168
+ cartItemId: z.ZodOptional<z.ZodString>;
169
+ catalogProductId: z.ZodString;
170
+ parentItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
171
+ quantity: z.ZodDefault<z.ZodNumber>;
172
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
173
+ status: z.ZodDefault<z.ZodEnum<{
174
+ active: "active";
175
+ draft: "draft";
176
+ removed: "removed";
177
+ }>>;
178
+ }, z.core.$strip>;
179
+ export type CartItemInput = z.infer<typeof cartItemInputSchema>;
180
+ export declare const cartTotalsSchema: z.ZodObject<{
181
+ currency: z.ZodString;
182
+ subtotal: z.ZodNumber;
183
+ total: z.ZodNumber;
184
+ itemCount: z.ZodNumber;
185
+ }, z.core.$strip>;
186
+ export type CartTotals = z.infer<typeof cartTotalsSchema>;
187
+ export declare const cartSchema: z.ZodObject<{
188
+ cartId: z.ZodString;
189
+ customerId: z.ZodString;
190
+ conversationId: z.ZodNullable<z.ZodString>;
191
+ dealId: z.ZodNullable<z.ZodString>;
192
+ status: z.ZodEnum<{
193
+ suggested: "suggested";
194
+ discussing: "discussing";
195
+ confirmed: "confirmed";
196
+ converted: "converted";
197
+ abandoned: "abandoned";
198
+ }>;
199
+ currency: z.ZodString;
200
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
201
+ totals: z.ZodObject<{
202
+ currency: z.ZodString;
203
+ subtotal: z.ZodNumber;
204
+ total: z.ZodNumber;
205
+ itemCount: z.ZodNumber;
206
+ }, z.core.$strip>;
207
+ items: z.ZodArray<z.ZodObject<{
208
+ cartItemId: z.ZodString;
209
+ cartId: z.ZodString;
210
+ catalogProductId: z.ZodString;
211
+ parentItemId: z.ZodNullable<z.ZodString>;
212
+ quantity: z.ZodNumber;
213
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
+ status: z.ZodEnum<{
215
+ active: "active";
216
+ draft: "draft";
217
+ removed: "removed";
218
+ }>;
219
+ pricingSnapshot: z.ZodObject<{
220
+ currency: z.ZodString;
221
+ unitPrice: z.ZodNumber;
222
+ quantity: z.ZodNumber;
223
+ totalPrice: z.ZodNumber;
224
+ }, z.core.$strip>;
225
+ createdAt: z.ZodString;
226
+ updatedAt: z.ZodString;
227
+ }, z.core.$strip>>;
228
+ createdAt: z.ZodString;
229
+ updatedAt: z.ZodString;
230
+ }, z.core.$strip>;
231
+ export type Cart = z.infer<typeof cartSchema>;
232
+ export declare const validationIssueSchema: z.ZodObject<{
233
+ code: z.ZodEnum<{
234
+ MISSING_REQUIRED: "MISSING_REQUIRED";
235
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
236
+ INVALID_PARENT: "INVALID_PARENT";
237
+ MISSING_PRODUCT: "MISSING_PRODUCT";
238
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
239
+ EMPTY_CART: "EMPTY_CART";
240
+ }>;
241
+ message: z.ZodString;
242
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
243
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
244
+ }, z.core.$strip>;
245
+ export type ValidationIssue = z.infer<typeof validationIssueSchema>;
246
+ export declare const quoteSnapshotSchema: z.ZodObject<{
247
+ quoteId: z.ZodString;
248
+ cartId: z.ZodString;
249
+ currency: z.ZodString;
250
+ totals: z.ZodObject<{
251
+ currency: z.ZodString;
252
+ subtotal: z.ZodNumber;
253
+ total: z.ZodNumber;
254
+ itemCount: z.ZodNumber;
255
+ }, z.core.$strip>;
256
+ valid: z.ZodBoolean;
257
+ issues: z.ZodArray<z.ZodObject<{
258
+ code: z.ZodEnum<{
259
+ MISSING_REQUIRED: "MISSING_REQUIRED";
260
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
261
+ INVALID_PARENT: "INVALID_PARENT";
262
+ MISSING_PRODUCT: "MISSING_PRODUCT";
263
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
264
+ EMPTY_CART: "EMPTY_CART";
265
+ }>;
266
+ message: z.ZodString;
267
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
268
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
269
+ }, z.core.$strip>>;
270
+ createdAt: z.ZodString;
271
+ }, z.core.$strip>;
272
+ export type QuoteSnapshot = z.infer<typeof quoteSnapshotSchema>;
273
+ export declare const dealSchema: z.ZodObject<{
274
+ dealId: z.ZodString;
275
+ customerId: z.ZodString;
276
+ conversationId: z.ZodNullable<z.ZodString>;
277
+ activeCartId: z.ZodString;
278
+ status: z.ZodEnum<{
279
+ converted: "converted";
280
+ abandoned: "abandoned";
281
+ draft: "draft";
282
+ quoted: "quoted";
283
+ ready_for_payment: "ready_for_payment";
284
+ }>;
285
+ blockers: z.ZodArray<z.ZodString>;
286
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
287
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
288
+ quoteId: z.ZodString;
289
+ cartId: z.ZodString;
290
+ currency: z.ZodString;
291
+ totals: z.ZodObject<{
292
+ currency: z.ZodString;
293
+ subtotal: z.ZodNumber;
294
+ total: z.ZodNumber;
295
+ itemCount: z.ZodNumber;
296
+ }, z.core.$strip>;
297
+ valid: z.ZodBoolean;
298
+ issues: z.ZodArray<z.ZodObject<{
299
+ code: z.ZodEnum<{
300
+ MISSING_REQUIRED: "MISSING_REQUIRED";
301
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
302
+ INVALID_PARENT: "INVALID_PARENT";
303
+ MISSING_PRODUCT: "MISSING_PRODUCT";
304
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
305
+ EMPTY_CART: "EMPTY_CART";
306
+ }>;
307
+ message: z.ZodString;
308
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
310
+ }, z.core.$strip>>;
311
+ createdAt: z.ZodString;
312
+ }, z.core.$strip>>;
313
+ createdAt: z.ZodString;
314
+ updatedAt: z.ZodString;
315
+ }, z.core.$strip>;
316
+ export type Deal = z.infer<typeof dealSchema>;
317
+ export declare const orderSnapshotItemSchema: z.ZodObject<{
318
+ orderItemId: z.ZodString;
319
+ catalogProductId: z.ZodString;
320
+ productCode: z.ZodString;
321
+ productTitle: z.ZodString;
322
+ productKind: z.ZodEnum<{
323
+ base: "base";
324
+ option: "option";
325
+ service: "service";
326
+ bundle: "bundle";
327
+ }>;
328
+ parentItemId: z.ZodNullable<z.ZodString>;
329
+ quantity: z.ZodNumber;
330
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
331
+ pricingSnapshot: z.ZodObject<{
332
+ currency: z.ZodString;
333
+ unitPrice: z.ZodNumber;
334
+ quantity: z.ZodNumber;
335
+ totalPrice: z.ZodNumber;
336
+ }, z.core.$strip>;
337
+ }, z.core.$strip>;
338
+ export declare const orderSnapshotSchema: z.ZodObject<{
339
+ orderSnapshotId: z.ZodString;
340
+ customerId: z.ZodString;
341
+ dealId: z.ZodString;
342
+ cartId: z.ZodString;
343
+ title: z.ZodString;
344
+ status: z.ZodEnum<{
345
+ confirmed: "confirmed";
346
+ paid: "paid";
347
+ fulfilled: "fulfilled";
348
+ cancelled: "cancelled";
349
+ }>;
350
+ currency: z.ZodString;
351
+ totals: z.ZodObject<{
352
+ currency: z.ZodString;
353
+ subtotal: z.ZodNumber;
354
+ total: z.ZodNumber;
355
+ itemCount: z.ZodNumber;
356
+ }, z.core.$strip>;
357
+ items: z.ZodArray<z.ZodObject<{
358
+ orderItemId: z.ZodString;
359
+ catalogProductId: z.ZodString;
360
+ productCode: z.ZodString;
361
+ productTitle: z.ZodString;
362
+ productKind: z.ZodEnum<{
363
+ base: "base";
364
+ option: "option";
365
+ service: "service";
366
+ bundle: "bundle";
367
+ }>;
368
+ parentItemId: z.ZodNullable<z.ZodString>;
369
+ quantity: z.ZodNumber;
370
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
371
+ pricingSnapshot: z.ZodObject<{
372
+ currency: z.ZodString;
373
+ unitPrice: z.ZodNumber;
374
+ quantity: z.ZodNumber;
375
+ totalPrice: z.ZodNumber;
376
+ }, z.core.$strip>;
377
+ }, z.core.$strip>>;
378
+ sourceQuoteSnapshot: z.ZodObject<{
379
+ quoteId: z.ZodString;
380
+ cartId: z.ZodString;
381
+ currency: z.ZodString;
382
+ totals: z.ZodObject<{
383
+ currency: z.ZodString;
384
+ subtotal: z.ZodNumber;
385
+ total: z.ZodNumber;
386
+ itemCount: z.ZodNumber;
387
+ }, z.core.$strip>;
388
+ valid: z.ZodBoolean;
389
+ issues: z.ZodArray<z.ZodObject<{
390
+ code: z.ZodEnum<{
391
+ MISSING_REQUIRED: "MISSING_REQUIRED";
392
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
393
+ INVALID_PARENT: "INVALID_PARENT";
394
+ MISSING_PRODUCT: "MISSING_PRODUCT";
395
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
396
+ EMPTY_CART: "EMPTY_CART";
397
+ }>;
398
+ message: z.ZodString;
399
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
400
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
401
+ }, z.core.$strip>>;
402
+ createdAt: z.ZodString;
403
+ }, z.core.$strip>;
404
+ createdAt: z.ZodString;
405
+ }, z.core.$strip>;
406
+ export type OrderSnapshot = z.infer<typeof orderSnapshotSchema>;
407
+ export declare const commerceContextSchema: z.ZodObject<{
408
+ catalog: z.ZodObject<{
409
+ products: z.ZodArray<z.ZodObject<{
410
+ productId: z.ZodString;
411
+ code: z.ZodString;
412
+ title: z.ZodString;
413
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
414
+ kind: z.ZodEnum<{
415
+ base: "base";
416
+ option: "option";
417
+ service: "service";
418
+ bundle: "bundle";
419
+ }>;
420
+ status: z.ZodEnum<{
421
+ active: "active";
422
+ inactive: "inactive";
423
+ }>;
424
+ pricingModel: z.ZodEnum<{
425
+ fixed: "fixed";
426
+ per_unit: "per_unit";
427
+ }>;
428
+ currency: z.ZodString;
429
+ baseUnitPrice: z.ZodNumber;
430
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
431
+ createdAt: z.ZodString;
432
+ updatedAt: z.ZodString;
433
+ }, z.core.$strip>>;
434
+ relations: z.ZodArray<z.ZodObject<{
435
+ relationId: z.ZodString;
436
+ fromProductId: z.ZodString;
437
+ toProductId: z.ZodString;
438
+ relationType: z.ZodEnum<{
439
+ requires: "requires";
440
+ excludes: "excludes";
441
+ recommended_with: "recommended_with";
442
+ default_for: "default_for";
443
+ replaces: "replaces";
444
+ can_attach_to: "can_attach_to";
445
+ }>;
446
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
447
+ createdAt: z.ZodString;
448
+ }, z.core.$strip>>;
449
+ }, z.core.$strip>;
450
+ cart: z.ZodNullable<z.ZodObject<{
451
+ cartId: z.ZodString;
452
+ customerId: z.ZodString;
453
+ conversationId: z.ZodNullable<z.ZodString>;
454
+ dealId: z.ZodNullable<z.ZodString>;
455
+ status: z.ZodEnum<{
456
+ suggested: "suggested";
457
+ discussing: "discussing";
458
+ confirmed: "confirmed";
459
+ converted: "converted";
460
+ abandoned: "abandoned";
461
+ }>;
462
+ currency: z.ZodString;
463
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
464
+ totals: z.ZodObject<{
465
+ currency: z.ZodString;
466
+ subtotal: z.ZodNumber;
467
+ total: z.ZodNumber;
468
+ itemCount: z.ZodNumber;
469
+ }, z.core.$strip>;
470
+ items: z.ZodArray<z.ZodObject<{
471
+ cartItemId: z.ZodString;
472
+ cartId: z.ZodString;
473
+ catalogProductId: z.ZodString;
474
+ parentItemId: z.ZodNullable<z.ZodString>;
475
+ quantity: z.ZodNumber;
476
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
+ status: z.ZodEnum<{
478
+ active: "active";
479
+ draft: "draft";
480
+ removed: "removed";
481
+ }>;
482
+ pricingSnapshot: z.ZodObject<{
483
+ currency: z.ZodString;
484
+ unitPrice: z.ZodNumber;
485
+ quantity: z.ZodNumber;
486
+ totalPrice: z.ZodNumber;
487
+ }, z.core.$strip>;
488
+ createdAt: z.ZodString;
489
+ updatedAt: z.ZodString;
490
+ }, z.core.$strip>>;
491
+ createdAt: z.ZodString;
492
+ updatedAt: z.ZodString;
493
+ }, z.core.$strip>>;
494
+ deal: z.ZodNullable<z.ZodObject<{
495
+ dealId: z.ZodString;
496
+ customerId: z.ZodString;
497
+ conversationId: z.ZodNullable<z.ZodString>;
498
+ activeCartId: z.ZodString;
499
+ status: z.ZodEnum<{
500
+ converted: "converted";
501
+ abandoned: "abandoned";
502
+ draft: "draft";
503
+ quoted: "quoted";
504
+ ready_for_payment: "ready_for_payment";
505
+ }>;
506
+ blockers: z.ZodArray<z.ZodString>;
507
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
508
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
509
+ quoteId: z.ZodString;
510
+ cartId: z.ZodString;
511
+ currency: z.ZodString;
512
+ totals: z.ZodObject<{
513
+ currency: z.ZodString;
514
+ subtotal: z.ZodNumber;
515
+ total: z.ZodNumber;
516
+ itemCount: z.ZodNumber;
517
+ }, z.core.$strip>;
518
+ valid: z.ZodBoolean;
519
+ issues: z.ZodArray<z.ZodObject<{
520
+ code: z.ZodEnum<{
521
+ MISSING_REQUIRED: "MISSING_REQUIRED";
522
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
523
+ INVALID_PARENT: "INVALID_PARENT";
524
+ MISSING_PRODUCT: "MISSING_PRODUCT";
525
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
526
+ EMPTY_CART: "EMPTY_CART";
527
+ }>;
528
+ message: z.ZodString;
529
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
530
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
531
+ }, z.core.$strip>>;
532
+ createdAt: z.ZodString;
533
+ }, z.core.$strip>>;
534
+ createdAt: z.ZodString;
535
+ updatedAt: z.ZodString;
536
+ }, z.core.$strip>>;
537
+ orderSnapshots: z.ZodArray<z.ZodObject<{
538
+ orderSnapshotId: z.ZodString;
539
+ customerId: z.ZodString;
540
+ dealId: z.ZodString;
541
+ cartId: z.ZodString;
542
+ title: z.ZodString;
543
+ status: z.ZodEnum<{
544
+ confirmed: "confirmed";
545
+ paid: "paid";
546
+ fulfilled: "fulfilled";
547
+ cancelled: "cancelled";
548
+ }>;
549
+ currency: z.ZodString;
550
+ totals: z.ZodObject<{
551
+ currency: z.ZodString;
552
+ subtotal: z.ZodNumber;
553
+ total: z.ZodNumber;
554
+ itemCount: z.ZodNumber;
555
+ }, z.core.$strip>;
556
+ items: z.ZodArray<z.ZodObject<{
557
+ orderItemId: z.ZodString;
558
+ catalogProductId: z.ZodString;
559
+ productCode: z.ZodString;
560
+ productTitle: z.ZodString;
561
+ productKind: z.ZodEnum<{
562
+ base: "base";
563
+ option: "option";
564
+ service: "service";
565
+ bundle: "bundle";
566
+ }>;
567
+ parentItemId: z.ZodNullable<z.ZodString>;
568
+ quantity: z.ZodNumber;
569
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
570
+ pricingSnapshot: z.ZodObject<{
571
+ currency: z.ZodString;
572
+ unitPrice: z.ZodNumber;
573
+ quantity: z.ZodNumber;
574
+ totalPrice: z.ZodNumber;
575
+ }, z.core.$strip>;
576
+ }, z.core.$strip>>;
577
+ sourceQuoteSnapshot: z.ZodObject<{
578
+ quoteId: z.ZodString;
579
+ cartId: z.ZodString;
580
+ currency: z.ZodString;
581
+ totals: z.ZodObject<{
582
+ currency: z.ZodString;
583
+ subtotal: z.ZodNumber;
584
+ total: z.ZodNumber;
585
+ itemCount: z.ZodNumber;
586
+ }, z.core.$strip>;
587
+ valid: z.ZodBoolean;
588
+ issues: z.ZodArray<z.ZodObject<{
589
+ code: z.ZodEnum<{
590
+ MISSING_REQUIRED: "MISSING_REQUIRED";
591
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
592
+ INVALID_PARENT: "INVALID_PARENT";
593
+ MISSING_PRODUCT: "MISSING_PRODUCT";
594
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
595
+ EMPTY_CART: "EMPTY_CART";
596
+ }>;
597
+ message: z.ZodString;
598
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
599
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
600
+ }, z.core.$strip>>;
601
+ createdAt: z.ZodString;
602
+ }, z.core.$strip>;
603
+ createdAt: z.ZodString;
604
+ }, z.core.$strip>>;
605
+ }, z.core.$strip>;
606
+ export type CommerceContext = z.infer<typeof commerceContextSchema>;
607
+ export declare const commerceSeedCatalogRequestSchema: z.ZodObject<{
608
+ products: z.ZodArray<z.ZodObject<{
609
+ productId: z.ZodOptional<z.ZodString>;
610
+ code: z.ZodString;
611
+ title: z.ZodString;
612
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
+ kind: z.ZodEnum<{
614
+ base: "base";
615
+ option: "option";
616
+ service: "service";
617
+ bundle: "bundle";
618
+ }>;
619
+ status: z.ZodDefault<z.ZodEnum<{
620
+ active: "active";
621
+ inactive: "inactive";
622
+ }>>;
623
+ pricingModel: z.ZodDefault<z.ZodEnum<{
624
+ fixed: "fixed";
625
+ per_unit: "per_unit";
626
+ }>>;
627
+ currency: z.ZodString;
628
+ baseUnitPrice: z.ZodNumber;
629
+ metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
630
+ }, z.core.$strip>>;
631
+ relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
632
+ relationId: z.ZodOptional<z.ZodString>;
633
+ fromProductId: z.ZodString;
634
+ toProductId: z.ZodString;
635
+ relationType: z.ZodEnum<{
636
+ requires: "requires";
637
+ excludes: "excludes";
638
+ recommended_with: "recommended_with";
639
+ default_for: "default_for";
640
+ replaces: "replaces";
641
+ can_attach_to: "can_attach_to";
642
+ }>;
643
+ metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
644
+ }, z.core.$strip>>>;
645
+ }, z.core.$strip>;
646
+ export declare const commerceSeedCatalogResponseSchema: z.ZodObject<{
647
+ catalog: z.ZodObject<{
648
+ products: z.ZodArray<z.ZodObject<{
649
+ productId: z.ZodString;
650
+ code: z.ZodString;
651
+ title: z.ZodString;
652
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
653
+ kind: z.ZodEnum<{
654
+ base: "base";
655
+ option: "option";
656
+ service: "service";
657
+ bundle: "bundle";
658
+ }>;
659
+ status: z.ZodEnum<{
660
+ active: "active";
661
+ inactive: "inactive";
662
+ }>;
663
+ pricingModel: z.ZodEnum<{
664
+ fixed: "fixed";
665
+ per_unit: "per_unit";
666
+ }>;
667
+ currency: z.ZodString;
668
+ baseUnitPrice: z.ZodNumber;
669
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ createdAt: z.ZodString;
671
+ updatedAt: z.ZodString;
672
+ }, z.core.$strip>>;
673
+ relations: z.ZodArray<z.ZodObject<{
674
+ relationId: z.ZodString;
675
+ fromProductId: z.ZodString;
676
+ toProductId: z.ZodString;
677
+ relationType: z.ZodEnum<{
678
+ requires: "requires";
679
+ excludes: "excludes";
680
+ recommended_with: "recommended_with";
681
+ default_for: "default_for";
682
+ replaces: "replaces";
683
+ can_attach_to: "can_attach_to";
684
+ }>;
685
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
686
+ createdAt: z.ZodString;
687
+ }, z.core.$strip>>;
688
+ }, z.core.$strip>;
689
+ }, z.core.$strip>;
690
+ export declare const commerceGetCatalogRequestSchema: z.ZodObject<{
691
+ productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
+ }, z.core.$strip>;
693
+ export declare const commerceGetCatalogResponseSchema: z.ZodObject<{
694
+ products: z.ZodArray<z.ZodObject<{
695
+ productId: z.ZodString;
696
+ code: z.ZodString;
697
+ title: z.ZodString;
698
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
699
+ kind: z.ZodEnum<{
700
+ base: "base";
701
+ option: "option";
702
+ service: "service";
703
+ bundle: "bundle";
704
+ }>;
705
+ status: z.ZodEnum<{
706
+ active: "active";
707
+ inactive: "inactive";
708
+ }>;
709
+ pricingModel: z.ZodEnum<{
710
+ fixed: "fixed";
711
+ per_unit: "per_unit";
712
+ }>;
713
+ currency: z.ZodString;
714
+ baseUnitPrice: z.ZodNumber;
715
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
716
+ createdAt: z.ZodString;
717
+ updatedAt: z.ZodString;
718
+ }, z.core.$strip>>;
719
+ relations: z.ZodArray<z.ZodObject<{
720
+ relationId: z.ZodString;
721
+ fromProductId: z.ZodString;
722
+ toProductId: z.ZodString;
723
+ relationType: z.ZodEnum<{
724
+ requires: "requires";
725
+ excludes: "excludes";
726
+ recommended_with: "recommended_with";
727
+ default_for: "default_for";
728
+ replaces: "replaces";
729
+ can_attach_to: "can_attach_to";
730
+ }>;
731
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
732
+ createdAt: z.ZodString;
733
+ }, z.core.$strip>>;
734
+ }, z.core.$strip>;
735
+ export declare const commerceCreateCartRequestSchema: z.ZodObject<{
736
+ customerId: z.ZodString;
737
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
738
+ currency: z.ZodString;
739
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
740
+ }, z.core.$strip>;
741
+ export declare const commerceCreateCartResponseSchema: z.ZodObject<{
742
+ cart: z.ZodObject<{
743
+ cartId: z.ZodString;
744
+ customerId: z.ZodString;
745
+ conversationId: z.ZodNullable<z.ZodString>;
746
+ dealId: z.ZodNullable<z.ZodString>;
747
+ status: z.ZodEnum<{
748
+ suggested: "suggested";
749
+ discussing: "discussing";
750
+ confirmed: "confirmed";
751
+ converted: "converted";
752
+ abandoned: "abandoned";
753
+ }>;
754
+ currency: z.ZodString;
755
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
756
+ totals: z.ZodObject<{
757
+ currency: z.ZodString;
758
+ subtotal: z.ZodNumber;
759
+ total: z.ZodNumber;
760
+ itemCount: z.ZodNumber;
761
+ }, z.core.$strip>;
762
+ items: z.ZodArray<z.ZodObject<{
763
+ cartItemId: z.ZodString;
764
+ cartId: z.ZodString;
765
+ catalogProductId: z.ZodString;
766
+ parentItemId: z.ZodNullable<z.ZodString>;
767
+ quantity: z.ZodNumber;
768
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
769
+ status: z.ZodEnum<{
770
+ active: "active";
771
+ draft: "draft";
772
+ removed: "removed";
773
+ }>;
774
+ pricingSnapshot: z.ZodObject<{
775
+ currency: z.ZodString;
776
+ unitPrice: z.ZodNumber;
777
+ quantity: z.ZodNumber;
778
+ totalPrice: z.ZodNumber;
779
+ }, z.core.$strip>;
780
+ createdAt: z.ZodString;
781
+ updatedAt: z.ZodString;
782
+ }, z.core.$strip>>;
783
+ createdAt: z.ZodString;
784
+ updatedAt: z.ZodString;
785
+ }, z.core.$strip>;
786
+ deal: z.ZodObject<{
787
+ dealId: z.ZodString;
788
+ customerId: z.ZodString;
789
+ conversationId: z.ZodNullable<z.ZodString>;
790
+ activeCartId: z.ZodString;
791
+ status: z.ZodEnum<{
792
+ converted: "converted";
793
+ abandoned: "abandoned";
794
+ draft: "draft";
795
+ quoted: "quoted";
796
+ ready_for_payment: "ready_for_payment";
797
+ }>;
798
+ blockers: z.ZodArray<z.ZodString>;
799
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
800
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
801
+ quoteId: z.ZodString;
802
+ cartId: z.ZodString;
803
+ currency: z.ZodString;
804
+ totals: z.ZodObject<{
805
+ currency: z.ZodString;
806
+ subtotal: z.ZodNumber;
807
+ total: z.ZodNumber;
808
+ itemCount: z.ZodNumber;
809
+ }, z.core.$strip>;
810
+ valid: z.ZodBoolean;
811
+ issues: z.ZodArray<z.ZodObject<{
812
+ code: z.ZodEnum<{
813
+ MISSING_REQUIRED: "MISSING_REQUIRED";
814
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
815
+ INVALID_PARENT: "INVALID_PARENT";
816
+ MISSING_PRODUCT: "MISSING_PRODUCT";
817
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
818
+ EMPTY_CART: "EMPTY_CART";
819
+ }>;
820
+ message: z.ZodString;
821
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
822
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
823
+ }, z.core.$strip>>;
824
+ createdAt: z.ZodString;
825
+ }, z.core.$strip>>;
826
+ createdAt: z.ZodString;
827
+ updatedAt: z.ZodString;
828
+ }, z.core.$strip>;
829
+ }, z.core.$strip>;
830
+ export declare const commerceReplaceCartItemsRequestSchema: z.ZodObject<{
831
+ cartId: z.ZodString;
832
+ items: z.ZodArray<z.ZodObject<{
833
+ cartItemId: z.ZodOptional<z.ZodString>;
834
+ catalogProductId: z.ZodString;
835
+ parentItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
836
+ quantity: z.ZodDefault<z.ZodNumber>;
837
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
838
+ status: z.ZodDefault<z.ZodEnum<{
839
+ active: "active";
840
+ draft: "draft";
841
+ removed: "removed";
842
+ }>>;
843
+ }, z.core.$strip>>;
844
+ }, z.core.$strip>;
845
+ export declare const commerceReplaceCartItemsResponseSchema: z.ZodObject<{
846
+ cart: z.ZodObject<{
847
+ cartId: z.ZodString;
848
+ customerId: z.ZodString;
849
+ conversationId: z.ZodNullable<z.ZodString>;
850
+ dealId: z.ZodNullable<z.ZodString>;
851
+ status: z.ZodEnum<{
852
+ suggested: "suggested";
853
+ discussing: "discussing";
854
+ confirmed: "confirmed";
855
+ converted: "converted";
856
+ abandoned: "abandoned";
857
+ }>;
858
+ currency: z.ZodString;
859
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
860
+ totals: z.ZodObject<{
861
+ currency: z.ZodString;
862
+ subtotal: z.ZodNumber;
863
+ total: z.ZodNumber;
864
+ itemCount: z.ZodNumber;
865
+ }, z.core.$strip>;
866
+ items: z.ZodArray<z.ZodObject<{
867
+ cartItemId: z.ZodString;
868
+ cartId: z.ZodString;
869
+ catalogProductId: z.ZodString;
870
+ parentItemId: z.ZodNullable<z.ZodString>;
871
+ quantity: z.ZodNumber;
872
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
873
+ status: z.ZodEnum<{
874
+ active: "active";
875
+ draft: "draft";
876
+ removed: "removed";
877
+ }>;
878
+ pricingSnapshot: z.ZodObject<{
879
+ currency: z.ZodString;
880
+ unitPrice: z.ZodNumber;
881
+ quantity: z.ZodNumber;
882
+ totalPrice: z.ZodNumber;
883
+ }, z.core.$strip>;
884
+ createdAt: z.ZodString;
885
+ updatedAt: z.ZodString;
886
+ }, z.core.$strip>>;
887
+ createdAt: z.ZodString;
888
+ updatedAt: z.ZodString;
889
+ }, z.core.$strip>;
890
+ validation: z.ZodObject<{
891
+ valid: z.ZodBoolean;
892
+ issues: z.ZodArray<z.ZodObject<{
893
+ code: z.ZodEnum<{
894
+ MISSING_REQUIRED: "MISSING_REQUIRED";
895
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
896
+ INVALID_PARENT: "INVALID_PARENT";
897
+ MISSING_PRODUCT: "MISSING_PRODUCT";
898
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
899
+ EMPTY_CART: "EMPTY_CART";
900
+ }>;
901
+ message: z.ZodString;
902
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
903
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
904
+ }, z.core.$strip>>;
905
+ }, z.core.$strip>;
906
+ }, z.core.$strip>;
907
+ export declare const commerceQuoteDealRequestSchema: z.ZodObject<{
908
+ cartId: z.ZodString;
909
+ }, z.core.$strip>;
910
+ export declare const commerceQuoteDealResponseSchema: z.ZodObject<{
911
+ cart: z.ZodObject<{
912
+ cartId: z.ZodString;
913
+ customerId: z.ZodString;
914
+ conversationId: z.ZodNullable<z.ZodString>;
915
+ dealId: z.ZodNullable<z.ZodString>;
916
+ status: z.ZodEnum<{
917
+ suggested: "suggested";
918
+ discussing: "discussing";
919
+ confirmed: "confirmed";
920
+ converted: "converted";
921
+ abandoned: "abandoned";
922
+ }>;
923
+ currency: z.ZodString;
924
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
925
+ totals: z.ZodObject<{
926
+ currency: z.ZodString;
927
+ subtotal: z.ZodNumber;
928
+ total: z.ZodNumber;
929
+ itemCount: z.ZodNumber;
930
+ }, z.core.$strip>;
931
+ items: z.ZodArray<z.ZodObject<{
932
+ cartItemId: z.ZodString;
933
+ cartId: z.ZodString;
934
+ catalogProductId: z.ZodString;
935
+ parentItemId: z.ZodNullable<z.ZodString>;
936
+ quantity: z.ZodNumber;
937
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
938
+ status: z.ZodEnum<{
939
+ active: "active";
940
+ draft: "draft";
941
+ removed: "removed";
942
+ }>;
943
+ pricingSnapshot: z.ZodObject<{
944
+ currency: z.ZodString;
945
+ unitPrice: z.ZodNumber;
946
+ quantity: z.ZodNumber;
947
+ totalPrice: z.ZodNumber;
948
+ }, z.core.$strip>;
949
+ createdAt: z.ZodString;
950
+ updatedAt: z.ZodString;
951
+ }, z.core.$strip>>;
952
+ createdAt: z.ZodString;
953
+ updatedAt: z.ZodString;
954
+ }, z.core.$strip>;
955
+ deal: z.ZodObject<{
956
+ dealId: z.ZodString;
957
+ customerId: z.ZodString;
958
+ conversationId: z.ZodNullable<z.ZodString>;
959
+ activeCartId: z.ZodString;
960
+ status: z.ZodEnum<{
961
+ converted: "converted";
962
+ abandoned: "abandoned";
963
+ draft: "draft";
964
+ quoted: "quoted";
965
+ ready_for_payment: "ready_for_payment";
966
+ }>;
967
+ blockers: z.ZodArray<z.ZodString>;
968
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
969
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
970
+ quoteId: z.ZodString;
971
+ cartId: z.ZodString;
972
+ currency: z.ZodString;
973
+ totals: z.ZodObject<{
974
+ currency: z.ZodString;
975
+ subtotal: z.ZodNumber;
976
+ total: z.ZodNumber;
977
+ itemCount: z.ZodNumber;
978
+ }, z.core.$strip>;
979
+ valid: z.ZodBoolean;
980
+ issues: z.ZodArray<z.ZodObject<{
981
+ code: z.ZodEnum<{
982
+ MISSING_REQUIRED: "MISSING_REQUIRED";
983
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
984
+ INVALID_PARENT: "INVALID_PARENT";
985
+ MISSING_PRODUCT: "MISSING_PRODUCT";
986
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
987
+ EMPTY_CART: "EMPTY_CART";
988
+ }>;
989
+ message: z.ZodString;
990
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
991
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
992
+ }, z.core.$strip>>;
993
+ createdAt: z.ZodString;
994
+ }, z.core.$strip>>;
995
+ createdAt: z.ZodString;
996
+ updatedAt: z.ZodString;
997
+ }, z.core.$strip>;
998
+ validation: z.ZodObject<{
999
+ valid: z.ZodBoolean;
1000
+ issues: z.ZodArray<z.ZodObject<{
1001
+ code: z.ZodEnum<{
1002
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1003
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1004
+ INVALID_PARENT: "INVALID_PARENT";
1005
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1006
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1007
+ EMPTY_CART: "EMPTY_CART";
1008
+ }>;
1009
+ message: z.ZodString;
1010
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1011
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1012
+ }, z.core.$strip>>;
1013
+ }, z.core.$strip>;
1014
+ }, z.core.$strip>;
1015
+ export declare const commerceCreateOrderSnapshotRequestSchema: z.ZodObject<{
1016
+ cartId: z.ZodString;
1017
+ title: z.ZodString;
1018
+ }, z.core.$strip>;
1019
+ export declare const commerceCreateOrderSnapshotResponseSchema: z.ZodObject<{
1020
+ orderSnapshot: z.ZodObject<{
1021
+ orderSnapshotId: z.ZodString;
1022
+ customerId: z.ZodString;
1023
+ dealId: z.ZodString;
1024
+ cartId: z.ZodString;
1025
+ title: z.ZodString;
1026
+ status: z.ZodEnum<{
1027
+ confirmed: "confirmed";
1028
+ paid: "paid";
1029
+ fulfilled: "fulfilled";
1030
+ cancelled: "cancelled";
1031
+ }>;
1032
+ currency: z.ZodString;
1033
+ totals: z.ZodObject<{
1034
+ currency: z.ZodString;
1035
+ subtotal: z.ZodNumber;
1036
+ total: z.ZodNumber;
1037
+ itemCount: z.ZodNumber;
1038
+ }, z.core.$strip>;
1039
+ items: z.ZodArray<z.ZodObject<{
1040
+ orderItemId: z.ZodString;
1041
+ catalogProductId: z.ZodString;
1042
+ productCode: z.ZodString;
1043
+ productTitle: z.ZodString;
1044
+ productKind: z.ZodEnum<{
1045
+ base: "base";
1046
+ option: "option";
1047
+ service: "service";
1048
+ bundle: "bundle";
1049
+ }>;
1050
+ parentItemId: z.ZodNullable<z.ZodString>;
1051
+ quantity: z.ZodNumber;
1052
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1053
+ pricingSnapshot: z.ZodObject<{
1054
+ currency: z.ZodString;
1055
+ unitPrice: z.ZodNumber;
1056
+ quantity: z.ZodNumber;
1057
+ totalPrice: z.ZodNumber;
1058
+ }, z.core.$strip>;
1059
+ }, z.core.$strip>>;
1060
+ sourceQuoteSnapshot: z.ZodObject<{
1061
+ quoteId: z.ZodString;
1062
+ cartId: z.ZodString;
1063
+ currency: z.ZodString;
1064
+ totals: z.ZodObject<{
1065
+ currency: z.ZodString;
1066
+ subtotal: z.ZodNumber;
1067
+ total: z.ZodNumber;
1068
+ itemCount: z.ZodNumber;
1069
+ }, z.core.$strip>;
1070
+ valid: z.ZodBoolean;
1071
+ issues: z.ZodArray<z.ZodObject<{
1072
+ code: z.ZodEnum<{
1073
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1074
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1075
+ INVALID_PARENT: "INVALID_PARENT";
1076
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1077
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1078
+ EMPTY_CART: "EMPTY_CART";
1079
+ }>;
1080
+ message: z.ZodString;
1081
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1082
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1083
+ }, z.core.$strip>>;
1084
+ createdAt: z.ZodString;
1085
+ }, z.core.$strip>;
1086
+ createdAt: z.ZodString;
1087
+ }, z.core.$strip>;
1088
+ deal: z.ZodObject<{
1089
+ dealId: z.ZodString;
1090
+ customerId: z.ZodString;
1091
+ conversationId: z.ZodNullable<z.ZodString>;
1092
+ activeCartId: z.ZodString;
1093
+ status: z.ZodEnum<{
1094
+ converted: "converted";
1095
+ abandoned: "abandoned";
1096
+ draft: "draft";
1097
+ quoted: "quoted";
1098
+ ready_for_payment: "ready_for_payment";
1099
+ }>;
1100
+ blockers: z.ZodArray<z.ZodString>;
1101
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1102
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
1103
+ quoteId: z.ZodString;
1104
+ cartId: z.ZodString;
1105
+ currency: z.ZodString;
1106
+ totals: z.ZodObject<{
1107
+ currency: z.ZodString;
1108
+ subtotal: z.ZodNumber;
1109
+ total: z.ZodNumber;
1110
+ itemCount: z.ZodNumber;
1111
+ }, z.core.$strip>;
1112
+ valid: z.ZodBoolean;
1113
+ issues: z.ZodArray<z.ZodObject<{
1114
+ code: z.ZodEnum<{
1115
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1116
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1117
+ INVALID_PARENT: "INVALID_PARENT";
1118
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1119
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1120
+ EMPTY_CART: "EMPTY_CART";
1121
+ }>;
1122
+ message: z.ZodString;
1123
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1124
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1125
+ }, z.core.$strip>>;
1126
+ createdAt: z.ZodString;
1127
+ }, z.core.$strip>>;
1128
+ createdAt: z.ZodString;
1129
+ updatedAt: z.ZodString;
1130
+ }, z.core.$strip>;
1131
+ cart: z.ZodObject<{
1132
+ cartId: z.ZodString;
1133
+ customerId: z.ZodString;
1134
+ conversationId: z.ZodNullable<z.ZodString>;
1135
+ dealId: z.ZodNullable<z.ZodString>;
1136
+ status: z.ZodEnum<{
1137
+ suggested: "suggested";
1138
+ discussing: "discussing";
1139
+ confirmed: "confirmed";
1140
+ converted: "converted";
1141
+ abandoned: "abandoned";
1142
+ }>;
1143
+ currency: z.ZodString;
1144
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1145
+ totals: z.ZodObject<{
1146
+ currency: z.ZodString;
1147
+ subtotal: z.ZodNumber;
1148
+ total: z.ZodNumber;
1149
+ itemCount: z.ZodNumber;
1150
+ }, z.core.$strip>;
1151
+ items: z.ZodArray<z.ZodObject<{
1152
+ cartItemId: z.ZodString;
1153
+ cartId: z.ZodString;
1154
+ catalogProductId: z.ZodString;
1155
+ parentItemId: z.ZodNullable<z.ZodString>;
1156
+ quantity: z.ZodNumber;
1157
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1158
+ status: z.ZodEnum<{
1159
+ active: "active";
1160
+ draft: "draft";
1161
+ removed: "removed";
1162
+ }>;
1163
+ pricingSnapshot: z.ZodObject<{
1164
+ currency: z.ZodString;
1165
+ unitPrice: z.ZodNumber;
1166
+ quantity: z.ZodNumber;
1167
+ totalPrice: z.ZodNumber;
1168
+ }, z.core.$strip>;
1169
+ createdAt: z.ZodString;
1170
+ updatedAt: z.ZodString;
1171
+ }, z.core.$strip>>;
1172
+ createdAt: z.ZodString;
1173
+ updatedAt: z.ZodString;
1174
+ }, z.core.$strip>;
1175
+ }, z.core.$strip>;
1176
+ export declare const commerceGetContextRequestSchema: z.ZodObject<{
1177
+ cartId: z.ZodOptional<z.ZodString>;
1178
+ dealId: z.ZodOptional<z.ZodString>;
1179
+ }, z.core.$strip>;
1180
+ export declare const commerceGetContextResponseSchema: z.ZodObject<{
1181
+ catalog: z.ZodObject<{
1182
+ products: z.ZodArray<z.ZodObject<{
1183
+ productId: z.ZodString;
1184
+ code: z.ZodString;
1185
+ title: z.ZodString;
1186
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1187
+ kind: z.ZodEnum<{
1188
+ base: "base";
1189
+ option: "option";
1190
+ service: "service";
1191
+ bundle: "bundle";
1192
+ }>;
1193
+ status: z.ZodEnum<{
1194
+ active: "active";
1195
+ inactive: "inactive";
1196
+ }>;
1197
+ pricingModel: z.ZodEnum<{
1198
+ fixed: "fixed";
1199
+ per_unit: "per_unit";
1200
+ }>;
1201
+ currency: z.ZodString;
1202
+ baseUnitPrice: z.ZodNumber;
1203
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1204
+ createdAt: z.ZodString;
1205
+ updatedAt: z.ZodString;
1206
+ }, z.core.$strip>>;
1207
+ relations: z.ZodArray<z.ZodObject<{
1208
+ relationId: z.ZodString;
1209
+ fromProductId: z.ZodString;
1210
+ toProductId: z.ZodString;
1211
+ relationType: z.ZodEnum<{
1212
+ requires: "requires";
1213
+ excludes: "excludes";
1214
+ recommended_with: "recommended_with";
1215
+ default_for: "default_for";
1216
+ replaces: "replaces";
1217
+ can_attach_to: "can_attach_to";
1218
+ }>;
1219
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1220
+ createdAt: z.ZodString;
1221
+ }, z.core.$strip>>;
1222
+ }, z.core.$strip>;
1223
+ cart: z.ZodNullable<z.ZodObject<{
1224
+ cartId: z.ZodString;
1225
+ customerId: z.ZodString;
1226
+ conversationId: z.ZodNullable<z.ZodString>;
1227
+ dealId: z.ZodNullable<z.ZodString>;
1228
+ status: z.ZodEnum<{
1229
+ suggested: "suggested";
1230
+ discussing: "discussing";
1231
+ confirmed: "confirmed";
1232
+ converted: "converted";
1233
+ abandoned: "abandoned";
1234
+ }>;
1235
+ currency: z.ZodString;
1236
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1237
+ totals: z.ZodObject<{
1238
+ currency: z.ZodString;
1239
+ subtotal: z.ZodNumber;
1240
+ total: z.ZodNumber;
1241
+ itemCount: z.ZodNumber;
1242
+ }, z.core.$strip>;
1243
+ items: z.ZodArray<z.ZodObject<{
1244
+ cartItemId: z.ZodString;
1245
+ cartId: z.ZodString;
1246
+ catalogProductId: z.ZodString;
1247
+ parentItemId: z.ZodNullable<z.ZodString>;
1248
+ quantity: z.ZodNumber;
1249
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1250
+ status: z.ZodEnum<{
1251
+ active: "active";
1252
+ draft: "draft";
1253
+ removed: "removed";
1254
+ }>;
1255
+ pricingSnapshot: z.ZodObject<{
1256
+ currency: z.ZodString;
1257
+ unitPrice: z.ZodNumber;
1258
+ quantity: z.ZodNumber;
1259
+ totalPrice: z.ZodNumber;
1260
+ }, z.core.$strip>;
1261
+ createdAt: z.ZodString;
1262
+ updatedAt: z.ZodString;
1263
+ }, z.core.$strip>>;
1264
+ createdAt: z.ZodString;
1265
+ updatedAt: z.ZodString;
1266
+ }, z.core.$strip>>;
1267
+ deal: z.ZodNullable<z.ZodObject<{
1268
+ dealId: z.ZodString;
1269
+ customerId: z.ZodString;
1270
+ conversationId: z.ZodNullable<z.ZodString>;
1271
+ activeCartId: z.ZodString;
1272
+ status: z.ZodEnum<{
1273
+ converted: "converted";
1274
+ abandoned: "abandoned";
1275
+ draft: "draft";
1276
+ quoted: "quoted";
1277
+ ready_for_payment: "ready_for_payment";
1278
+ }>;
1279
+ blockers: z.ZodArray<z.ZodString>;
1280
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1281
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
1282
+ quoteId: z.ZodString;
1283
+ cartId: z.ZodString;
1284
+ currency: z.ZodString;
1285
+ totals: z.ZodObject<{
1286
+ currency: z.ZodString;
1287
+ subtotal: z.ZodNumber;
1288
+ total: z.ZodNumber;
1289
+ itemCount: z.ZodNumber;
1290
+ }, z.core.$strip>;
1291
+ valid: z.ZodBoolean;
1292
+ issues: z.ZodArray<z.ZodObject<{
1293
+ code: z.ZodEnum<{
1294
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1295
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1296
+ INVALID_PARENT: "INVALID_PARENT";
1297
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1298
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1299
+ EMPTY_CART: "EMPTY_CART";
1300
+ }>;
1301
+ message: z.ZodString;
1302
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1303
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1304
+ }, z.core.$strip>>;
1305
+ createdAt: z.ZodString;
1306
+ }, z.core.$strip>>;
1307
+ createdAt: z.ZodString;
1308
+ updatedAt: z.ZodString;
1309
+ }, z.core.$strip>>;
1310
+ orderSnapshots: z.ZodArray<z.ZodObject<{
1311
+ orderSnapshotId: z.ZodString;
1312
+ customerId: z.ZodString;
1313
+ dealId: z.ZodString;
1314
+ cartId: z.ZodString;
1315
+ title: z.ZodString;
1316
+ status: z.ZodEnum<{
1317
+ confirmed: "confirmed";
1318
+ paid: "paid";
1319
+ fulfilled: "fulfilled";
1320
+ cancelled: "cancelled";
1321
+ }>;
1322
+ currency: z.ZodString;
1323
+ totals: z.ZodObject<{
1324
+ currency: z.ZodString;
1325
+ subtotal: z.ZodNumber;
1326
+ total: z.ZodNumber;
1327
+ itemCount: z.ZodNumber;
1328
+ }, z.core.$strip>;
1329
+ items: z.ZodArray<z.ZodObject<{
1330
+ orderItemId: z.ZodString;
1331
+ catalogProductId: z.ZodString;
1332
+ productCode: z.ZodString;
1333
+ productTitle: z.ZodString;
1334
+ productKind: z.ZodEnum<{
1335
+ base: "base";
1336
+ option: "option";
1337
+ service: "service";
1338
+ bundle: "bundle";
1339
+ }>;
1340
+ parentItemId: z.ZodNullable<z.ZodString>;
1341
+ quantity: z.ZodNumber;
1342
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1343
+ pricingSnapshot: z.ZodObject<{
1344
+ currency: z.ZodString;
1345
+ unitPrice: z.ZodNumber;
1346
+ quantity: z.ZodNumber;
1347
+ totalPrice: z.ZodNumber;
1348
+ }, z.core.$strip>;
1349
+ }, z.core.$strip>>;
1350
+ sourceQuoteSnapshot: z.ZodObject<{
1351
+ quoteId: z.ZodString;
1352
+ cartId: z.ZodString;
1353
+ currency: z.ZodString;
1354
+ totals: z.ZodObject<{
1355
+ currency: z.ZodString;
1356
+ subtotal: z.ZodNumber;
1357
+ total: z.ZodNumber;
1358
+ itemCount: z.ZodNumber;
1359
+ }, z.core.$strip>;
1360
+ valid: z.ZodBoolean;
1361
+ issues: z.ZodArray<z.ZodObject<{
1362
+ code: z.ZodEnum<{
1363
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1364
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1365
+ INVALID_PARENT: "INVALID_PARENT";
1366
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1367
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1368
+ EMPTY_CART: "EMPTY_CART";
1369
+ }>;
1370
+ message: z.ZodString;
1371
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1372
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1373
+ }, z.core.$strip>>;
1374
+ createdAt: z.ZodString;
1375
+ }, z.core.$strip>;
1376
+ createdAt: z.ZodString;
1377
+ }, z.core.$strip>>;
1378
+ }, z.core.$strip>;
1379
+ export type CommerceSeedCatalogInput = z.infer<typeof commerceSeedCatalogRequestSchema>;
1380
+ export type CommerceSeedCatalogOutput = z.infer<typeof commerceSeedCatalogResponseSchema>;
1381
+ export type CommerceGetCatalogInput = z.infer<typeof commerceGetCatalogRequestSchema>;
1382
+ export type CommerceGetCatalogOutput = z.infer<typeof commerceGetCatalogResponseSchema>;
1383
+ export type CommerceCreateCartInput = z.infer<typeof commerceCreateCartRequestSchema>;
1384
+ export type CommerceCreateCartOutput = z.infer<typeof commerceCreateCartResponseSchema>;
1385
+ export type CommerceReplaceCartItemsInput = z.infer<typeof commerceReplaceCartItemsRequestSchema>;
1386
+ export type CommerceReplaceCartItemsOutput = z.infer<typeof commerceReplaceCartItemsResponseSchema>;
1387
+ export type CommerceQuoteDealInput = z.infer<typeof commerceQuoteDealRequestSchema>;
1388
+ export type CommerceQuoteDealOutput = z.infer<typeof commerceQuoteDealResponseSchema>;
1389
+ export type CommerceCreateOrderSnapshotInput = z.infer<typeof commerceCreateOrderSnapshotRequestSchema>;
1390
+ export type CommerceCreateOrderSnapshotOutput = z.infer<typeof commerceCreateOrderSnapshotResponseSchema>;
1391
+ export type CommerceGetContextInput = z.infer<typeof commerceGetContextRequestSchema>;
1392
+ export type CommerceGetContextOutput = z.infer<typeof commerceGetContextResponseSchema>;
1393
+ //# sourceMappingURL=commerce.d.ts.map