@kl1/contracts 1.1.51 → 1.1.52

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 (69) hide show
  1. package/dist/api-contracts/src/channel/index.d.ts +811 -0
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/channel/schema.d.ts +8 -0
  4. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/channel/validation.d.ts +5 -0
  6. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/index.d.ts +230 -0
  8. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/schema.d.ts +60 -24
  10. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/chat/validation.d.ts +79 -0
  12. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  13. package/dist/api-contracts/src/contract.d.ts +2230 -0
  14. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  15. package/dist/api-contracts/src/cx-log/index.d.ts +11 -0
  16. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  17. package/dist/api-contracts/src/cx-log/schema.d.ts +9 -0
  18. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  19. package/dist/api-contracts/src/facebook-feed/index.d.ts +106 -0
  20. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/facebook-feed/schema.d.ts +7 -0
  22. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  23. package/dist/api-contracts/src/facebook-feed/validation.d.ts +5 -0
  24. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  25. package/dist/api-contracts/src/instagram/index.d.ts +83 -0
  26. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  27. package/dist/api-contracts/src/line/index.d.ts +75 -0
  28. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/line/validation.d.ts +9 -0
  30. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  31. package/dist/api-contracts/src/messenger/index.d.ts +186 -0
  32. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  33. package/dist/api-contracts/src/messenger/schema.d.ts +230 -1
  34. package/dist/api-contracts/src/messenger/schema.d.ts.map +1 -1
  35. package/dist/api-contracts/src/messenger/validation.d.ts +42 -0
  36. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  37. package/dist/api-contracts/src/sms/index.d.ts +16 -0
  38. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  39. package/dist/api-contracts/src/telegram/index.d.ts +61 -0
  40. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  41. package/dist/api-contracts/src/viber/index.d.ts +61 -0
  42. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  43. package/dist/api-contracts/src/webchat/index.d.ts +40 -0
  44. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  45. package/dist/api-contracts/src/workflow-rule/index.d.ts +18 -0
  46. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  47. package/dist/index.js +2224 -2154
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +2224 -2154
  50. package/dist/index.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/api-contracts/src/hold-label/index.d.ts +0 -315
  53. package/dist/api-contracts/src/hold-label/index.d.ts.map +0 -1
  54. package/dist/api-contracts/src/hold-label/schema.d.ts +0 -24
  55. package/dist/api-contracts/src/hold-label/schema.d.ts.map +0 -1
  56. package/dist/api-contracts/src/hold-label/validation.d.ts +0 -24
  57. package/dist/api-contracts/src/hold-label/validation.d.ts.map +0 -1
  58. package/dist/api-contracts/src/presence-status/index.d.ts +0 -556
  59. package/dist/api-contracts/src/presence-status/index.d.ts.map +0 -1
  60. package/dist/api-contracts/src/presence-status/schema.d.ts +0 -31
  61. package/dist/api-contracts/src/presence-status/schema.d.ts.map +0 -1
  62. package/dist/api-contracts/src/presence-status/validation.d.ts +0 -28
  63. package/dist/api-contracts/src/presence-status/validation.d.ts.map +0 -1
  64. package/dist/api-contracts/src/subscription/index.d.ts +0 -1900
  65. package/dist/api-contracts/src/subscription/index.d.ts.map +0 -1
  66. package/dist/api-contracts/src/subscription/schema.d.ts +0 -2059
  67. package/dist/api-contracts/src/subscription/schema.d.ts.map +0 -1
  68. package/dist/api-contracts/src/subscription/validation.d.ts +0 -37
  69. package/dist/api-contracts/src/subscription/validation.d.ts.map +0 -1
