@kl1/contracts 1.3.28 → 1.3.29

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 (122) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +1 -1
  2. package/dist/api-contracts/src/attribute/index.d.ts +7 -7
  3. package/dist/api-contracts/src/auth/index.d.ts +1 -1
  4. package/dist/api-contracts/src/automation-queue/index.d.ts +7 -10
  5. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  6. package/dist/api-contracts/src/aws/index.d.ts +2 -2
  7. package/dist/api-contracts/src/botpress/index.d.ts +2 -2
  8. package/dist/api-contracts/src/business-calendar/index.d.ts +4 -4
  9. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  10. package/dist/api-contracts/src/category/index.d.ts +7 -7
  11. package/dist/api-contracts/src/channel/index.d.ts +43 -1585
  12. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/channel/schema.d.ts +0 -44
  14. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  15. package/dist/api-contracts/src/channel/validation.d.ts +0 -65
  16. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  17. package/dist/api-contracts/src/chat/index.d.ts +2172 -3246
  18. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  19. package/dist/api-contracts/src/chat/schema.d.ts +463 -712
  20. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  21. package/dist/api-contracts/src/chat/validation.d.ts +392 -778
  22. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  23. package/dist/api-contracts/src/comment/index.d.ts +359 -359
  24. package/dist/api-contracts/src/comment/schema.d.ts +88 -88
  25. package/dist/api-contracts/src/contract.d.ts +38192 -45818
  26. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  27. package/dist/api-contracts/src/cx-log/index.d.ts +65 -115
  28. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/cx-log/schema.d.ts +81 -123
  30. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  31. package/dist/api-contracts/src/dashboard/index.d.ts +49 -962
  32. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  33. package/dist/api-contracts/src/dashboard/schema.d.ts +9 -164
  34. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  35. package/dist/api-contracts/src/dashboard/validation.d.ts +1 -30
  36. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  37. package/dist/api-contracts/src/evaluate-form/index.d.ts +1 -1
  38. package/dist/api-contracts/src/export/index.d.ts +0 -2
  39. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/extension/index.d.ts +7 -7
  41. package/dist/api-contracts/src/facebook-feed/index.d.ts +273 -781
  42. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  43. package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -37
  44. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  45. package/dist/api-contracts/src/facebook-feed/validation.d.ts +0 -26
  46. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  47. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  48. package/dist/api-contracts/src/hold-label/index.d.ts +10 -10
  49. package/dist/api-contracts/src/index.d.ts +0 -2
  50. package/dist/api-contracts/src/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/instagram/index.d.ts +261 -659
  52. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/line/index.d.ts +268 -622
  54. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  55. package/dist/api-contracts/src/line/validation.d.ts +7 -49
  56. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  57. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -1
  58. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  59. package/dist/api-contracts/src/mail/mail-contract.d.ts +240 -240
  60. package/dist/api-contracts/src/mail/room-contract.d.ts +240 -240
  61. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +80 -80
  62. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +60 -60
  63. package/dist/api-contracts/src/messenger/index.d.ts +261 -659
  64. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/messenger/validation.d.ts +0 -26
  66. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  67. package/dist/api-contracts/src/notification/index.d.ts +4 -4
  68. package/dist/api-contracts/src/permission/index.d.ts +1 -1
  69. package/dist/api-contracts/src/presence-status/index.d.ts +55 -127
  70. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  71. package/dist/api-contracts/src/presence-status/schema.d.ts +10 -16
  72. package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
  73. package/dist/api-contracts/src/presence-status/validation.d.ts +12 -30
  74. package/dist/api-contracts/src/presence-status/validation.d.ts.map +1 -1
  75. package/dist/api-contracts/src/role/index.d.ts +5 -5
  76. package/dist/api-contracts/src/sms/index.d.ts +7 -185
  77. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  78. package/dist/api-contracts/src/snippet/index.d.ts +8 -8
  79. package/dist/api-contracts/src/subscription/index.d.ts +5 -5
  80. package/dist/api-contracts/src/tag/index.d.ts +4 -4
  81. package/dist/api-contracts/src/telegram/index.d.ts +263 -549
  82. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +441 -62
  84. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  85. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +13 -25
  86. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  87. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +3 -0
  88. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  89. package/dist/api-contracts/src/telephony-cdr/index.d.ts +14 -14
  90. package/dist/api-contracts/src/telephony-extension/index.d.ts +1 -1
  91. package/dist/api-contracts/src/ticket/index.d.ts +660 -660
  92. package/dist/api-contracts/src/ticket/schema.d.ts +44 -44
  93. package/dist/api-contracts/src/ticket/validation.d.ts +20 -20
  94. package/dist/api-contracts/src/upload/index.d.ts +2 -2
  95. package/dist/api-contracts/src/user/index.d.ts +7 -7
  96. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +18 -42
  97. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  98. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +20 -50
  99. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  100. package/dist/api-contracts/src/viber/index.d.ts +263 -549
  101. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  102. package/dist/api-contracts/src/webchat/index.d.ts +261 -547
  103. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  104. package/dist/api-contracts/src/whatsapp/index.d.ts +261 -599
  105. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  106. package/dist/api-contracts/src/widget/index.d.ts +51 -636
  107. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  108. package/dist/api-contracts/src/widget/schema.d.ts +4 -46
  109. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  110. package/dist/api-contracts/src/widget/validation.d.ts +12 -66
  111. package/dist/api-contracts/src/widget/validation.d.ts.map +1 -1
  112. package/dist/api-contracts/src/workflow-rule/index.d.ts +277 -411
  113. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  114. package/dist/api-contracts/src/wrap-up-form/index.d.ts +187 -187
  115. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +20 -20
  116. package/dist/index.js +466 -882
  117. package/dist/index.js.map +1 -1
  118. package/dist/index.mjs +466 -880
  119. package/dist/index.mjs.map +1 -1
  120. package/package.json +1 -1
  121. package/dist/api-contracts/src/export/validation.d.ts +0 -3
  122. package/dist/api-contracts/src/export/validation.d.ts.map +0 -1
