@kl1/contracts 1.0.0 → 1.0.2

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 (106) hide show
  1. package/dist/index.js +1493 -496
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1487 -492
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/index.d.ts +527 -65
  6. package/dist/src/attribute/index.d.ts.map +1 -1
  7. package/dist/src/attribute/schema.d.ts +91 -11
  8. package/dist/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/src/attribute/validation.d.ts +13 -16
  10. package/dist/src/attribute/validation.d.ts.map +1 -1
  11. package/dist/src/attribute-option/schema.d.ts +5 -5
  12. package/dist/src/auth/index.d.ts +64 -29
  13. package/dist/src/auth/index.d.ts.map +1 -1
  14. package/dist/src/base-contract.d.ts +6 -6
  15. package/dist/src/base-contract.d.ts.map +1 -1
  16. package/dist/src/call-log/schema.d.ts +5 -5
  17. package/dist/src/call-log/validation.d.ts +2 -2
  18. package/dist/src/category/index.d.ts +193 -109
  19. package/dist/src/category/index.d.ts.map +1 -1
  20. package/dist/src/category/schema.d.ts +24 -2
  21. package/dist/src/category/schema.d.ts.map +1 -1
  22. package/dist/src/category/validation.d.ts +4 -4
  23. package/dist/src/chat/index.d.ts +2111 -0
  24. package/dist/src/chat/index.d.ts.map +1 -0
  25. package/dist/src/chat/schema.d.ts +1742 -0
  26. package/dist/src/chat/schema.d.ts.map +1 -0
  27. package/dist/src/chat/validation.d.ts +355 -0
  28. package/dist/src/chat/validation.d.ts.map +1 -0
  29. package/dist/src/company/schema.d.ts +3 -3
  30. package/dist/src/contact/schema.d.ts +3 -3
  31. package/dist/src/contact-email/schema.d.ts +3 -3
  32. package/dist/src/contact-phone/schema.d.ts +3 -3
  33. package/dist/src/contract.d.ts +6117 -599
  34. package/dist/src/contract.d.ts.map +1 -1
  35. package/dist/src/custom-field/schema.d.ts +5 -5
  36. package/dist/src/custom-field-upload/schema.d.ts +3 -3
  37. package/dist/src/cx-log/index.d.ts +64 -62
  38. package/dist/src/cx-log/index.d.ts.map +1 -1
  39. package/dist/src/cx-log/schema.d.ts +7 -7
  40. package/dist/src/cx-log/validation.d.ts +47 -47
  41. package/dist/src/cx-log/validation.d.ts.map +1 -1
  42. package/dist/src/evaluate-form/schema.d.ts +3 -3
  43. package/dist/src/extension/index.d.ts +547 -0
  44. package/dist/src/extension/index.d.ts.map +1 -0
  45. package/dist/src/extension/schema.d.ts +9 -9
  46. package/dist/src/extension/validation.d.ts +49 -0
  47. package/dist/src/extension/validation.d.ts.map +1 -0
  48. package/dist/src/group/schema.d.ts +3 -3
  49. package/dist/src/index.d.ts +2 -0
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/line/index.d.ts +86 -0
  52. package/dist/src/line/index.d.ts.map +1 -0
  53. package/dist/src/line/schema.d.ts +12 -0
  54. package/dist/src/line/schema.d.ts.map +1 -0
  55. package/dist/src/line/validation.d.ts +18 -0
  56. package/dist/src/line/validation.d.ts.map +1 -0
  57. package/dist/src/log-form/schema.d.ts +3 -3
  58. package/dist/src/mail/account-contract.d.ts +119 -119
  59. package/dist/src/mail/account-contract.d.ts.map +1 -1
  60. package/dist/src/mail/mail-contract.d.ts +622 -623
  61. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  62. package/dist/src/mail/mail-server.d.ts.map +1 -1
  63. package/dist/src/mail/message-contract.d.ts.map +1 -1
  64. package/dist/src/mail/room-contract.d.ts.map +1 -1
  65. package/dist/src/mail/schemas/account.schema.d.ts +129 -129
  66. package/dist/src/permission/index.d.ts +95 -0
  67. package/dist/src/permission/index.d.ts.map +1 -0
  68. package/dist/src/permission/schema.d.ts +3 -3
  69. package/dist/src/platform-contact/schema.d.ts +5 -5
  70. package/dist/src/role/index.d.ts +545 -0
  71. package/dist/src/role/index.d.ts.map +1 -0
  72. package/dist/src/role/schema.d.ts +8 -8
  73. package/dist/src/role/validation.d.ts +37 -0
  74. package/dist/src/role/validation.d.ts.map +1 -0
  75. package/dist/src/tag/index.d.ts +286 -0
  76. package/dist/src/tag/index.d.ts.map +1 -0
  77. package/dist/src/tag/schema.d.ts +4 -3
  78. package/dist/src/tag/schema.d.ts.map +1 -1
  79. package/dist/src/tag/validation.d.ts +29 -0
  80. package/dist/src/tag/validation.d.ts.map +1 -0
  81. package/dist/src/tag-group/schema.d.ts +3 -3
  82. package/dist/src/telephony-cdr/schema.d.ts +5 -5
  83. package/dist/src/telephony-extension/index.d.ts +65 -0
  84. package/dist/src/telephony-extension/index.d.ts.map +1 -0
  85. package/dist/src/telephony-extension/schema.d.ts +18 -0
  86. package/dist/src/telephony-extension/schema.d.ts.map +1 -0
  87. package/dist/src/telephony-live-queue-call/schema.d.ts +3 -3
  88. package/dist/src/telephony-queue-call-count/schema.d.ts +3 -3
  89. package/dist/src/ticket/schema.d.ts +5 -5
  90. package/dist/src/types.d.ts +5 -0
  91. package/dist/src/types.d.ts.map +1 -0
  92. package/dist/src/upload/schema.d.ts +3 -3
  93. package/dist/src/user/index.d.ts +1064 -0
  94. package/dist/src/user/index.d.ts.map +1 -0
  95. package/dist/src/user/schema.d.ts +15 -15
  96. package/dist/src/user/schema.d.ts.map +1 -1
  97. package/dist/src/user/validation.d.ts +49 -0
  98. package/dist/src/user/validation.d.ts.map +1 -0
  99. package/dist/src/widget/index.d.ts +817 -0
  100. package/dist/src/widget/index.d.ts.map +1 -0
  101. package/dist/src/widget/schema.d.ts +20 -9
  102. package/dist/src/widget/schema.d.ts.map +1 -1
  103. package/dist/src/widget/validation.d.ts +63 -0
  104. package/dist/src/widget/validation.d.ts.map +1 -0
  105. package/dist/utils.d.ts +2 -2
  106. package/package.json +2 -1