@@ -1,1900 +0,0 @@
1
- import { z } from 'zod';
2
- import { ProductPriceSchema, ProductSchema, SubscriptionProuctSchema, SubscriptionSchema } from './schema';
3
- import { UpdateSubscriptionSchema, TopUpBalanceSchema } from './validation';
4
- export type UpdateSubscriptionBody = z.infer<typeof UpdateSubscriptionSchema>;
5
- export type topUpBalanceBody = z.infer<typeof TopUpBalanceSchema>;
6
- export type Subscription = z.infer<typeof SubscriptionSchema>;
7
- export type SubscriptionProuct = z.infer<typeof SubscriptionProuctSchema>;
8
- export type ProductPrice = z.infer<typeof ProductPriceSchema>;
9
- export type Product = z.infer<typeof ProductSchema>;
10
- export declare const subscriptionContract: {
11
- getSubscription: {
12
- method: "GET";
13
- query: null;
14
- responses: {
15
- 200: z.ZodObject<{
16
- requestId: z.ZodString;
17
- subscription: z.ZodObject<{
18
- id: z.ZodString;
19
- createdAt: z.ZodDate;
20
- updatedAt: z.ZodDate;
21
- deletedAt: z.ZodNullable<z.ZodDate>;
22
- provider: z.ZodString;
23
- type: z.ZodString;
24
- subscriptionId: z.ZodString;
25
- interval: z.ZodString;
26
- quantity: z.ZodNumber;
27
- amount: z.ZodNumber;
28
- startAt: z.ZodNullable<z.ZodDate>;
29
- expireAt: z.ZodDate;
30
- status: z.ZodString;
31
- name: z.ZodNullable<z.ZodString>;
32
- subscriptionProducts: z.ZodArray<z.ZodObject<{
33
- id: z.ZodString;
34
- createdAt: z.ZodDate;
35
- updatedAt: z.ZodDate;
36
- deletedAt: z.ZodNullable<z.ZodDate>;
37
- limit: z.ZodNumber;
38
- subscriptionItemId: z.ZodString;
39
- usage: z.ZodNullable<z.ZodNumber>;
40
- product: z.ZodObject<{
41
- id: z.ZodString;
42
- createdAt: z.ZodDate;
43
- updatedAt: z.ZodDate;
44
- deletedAt: z.ZodNullable<z.ZodDate>;
45
- provider: z.ZodString;
46
- productId: z.ZodString;
47
- name: z.ZodString;
48
- type: z.ZodString;
49
- omnichannel: z.ZodString;
50
- usageType: z.ZodNullable<z.ZodString>;
51
- productPrice: z.ZodObject<{
52
- id: z.ZodString;
53
- createdAt: z.ZodDate;
54
- updatedAt: z.ZodDate;
55
- deletedAt: z.ZodNullable<z.ZodDate>;
56
- priceId: z.ZodString;
57
- name: z.ZodNullable<z.ZodString>;
58
- perUnit: z.ZodNumber;
59
- price: z.ZodNumber;
60
- currency: z.ZodNullable<z.ZodString>;
61
- }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- name: string | null;
64
- currency: string | null;
65
- createdAt: Date;
66
- updatedAt: Date;
67
- deletedAt: Date | null;
68
- priceId: string;
69
- perUnit: number;
70
- price: number;
71
- }, {
72
- id: string;
73
- name: string | null;
74
- currency: string | null;
75
- createdAt: Date;
76
- updatedAt: Date;
77
- deletedAt: Date | null;
78
- priceId: string;
79
- perUnit: number;
80
- price: number;
81
- }>;
82
- relatedProducts: z.ZodArray<z.ZodObject<{
83
- id: z.ZodString;
84
- createdAt: z.ZodDate;
85
- updatedAt: z.ZodDate;
86
- deletedAt: z.ZodNullable<z.ZodDate>;
87
- includedQuantity: z.ZodNumber;
88
- product: z.ZodObject<{
89
- id: z.ZodString;
90
- createdAt: z.ZodDate;
91
- updatedAt: z.ZodDate;
92
- deletedAt: z.ZodNullable<z.ZodDate>;
93
- provider: z.ZodString;
94
- productId: z.ZodString;
95
- name: z.ZodString;
96
- type: z.ZodString;
97
- omnichannel: z.ZodString;
98
- usageType: z.ZodNullable<z.ZodString>;
99
- productPrice: z.ZodObject<{
100
- id: z.ZodString;
101
- createdAt: z.ZodDate;
102
- updatedAt: z.ZodDate;
103
- deletedAt: z.ZodNullable<z.ZodDate>;
104
- priceId: z.ZodString;
105
- name: z.ZodNullable<z.ZodString>;
106
- perUnit: z.ZodNumber;
107
- price: z.ZodNumber;
108
- currency: z.ZodNullable<z.ZodString>;
109
- }, "strip", z.ZodTypeAny, {
110
- id: string;
111
- name: string | null;
112
- currency: string | null;
113
- createdAt: Date;
114
- updatedAt: Date;
115
- deletedAt: Date | null;
116
- priceId: string;
117
- perUnit: number;
118
- price: number;
119
- }, {
120
- id: string;
121
- name: string | null;
122
- currency: string | null;
123
- createdAt: Date;
124
- updatedAt: Date;
125
- deletedAt: Date | null;
126
- priceId: string;
127
- perUnit: number;
128
- price: number;
129
- }>;
130
- }, "strip", z.ZodTypeAny, {
131
- type: string;
132
- id: string;
133
- name: string;
134
- createdAt: Date;
135
- updatedAt: Date;
136
- deletedAt: Date | null;
137
- provider: string;
138
- productId: string;
139
- omnichannel: string;
140
- usageType: string | null;
141
- productPrice: {
142
- id: string;
143
- name: string | null;
144
- currency: string | null;
145
- createdAt: Date;
146
- updatedAt: Date;
147
- deletedAt: Date | null;
148
- priceId: string;
149
- perUnit: number;
150
- price: number;
151
- };
152
- }, {
153
- type: string;
154
- id: string;
155
- name: string;
156
- createdAt: Date;
157
- updatedAt: Date;
158
- deletedAt: Date | null;
159
- provider: string;
160
- productId: string;
161
- omnichannel: string;
162
- usageType: string | null;
163
- productPrice: {
164
- id: string;
165
- name: string | null;
166
- currency: string | null;
167
- createdAt: Date;
168
- updatedAt: Date;
169
- deletedAt: Date | null;
170
- priceId: string;
171
- perUnit: number;
172
- price: number;
173
- };
174
- }>;
175
- }, "strip", z.ZodTypeAny, {
176
- id: string;
177
- product: {
178
- type: string;
179
- id: string;
180
- name: string;
181
- createdAt: Date;
182
- updatedAt: Date;
183
- deletedAt: Date | null;
184
- provider: string;
185
- productId: string;
186
- omnichannel: string;
187
- usageType: string | null;
188
- productPrice: {
189
- id: string;
190
- name: string | null;
191
- currency: string | null;
192
- createdAt: Date;
193
- updatedAt: Date;
194
- deletedAt: Date | null;
195
- priceId: string;
196
- perUnit: number;
197
- price: number;
198
- };
199
- };
200
- createdAt: Date;
201
- updatedAt: Date;
202
- deletedAt: Date | null;
203
- includedQuantity: number;
204
- }, {
205
- id: string;
206
- product: {
207
- type: string;
208
- id: string;
209
- name: string;
210
- createdAt: Date;
211
- updatedAt: Date;
212
- deletedAt: Date | null;
213
- provider: string;
214
- productId: string;
215
- omnichannel: string;
216
- usageType: string | null;
217
- productPrice: {
218
- id: string;
219
- name: string | null;
220
- currency: string | null;
221
- createdAt: Date;
222
- updatedAt: Date;
223
- deletedAt: Date | null;
224
- priceId: string;
225
- perUnit: number;
226
- price: number;
227
- };
228
- };
229
- createdAt: Date;
230
- updatedAt: Date;
231
- deletedAt: Date | null;
232
- includedQuantity: number;
233
- }>, "many">;
234
- }, "strip", z.ZodTypeAny, {
235
- type: string;
236
- id: string;
237
- name: string;
238
- createdAt: Date;
239
- updatedAt: Date;
240
- deletedAt: Date | null;
241
- provider: string;
242
- productId: string;
243
- omnichannel: string;
244
- usageType: string | null;
245
- productPrice: {
246
- id: string;
247
- name: string | null;
248
- currency: string | null;
249
- createdAt: Date;
250
- updatedAt: Date;
251
- deletedAt: Date | null;
252
- priceId: string;
253
- perUnit: number;
254
- price: number;
255
- };
256
- relatedProducts: {
257
- id: string;
258
- product: {
259
- type: string;
260
- id: string;
261
- name: string;
262
- createdAt: Date;
263
- updatedAt: Date;
264
- deletedAt: Date | null;
265
- provider: string;
266
- productId: string;
267
- omnichannel: string;
268
- usageType: string | null;
269
- productPrice: {
270
- id: string;
271
- name: string | null;
272
- currency: string | null;
273
- createdAt: Date;
274
- updatedAt: Date;
275
- deletedAt: Date | null;
276
- priceId: string;
277
- perUnit: number;
278
- price: number;
279
- };
280
- };
281
- createdAt: Date;
282
- updatedAt: Date;
283
- deletedAt: Date | null;
284
- includedQuantity: number;
285
- }[];
286
- }, {
287
- type: string;
288
- id: string;
289
- name: string;
290
- createdAt: Date;
291
- updatedAt: Date;
292
- deletedAt: Date | null;
293
- provider: string;
294
- productId: string;
295
- omnichannel: string;
296
- usageType: string | null;
297
- productPrice: {
298
- id: string;
299
- name: string | null;
300
- currency: string | null;
301
- createdAt: Date;
302
- updatedAt: Date;
303
- deletedAt: Date | null;
304
- priceId: string;
305
- perUnit: number;
306
- price: number;
307
- };
308
- relatedProducts: {
309
- id: string;
310
- product: {
311
- type: string;
312
- id: string;
313
- name: string;
314
- createdAt: Date;
315
- updatedAt: Date;
316
- deletedAt: Date | null;
317
- provider: string;
318
- productId: string;
319
- omnichannel: string;
320
- usageType: string | null;
321
- productPrice: {
322
- id: string;
323
- name: string | null;
324
- currency: string | null;
325
- createdAt: Date;
326
- updatedAt: Date;
327
- deletedAt: Date | null;
328
- priceId: string;
329
- perUnit: number;
330
- price: number;
331
- };
332
- };
333
- createdAt: Date;
334
- updatedAt: Date;
335
- deletedAt: Date | null;
336
- includedQuantity: number;
337
- }[];
338
- }>;
339
- }, "strip", z.ZodTypeAny, {
340
- id: string;
341
- product: {
342
- type: string;
343
- id: string;
344
- name: string;
345
- createdAt: Date;
346
- updatedAt: Date;
347
- deletedAt: Date | null;
348
- provider: string;
349
- productId: string;
350
- omnichannel: string;
351
- usageType: string | null;
352
- productPrice: {
353
- id: string;
354
- name: string | null;
355
- currency: string | null;
356
- createdAt: Date;
357
- updatedAt: Date;
358
- deletedAt: Date | null;
359
- priceId: string;
360
- perUnit: number;
361
- price: number;
362
- };
363
- relatedProducts: {
364
- id: string;
365
- product: {
366
- type: string;
367
- id: string;
368
- name: string;
369
- createdAt: Date;
370
- updatedAt: Date;
371
- deletedAt: Date | null;
372
- provider: string;
373
- productId: string;
374
- omnichannel: string;
375
- usageType: string | null;
376
- productPrice: {
377
- id: string;
378
- name: string | null;
379
- currency: string | null;
380
- createdAt: Date;
381
- updatedAt: Date;
382
- deletedAt: Date | null;
383
- priceId: string;
384
- perUnit: number;
385
- price: number;
386
- };
387
- };
388
- createdAt: Date;
389
- updatedAt: Date;
390
- deletedAt: Date | null;
391
- includedQuantity: number;
392
- }[];
393
- };
394
- createdAt: Date;
395
- updatedAt: Date;
396
- deletedAt: Date | null;
397
- limit: number;
398
- subscriptionItemId: string;
399
- usage: number | null;
400
- }, {
401
- id: string;
402
- product: {
403
- type: string;
404
- id: string;
405
- name: string;
406
- createdAt: Date;
407
- updatedAt: Date;
408
- deletedAt: Date | null;
409
- provider: string;
410
- productId: string;
411
- omnichannel: string;
412
- usageType: string | null;
413
- productPrice: {
414
- id: string;
415
- name: string | null;
416
- currency: string | null;
417
- createdAt: Date;
418
- updatedAt: Date;
419
- deletedAt: Date | null;
420
- priceId: string;
421
- perUnit: number;
422
- price: number;
423
- };
424
- relatedProducts: {
425
- id: string;
426
- product: {
427
- type: string;
428
- id: string;
429
- name: string;
430
- createdAt: Date;
431
- updatedAt: Date;
432
- deletedAt: Date | null;
433
- provider: string;
434
- productId: string;
435
- omnichannel: string;
436
- usageType: string | null;
437
- productPrice: {
438
- id: string;
439
- name: string | null;
440
- currency: string | null;
441
- createdAt: Date;
442
- updatedAt: Date;
443
- deletedAt: Date | null;
444
- priceId: string;
445
- perUnit: number;
446
- price: number;
447
- };
448
- };
449
- createdAt: Date;
450
- updatedAt: Date;
451
- deletedAt: Date | null;
452
- includedQuantity: number;
453
- }[];
454
- };
455
- createdAt: Date;
456
- updatedAt: Date;
457
- deletedAt: Date | null;
458
- limit: number;
459
- subscriptionItemId: string;
460
- usage: number | null;
461
- }>, "many">;
462
- productPrice: z.ZodObject<{
463
- id: z.ZodString;
464
- createdAt: z.ZodDate;
465
- updatedAt: z.ZodDate;
466
- deletedAt: z.ZodNullable<z.ZodDate>;
467
- priceId: z.ZodString;
468
- name: z.ZodNullable<z.ZodString>;
469
- perUnit: z.ZodNumber;
470
- price: z.ZodNumber;
471
- currency: z.ZodNullable<z.ZodString>;
472
- }, "strip", z.ZodTypeAny, {
473
- id: string;
474
- name: string | null;
475
- currency: string | null;
476
- createdAt: Date;
477
- updatedAt: Date;
478
- deletedAt: Date | null;
479
- priceId: string;
480
- perUnit: number;
481
- price: number;
482
- }, {
483
- id: string;
484
- name: string | null;
485
- currency: string | null;
486
- createdAt: Date;
487
- updatedAt: Date;
488
- deletedAt: Date | null;
489
- priceId: string;
490
- perUnit: number;
491
- price: number;
492
- }>;
493
- product: z.ZodObject<{
494
- id: z.ZodString;
495
- createdAt: z.ZodDate;
496
- updatedAt: z.ZodDate;
497
- deletedAt: z.ZodNullable<z.ZodDate>;
498
- provider: z.ZodString;
499
- productId: z.ZodString;
500
- name: z.ZodString;
501
- type: z.ZodString;
502
- omnichannel: z.ZodString;
503
- usageType: z.ZodNullable<z.ZodString>;
504
- productPrice: z.ZodObject<{
505
- id: z.ZodString;
506
- createdAt: z.ZodDate;
507
- updatedAt: z.ZodDate;
508
- deletedAt: z.ZodNullable<z.ZodDate>;
509
- priceId: z.ZodString;
510
- name: z.ZodNullable<z.ZodString>;
511
- perUnit: z.ZodNumber;
512
- price: z.ZodNumber;
513
- currency: z.ZodNullable<z.ZodString>;
514
- }, "strip", z.ZodTypeAny, {
515
- id: string;
516
- name: string | null;
517
- currency: string | null;
518
- createdAt: Date;
519
- updatedAt: Date;
520
- deletedAt: Date | null;
521
- priceId: string;
522
- perUnit: number;
523
- price: number;
524
- }, {
525
- id: string;
526
- name: string | null;
527
- currency: string | null;
528
- createdAt: Date;
529
- updatedAt: Date;
530
- deletedAt: Date | null;
531
- priceId: string;
532
- perUnit: number;
533
- price: number;
534
- }>;
535
- relatedProducts: z.ZodArray<z.ZodObject<{
536
- id: z.ZodString;
537
- createdAt: z.ZodDate;
538
- updatedAt: z.ZodDate;
539
- deletedAt: z.ZodNullable<z.ZodDate>;
540
- includedQuantity: z.ZodNumber;
541
- product: z.ZodObject<{
542
- id: z.ZodString;
543
- createdAt: z.ZodDate;
544
- updatedAt: z.ZodDate;
545
- deletedAt: z.ZodNullable<z.ZodDate>;
546
- provider: z.ZodString;
547
- productId: z.ZodString;
548
- name: z.ZodString;
549
- type: z.ZodString;
550
- omnichannel: z.ZodString;
551
- usageType: z.ZodNullable<z.ZodString>;
552
- productPrice: z.ZodObject<{
553
- id: z.ZodString;
554
- createdAt: z.ZodDate;
555
- updatedAt: z.ZodDate;
556
- deletedAt: z.ZodNullable<z.ZodDate>;
557
- priceId: z.ZodString;
558
- name: z.ZodNullable<z.ZodString>;
559
- perUnit: z.ZodNumber;
560
- price: z.ZodNumber;
561
- currency: z.ZodNullable<z.ZodString>;
562
- }, "strip", z.ZodTypeAny, {
563
- id: string;
564
- name: string | null;
565
- currency: string | null;
566
- createdAt: Date;
567
- updatedAt: Date;
568
- deletedAt: Date | null;
569
- priceId: string;
570
- perUnit: number;
571
- price: number;
572
- }, {
573
- id: string;
574
- name: string | null;
575
- currency: string | null;
576
- createdAt: Date;
577
- updatedAt: Date;
578
- deletedAt: Date | null;
579
- priceId: string;
580
- perUnit: number;
581
- price: number;
582
- }>;
583
- }, "strip", z.ZodTypeAny, {
584
- type: string;
585
- id: string;
586
- name: string;
587
- createdAt: Date;
588
- updatedAt: Date;
589
- deletedAt: Date | null;
590
- provider: string;
591
- productId: string;
592
- omnichannel: string;
593
- usageType: string | null;
594
- productPrice: {
595
- id: string;
596
- name: string | null;
597
- currency: string | null;
598
- createdAt: Date;
599
- updatedAt: Date;
600
- deletedAt: Date | null;
601
- priceId: string;
602
- perUnit: number;
603
- price: number;
604
- };
605
- }, {
606
- type: string;
607
- id: string;
608
- name: string;
609
- createdAt: Date;
610
- updatedAt: Date;
611
- deletedAt: Date | null;
612
- provider: string;
613
- productId: string;
614
- omnichannel: string;
615
- usageType: string | null;
616
- productPrice: {
617
- id: string;
618
- name: string | null;
619
- currency: string | null;
620
- createdAt: Date;
621
- updatedAt: Date;
622
- deletedAt: Date | null;
623
- priceId: string;
624
- perUnit: number;
625
- price: number;
626
- };
627
- }>;
628
- }, "strip", z.ZodTypeAny, {
629
- id: string;
630
- product: {
631
- type: string;
632
- id: string;
633
- name: string;
634
- createdAt: Date;
635
- updatedAt: Date;
636
- deletedAt: Date | null;
637
- provider: string;
638
- productId: string;
639
- omnichannel: string;
640
- usageType: string | null;
641
- productPrice: {
642
- id: string;
643
- name: string | null;
644
- currency: string | null;
645
- createdAt: Date;
646
- updatedAt: Date;
647
- deletedAt: Date | null;
648
- priceId: string;
649
- perUnit: number;
650
- price: number;
651
- };
652
- };
653
- createdAt: Date;
654
- updatedAt: Date;
655
- deletedAt: Date | null;
656
- includedQuantity: number;
657
- }, {
658
- id: string;
659
- product: {
660
- type: string;
661
- id: string;
662
- name: string;
663
- createdAt: Date;
664
- updatedAt: Date;
665
- deletedAt: Date | null;
666
- provider: string;
667
- productId: string;
668
- omnichannel: string;
669
- usageType: string | null;
670
- productPrice: {
671
- id: string;
672
- name: string | null;
673
- currency: string | null;
674
- createdAt: Date;
675
- updatedAt: Date;
676
- deletedAt: Date | null;
677
- priceId: string;
678
- perUnit: number;
679
- price: number;
680
- };
681
- };
682
- createdAt: Date;
683
- updatedAt: Date;
684
- deletedAt: Date | null;
685
- includedQuantity: number;
686
- }>, "many">;
687
- }, "strip", z.ZodTypeAny, {
688
- type: string;
689
- id: string;
690
- name: string;
691
- createdAt: Date;
692
- updatedAt: Date;
693
- deletedAt: Date | null;
694
- provider: string;
695
- productId: string;
696
- omnichannel: string;
697
- usageType: string | null;
698
- productPrice: {
699
- id: string;
700
- name: string | null;
701
- currency: string | null;
702
- createdAt: Date;
703
- updatedAt: Date;
704
- deletedAt: Date | null;
705
- priceId: string;
706
- perUnit: number;
707
- price: number;
708
- };
709
- relatedProducts: {
710
- id: string;
711
- product: {
712
- type: string;
713
- id: string;
714
- name: string;
715
- createdAt: Date;
716
- updatedAt: Date;
717
- deletedAt: Date | null;
718
- provider: string;
719
- productId: string;
720
- omnichannel: string;
721
- usageType: string | null;
722
- productPrice: {
723
- id: string;
724
- name: string | null;
725
- currency: string | null;
726
- createdAt: Date;
727
- updatedAt: Date;
728
- deletedAt: Date | null;
729
- priceId: string;
730
- perUnit: number;
731
- price: number;
732
- };
733
- };
734
- createdAt: Date;
735
- updatedAt: Date;
736
- deletedAt: Date | null;
737
- includedQuantity: number;
738
- }[];
739
- }, {
740
- type: string;
741
- id: string;
742
- name: string;
743
- createdAt: Date;
744
- updatedAt: Date;
745
- deletedAt: Date | null;
746
- provider: string;
747
- productId: string;
748
- omnichannel: string;
749
- usageType: string | null;
750
- productPrice: {
751
- id: string;
752
- name: string | null;
753
- currency: string | null;
754
- createdAt: Date;
755
- updatedAt: Date;
756
- deletedAt: Date | null;
757
- priceId: string;
758
- perUnit: number;
759
- price: number;
760
- };
761
- relatedProducts: {
762
- id: string;
763
- product: {
764
- type: string;
765
- id: string;
766
- name: string;
767
- createdAt: Date;
768
- updatedAt: Date;
769
- deletedAt: Date | null;
770
- provider: string;
771
- productId: string;
772
- omnichannel: string;
773
- usageType: string | null;
774
- productPrice: {
775
- id: string;
776
- name: string | null;
777
- currency: string | null;
778
- createdAt: Date;
779
- updatedAt: Date;
780
- deletedAt: Date | null;
781
- priceId: string;
782
- perUnit: number;
783
- price: number;
784
- };
785
- };
786
- createdAt: Date;
787
- updatedAt: Date;
788
- deletedAt: Date | null;
789
- includedQuantity: number;
790
- }[];
791
- }>;
792
- }, "strip", z.ZodTypeAny, {
793
- type: string;
794
- interval: string;
795
- id: string;
796
- name: string | null;
797
- product: {
798
- type: string;
799
- id: string;
800
- name: string;
801
- createdAt: Date;
802
- updatedAt: Date;
803
- deletedAt: Date | null;
804
- provider: string;
805
- productId: string;
806
- omnichannel: string;
807
- usageType: string | null;
808
- productPrice: {
809
- id: string;
810
- name: string | null;
811
- currency: string | null;
812
- createdAt: Date;
813
- updatedAt: Date;
814
- deletedAt: Date | null;
815
- priceId: string;
816
- perUnit: number;
817
- price: number;
818
- };
819
- relatedProducts: {
820
- id: string;
821
- product: {
822
- type: string;
823
- id: string;
824
- name: string;
825
- createdAt: Date;
826
- updatedAt: Date;
827
- deletedAt: Date | null;
828
- provider: string;
829
- productId: string;
830
- omnichannel: string;
831
- usageType: string | null;
832
- productPrice: {
833
- id: string;
834
- name: string | null;
835
- currency: string | null;
836
- createdAt: Date;
837
- updatedAt: Date;
838
- deletedAt: Date | null;
839
- priceId: string;
840
- perUnit: number;
841
- price: number;
842
- };
843
- };
844
- createdAt: Date;
845
- updatedAt: Date;
846
- deletedAt: Date | null;
847
- includedQuantity: number;
848
- }[];
849
- };
850
- status: string;
851
- createdAt: Date;
852
- updatedAt: Date;
853
- deletedAt: Date | null;
854
- provider: string;
855
- productPrice: {
856
- id: string;
857
- name: string | null;
858
- currency: string | null;
859
- createdAt: Date;
860
- updatedAt: Date;
861
- deletedAt: Date | null;
862
- priceId: string;
863
- perUnit: number;
864
- price: number;
865
- };
866
- subscriptionId: string;
867
- quantity: number;
868
- amount: number;
869
- startAt: Date | null;
870
- expireAt: Date;
871
- subscriptionProducts: {
872
- id: string;
873
- product: {
874
- type: string;
875
- id: string;
876
- name: string;
877
- createdAt: Date;
878
- updatedAt: Date;
879
- deletedAt: Date | null;
880
- provider: string;
881
- productId: string;
882
- omnichannel: string;
883
- usageType: string | null;
884
- productPrice: {
885
- id: string;
886
- name: string | null;
887
- currency: string | null;
888
- createdAt: Date;
889
- updatedAt: Date;
890
- deletedAt: Date | null;
891
- priceId: string;
892
- perUnit: number;
893
- price: number;
894
- };
895
- relatedProducts: {
896
- id: string;
897
- product: {
898
- type: string;
899
- id: string;
900
- name: string;
901
- createdAt: Date;
902
- updatedAt: Date;
903
- deletedAt: Date | null;
904
- provider: string;
905
- productId: string;
906
- omnichannel: string;
907
- usageType: string | null;
908
- productPrice: {
909
- id: string;
910
- name: string | null;
911
- currency: string | null;
912
- createdAt: Date;
913
- updatedAt: Date;
914
- deletedAt: Date | null;
915
- priceId: string;
916
- perUnit: number;
917
- price: number;
918
- };
919
- };
920
- createdAt: Date;
921
- updatedAt: Date;
922
- deletedAt: Date | null;
923
- includedQuantity: number;
924
- }[];
925
- };
926
- createdAt: Date;
927
- updatedAt: Date;
928
- deletedAt: Date | null;
929
- limit: number;
930
- subscriptionItemId: string;
931
- usage: number | null;
932
- }[];
933
- }, {
934
- type: string;
935
- interval: string;
936
- id: string;
937
- name: string | null;
938
- product: {
939
- type: string;
940
- id: string;
941
- name: string;
942
- createdAt: Date;
943
- updatedAt: Date;
944
- deletedAt: Date | null;
945
- provider: string;
946
- productId: string;
947
- omnichannel: string;
948
- usageType: string | null;
949
- productPrice: {
950
- id: string;
951
- name: string | null;
952
- currency: string | null;
953
- createdAt: Date;
954
- updatedAt: Date;
955
- deletedAt: Date | null;
956
- priceId: string;
957
- perUnit: number;
958
- price: number;
959
- };
960
- relatedProducts: {
961
- id: string;
962
- product: {
963
- type: string;
964
- id: string;
965
- name: string;
966
- createdAt: Date;
967
- updatedAt: Date;
968
- deletedAt: Date | null;
969
- provider: string;
970
- productId: string;
971
- omnichannel: string;
972
- usageType: string | null;
973
- productPrice: {
974
- id: string;
975
- name: string | null;
976
- currency: string | null;
977
- createdAt: Date;
978
- updatedAt: Date;
979
- deletedAt: Date | null;
980
- priceId: string;
981
- perUnit: number;
982
- price: number;
983
- };
984
- };
985
- createdAt: Date;
986
- updatedAt: Date;
987
- deletedAt: Date | null;
988
- includedQuantity: number;
989
- }[];
990
- };
991
- status: string;
992
- createdAt: Date;
993
- updatedAt: Date;
994
- deletedAt: Date | null;
995
- provider: string;
996
- productPrice: {
997
- id: string;
998
- name: string | null;
999
- currency: string | null;
1000
- createdAt: Date;
1001
- updatedAt: Date;
1002
- deletedAt: Date | null;
1003
- priceId: string;
1004
- perUnit: number;
1005
- price: number;
1006
- };
1007
- subscriptionId: string;
1008
- quantity: number;
1009
- amount: number;
1010
- startAt: Date | null;
1011
- expireAt: Date;
1012
- subscriptionProducts: {
1013
- id: string;
1014
- product: {
1015
- type: string;
1016
- id: string;
1017
- name: string;
1018
- createdAt: Date;
1019
- updatedAt: Date;
1020
- deletedAt: Date | null;
1021
- provider: string;
1022
- productId: string;
1023
- omnichannel: string;
1024
- usageType: string | null;
1025
- productPrice: {
1026
- id: string;
1027
- name: string | null;
1028
- currency: string | null;
1029
- createdAt: Date;
1030
- updatedAt: Date;
1031
- deletedAt: Date | null;
1032
- priceId: string;
1033
- perUnit: number;
1034
- price: number;
1035
- };
1036
- relatedProducts: {
1037
- id: string;
1038
- product: {
1039
- type: string;
1040
- id: string;
1041
- name: string;
1042
- createdAt: Date;
1043
- updatedAt: Date;
1044
- deletedAt: Date | null;
1045
- provider: string;
1046
- productId: string;
1047
- omnichannel: string;
1048
- usageType: string | null;
1049
- productPrice: {
1050
- id: string;
1051
- name: string | null;
1052
- currency: string | null;
1053
- createdAt: Date;
1054
- updatedAt: Date;
1055
- deletedAt: Date | null;
1056
- priceId: string;
1057
- perUnit: number;
1058
- price: number;
1059
- };
1060
- };
1061
- createdAt: Date;
1062
- updatedAt: Date;
1063
- deletedAt: Date | null;
1064
- includedQuantity: number;
1065
- }[];
1066
- };
1067
- createdAt: Date;
1068
- updatedAt: Date;
1069
- deletedAt: Date | null;
1070
- limit: number;
1071
- subscriptionItemId: string;
1072
- usage: number | null;
1073
- }[];
1074
- }>;
1075
- }, "strip", z.ZodTypeAny, {
1076
- requestId: string;
1077
- subscription: {
1078
- type: string;
1079
- interval: string;
1080
- id: string;
1081
- name: string | null;
1082
- product: {
1083
- type: string;
1084
- id: string;
1085
- name: string;
1086
- createdAt: Date;
1087
- updatedAt: Date;
1088
- deletedAt: Date | null;
1089
- provider: string;
1090
- productId: string;
1091
- omnichannel: string;
1092
- usageType: string | null;
1093
- productPrice: {
1094
- id: string;
1095
- name: string | null;
1096
- currency: string | null;
1097
- createdAt: Date;
1098
- updatedAt: Date;
1099
- deletedAt: Date | null;
1100
- priceId: string;
1101
- perUnit: number;
1102
- price: number;
1103
- };
1104
- relatedProducts: {
1105
- id: string;
1106
- product: {
1107
- type: string;
1108
- id: string;
1109
- name: string;
1110
- createdAt: Date;
1111
- updatedAt: Date;
1112
- deletedAt: Date | null;
1113
- provider: string;
1114
- productId: string;
1115
- omnichannel: string;
1116
- usageType: string | null;
1117
- productPrice: {
1118
- id: string;
1119
- name: string | null;
1120
- currency: string | null;
1121
- createdAt: Date;
1122
- updatedAt: Date;
1123
- deletedAt: Date | null;
1124
- priceId: string;
1125
- perUnit: number;
1126
- price: number;
1127
- };
1128
- };
1129
- createdAt: Date;
1130
- updatedAt: Date;
1131
- deletedAt: Date | null;
1132
- includedQuantity: number;
1133
- }[];
1134
- };
1135
- status: string;
1136
- createdAt: Date;
1137
- updatedAt: Date;
1138
- deletedAt: Date | null;
1139
- provider: string;
1140
- productPrice: {
1141
- id: string;
1142
- name: string | null;
1143
- currency: string | null;
1144
- createdAt: Date;
1145
- updatedAt: Date;
1146
- deletedAt: Date | null;
1147
- priceId: string;
1148
- perUnit: number;
1149
- price: number;
1150
- };
1151
- subscriptionId: string;
1152
- quantity: number;
1153
- amount: number;
1154
- startAt: Date | null;
1155
- expireAt: Date;
1156
- subscriptionProducts: {
1157
- id: string;
1158
- product: {
1159
- type: string;
1160
- id: string;
1161
- name: string;
1162
- createdAt: Date;
1163
- updatedAt: Date;
1164
- deletedAt: Date | null;
1165
- provider: string;
1166
- productId: string;
1167
- omnichannel: string;
1168
- usageType: string | null;
1169
- productPrice: {
1170
- id: string;
1171
- name: string | null;
1172
- currency: string | null;
1173
- createdAt: Date;
1174
- updatedAt: Date;
1175
- deletedAt: Date | null;
1176
- priceId: string;
1177
- perUnit: number;
1178
- price: number;
1179
- };
1180
- relatedProducts: {
1181
- id: string;
1182
- product: {
1183
- type: string;
1184
- id: string;
1185
- name: string;
1186
- createdAt: Date;
1187
- updatedAt: Date;
1188
- deletedAt: Date | null;
1189
- provider: string;
1190
- productId: string;
1191
- omnichannel: string;
1192
- usageType: string | null;
1193
- productPrice: {
1194
- id: string;
1195
- name: string | null;
1196
- currency: string | null;
1197
- createdAt: Date;
1198
- updatedAt: Date;
1199
- deletedAt: Date | null;
1200
- priceId: string;
1201
- perUnit: number;
1202
- price: number;
1203
- };
1204
- };
1205
- createdAt: Date;
1206
- updatedAt: Date;
1207
- deletedAt: Date | null;
1208
- includedQuantity: number;
1209
- }[];
1210
- };
1211
- createdAt: Date;
1212
- updatedAt: Date;
1213
- deletedAt: Date | null;
1214
- limit: number;
1215
- subscriptionItemId: string;
1216
- usage: number | null;
1217
- }[];
1218
- };
1219
- }, {
1220
- requestId: string;
1221
- subscription: {
1222
- type: string;
1223
- interval: string;
1224
- id: string;
1225
- name: string | null;
1226
- product: {
1227
- type: string;
1228
- id: string;
1229
- name: string;
1230
- createdAt: Date;
1231
- updatedAt: Date;
1232
- deletedAt: Date | null;
1233
- provider: string;
1234
- productId: string;
1235
- omnichannel: string;
1236
- usageType: string | null;
1237
- productPrice: {
1238
- id: string;
1239
- name: string | null;
1240
- currency: string | null;
1241
- createdAt: Date;
1242
- updatedAt: Date;
1243
- deletedAt: Date | null;
1244
- priceId: string;
1245
- perUnit: number;
1246
- price: number;
1247
- };
1248
- relatedProducts: {
1249
- id: string;
1250
- product: {
1251
- type: string;
1252
- id: string;
1253
- name: string;
1254
- createdAt: Date;
1255
- updatedAt: Date;
1256
- deletedAt: Date | null;
1257
- provider: string;
1258
- productId: string;
1259
- omnichannel: string;
1260
- usageType: string | null;
1261
- productPrice: {
1262
- id: string;
1263
- name: string | null;
1264
- currency: string | null;
1265
- createdAt: Date;
1266
- updatedAt: Date;
1267
- deletedAt: Date | null;
1268
- priceId: string;
1269
- perUnit: number;
1270
- price: number;
1271
- };
1272
- };
1273
- createdAt: Date;
1274
- updatedAt: Date;
1275
- deletedAt: Date | null;
1276
- includedQuantity: number;
1277
- }[];
1278
- };
1279
- status: string;
1280
- createdAt: Date;
1281
- updatedAt: Date;
1282
- deletedAt: Date | null;
1283
- provider: string;
1284
- productPrice: {
1285
- id: string;
1286
- name: string | null;
1287
- currency: string | null;
1288
- createdAt: Date;
1289
- updatedAt: Date;
1290
- deletedAt: Date | null;
1291
- priceId: string;
1292
- perUnit: number;
1293
- price: number;
1294
- };
1295
- subscriptionId: string;
1296
- quantity: number;
1297
- amount: number;
1298
- startAt: Date | null;
1299
- expireAt: Date;
1300
- subscriptionProducts: {
1301
- id: string;
1302
- product: {
1303
- type: string;
1304
- id: string;
1305
- name: string;
1306
- createdAt: Date;
1307
- updatedAt: Date;
1308
- deletedAt: Date | null;
1309
- provider: string;
1310
- productId: string;
1311
- omnichannel: string;
1312
- usageType: string | null;
1313
- productPrice: {
1314
- id: string;
1315
- name: string | null;
1316
- currency: string | null;
1317
- createdAt: Date;
1318
- updatedAt: Date;
1319
- deletedAt: Date | null;
1320
- priceId: string;
1321
- perUnit: number;
1322
- price: number;
1323
- };
1324
- relatedProducts: {
1325
- id: string;
1326
- product: {
1327
- type: string;
1328
- id: string;
1329
- name: string;
1330
- createdAt: Date;
1331
- updatedAt: Date;
1332
- deletedAt: Date | null;
1333
- provider: string;
1334
- productId: string;
1335
- omnichannel: string;
1336
- usageType: string | null;
1337
- productPrice: {
1338
- id: string;
1339
- name: string | null;
1340
- currency: string | null;
1341
- createdAt: Date;
1342
- updatedAt: Date;
1343
- deletedAt: Date | null;
1344
- priceId: string;
1345
- perUnit: number;
1346
- price: number;
1347
- };
1348
- };
1349
- createdAt: Date;
1350
- updatedAt: Date;
1351
- deletedAt: Date | null;
1352
- includedQuantity: number;
1353
- }[];
1354
- };
1355
- createdAt: Date;
1356
- updatedAt: Date;
1357
- deletedAt: Date | null;
1358
- limit: number;
1359
- subscriptionItemId: string;
1360
- usage: number | null;
1361
- }[];
1362
- };
1363
- }>;
1364
- 500: z.ZodObject<{
1365
- message: z.ZodString;
1366
- error: z.ZodAny;
1367
- }, "strip", z.ZodTypeAny, {
1368
- message: string;
1369
- error?: any;
1370
- }, {
1371
- message: string;
1372
- error?: any;
1373
- }>;
1374
- };
1375
- path: "subscriptions/";
1376
- };
1377
- updateSubscription: {
1378
- body: z.ZodObject<{
1379
- planProductId: z.ZodString;
1380
- subscriptionId: z.ZodString;
1381
- subscriptionProducts: z.ZodArray<z.ZodObject<{
1382
- productId: z.ZodString;
1383
- quantity: z.ZodNumber;
1384
- }, "strip", z.ZodTypeAny, {
1385
- productId: string;
1386
- quantity: number;
1387
- }, {
1388
- productId: string;
1389
- quantity: number;
1390
- }>, "many">;
1391
- }, "strip", z.ZodTypeAny, {
1392
- subscriptionId: string;
1393
- subscriptionProducts: {
1394
- productId: string;
1395
- quantity: number;
1396
- }[];
1397
- planProductId: string;
1398
- }, {
1399
- subscriptionId: string;
1400
- subscriptionProducts: {
1401
- productId: string;
1402
- quantity: number;
1403
- }[];
1404
- planProductId: string;
1405
- }>;
1406
- method: "PATCH";
1407
- responses: {
1408
- 200: z.ZodObject<{
1409
- requestId: z.ZodString;
1410
- message: z.ZodString;
1411
- requireCheckout: z.ZodBoolean;
1412
- checkoutUrl: z.ZodNullable<z.ZodString>;
1413
- }, "strip", z.ZodTypeAny, {
1414
- message: string;
1415
- requestId: string;
1416
- requireCheckout: boolean;
1417
- checkoutUrl: string | null;
1418
- }, {
1419
- message: string;
1420
- requestId: string;
1421
- requireCheckout: boolean;
1422
- checkoutUrl: string | null;
1423
- }>;
1424
- 500: z.ZodObject<{
1425
- message: z.ZodString;
1426
- error: z.ZodAny;
1427
- }, "strip", z.ZodTypeAny, {
1428
- message: string;
1429
- error?: any;
1430
- }, {
1431
- message: string;
1432
- error?: any;
1433
- }>;
1434
- };
1435
- path: "subscriptions/";
1436
- };
1437
- topUpBalance: {
1438
- body: z.ZodObject<{
1439
- quantity: z.ZodNumber;
1440
- }, "strip", z.ZodTypeAny, {
1441
- quantity: number;
1442
- }, {
1443
- quantity: number;
1444
- }>;
1445
- method: "POST";
1446
- responses: {
1447
- 200: z.ZodObject<{
1448
- requestId: z.ZodString;
1449
- checkoutUrl: z.ZodString;
1450
- }, "strip", z.ZodTypeAny, {
1451
- requestId: string;
1452
- checkoutUrl: string;
1453
- }, {
1454
- requestId: string;
1455
- checkoutUrl: string;
1456
- }>;
1457
- 500: z.ZodObject<{
1458
- message: z.ZodString;
1459
- error: z.ZodAny;
1460
- }, "strip", z.ZodTypeAny, {
1461
- message: string;
1462
- error?: any;
1463
- }, {
1464
- message: string;
1465
- error?: any;
1466
- }>;
1467
- };
1468
- path: "subscriptions/top-up";
1469
- };
1470
- getAvailablePlan: {
1471
- method: "GET";
1472
- query: null;
1473
- responses: {
1474
- 200: z.ZodObject<{
1475
- requestId: z.ZodString;
1476
- data: z.ZodArray<z.ZodObject<{
1477
- id: z.ZodString;
1478
- createdAt: z.ZodDate;
1479
- updatedAt: z.ZodDate;
1480
- deletedAt: z.ZodNullable<z.ZodDate>;
1481
- provider: z.ZodString;
1482
- productId: z.ZodString;
1483
- name: z.ZodString;
1484
- type: z.ZodString;
1485
- omnichannel: z.ZodString;
1486
- usageType: z.ZodNullable<z.ZodString>;
1487
- productPrice: z.ZodObject<{
1488
- id: z.ZodString;
1489
- createdAt: z.ZodDate;
1490
- updatedAt: z.ZodDate;
1491
- deletedAt: z.ZodNullable<z.ZodDate>;
1492
- priceId: z.ZodString;
1493
- name: z.ZodNullable<z.ZodString>;
1494
- perUnit: z.ZodNumber;
1495
- price: z.ZodNumber;
1496
- currency: z.ZodNullable<z.ZodString>;
1497
- }, "strip", z.ZodTypeAny, {
1498
- id: string;
1499
- name: string | null;
1500
- currency: string | null;
1501
- createdAt: Date;
1502
- updatedAt: Date;
1503
- deletedAt: Date | null;
1504
- priceId: string;
1505
- perUnit: number;
1506
- price: number;
1507
- }, {
1508
- id: string;
1509
- name: string | null;
1510
- currency: string | null;
1511
- createdAt: Date;
1512
- updatedAt: Date;
1513
- deletedAt: Date | null;
1514
- priceId: string;
1515
- perUnit: number;
1516
- price: number;
1517
- }>;
1518
- relatedProducts: z.ZodArray<z.ZodObject<{
1519
- id: z.ZodString;
1520
- createdAt: z.ZodDate;
1521
- updatedAt: z.ZodDate;
1522
- deletedAt: z.ZodNullable<z.ZodDate>;
1523
- includedQuantity: z.ZodNumber;
1524
- product: z.ZodObject<{
1525
- id: z.ZodString;
1526
- createdAt: z.ZodDate;
1527
- updatedAt: z.ZodDate;
1528
- deletedAt: z.ZodNullable<z.ZodDate>;
1529
- provider: z.ZodString;
1530
- productId: z.ZodString;
1531
- name: z.ZodString;
1532
- type: z.ZodString;
1533
- omnichannel: z.ZodString;
1534
- usageType: z.ZodNullable<z.ZodString>;
1535
- productPrice: z.ZodObject<{
1536
- id: z.ZodString;
1537
- createdAt: z.ZodDate;
1538
- updatedAt: z.ZodDate;
1539
- deletedAt: z.ZodNullable<z.ZodDate>;
1540
- priceId: z.ZodString;
1541
- name: z.ZodNullable<z.ZodString>;
1542
- perUnit: z.ZodNumber;
1543
- price: z.ZodNumber;
1544
- currency: z.ZodNullable<z.ZodString>;
1545
- }, "strip", z.ZodTypeAny, {
1546
- id: string;
1547
- name: string | null;
1548
- currency: string | null;
1549
- createdAt: Date;
1550
- updatedAt: Date;
1551
- deletedAt: Date | null;
1552
- priceId: string;
1553
- perUnit: number;
1554
- price: number;
1555
- }, {
1556
- id: string;
1557
- name: string | null;
1558
- currency: string | null;
1559
- createdAt: Date;
1560
- updatedAt: Date;
1561
- deletedAt: Date | null;
1562
- priceId: string;
1563
- perUnit: number;
1564
- price: number;
1565
- }>;
1566
- }, "strip", z.ZodTypeAny, {
1567
- type: string;
1568
- id: string;
1569
- name: string;
1570
- createdAt: Date;
1571
- updatedAt: Date;
1572
- deletedAt: Date | null;
1573
- provider: string;
1574
- productId: string;
1575
- omnichannel: string;
1576
- usageType: string | null;
1577
- productPrice: {
1578
- id: string;
1579
- name: string | null;
1580
- currency: string | null;
1581
- createdAt: Date;
1582
- updatedAt: Date;
1583
- deletedAt: Date | null;
1584
- priceId: string;
1585
- perUnit: number;
1586
- price: number;
1587
- };
1588
- }, {
1589
- type: string;
1590
- id: string;
1591
- name: string;
1592
- createdAt: Date;
1593
- updatedAt: Date;
1594
- deletedAt: Date | null;
1595
- provider: string;
1596
- productId: string;
1597
- omnichannel: string;
1598
- usageType: string | null;
1599
- productPrice: {
1600
- id: string;
1601
- name: string | null;
1602
- currency: string | null;
1603
- createdAt: Date;
1604
- updatedAt: Date;
1605
- deletedAt: Date | null;
1606
- priceId: string;
1607
- perUnit: number;
1608
- price: number;
1609
- };
1610
- }>;
1611
- }, "strip", z.ZodTypeAny, {
1612
- id: string;
1613
- product: {
1614
- type: string;
1615
- id: string;
1616
- name: string;
1617
- createdAt: Date;
1618
- updatedAt: Date;
1619
- deletedAt: Date | null;
1620
- provider: string;
1621
- productId: string;
1622
- omnichannel: string;
1623
- usageType: string | null;
1624
- productPrice: {
1625
- id: string;
1626
- name: string | null;
1627
- currency: string | null;
1628
- createdAt: Date;
1629
- updatedAt: Date;
1630
- deletedAt: Date | null;
1631
- priceId: string;
1632
- perUnit: number;
1633
- price: number;
1634
- };
1635
- };
1636
- createdAt: Date;
1637
- updatedAt: Date;
1638
- deletedAt: Date | null;
1639
- includedQuantity: number;
1640
- }, {
1641
- id: string;
1642
- product: {
1643
- type: string;
1644
- id: string;
1645
- name: string;
1646
- createdAt: Date;
1647
- updatedAt: Date;
1648
- deletedAt: Date | null;
1649
- provider: string;
1650
- productId: string;
1651
- omnichannel: string;
1652
- usageType: string | null;
1653
- productPrice: {
1654
- id: string;
1655
- name: string | null;
1656
- currency: string | null;
1657
- createdAt: Date;
1658
- updatedAt: Date;
1659
- deletedAt: Date | null;
1660
- priceId: string;
1661
- perUnit: number;
1662
- price: number;
1663
- };
1664
- };
1665
- createdAt: Date;
1666
- updatedAt: Date;
1667
- deletedAt: Date | null;
1668
- includedQuantity: number;
1669
- }>, "many">;
1670
- }, "strip", z.ZodTypeAny, {
1671
- type: string;
1672
- id: string;
1673
- name: string;
1674
- createdAt: Date;
1675
- updatedAt: Date;
1676
- deletedAt: Date | null;
1677
- provider: string;
1678
- productId: string;
1679
- omnichannel: string;
1680
- usageType: string | null;
1681
- productPrice: {
1682
- id: string;
1683
- name: string | null;
1684
- currency: string | null;
1685
- createdAt: Date;
1686
- updatedAt: Date;
1687
- deletedAt: Date | null;
1688
- priceId: string;
1689
- perUnit: number;
1690
- price: number;
1691
- };
1692
- relatedProducts: {
1693
- id: string;
1694
- product: {
1695
- type: string;
1696
- id: string;
1697
- name: string;
1698
- createdAt: Date;
1699
- updatedAt: Date;
1700
- deletedAt: Date | null;
1701
- provider: string;
1702
- productId: string;
1703
- omnichannel: string;
1704
- usageType: string | null;
1705
- productPrice: {
1706
- id: string;
1707
- name: string | null;
1708
- currency: string | null;
1709
- createdAt: Date;
1710
- updatedAt: Date;
1711
- deletedAt: Date | null;
1712
- priceId: string;
1713
- perUnit: number;
1714
- price: number;
1715
- };
1716
- };
1717
- createdAt: Date;
1718
- updatedAt: Date;
1719
- deletedAt: Date | null;
1720
- includedQuantity: number;
1721
- }[];
1722
- }, {
1723
- type: string;
1724
- id: string;
1725
- name: string;
1726
- createdAt: Date;
1727
- updatedAt: Date;
1728
- deletedAt: Date | null;
1729
- provider: string;
1730
- productId: string;
1731
- omnichannel: string;
1732
- usageType: string | null;
1733
- productPrice: {
1734
- id: string;
1735
- name: string | null;
1736
- currency: string | null;
1737
- createdAt: Date;
1738
- updatedAt: Date;
1739
- deletedAt: Date | null;
1740
- priceId: string;
1741
- perUnit: number;
1742
- price: number;
1743
- };
1744
- relatedProducts: {
1745
- id: string;
1746
- product: {
1747
- type: string;
1748
- id: string;
1749
- name: string;
1750
- createdAt: Date;
1751
- updatedAt: Date;
1752
- deletedAt: Date | null;
1753
- provider: string;
1754
- productId: string;
1755
- omnichannel: string;
1756
- usageType: string | null;
1757
- productPrice: {
1758
- id: string;
1759
- name: string | null;
1760
- currency: string | null;
1761
- createdAt: Date;
1762
- updatedAt: Date;
1763
- deletedAt: Date | null;
1764
- priceId: string;
1765
- perUnit: number;
1766
- price: number;
1767
- };
1768
- };
1769
- createdAt: Date;
1770
- updatedAt: Date;
1771
- deletedAt: Date | null;
1772
- includedQuantity: number;
1773
- }[];
1774
- }>, "many">;
1775
- }, "strip", z.ZodTypeAny, {
1776
- data: {
1777
- type: string;
1778
- id: string;
1779
- name: string;
1780
- createdAt: Date;
1781
- updatedAt: Date;
1782
- deletedAt: Date | null;
1783
- provider: string;
1784
- productId: string;
1785
- omnichannel: string;
1786
- usageType: string | null;
1787
- productPrice: {
1788
- id: string;
1789
- name: string | null;
1790
- currency: string | null;
1791
- createdAt: Date;
1792
- updatedAt: Date;
1793
- deletedAt: Date | null;
1794
- priceId: string;
1795
- perUnit: number;
1796
- price: number;
1797
- };
1798
- relatedProducts: {
1799
- id: string;
1800
- product: {
1801
- type: string;
1802
- id: string;
1803
- name: string;
1804
- createdAt: Date;
1805
- updatedAt: Date;
1806
- deletedAt: Date | null;
1807
- provider: string;
1808
- productId: string;
1809
- omnichannel: string;
1810
- usageType: string | null;
1811
- productPrice: {
1812
- id: string;
1813
- name: string | null;
1814
- currency: string | null;
1815
- createdAt: Date;
1816
- updatedAt: Date;
1817
- deletedAt: Date | null;
1818
- priceId: string;
1819
- perUnit: number;
1820
- price: number;
1821
- };
1822
- };
1823
- createdAt: Date;
1824
- updatedAt: Date;
1825
- deletedAt: Date | null;
1826
- includedQuantity: number;
1827
- }[];
1828
- }[];
1829
- requestId: string;
1830
- }, {
1831
- data: {
1832
- type: string;
1833
- id: string;
1834
- name: string;
1835
- createdAt: Date;
1836
- updatedAt: Date;
1837
- deletedAt: Date | null;
1838
- provider: string;
1839
- productId: string;
1840
- omnichannel: string;
1841
- usageType: string | null;
1842
- productPrice: {
1843
- id: string;
1844
- name: string | null;
1845
- currency: string | null;
1846
- createdAt: Date;
1847
- updatedAt: Date;
1848
- deletedAt: Date | null;
1849
- priceId: string;
1850
- perUnit: number;
1851
- price: number;
1852
- };
1853
- relatedProducts: {
1854
- id: string;
1855
- product: {
1856
- type: string;
1857
- id: string;
1858
- name: string;
1859
- createdAt: Date;
1860
- updatedAt: Date;
1861
- deletedAt: Date | null;
1862
- provider: string;
1863
- productId: string;
1864
- omnichannel: string;
1865
- usageType: string | null;
1866
- productPrice: {
1867
- id: string;
1868
- name: string | null;
1869
- currency: string | null;
1870
- createdAt: Date;
1871
- updatedAt: Date;
1872
- deletedAt: Date | null;
1873
- priceId: string;
1874
- perUnit: number;
1875
- price: number;
1876
- };
1877
- };
1878
- createdAt: Date;
1879
- updatedAt: Date;
1880
- deletedAt: Date | null;
1881
- includedQuantity: number;
1882
- }[];
1883
- }[];
1884
- requestId: string;
1885
- }>;
1886
- 500: z.ZodObject<{
1887
- message: z.ZodString;
1888
- error: z.ZodAny;
1889
- }, "strip", z.ZodTypeAny, {
1890
- message: string;
1891
- error?: any;
1892
- }, {
1893
- message: string;
1894
- error?: any;
1895
- }>;
1896
- };
1897
- path: "subscriptions/available-plan";
1898
- };
1899
- };
1900
- //# sourceMappingURL=index.d.ts.map