@@ -1,21 +1,17 @@
1
1
  import z from 'zod';
2
- import { WidgetHeaderSchema, WidgetMethodSchema, WidgetPositionSchema, WidgetSchema, WidgetTypeSchema } from './schema';
2
+ import { WidgetSchema } from './schema';
3
3
  import { CreateWidgetSchema, GetWidgetUrlPathQuerySchema, UpdateWidgetSchema } from './validation';
4
4
  export type CreateWidgetRequest = z.infer<typeof CreateWidgetSchema>;
5
5
  export type UpdateWidgetRequest = z.infer<typeof UpdateWidgetSchema>;
6
6
  export type GetWidgetUrlQueryRequest = z.infer<typeof GetWidgetUrlPathQuerySchema>;
7
7
  export type Widget = z.infer<typeof WidgetSchema>;
8
- export type WidgetPosition = z.infer<typeof WidgetPositionSchema>;
9
- export type WidgetType = z.infer<typeof WidgetTypeSchema>;
10
- export type WidgetHeader = z.infer<typeof WidgetHeaderSchema>;
11
- export type WidgetMethod = z.infer<typeof WidgetMethodSchema>;
12
8
  export declare const widgetContract: {
13
9
  createWidget: {
14
10
  body: z.ZodObject<{
15
11
  name: z.ZodString;
16
- description: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodString;
17
13
  url: z.ZodString;
18
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
14
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
19
15
  fields: z.ZodOptional<z.ZodObject<{
20
16
  data: z.ZodArray<z.ZodString, "many">;
21
17
  }, "strip", z.ZodTypeAny, {
@@ -23,49 +19,22 @@ export declare const widgetContract: {
23
19
  }, {
24
20
  data: string[];
25
21
  }>>;
26
- type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
27
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
- key: z.ZodString;
29
- value: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- key: string;
32
- value: string;
33
- }, {
34
- key: string;
35
- value: string;
36
- }>, "many">>;
37
- method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
38
- fileKey: z.ZodNullable<z.ZodString>;
39
22
  }, "strip", z.ZodTypeAny, {
40
23
  name: string;
41
- type: "custom" | "iframe";
42
24
  url: string;
43
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
44
- fileKey: string | null;
45
- description?: string | undefined;
25
+ position: "menu" | "ticket_detail" | "contact_detail";
26
+ description: string;
46
27
  fields?: {
47
28
  data: string[];
48
29
  } | undefined;
49
- headers?: {
50
- key: string;
51
- value: string;
52
- }[] | undefined;
53
- method?: "get" | "post" | undefined;
54
30
  }, {
55
31
  name: string;
56
- type: "custom" | "iframe";
57
32
  url: string;
58
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
59
- fileKey: string | null;
60
- description?: string | undefined;
33
+ position: "menu" | "ticket_detail" | "contact_detail";
34
+ description: string;
61
35
  fields?: {
62
36
  data: string[];
63
37
  } | undefined;
64
- headers?: {
65
- key: string;
66
- value: string;
67
- }[] | undefined;
68
- method?: "get" | "post" | undefined;
69
38
  }>;
70
39
  summary: "Create a widget.";
71
40
  method: "POST";
@@ -79,7 +48,7 @@ export declare const widgetContract: {
79
48
  deletedAt: z.ZodNullable<z.ZodDate>;
80
49
  name: z.ZodString;
81
50
  description: z.ZodNullable<z.ZodString>;
82
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
51
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
83
52
  fields: z.ZodObject<{
84
53
  data: z.ZodArray<z.ZodString, "many">;
85
54
  }, "strip", z.ZodTypeAny, {
@@ -88,57 +57,27 @@ export declare const widgetContract: {
88
57
  data: string[];
89
58
  }>;
90
59
  url: z.ZodString;
91
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
92
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
93
- key: z.ZodString;
94
- value: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- key: string;
97
- value: string;
98
- }, {
99
- key: string;
100
- value: string;
101
- }>, "many">>;
102
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
103
- fileKey: z.ZodNullable<z.ZodString>;
104
- fileUrl: z.ZodNullable<z.ZodString>;
105
60
  }, "strip", z.ZodTypeAny, {
106
61
  name: string;
107
- type: "custom" | "iframe" | null;
108
62
  id: string;
109
63
  url: string;
110
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
111
- method: "get" | "post" | null;
64
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
112
65
  description: string | null;
113
66
  createdAt: Date;
114
67
  updatedAt: Date;
115
68
  deletedAt: Date | null;
116
- headers: {
117
- key: string;
118
- value: string;
119
- }[] | null;
120
- fileKey: string | null;
121
- fileUrl: string | null;
122
69
  fields: {
123
70
  data: string[];
124
71
  };
125
72
  }, {
126
73
  name: string;
127
- type: "custom" | "iframe" | null;
128
74
  id: string;
129
75
  url: string;
130
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
131
- method: "get" | "post" | null;
76
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
132
77
  description: string | null;
133
78
  createdAt: Date;
134
79
  updatedAt: Date;
135
80
  deletedAt: Date | null;
136
- headers: {
137
- key: string;
138
- value: string;
139
- }[] | null;
140
- fileKey: string | null;
141
- fileUrl: string | null;
142
81
  fields: {
143
82
  data: string[];
144
83
  };
@@ -147,21 +86,13 @@ export declare const widgetContract: {
147
86
  requestId: string;
148
87
  widget: {
149
88
  name: string;
150
- type: "custom" | "iframe" | null;
151
89
  id: string;
152
90
  url: string;
153
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
154
- method: "get" | "post" | null;
91
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
155
92
  description: string | null;
156
93
  createdAt: Date;
157
94
  updatedAt: Date;
158
95
  deletedAt: Date | null;
159
- headers: {
160
- key: string;
161
- value: string;
162
- }[] | null;
163
- fileKey: string | null;
164
- fileUrl: string | null;
165
96
  fields: {
166
97
  data: string[];
167
98
  };
@@ -170,21 +101,13 @@ export declare const widgetContract: {
170
101
  requestId: string;
171
102
  widget: {
172
103
  name: string;
173
- type: "custom" | "iframe" | null;
174
104
  id: string;
175
105
  url: string;
176
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
177
- method: "get" | "post" | null;
106
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
178
107
  description: string | null;
179
108
  createdAt: Date;
180
109
  updatedAt: Date;
181
110
  deletedAt: Date | null;
182
- headers: {
183
- key: string;
184
- value: string;
185
- }[] | null;
186
- fileKey: string | null;
187
- fileUrl: string | null;
188
111
  fields: {
189
112
  data: string[];
190
113
  };
@@ -218,7 +141,7 @@ export declare const widgetContract: {
218
141
  error?: any;
219
142
  }>;
220
143
  };
221
- path: "ms/widget";
144
+ path: "widget";
222
145
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
223
146
  'x-tenant': z.ZodString;
224
147
  'x-service-token': z.ZodString;
@@ -260,41 +183,25 @@ export declare const widgetContract: {
260
183
  lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
261
184
  data: z.ZodArray<z.ZodType<{
262
185
  name: string;
263
- type: "custom" | "iframe" | null;
264
186
  id: string;
265
187
  url: string;
266
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
267
- method: "get" | "post" | null;
188
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
268
189
  description: string | null;
269
190
  createdAt: Date;
270
191
  updatedAt: Date;
271
192
  deletedAt: Date | null;
272
- headers: {
273
- key: string;
274
- value: string;
275
- }[] | null;
276
- fileKey: string | null;
277
- fileUrl: string | null;
278
193
  fields: {
279
194
  data: string[];
280
195
  };
281
196
  }, z.ZodTypeDef, {
282
197
  name: string;
283
- type: "custom" | "iframe" | null;
284
198
  id: string;
285
199
  url: string;
286
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
287
- method: "get" | "post" | null;
200
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
288
201
  description: string | null;
289
202
  createdAt: Date;
290
203
  updatedAt: Date;
291
204
  deletedAt: Date | null;
292
- headers: {
293
- key: string;
294
- value: string;
295
- }[] | null;
296
- fileKey: string | null;
297
- fileUrl: string | null;
298
205
  fields: {
299
206
  data: string[];
300
207
  };
@@ -302,21 +209,13 @@ export declare const widgetContract: {
302
209
  }, "strip", z.ZodTypeAny, {
303
210
  data: {
304
211
  name: string;
305
- type: "custom" | "iframe" | null;
306
212
  id: string;
307
213
  url: string;
308
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
309
- method: "get" | "post" | null;
214
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
310
215
  description: string | null;
311
216
  createdAt: Date;
312
217
  updatedAt: Date;
313
218
  deletedAt: Date | null;
314
- headers: {
315
- key: string;
316
- value: string;
317
- }[] | null;
318
- fileKey: string | null;
319
- fileUrl: string | null;
320
219
  fields: {
321
220
  data: string[];
322
221
  };
@@ -328,21 +227,13 @@ export declare const widgetContract: {
328
227
  }, {
329
228
  data: {
330
229
  name: string;
331
- type: "custom" | "iframe" | null;
332
230
  id: string;
333
231
  url: string;
334
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
335
- method: "get" | "post" | null;
232
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
336
233
  description: string | null;
337
234
  createdAt: Date;
338
235
  updatedAt: Date;
339
236
  deletedAt: Date | null;
340
- headers: {
341
- key: string;
342
- value: string;
343
- }[] | null;
344
- fileKey: string | null;
345
- fileUrl: string | null;
346
237
  fields: {
347
238
  data: string[];
348
239
  };
@@ -380,7 +271,7 @@ export declare const widgetContract: {
380
271
  error?: any;
381
272
  }>;
382
273
  };
383
- path: "ms/widget";
274
+ path: "widget";
384
275
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
385
276
  'x-tenant': z.ZodString;
386
277
  'x-service-token': z.ZodString;
@@ -409,7 +300,7 @@ export declare const widgetContract: {
409
300
  deletedAt: z.ZodNullable<z.ZodDate>;
410
301
  name: z.ZodString;
411
302
  description: z.ZodNullable<z.ZodString>;
412
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
303
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
413
304
  fields: z.ZodObject<{
414
305
  data: z.ZodArray<z.ZodString, "many">;
415
306
  }, "strip", z.ZodTypeAny, {
@@ -418,57 +309,27 @@ export declare const widgetContract: {
418
309
  data: string[];
419
310
  }>;
420
311
  url: z.ZodString;
421
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
422
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
423
- key: z.ZodString;
424
- value: z.ZodString;
425
- }, "strip", z.ZodTypeAny, {
426
- key: string;
427
- value: string;
428
- }, {
429
- key: string;
430
- value: string;
431
- }>, "many">>;
432
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
433
- fileKey: z.ZodNullable<z.ZodString>;
434
- fileUrl: z.ZodNullable<z.ZodString>;
435
312
  }, "strip", z.ZodTypeAny, {
436
313
  name: string;
437
- type: "custom" | "iframe" | null;
438
314
  id: string;
439
315
  url: string;
440
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
441
- method: "get" | "post" | null;
316
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
442
317
  description: string | null;
443
318
  createdAt: Date;
444
319
  updatedAt: Date;
445
320
  deletedAt: Date | null;
446
- headers: {
447
- key: string;
448
- value: string;
449
- }[] | null;
450
- fileKey: string | null;
451
- fileUrl: string | null;
452
321
  fields: {
453
322
  data: string[];
454
323
  };
455
324
  }, {
456
325
  name: string;
457
- type: "custom" | "iframe" | null;
458
326
  id: string;
459
327
  url: string;
460
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
461
- method: "get" | "post" | null;
328
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
462
329
  description: string | null;
463
330
  createdAt: Date;
464
331
  updatedAt: Date;
465
332
  deletedAt: Date | null;
466
- headers: {
467
- key: string;
468
- value: string;
469
- }[] | null;
470
- fileKey: string | null;
471
- fileUrl: string | null;
472
333
  fields: {
473
334
  data: string[];
474
335
  };
@@ -501,7 +362,7 @@ export declare const widgetContract: {
501
362
  error?: any;
502
363
  }>;
503
364
  };
504
- path: "ms/widget/menu";
365
+ path: "widget/menu";
505
366
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
506
367
  'x-tenant': z.ZodString;
507
368
  'x-service-token': z.ZodString;
@@ -530,7 +391,7 @@ export declare const widgetContract: {
530
391
  deletedAt: z.ZodNullable<z.ZodDate>;
531
392
  name: z.ZodString;
532
393
  description: z.ZodNullable<z.ZodString>;
533
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
394
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
534
395
  fields: z.ZodObject<{
535
396
  data: z.ZodArray<z.ZodString, "many">;
536
397
  }, "strip", z.ZodTypeAny, {
@@ -539,57 +400,27 @@ export declare const widgetContract: {
539
400
  data: string[];
540
401
  }>;
541
402
  url: z.ZodString;
542
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
543
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
544
- key: z.ZodString;
545
- value: z.ZodString;
546
- }, "strip", z.ZodTypeAny, {
547
- key: string;
548
- value: string;
549
- }, {
550
- key: string;
551
- value: string;
552
- }>, "many">>;
553
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
554
- fileKey: z.ZodNullable<z.ZodString>;
555
- fileUrl: z.ZodNullable<z.ZodString>;
556
403
  }, "strip", z.ZodTypeAny, {
557
404
  name: string;
558
- type: "custom" | "iframe" | null;
559
405
  id: string;
560
406
  url: string;
561
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
562
- method: "get" | "post" | null;
407
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
563
408
  description: string | null;
564
409
  createdAt: Date;
565
410
  updatedAt: Date;
566
411
  deletedAt: Date | null;
567
- headers: {
568
- key: string;
569
- value: string;
570
- }[] | null;
571
- fileKey: string | null;
572
- fileUrl: string | null;
573
412
  fields: {
574
413
  data: string[];
575
414
  };
576
415
  }, {
577
416
  name: string;
578
- type: "custom" | "iframe" | null;
579
417
  id: string;
580
418
  url: string;
581
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
582
- method: "get" | "post" | null;
419
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
583
420
  description: string | null;
584
421
  createdAt: Date;
585
422
  updatedAt: Date;
586
423
  deletedAt: Date | null;
587
- headers: {
588
- key: string;
589
- value: string;
590
- }[] | null;
591
- fileKey: string | null;
592
- fileUrl: string | null;
593
424
  fields: {
594
425
  data: string[];
595
426
  };
@@ -622,7 +453,7 @@ export declare const widgetContract: {
622
453
  error?: any;
623
454
  }>;
624
455
  };
625
- path: "ms/widget/ticket_detail";
456
+ path: "widget/ticket_detail";
626
457
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
627
458
  'x-tenant': z.ZodString;
628
459
  'x-service-token': z.ZodString;
@@ -651,249 +482,7 @@ export declare const widgetContract: {
651
482
  deletedAt: z.ZodNullable<z.ZodDate>;
652
483
  name: z.ZodString;
653
484
  description: z.ZodNullable<z.ZodString>;
654
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
655
- fields: z.ZodObject<{
656
- data: z.ZodArray<z.ZodString, "many">;
657
- }, "strip", z.ZodTypeAny, {
658
- data: string[];
659
- }, {
660
- data: string[];
661
- }>;
662
- url: z.ZodString;
663
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
664
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
665
- key: z.ZodString;
666
- value: z.ZodString;
667
- }, "strip", z.ZodTypeAny, {
668
- key: string;
669
- value: string;
670
- }, {
671
- key: string;
672
- value: string;
673
- }>, "many">>;
674
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
675
- fileKey: z.ZodNullable<z.ZodString>;
676
- fileUrl: z.ZodNullable<z.ZodString>;
677
- }, "strip", z.ZodTypeAny, {
678
- name: string;
679
- type: "custom" | "iframe" | null;
680
- id: string;
681
- url: string;
682
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
683
- method: "get" | "post" | null;
684
- description: string | null;
685
- createdAt: Date;
686
- updatedAt: Date;
687
- deletedAt: Date | null;
688
- headers: {
689
- key: string;
690
- value: string;
691
- }[] | null;
692
- fileKey: string | null;
693
- fileUrl: string | null;
694
- fields: {
695
- data: string[];
696
- };
697
- }, {
698
- name: string;
699
- type: "custom" | "iframe" | null;
700
- id: string;
701
- url: string;
702
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
703
- method: "get" | "post" | null;
704
- description: string | null;
705
- createdAt: Date;
706
- updatedAt: Date;
707
- deletedAt: Date | null;
708
- headers: {
709
- key: string;
710
- value: string;
711
- }[] | null;
712
- fileKey: string | null;
713
- fileUrl: string | null;
714
- fields: {
715
- data: string[];
716
- };
717
- }>, "many">;
718
- 400: z.ZodObject<{
719
- message: z.ZodString;
720
- }, "strip", z.ZodTypeAny, {
721
- message: string;
722
- }, {
723
- message: string;
724
- }>;
725
- 401: z.ZodObject<{
726
- message: z.ZodString;
727
- error: z.ZodAny;
728
- }, "strip", z.ZodTypeAny, {
729
- message: string;
730
- error?: any;
731
- }, {
732
- message: string;
733
- error?: any;
734
- }>;
735
- 500: z.ZodObject<{
736
- message: z.ZodString;
737
- error: z.ZodAny;
738
- }, "strip", z.ZodTypeAny, {
739
- message: string;
740
- error?: any;
741
- }, {
742
- message: string;
743
- error?: any;
744
- }>;
745
- };
746
- path: "ms/widget/contact_detail";
747
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
748
- 'x-tenant': z.ZodString;
749
- 'x-service-token': z.ZodString;
750
- 'x-code': z.ZodOptional<z.ZodString>;
751
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
752
- }, "strip", z.ZodTypeAny, {
753
- 'x-tenant': string;
754
- 'x-service-token': string;
755
- 'x-client-timezone': string;
756
- 'x-code'?: string | undefined;
757
- }, {
758
- 'x-tenant': string;
759
- 'x-service-token': string;
760
- 'x-code'?: string | undefined;
761
- 'x-client-timezone'?: string | undefined;
762
- }>>>;
763
- };
764
- getContactProfileWidgets: {
765
- summary: "Get contact profile widgets";
766
- method: "GET";
767
- responses: {
768
- 200: z.ZodArray<z.ZodObject<{
769
- id: z.ZodString;
770
- createdAt: z.ZodDate;
771
- updatedAt: z.ZodDate;
772
- deletedAt: z.ZodNullable<z.ZodDate>;
773
- name: z.ZodString;
774
- description: z.ZodNullable<z.ZodString>;
775
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
776
- fields: z.ZodObject<{
777
- data: z.ZodArray<z.ZodString, "many">;
778
- }, "strip", z.ZodTypeAny, {
779
- data: string[];
780
- }, {
781
- data: string[];
782
- }>;
783
- url: z.ZodString;
784
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
785
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
786
- key: z.ZodString;
787
- value: z.ZodString;
788
- }, "strip", z.ZodTypeAny, {
789
- key: string;
790
- value: string;
791
- }, {
792
- key: string;
793
- value: string;
794
- }>, "many">>;
795
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
796
- fileKey: z.ZodNullable<z.ZodString>;
797
- fileUrl: z.ZodNullable<z.ZodString>;
798
- }, "strip", z.ZodTypeAny, {
799
- name: string;
800
- type: "custom" | "iframe" | null;
801
- id: string;
802
- url: string;
803
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
804
- method: "get" | "post" | null;
805
- description: string | null;
806
- createdAt: Date;
807
- updatedAt: Date;
808
- deletedAt: Date | null;
809
- headers: {
810
- key: string;
811
- value: string;
812
- }[] | null;
813
- fileKey: string | null;
814
- fileUrl: string | null;
815
- fields: {
816
- data: string[];
817
- };
818
- }, {
819
- name: string;
820
- type: "custom" | "iframe" | null;
821
- id: string;
822
- url: string;
823
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
824
- method: "get" | "post" | null;
825
- description: string | null;
826
- createdAt: Date;
827
- updatedAt: Date;
828
- deletedAt: Date | null;
829
- headers: {
830
- key: string;
831
- value: string;
832
- }[] | null;
833
- fileKey: string | null;
834
- fileUrl: string | null;
835
- fields: {
836
- data: string[];
837
- };
838
- }>, "many">;
839
- 400: z.ZodObject<{
840
- message: z.ZodString;
841
- }, "strip", z.ZodTypeAny, {
842
- message: string;
843
- }, {
844
- message: string;
845
- }>;
846
- 401: z.ZodObject<{
847
- message: z.ZodString;
848
- error: z.ZodAny;
849
- }, "strip", z.ZodTypeAny, {
850
- message: string;
851
- error?: any;
852
- }, {
853
- message: string;
854
- error?: any;
855
- }>;
856
- 500: z.ZodObject<{
857
- message: z.ZodString;
858
- error: z.ZodAny;
859
- }, "strip", z.ZodTypeAny, {
860
- message: string;
861
- error?: any;
862
- }, {
863
- message: string;
864
- error?: any;
865
- }>;
866
- };
867
- path: "ms/widget/contact_profile";
868
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
869
- 'x-tenant': z.ZodString;
870
- 'x-service-token': z.ZodString;
871
- 'x-code': z.ZodOptional<z.ZodString>;
872
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
873
- }, "strip", z.ZodTypeAny, {
874
- 'x-tenant': string;
875
- 'x-service-token': string;
876
- 'x-client-timezone': string;
877
- 'x-code'?: string | undefined;
878
- }, {
879
- 'x-tenant': string;
880
- 'x-service-token': string;
881
- 'x-code'?: string | undefined;
882
- 'x-client-timezone'?: string | undefined;
883
- }>>>;
884
- };
885
- getInboxDetailWidgets: {
886
- summary: "Get inbox detail widgets";
887
- method: "GET";
888
- responses: {
889
- 200: z.ZodArray<z.ZodObject<{
890
- id: z.ZodString;
891
- createdAt: z.ZodDate;
892
- updatedAt: z.ZodDate;
893
- deletedAt: z.ZodNullable<z.ZodDate>;
894
- name: z.ZodString;
895
- description: z.ZodNullable<z.ZodString>;
896
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
485
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
897
486
  fields: z.ZodObject<{
898
487
  data: z.ZodArray<z.ZodString, "many">;
899
488
  }, "strip", z.ZodTypeAny, {
@@ -902,57 +491,27 @@ export declare const widgetContract: {
902
491
  data: string[];
903
492
  }>;
904
493
  url: z.ZodString;
905
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
906
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
907
- key: z.ZodString;
908
- value: z.ZodString;
909
- }, "strip", z.ZodTypeAny, {
910
- key: string;
911
- value: string;
912
- }, {
913
- key: string;
914
- value: string;
915
- }>, "many">>;
916
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
917
- fileKey: z.ZodNullable<z.ZodString>;
918
- fileUrl: z.ZodNullable<z.ZodString>;
919
494
  }, "strip", z.ZodTypeAny, {
920
495
  name: string;
921
- type: "custom" | "iframe" | null;
922
496
  id: string;
923
497
  url: string;
924
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
925
- method: "get" | "post" | null;
498
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
926
499
  description: string | null;
927
500
  createdAt: Date;
928
501
  updatedAt: Date;
929
502
  deletedAt: Date | null;
930
- headers: {
931
- key: string;
932
- value: string;
933
- }[] | null;
934
- fileKey: string | null;
935
- fileUrl: string | null;
936
503
  fields: {
937
504
  data: string[];
938
505
  };
939
506
  }, {
940
507
  name: string;
941
- type: "custom" | "iframe" | null;
942
508
  id: string;
943
509
  url: string;
944
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
945
- method: "get" | "post" | null;
510
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
946
511
  description: string | null;
947
512
  createdAt: Date;
948
513
  updatedAt: Date;
949
514
  deletedAt: Date | null;
950
- headers: {
951
- key: string;
952
- value: string;
953
- }[] | null;
954
- fileKey: string | null;
955
- fileUrl: string | null;
956
515
  fields: {
957
516
  data: string[];
958
517
  };
@@ -985,7 +544,7 @@ export declare const widgetContract: {
985
544
  error?: any;
986
545
  }>;
987
546
  };
988
- path: "ms/widget/inbox_detail";
547
+ path: "widget/contact_detail";
989
548
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
990
549
  'x-tenant': z.ZodString;
991
550
  'x-service-token': z.ZodString;
@@ -1021,7 +580,7 @@ export declare const widgetContract: {
1021
580
  deletedAt: z.ZodNullable<z.ZodDate>;
1022
581
  name: z.ZodString;
1023
582
  description: z.ZodNullable<z.ZodString>;
1024
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
583
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
1025
584
  fields: z.ZodObject<{
1026
585
  data: z.ZodArray<z.ZodString, "many">;
1027
586
  }, "strip", z.ZodTypeAny, {
@@ -1030,57 +589,27 @@ export declare const widgetContract: {
1030
589
  data: string[];
1031
590
  }>;
1032
591
  url: z.ZodString;
1033
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
1034
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
1035
- key: z.ZodString;
1036
- value: z.ZodString;
1037
- }, "strip", z.ZodTypeAny, {
1038
- key: string;
1039
- value: string;
1040
- }, {
1041
- key: string;
1042
- value: string;
1043
- }>, "many">>;
1044
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1045
- fileKey: z.ZodNullable<z.ZodString>;
1046
- fileUrl: z.ZodNullable<z.ZodString>;
1047
592
  }, "strip", z.ZodTypeAny, {
1048
593
  name: string;
1049
- type: "custom" | "iframe" | null;
1050
594
  id: string;
1051
595
  url: string;
1052
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1053
- method: "get" | "post" | null;
596
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1054
597
  description: string | null;
1055
598
  createdAt: Date;
1056
599
  updatedAt: Date;
1057
600
  deletedAt: Date | null;
1058
- headers: {
1059
- key: string;
1060
- value: string;
1061
- }[] | null;
1062
- fileKey: string | null;
1063
- fileUrl: string | null;
1064
601
  fields: {
1065
602
  data: string[];
1066
603
  };
1067
604
  }, {
1068
605
  name: string;
1069
- type: "custom" | "iframe" | null;
1070
606
  id: string;
1071
607
  url: string;
1072
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1073
- method: "get" | "post" | null;
608
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1074
609
  description: string | null;
1075
610
  createdAt: Date;
1076
611
  updatedAt: Date;
1077
612
  deletedAt: Date | null;
1078
- headers: {
1079
- key: string;
1080
- value: string;
1081
- }[] | null;
1082
- fileKey: string | null;
1083
- fileUrl: string | null;
1084
613
  fields: {
1085
614
  data: string[];
1086
615
  };
@@ -1113,7 +642,7 @@ export declare const widgetContract: {
1113
642
  error?: any;
1114
643
  }>;
1115
644
  };
1116
- path: "ms/widget/:id";
645
+ path: "widget/:id";
1117
646
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1118
647
  'x-tenant': z.ZodString;
1119
648
  'x-service-token': z.ZodString;
@@ -1147,54 +676,13 @@ export declare const widgetContract: {
1147
676
  responses: {
1148
677
  201: z.ZodObject<{
1149
678
  requestId: z.ZodString;
1150
- widget: z.ZodObject<{
1151
- token: z.ZodNullable<z.ZodString>;
1152
- headers: z.ZodArray<z.ZodObject<{
1153
- key: z.ZodString;
1154
- value: z.ZodString;
1155
- }, "strip", z.ZodTypeAny, {
1156
- key: string;
1157
- value: string;
1158
- }, {
1159
- key: string;
1160
- value: string;
1161
- }>, "many">;
1162
- url: z.ZodString;
1163
- }, "strip", z.ZodTypeAny, {
1164
- url: string;
1165
- headers: {
1166
- key: string;
1167
- value: string;
1168
- }[];
1169
- token: string | null;
1170
- }, {
1171
- url: string;
1172
- headers: {
1173
- key: string;
1174
- value: string;
1175
- }[];
1176
- token: string | null;
1177
- }>;
679
+ url: z.ZodString;
1178
680
  }, "strip", z.ZodTypeAny, {
681
+ url: string;
1179
682
  requestId: string;
1180
- widget: {
1181
- url: string;
1182
- headers: {
1183
- key: string;
1184
- value: string;
1185
- }[];
1186
- token: string | null;
1187
- };
1188
683
  }, {
684
+ url: string;
1189
685
  requestId: string;
1190
- widget: {
1191
- url: string;
1192
- headers: {
1193
- key: string;
1194
- value: string;
1195
- }[];
1196
- token: string | null;
1197
- };
1198
686
  }>;
1199
687
  400: z.ZodObject<{
1200
688
  message: z.ZodString;
@@ -1214,7 +702,7 @@ export declare const widgetContract: {
1214
702
  error?: any;
1215
703
  }>;
1216
704
  };
1217
- path: "ms/widget/url_token/generate";
705
+ path: "widget/url_token/generate";
1218
706
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1219
707
  'x-tenant': z.ZodString;
1220
708
  'x-service-token': z.ZodString;
@@ -1235,9 +723,9 @@ export declare const widgetContract: {
1235
723
  updateWidget: {
1236
724
  body: z.ZodObject<{
1237
725
  name: z.ZodString;
1238
- description: z.ZodOptional<z.ZodString>;
726
+ description: z.ZodString;
1239
727
  url: z.ZodString;
1240
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
728
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
1241
729
  fields: z.ZodOptional<z.ZodObject<{
1242
730
  data: z.ZodArray<z.ZodString, "many">;
1243
731
  }, "strip", z.ZodTypeAny, {
@@ -1245,49 +733,22 @@ export declare const widgetContract: {
1245
733
  }, {
1246
734
  data: string[];
1247
735
  }>>;
1248
- type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
1249
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1250
- key: z.ZodString;
1251
- value: z.ZodString;
1252
- }, "strip", z.ZodTypeAny, {
1253
- key: string;
1254
- value: string;
1255
- }, {
1256
- key: string;
1257
- value: string;
1258
- }>, "many">>;
1259
- method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1260
- fileKey: z.ZodNullable<z.ZodString>;
1261
736
  }, "strip", z.ZodTypeAny, {
1262
737
  name: string;
1263
- type: "custom" | "iframe";
1264
738
  url: string;
1265
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1266
- fileKey: string | null;
1267
- description?: string | undefined;
739
+ position: "menu" | "ticket_detail" | "contact_detail";
740
+ description: string;
1268
741
  fields?: {
1269
742
  data: string[];
1270
743
  } | undefined;
1271
- headers?: {
1272
- key: string;
1273
- value: string;
1274
- }[] | undefined;
1275
- method?: "get" | "post" | undefined;
1276
744
  }, {
1277
745
  name: string;
1278
- type: "custom" | "iframe";
1279
746
  url: string;
1280
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1281
- fileKey: string | null;
1282
- description?: string | undefined;
747
+ position: "menu" | "ticket_detail" | "contact_detail";
748
+ description: string;
1283
749
  fields?: {
1284
750
  data: string[];
1285
751
  } | undefined;
1286
- headers?: {
1287
- key: string;
1288
- value: string;
1289
- }[] | undefined;
1290
- method?: "get" | "post" | undefined;
1291
752
  }>;
1292
753
  summary: "Update a widget.";
1293
754
  method: "PATCH";
@@ -1308,7 +769,7 @@ export declare const widgetContract: {
1308
769
  deletedAt: z.ZodNullable<z.ZodDate>;
1309
770
  name: z.ZodString;
1310
771
  description: z.ZodNullable<z.ZodString>;
1311
- position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
772
+ position: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>>;
1312
773
  fields: z.ZodObject<{
1313
774
  data: z.ZodArray<z.ZodString, "many">;
1314
775
  }, "strip", z.ZodTypeAny, {
@@ -1317,57 +778,27 @@ export declare const widgetContract: {
1317
778
  data: string[];
1318
779
  }>;
1319
780
  url: z.ZodString;
1320
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
1321
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
1322
- key: z.ZodString;
1323
- value: z.ZodString;
1324
- }, "strip", z.ZodTypeAny, {
1325
- key: string;
1326
- value: string;
1327
- }, {
1328
- key: string;
1329
- value: string;
1330
- }>, "many">>;
1331
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1332
- fileKey: z.ZodNullable<z.ZodString>;
1333
- fileUrl: z.ZodNullable<z.ZodString>;
1334
781
  }, "strip", z.ZodTypeAny, {
1335
782
  name: string;
1336
- type: "custom" | "iframe" | null;
1337
783
  id: string;
1338
784
  url: string;
1339
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1340
- method: "get" | "post" | null;
785
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1341
786
  description: string | null;
1342
787
  createdAt: Date;
1343
788
  updatedAt: Date;
1344
789
  deletedAt: Date | null;
1345
- headers: {
1346
- key: string;
1347
- value: string;
1348
- }[] | null;
1349
- fileKey: string | null;
1350
- fileUrl: string | null;
1351
790
  fields: {
1352
791
  data: string[];
1353
792
  };
1354
793
  }, {
1355
794
  name: string;
1356
- type: "custom" | "iframe" | null;
1357
795
  id: string;
1358
796
  url: string;
1359
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1360
- method: "get" | "post" | null;
797
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1361
798
  description: string | null;
1362
799
  createdAt: Date;
1363
800
  updatedAt: Date;
1364
801
  deletedAt: Date | null;
1365
- headers: {
1366
- key: string;
1367
- value: string;
1368
- }[] | null;
1369
- fileKey: string | null;
1370
- fileUrl: string | null;
1371
802
  fields: {
1372
803
  data: string[];
1373
804
  };
@@ -1376,21 +807,13 @@ export declare const widgetContract: {
1376
807
  requestId: string;
1377
808
  widget: {
1378
809
  name: string;
1379
- type: "custom" | "iframe" | null;
1380
810
  id: string;
1381
811
  url: string;
1382
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1383
- method: "get" | "post" | null;
812
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1384
813
  description: string | null;
1385
814
  createdAt: Date;
1386
815
  updatedAt: Date;
1387
816
  deletedAt: Date | null;
1388
- headers: {
1389
- key: string;
1390
- value: string;
1391
- }[] | null;
1392
- fileKey: string | null;
1393
- fileUrl: string | null;
1394
817
  fields: {
1395
818
  data: string[];
1396
819
  };
@@ -1399,21 +822,13 @@ export declare const widgetContract: {
1399
822
  requestId: string;
1400
823
  widget: {
1401
824
  name: string;
1402
- type: "custom" | "iframe" | null;
1403
825
  id: string;
1404
826
  url: string;
1405
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1406
- method: "get" | "post" | null;
827
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1407
828
  description: string | null;
1408
829
  createdAt: Date;
1409
830
  updatedAt: Date;
1410
831
  deletedAt: Date | null;
1411
- headers: {
1412
- key: string;
1413
- value: string;
1414
- }[] | null;
1415
- fileKey: string | null;
1416
- fileUrl: string | null;
1417
832
  fields: {
1418
833
  data: string[];
1419
834
  };
@@ -1437,7 +852,7 @@ export declare const widgetContract: {
1437
852
  error?: any;
1438
853
  }>;
1439
854
  };
1440
- path: "ms/widget/:id";
855
+ path: "widget/:id";
1441
856
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1442
857
  'x-tenant': z.ZodString;
1443
858
  'x-service-token': z.ZodString;
@@ -1488,7 +903,7 @@ export declare const widgetContract: {
1488
903
  error?: any;
1489
904
  }>;
1490
905
  };
1491
- path: "ms/widget/:id";
906
+ path: "widget/:id";
1492
907
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1493
908
  'x-tenant': z.ZodString;
1494
909
  'x-service-token': z.ZodString;