@@ -0,0 +1,817 @@
1
+ import z from 'zod';
2
+ import { CreateWidgetSchema, UpdateWidgetSchema } from './validation';
3
+ export type CreateWidgetRequest = z.infer<typeof CreateWidgetSchema>;
4
+ export type UpdateWidgetRequest = z.infer<typeof UpdateWidgetSchema>;
5
+ export declare const widgetContract: {
6
+ createWidget: {
7
+ body: z.ZodObject<{
8
+ name: z.ZodString;
9
+ description: z.ZodString;
10
+ url: z.ZodString;
11
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
12
+ fields: z.ZodOptional<z.ZodObject<{
13
+ data: z.ZodArray<z.ZodString, "many">;
14
+ }, "strip", z.ZodTypeAny, {
15
+ data: string[];
16
+ }, {
17
+ data: string[];
18
+ }>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ url: string;
21
+ name: string;
22
+ position: "menu" | "ticket_detail" | "contact_detail";
23
+ description: string;
24
+ fields?: {
25
+ data: string[];
26
+ } | undefined;
27
+ }, {
28
+ url: string;
29
+ name: string;
30
+ position: "menu" | "ticket_detail" | "contact_detail";
31
+ description: string;
32
+ fields?: {
33
+ data: string[];
34
+ } | undefined;
35
+ }>;
36
+ summary: "Create a widget.";
37
+ method: "POST";
38
+ responses: {
39
+ 201: z.ZodObject<{
40
+ requestId: z.ZodString;
41
+ widget: z.ZodObject<{
42
+ id: z.ZodString;
43
+ createdAt: z.ZodDate;
44
+ updatedAt: z.ZodDate;
45
+ deletedAt: z.ZodNullable<z.ZodDate>;
46
+ name: z.ZodString;
47
+ description: z.ZodNullable<z.ZodString>;
48
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
49
+ fields: z.ZodObject<{
50
+ data: z.ZodArray<z.ZodString, "many">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ data: string[];
53
+ }, {
54
+ data: string[];
55
+ }>;
56
+ url: z.ZodNullable<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id: string;
59
+ url: string | null;
60
+ name: string;
61
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
62
+ description: string | null;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ deletedAt: Date | null;
66
+ fields: {
67
+ data: string[];
68
+ };
69
+ }, {
70
+ id: string;
71
+ url: string | null;
72
+ name: string;
73
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
74
+ description: string | null;
75
+ createdAt: Date;
76
+ updatedAt: Date;
77
+ deletedAt: Date | null;
78
+ fields: {
79
+ data: string[];
80
+ };
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ requestId: string;
84
+ widget: {
85
+ id: string;
86
+ url: string | null;
87
+ name: string;
88
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
89
+ description: string | null;
90
+ createdAt: Date;
91
+ updatedAt: Date;
92
+ deletedAt: Date | null;
93
+ fields: {
94
+ data: string[];
95
+ };
96
+ };
97
+ }, {
98
+ requestId: string;
99
+ widget: {
100
+ id: string;
101
+ url: string | null;
102
+ name: string;
103
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
104
+ description: string | null;
105
+ createdAt: Date;
106
+ updatedAt: Date;
107
+ deletedAt: Date | null;
108
+ fields: {
109
+ data: string[];
110
+ };
111
+ };
112
+ }>;
113
+ 400: z.ZodObject<{
114
+ message: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ message: string;
117
+ }, {
118
+ message: string;
119
+ }>;
120
+ 401: z.ZodObject<{
121
+ message: z.ZodString;
122
+ error: z.ZodAny;
123
+ }, "strip", z.ZodTypeAny, {
124
+ message: string;
125
+ error?: any;
126
+ }, {
127
+ message: string;
128
+ error?: any;
129
+ }>;
130
+ 500: z.ZodObject<{
131
+ message: z.ZodString;
132
+ error: z.ZodAny;
133
+ }, "strip", z.ZodTypeAny, {
134
+ message: string;
135
+ error?: any;
136
+ }, {
137
+ message: string;
138
+ error?: any;
139
+ }>;
140
+ };
141
+ path: "widget";
142
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
143
+ 'x-tenant': z.ZodString;
144
+ authorization: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ 'x-tenant': string;
147
+ authorization: string;
148
+ }, {
149
+ 'x-tenant': string;
150
+ authorization: string;
151
+ }>>>;
152
+ };
153
+ getWidgets: {
154
+ summary: "Get all widgets";
155
+ method: "GET";
156
+ query: z.ZodOptional<z.ZodObject<{
157
+ page: z.ZodDefault<z.ZodNumber>;
158
+ pageSize: z.ZodDefault<z.ZodNumber>;
159
+ keyword: z.ZodOptional<z.ZodString>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ page: number;
162
+ pageSize: number;
163
+ keyword?: string | undefined;
164
+ }, {
165
+ page?: number | undefined;
166
+ pageSize?: number | undefined;
167
+ keyword?: string | undefined;
168
+ }>>;
169
+ responses: {
170
+ 200: z.ZodObject<{
171
+ total: z.ZodNumber;
172
+ page: z.ZodDefault<z.ZodNumber>;
173
+ pageSize: z.ZodDefault<z.ZodNumber>;
174
+ lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
175
+ data: z.ZodArray<z.ZodType<{
176
+ id: string;
177
+ url: string | null;
178
+ name: string;
179
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
180
+ description: string | null;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ deletedAt: Date | null;
184
+ fields: {
185
+ data: string[];
186
+ };
187
+ }, z.ZodTypeDef, {
188
+ id: string;
189
+ url: string | null;
190
+ name: string;
191
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
192
+ description: string | null;
193
+ createdAt: Date;
194
+ updatedAt: Date;
195
+ deletedAt: Date | null;
196
+ fields: {
197
+ data: string[];
198
+ };
199
+ }>, "many">;
200
+ }, "strip", z.ZodTypeAny, {
201
+ data: {
202
+ id: string;
203
+ url: string | null;
204
+ name: string;
205
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
206
+ description: string | null;
207
+ createdAt: Date;
208
+ updatedAt: Date;
209
+ deletedAt: Date | null;
210
+ fields: {
211
+ data: string[];
212
+ };
213
+ }[];
214
+ total: number;
215
+ page: number;
216
+ pageSize: number;
217
+ lastPage?: number | null | undefined;
218
+ }, {
219
+ data: {
220
+ id: string;
221
+ url: string | null;
222
+ name: string;
223
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
224
+ description: string | null;
225
+ createdAt: Date;
226
+ updatedAt: Date;
227
+ deletedAt: Date | null;
228
+ fields: {
229
+ data: string[];
230
+ };
231
+ }[];
232
+ total: number;
233
+ page?: number | undefined;
234
+ pageSize?: number | undefined;
235
+ lastPage?: number | null | undefined;
236
+ }>;
237
+ 500: z.ZodObject<{
238
+ message: z.ZodString;
239
+ error: z.ZodAny;
240
+ }, "strip", z.ZodTypeAny, {
241
+ message: string;
242
+ error?: any;
243
+ }, {
244
+ message: string;
245
+ error?: any;
246
+ }>;
247
+ 400: z.ZodObject<{
248
+ message: z.ZodString;
249
+ }, "strip", z.ZodTypeAny, {
250
+ message: string;
251
+ }, {
252
+ message: string;
253
+ }>;
254
+ 401: z.ZodObject<{
255
+ message: z.ZodString;
256
+ error: z.ZodAny;
257
+ }, "strip", z.ZodTypeAny, {
258
+ message: string;
259
+ error?: any;
260
+ }, {
261
+ message: string;
262
+ error?: any;
263
+ }>;
264
+ };
265
+ path: "widget";
266
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
267
+ 'x-tenant': z.ZodString;
268
+ authorization: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ 'x-tenant': string;
271
+ authorization: string;
272
+ }, {
273
+ 'x-tenant': string;
274
+ authorization: string;
275
+ }>>>;
276
+ };
277
+ getMenuWidgets: {
278
+ summary: "Get menu widgets";
279
+ method: "GET";
280
+ responses: {
281
+ 200: z.ZodArray<z.ZodObject<{
282
+ id: z.ZodString;
283
+ createdAt: z.ZodDate;
284
+ updatedAt: z.ZodDate;
285
+ deletedAt: z.ZodNullable<z.ZodDate>;
286
+ name: z.ZodString;
287
+ description: z.ZodNullable<z.ZodString>;
288
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
289
+ fields: z.ZodObject<{
290
+ data: z.ZodArray<z.ZodString, "many">;
291
+ }, "strip", z.ZodTypeAny, {
292
+ data: string[];
293
+ }, {
294
+ data: string[];
295
+ }>;
296
+ url: z.ZodNullable<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ id: string;
299
+ url: string | null;
300
+ name: string;
301
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
302
+ description: string | null;
303
+ createdAt: Date;
304
+ updatedAt: Date;
305
+ deletedAt: Date | null;
306
+ fields: {
307
+ data: string[];
308
+ };
309
+ }, {
310
+ id: string;
311
+ url: string | null;
312
+ name: string;
313
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
314
+ description: string | null;
315
+ createdAt: Date;
316
+ updatedAt: Date;
317
+ deletedAt: Date | null;
318
+ fields: {
319
+ data: string[];
320
+ };
321
+ }>, "many">;
322
+ 400: z.ZodObject<{
323
+ message: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ message: string;
326
+ }, {
327
+ message: string;
328
+ }>;
329
+ 401: z.ZodObject<{
330
+ message: z.ZodString;
331
+ error: z.ZodAny;
332
+ }, "strip", z.ZodTypeAny, {
333
+ message: string;
334
+ error?: any;
335
+ }, {
336
+ message: string;
337
+ error?: any;
338
+ }>;
339
+ 500: z.ZodObject<{
340
+ message: z.ZodString;
341
+ error: z.ZodAny;
342
+ }, "strip", z.ZodTypeAny, {
343
+ message: string;
344
+ error?: any;
345
+ }, {
346
+ message: string;
347
+ error?: any;
348
+ }>;
349
+ };
350
+ path: "widget/menu";
351
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
352
+ 'x-tenant': z.ZodString;
353
+ authorization: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ 'x-tenant': string;
356
+ authorization: string;
357
+ }, {
358
+ 'x-tenant': string;
359
+ authorization: string;
360
+ }>>>;
361
+ };
362
+ getTicketWidgets: {
363
+ summary: "Get ticket widgets";
364
+ method: "GET";
365
+ responses: {
366
+ 200: z.ZodArray<z.ZodObject<{
367
+ id: z.ZodString;
368
+ createdAt: z.ZodDate;
369
+ updatedAt: z.ZodDate;
370
+ deletedAt: z.ZodNullable<z.ZodDate>;
371
+ name: z.ZodString;
372
+ description: z.ZodNullable<z.ZodString>;
373
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
374
+ fields: z.ZodObject<{
375
+ data: z.ZodArray<z.ZodString, "many">;
376
+ }, "strip", z.ZodTypeAny, {
377
+ data: string[];
378
+ }, {
379
+ data: string[];
380
+ }>;
381
+ url: z.ZodNullable<z.ZodString>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ id: string;
384
+ url: string | null;
385
+ name: string;
386
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
387
+ description: string | null;
388
+ createdAt: Date;
389
+ updatedAt: Date;
390
+ deletedAt: Date | null;
391
+ fields: {
392
+ data: string[];
393
+ };
394
+ }, {
395
+ id: string;
396
+ url: string | null;
397
+ name: string;
398
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
399
+ description: string | null;
400
+ createdAt: Date;
401
+ updatedAt: Date;
402
+ deletedAt: Date | null;
403
+ fields: {
404
+ data: string[];
405
+ };
406
+ }>, "many">;
407
+ 400: z.ZodObject<{
408
+ message: z.ZodString;
409
+ }, "strip", z.ZodTypeAny, {
410
+ message: string;
411
+ }, {
412
+ message: string;
413
+ }>;
414
+ 401: z.ZodObject<{
415
+ message: z.ZodString;
416
+ error: z.ZodAny;
417
+ }, "strip", z.ZodTypeAny, {
418
+ message: string;
419
+ error?: any;
420
+ }, {
421
+ message: string;
422
+ error?: any;
423
+ }>;
424
+ 500: z.ZodObject<{
425
+ message: z.ZodString;
426
+ error: z.ZodAny;
427
+ }, "strip", z.ZodTypeAny, {
428
+ message: string;
429
+ error?: any;
430
+ }, {
431
+ message: string;
432
+ error?: any;
433
+ }>;
434
+ };
435
+ path: "widget/ticket_detail";
436
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
437
+ 'x-tenant': z.ZodString;
438
+ authorization: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ 'x-tenant': string;
441
+ authorization: string;
442
+ }, {
443
+ 'x-tenant': string;
444
+ authorization: string;
445
+ }>>>;
446
+ };
447
+ getContactWidgets: {
448
+ summary: "Get contact widgets";
449
+ method: "GET";
450
+ responses: {
451
+ 200: z.ZodArray<z.ZodObject<{
452
+ id: z.ZodString;
453
+ createdAt: z.ZodDate;
454
+ updatedAt: z.ZodDate;
455
+ deletedAt: z.ZodNullable<z.ZodDate>;
456
+ name: z.ZodString;
457
+ description: z.ZodNullable<z.ZodString>;
458
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
459
+ fields: z.ZodObject<{
460
+ data: z.ZodArray<z.ZodString, "many">;
461
+ }, "strip", z.ZodTypeAny, {
462
+ data: string[];
463
+ }, {
464
+ data: string[];
465
+ }>;
466
+ url: z.ZodNullable<z.ZodString>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ id: string;
469
+ url: string | null;
470
+ name: string;
471
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
472
+ description: string | null;
473
+ createdAt: Date;
474
+ updatedAt: Date;
475
+ deletedAt: Date | null;
476
+ fields: {
477
+ data: string[];
478
+ };
479
+ }, {
480
+ id: string;
481
+ url: string | null;
482
+ name: string;
483
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
484
+ description: string | null;
485
+ createdAt: Date;
486
+ updatedAt: Date;
487
+ deletedAt: Date | null;
488
+ fields: {
489
+ data: string[];
490
+ };
491
+ }>, "many">;
492
+ 400: z.ZodObject<{
493
+ message: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ message: string;
496
+ }, {
497
+ message: string;
498
+ }>;
499
+ 401: z.ZodObject<{
500
+ message: z.ZodString;
501
+ error: z.ZodAny;
502
+ }, "strip", z.ZodTypeAny, {
503
+ message: string;
504
+ error?: any;
505
+ }, {
506
+ message: string;
507
+ error?: any;
508
+ }>;
509
+ 500: z.ZodObject<{
510
+ message: z.ZodString;
511
+ error: z.ZodAny;
512
+ }, "strip", z.ZodTypeAny, {
513
+ message: string;
514
+ error?: any;
515
+ }, {
516
+ message: string;
517
+ error?: any;
518
+ }>;
519
+ };
520
+ path: "widget/contact_detail";
521
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
522
+ 'x-tenant': z.ZodString;
523
+ authorization: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ 'x-tenant': string;
526
+ authorization: string;
527
+ }, {
528
+ 'x-tenant': string;
529
+ authorization: string;
530
+ }>>>;
531
+ };
532
+ getWidgetById: {
533
+ summary: "Get widget by id";
534
+ method: "GET";
535
+ pathParams: z.ZodObject<{
536
+ id: z.ZodString;
537
+ }, "strip", z.ZodTypeAny, {
538
+ id: string;
539
+ }, {
540
+ id: string;
541
+ }>;
542
+ responses: {
543
+ 200: z.ZodObject<{
544
+ id: z.ZodString;
545
+ createdAt: z.ZodDate;
546
+ updatedAt: z.ZodDate;
547
+ deletedAt: z.ZodNullable<z.ZodDate>;
548
+ name: z.ZodString;
549
+ description: z.ZodNullable<z.ZodString>;
550
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
551
+ fields: z.ZodObject<{
552
+ data: z.ZodArray<z.ZodString, "many">;
553
+ }, "strip", z.ZodTypeAny, {
554
+ data: string[];
555
+ }, {
556
+ data: string[];
557
+ }>;
558
+ url: z.ZodNullable<z.ZodString>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ id: string;
561
+ url: string | null;
562
+ name: string;
563
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
564
+ description: string | null;
565
+ createdAt: Date;
566
+ updatedAt: Date;
567
+ deletedAt: Date | null;
568
+ fields: {
569
+ data: string[];
570
+ };
571
+ }, {
572
+ id: string;
573
+ url: string | null;
574
+ name: string;
575
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
576
+ description: string | null;
577
+ createdAt: Date;
578
+ updatedAt: Date;
579
+ deletedAt: Date | null;
580
+ fields: {
581
+ data: string[];
582
+ };
583
+ }>;
584
+ 400: z.ZodObject<{
585
+ message: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ message: string;
588
+ }, {
589
+ message: string;
590
+ }>;
591
+ 401: z.ZodObject<{
592
+ message: z.ZodString;
593
+ error: z.ZodAny;
594
+ }, "strip", z.ZodTypeAny, {
595
+ message: string;
596
+ error?: any;
597
+ }, {
598
+ message: string;
599
+ error?: any;
600
+ }>;
601
+ 500: z.ZodObject<{
602
+ message: z.ZodString;
603
+ error: z.ZodAny;
604
+ }, "strip", z.ZodTypeAny, {
605
+ message: string;
606
+ error?: any;
607
+ }, {
608
+ message: string;
609
+ error?: any;
610
+ }>;
611
+ };
612
+ path: "widget/:id";
613
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
614
+ 'x-tenant': z.ZodString;
615
+ authorization: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ 'x-tenant': string;
618
+ authorization: string;
619
+ }, {
620
+ 'x-tenant': string;
621
+ authorization: string;
622
+ }>>>;
623
+ };
624
+ updateWidget: {
625
+ body: z.ZodObject<{
626
+ url: z.ZodString;
627
+ name: z.ZodString;
628
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
629
+ description: z.ZodString;
630
+ fields: z.ZodOptional<z.ZodObject<{
631
+ data: z.ZodArray<z.ZodString, "many">;
632
+ }, "strip", z.ZodTypeAny, {
633
+ data: string[];
634
+ }, {
635
+ data: string[];
636
+ }>>;
637
+ id: z.ZodString;
638
+ }, "strip", z.ZodTypeAny, {
639
+ id: string;
640
+ url: string;
641
+ name: string;
642
+ position: "menu" | "ticket_detail" | "contact_detail";
643
+ description: string;
644
+ fields?: {
645
+ data: string[];
646
+ } | undefined;
647
+ }, {
648
+ id: string;
649
+ url: string;
650
+ name: string;
651
+ position: "menu" | "ticket_detail" | "contact_detail";
652
+ description: string;
653
+ fields?: {
654
+ data: string[];
655
+ } | undefined;
656
+ }>;
657
+ summary: "Update a widget.";
658
+ method: "PATCH";
659
+ pathParams: z.ZodObject<{
660
+ id: z.ZodString;
661
+ }, "strip", z.ZodTypeAny, {
662
+ id: string;
663
+ }, {
664
+ id: string;
665
+ }>;
666
+ responses: {
667
+ 201: z.ZodObject<{
668
+ requestId: z.ZodString;
669
+ widget: z.ZodObject<{
670
+ id: z.ZodString;
671
+ createdAt: z.ZodDate;
672
+ updatedAt: z.ZodDate;
673
+ deletedAt: z.ZodNullable<z.ZodDate>;
674
+ name: z.ZodString;
675
+ description: z.ZodNullable<z.ZodString>;
676
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
677
+ fields: z.ZodObject<{
678
+ data: z.ZodArray<z.ZodString, "many">;
679
+ }, "strip", z.ZodTypeAny, {
680
+ data: string[];
681
+ }, {
682
+ data: string[];
683
+ }>;
684
+ url: z.ZodNullable<z.ZodString>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ id: string;
687
+ url: string | null;
688
+ name: string;
689
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
690
+ description: string | null;
691
+ createdAt: Date;
692
+ updatedAt: Date;
693
+ deletedAt: Date | null;
694
+ fields: {
695
+ data: string[];
696
+ };
697
+ }, {
698
+ id: string;
699
+ url: string | null;
700
+ name: string;
701
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
702
+ description: string | null;
703
+ createdAt: Date;
704
+ updatedAt: Date;
705
+ deletedAt: Date | null;
706
+ fields: {
707
+ data: string[];
708
+ };
709
+ }>;
710
+ }, "strip", z.ZodTypeAny, {
711
+ requestId: string;
712
+ widget: {
713
+ id: string;
714
+ url: string | null;
715
+ name: string;
716
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
717
+ description: string | null;
718
+ createdAt: Date;
719
+ updatedAt: Date;
720
+ deletedAt: Date | null;
721
+ fields: {
722
+ data: string[];
723
+ };
724
+ };
725
+ }, {
726
+ requestId: string;
727
+ widget: {
728
+ id: string;
729
+ url: string | null;
730
+ name: string;
731
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
732
+ description: string | null;
733
+ createdAt: Date;
734
+ updatedAt: Date;
735
+ deletedAt: Date | null;
736
+ fields: {
737
+ data: string[];
738
+ };
739
+ };
740
+ }>;
741
+ 400: z.ZodObject<{
742
+ message: z.ZodString;
743
+ }, "strip", z.ZodTypeAny, {
744
+ message: string;
745
+ }, {
746
+ message: string;
747
+ }>;
748
+ 401: z.ZodObject<{
749
+ message: z.ZodString;
750
+ error: z.ZodAny;
751
+ }, "strip", z.ZodTypeAny, {
752
+ message: string;
753
+ error?: any;
754
+ }, {
755
+ message: string;
756
+ error?: any;
757
+ }>;
758
+ };
759
+ path: "widget/:id";
760
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
761
+ 'x-tenant': z.ZodString;
762
+ authorization: z.ZodString;
763
+ }, "strip", z.ZodTypeAny, {
764
+ 'x-tenant': string;
765
+ authorization: string;
766
+ }, {
767
+ 'x-tenant': string;
768
+ authorization: string;
769
+ }>>>;
770
+ };
771
+ deleteWidget: {
772
+ body: null;
773
+ summary: "Delete a widget.";
774
+ method: "DELETE";
775
+ pathParams: z.ZodObject<{
776
+ id: z.ZodString;
777
+ }, "strip", z.ZodTypeAny, {
778
+ id: string;
779
+ }, {
780
+ id: string;
781
+ }>;
782
+ responses: {
783
+ 200: z.ZodObject<{
784
+ requestId: z.ZodString;
785
+ message: z.ZodString;
786
+ }, "strip", z.ZodTypeAny, {
787
+ message: string;
788
+ requestId: string;
789
+ }, {
790
+ message: string;
791
+ requestId: string;
792
+ }>;
793
+ 500: z.ZodObject<{
794
+ message: z.ZodString;
795
+ error: z.ZodAny;
796
+ }, "strip", z.ZodTypeAny, {
797
+ message: string;
798
+ error?: any;
799
+ }, {
800
+ message: string;
801
+ error?: any;
802
+ }>;
803
+ };
804
+ path: "widget/:id";
805
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
806
+ 'x-tenant': z.ZodString;
807
+ authorization: z.ZodString;
808
+ }, "strip", z.ZodTypeAny, {
809
+ 'x-tenant': string;
810
+ authorization: string;
811
+ }, {
812
+ 'x-tenant': string;
813
+ authorization: string;
814
+ }>>>;
815
+ };
816
+ };
817
+ //# sourceMappingURL=index.d.ts.map