@kl1/contracts 1.2.86-uat → 1.2.87-uat

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 (127) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +4 -4
  2. package/dist/api-contracts/src/activity-log/schema.d.ts +3 -3
  3. package/dist/api-contracts/src/attribute/index.d.ts +7 -7
  4. package/dist/api-contracts/src/auth/index.d.ts +4 -4
  5. package/dist/api-contracts/src/automation-queue/index.d.ts +37 -40
  6. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/automation-queue/schema.d.ts +6 -6
  8. package/dist/api-contracts/src/aws/index.d.ts +2 -2
  9. package/dist/api-contracts/src/botpress/index.d.ts +2 -2
  10. package/dist/api-contracts/src/business-calendar/index.d.ts +4 -4
  11. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  12. package/dist/api-contracts/src/category/index.d.ts +7 -7
  13. package/dist/api-contracts/src/channel/index.d.ts +257 -1992
  14. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  15. package/dist/api-contracts/src/channel/schema.d.ts +0 -36
  16. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  17. package/dist/api-contracts/src/channel/validation.d.ts +0 -23
  18. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  19. package/dist/api-contracts/src/chat/index.d.ts +2091 -2458
  20. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/chat/schema.d.ts +493 -572
  22. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  23. package/dist/api-contracts/src/chat/validation.d.ts +408 -519
  24. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  25. package/dist/api-contracts/src/comment/index.d.ts +402 -402
  26. package/dist/api-contracts/src/comment/schema.d.ts +103 -103
  27. package/dist/api-contracts/src/contract.d.ts +35383 -41792
  28. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  29. package/dist/api-contracts/src/cx-log/index.d.ts +88 -99
  30. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  31. package/dist/api-contracts/src/cx-log/schema.d.ts +104 -113
  32. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  33. package/dist/api-contracts/src/dashboard/index.d.ts +49 -750
  34. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  35. package/dist/api-contracts/src/dashboard/schema.d.ts +9 -164
  36. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  37. package/dist/api-contracts/src/dashboard/validation.d.ts +1 -30
  38. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  39. package/dist/api-contracts/src/evaluate-form/index.d.ts +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 +281 -403
  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 +6 -13
  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 -5
  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/instagram/index.d.ts +271 -370
  50. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/line/index.d.ts +278 -369
  52. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/line/validation.d.ts +5 -14
  54. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  55. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -1
  56. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  57. package/dist/api-contracts/src/mail/mail-contract.d.ts +240 -240
  58. package/dist/api-contracts/src/mail/room-contract.d.ts +240 -240
  59. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +80 -80
  60. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +60 -60
  61. package/dist/api-contracts/src/messenger/index.d.ts +271 -370
  62. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  63. package/dist/api-contracts/src/messenger/validation.d.ts +0 -5
  64. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  65. package/dist/api-contracts/src/notification/index.d.ts +13 -13
  66. package/dist/api-contracts/src/notification/schema.d.ts +9 -9
  67. package/dist/api-contracts/src/notification/validation.d.ts +3 -3
  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 +5 -42
  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/subscription/index.d.ts.map +1 -1
  81. package/dist/api-contracts/src/tag/index.d.ts +4 -4
  82. package/dist/api-contracts/src/telegram/index.d.ts +271 -348
  83. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  84. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +447 -68
  85. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  86. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +16 -28
  87. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  88. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +3 -0
  89. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  90. package/dist/api-contracts/src/telephony-cdr/index.d.ts +44 -44
  91. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +18 -18
  92. package/dist/api-contracts/src/telephony-extension/index.d.ts +1 -1
  93. package/dist/api-contracts/src/ticket/index.d.ts +694 -694
  94. package/dist/api-contracts/src/ticket/schema.d.ts +53 -53
  95. package/dist/api-contracts/src/ticket/validation.d.ts +20 -20
  96. package/dist/api-contracts/src/upload/index.d.ts +2 -2
  97. package/dist/api-contracts/src/user/index.d.ts +18 -148
  98. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  99. package/dist/api-contracts/src/user/schema.d.ts +1 -38
  100. package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
  101. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +18 -42
  102. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  103. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +23 -53
  104. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  105. package/dist/api-contracts/src/viber/index.d.ts +271 -348
  106. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  107. package/dist/api-contracts/src/webchat/index.d.ts +276 -353
  108. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  109. package/dist/api-contracts/src/whatsapp/index.d.ts +271 -358
  110. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  111. package/dist/api-contracts/src/widget/index.d.ts +48 -822
  112. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  113. package/dist/api-contracts/src/widget/schema.d.ts +4 -98
  114. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  115. package/dist/api-contracts/src/widget/validation.d.ts +12 -171
  116. package/dist/api-contracts/src/widget/validation.d.ts.map +1 -1
  117. package/dist/api-contracts/src/workflow-rule/index.d.ts +286 -332
  118. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  119. package/dist/api-contracts/src/wrap-up-form/index.d.ts +187 -187
  120. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +20 -20
  121. package/dist/entities/src/enums/chat.d.ts +0 -12
  122. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  123. package/dist/index.js +1750 -2079
  124. package/dist/index.js.map +1 -1
  125. package/dist/index.mjs +1750 -2079
  126. package/dist/index.mjs.map +1 -1
  127. package/package.json +1 -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,89 +19,22 @@ export declare const widgetContract: {
23
19
  }, {
24
20
  data: string[];
25
21
  }>>;
26
- widgetUploadAttachment: z.ZodOptional<z.ZodObject<{
27
- bucketName: z.ZodString;
28
- fileKey: z.ZodString;
29
- fileName: z.ZodString;
30
- fileSize: z.ZodNumber;
31
- url: z.ZodNullable<z.ZodString>;
32
- fileType: z.ZodString;
33
- thumbnailUrl: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- url: string | null;
36
- fileName: string;
37
- fileType: string;
38
- fileKey: string;
39
- bucketName: string;
40
- fileSize: number;
41
- thumbnailUrl?: string | undefined;
42
- }, {
43
- url: string | null;
44
- fileName: string;
45
- fileType: string;
46
- fileKey: string;
47
- bucketName: string;
48
- fileSize: number;
49
- thumbnailUrl?: string | undefined;
50
- }>>;
51
- type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
52
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
- key: z.ZodString;
54
- value: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- key: string;
57
- value: string;
58
- }, {
59
- key: string;
60
- value: string;
61
- }>, "many">>;
62
- method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
63
22
  }, "strip", z.ZodTypeAny, {
64
23
  name: string;
65
- type: "custom" | "iframe";
66
24
  url: string;
67
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
68
- description?: string | undefined;
25
+ position: "menu" | "ticket_detail" | "contact_detail";
26
+ description: string;
69
27
  fields?: {
70
28
  data: string[];
71
29
  } | undefined;
72
- widgetUploadAttachment?: {
73
- url: string | null;
74
- fileName: string;
75
- fileType: string;
76
- fileKey: string;
77
- bucketName: string;
78
- fileSize: number;
79
- thumbnailUrl?: string | undefined;
80
- } | undefined;
81
- headers?: {
82
- key: string;
83
- value: string;
84
- }[] | undefined;
85
- method?: "get" | "post" | undefined;
86
30
  }, {
87
31
  name: string;
88
- type: "custom" | "iframe";
89
32
  url: string;
90
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
91
- description?: string | undefined;
33
+ position: "menu" | "ticket_detail" | "contact_detail";
34
+ description: string;
92
35
  fields?: {
93
36
  data: string[];
94
37
  } | undefined;
95
- widgetUploadAttachment?: {
96
- url: string | null;
97
- fileName: string;
98
- fileType: string;
99
- fileKey: string;
100
- bucketName: string;
101
- fileSize: number;
102
- thumbnailUrl?: string | undefined;
103
- } | undefined;
104
- headers?: {
105
- key: string;
106
- value: string;
107
- }[] | undefined;
108
- method?: "get" | "post" | undefined;
109
38
  }>;
110
39
  summary: "Create a widget.";
111
40
  method: "POST";
@@ -119,7 +48,7 @@ export declare const widgetContract: {
119
48
  deletedAt: z.ZodNullable<z.ZodDate>;
120
49
  name: z.ZodString;
121
50
  description: z.ZodNullable<z.ZodString>;
122
- 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">]>>;
123
52
  fields: z.ZodObject<{
124
53
  data: z.ZodArray<z.ZodString, "many">;
125
54
  }, "strip", z.ZodTypeAny, {
@@ -128,109 +57,27 @@ export declare const widgetContract: {
128
57
  data: string[];
129
58
  }>;
130
59
  url: z.ZodString;
131
- upload: z.ZodNullable<z.ZodObject<{
132
- id: z.ZodString;
133
- createdAt: z.ZodDate;
134
- updatedAt: z.ZodDate;
135
- deletedAt: z.ZodNullable<z.ZodDate>;
136
- bucketName: z.ZodString;
137
- fileName: z.ZodString;
138
- fileSize: z.ZodNumber;
139
- fileKey: z.ZodString;
140
- fileUrl: z.ZodNullable<z.ZodString>;
141
- status: z.ZodNullable<z.ZodString>;
142
- }, "strip", z.ZodTypeAny, {
143
- id: string;
144
- status: string | null;
145
- createdAt: Date;
146
- updatedAt: Date;
147
- deletedAt: Date | null;
148
- fileName: string;
149
- fileKey: string;
150
- bucketName: string;
151
- fileSize: number;
152
- fileUrl: string | null;
153
- }, {
154
- id: string;
155
- status: string | null;
156
- createdAt: Date;
157
- updatedAt: Date;
158
- deletedAt: Date | null;
159
- fileName: string;
160
- fileKey: string;
161
- bucketName: string;
162
- fileSize: number;
163
- fileUrl: string | null;
164
- }>>;
165
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
166
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
167
- key: z.ZodString;
168
- value: z.ZodString;
169
- }, "strip", z.ZodTypeAny, {
170
- key: string;
171
- value: string;
172
- }, {
173
- key: string;
174
- value: string;
175
- }>, "many">>;
176
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
177
60
  }, "strip", z.ZodTypeAny, {
178
61
  name: string;
179
- type: "custom" | "iframe" | null;
180
62
  id: string;
181
63
  url: string;
182
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
183
- method: "get" | "post" | null;
64
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
184
65
  description: string | null;
185
66
  createdAt: Date;
186
67
  updatedAt: Date;
187
68
  deletedAt: Date | null;
188
- headers: {
189
- key: string;
190
- value: string;
191
- }[] | null;
192
- upload: {
193
- id: string;
194
- status: string | null;
195
- createdAt: Date;
196
- updatedAt: Date;
197
- deletedAt: Date | null;
198
- fileName: string;
199
- fileKey: string;
200
- bucketName: string;
201
- fileSize: number;
202
- fileUrl: string | null;
203
- } | null;
204
69
  fields: {
205
70
  data: string[];
206
71
  };
207
72
  }, {
208
73
  name: string;
209
- type: "custom" | "iframe" | null;
210
74
  id: string;
211
75
  url: string;
212
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
213
- method: "get" | "post" | null;
76
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
214
77
  description: string | null;
215
78
  createdAt: Date;
216
79
  updatedAt: Date;
217
80
  deletedAt: Date | null;
218
- headers: {
219
- key: string;
220
- value: string;
221
- }[] | null;
222
- upload: {
223
- id: string;
224
- status: string | null;
225
- createdAt: Date;
226
- updatedAt: Date;
227
- deletedAt: Date | null;
228
- fileName: string;
229
- fileKey: string;
230
- bucketName: string;
231
- fileSize: number;
232
- fileUrl: string | null;
233
- } | null;
234
81
  fields: {
235
82
  data: string[];
236
83
  };
@@ -239,31 +86,13 @@ export declare const widgetContract: {
239
86
  requestId: string;
240
87
  widget: {
241
88
  name: string;
242
- type: "custom" | "iframe" | null;
243
89
  id: string;
244
90
  url: string;
245
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
246
- method: "get" | "post" | null;
91
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
247
92
  description: string | null;
248
93
  createdAt: Date;
249
94
  updatedAt: Date;
250
95
  deletedAt: Date | null;
251
- headers: {
252
- key: string;
253
- value: string;
254
- }[] | null;
255
- upload: {
256
- id: string;
257
- status: string | null;
258
- createdAt: Date;
259
- updatedAt: Date;
260
- deletedAt: Date | null;
261
- fileName: string;
262
- fileKey: string;
263
- bucketName: string;
264
- fileSize: number;
265
- fileUrl: string | null;
266
- } | null;
267
96
  fields: {
268
97
  data: string[];
269
98
  };
@@ -272,31 +101,13 @@ export declare const widgetContract: {
272
101
  requestId: string;
273
102
  widget: {
274
103
  name: string;
275
- type: "custom" | "iframe" | null;
276
104
  id: string;
277
105
  url: string;
278
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
279
- method: "get" | "post" | null;
106
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
280
107
  description: string | null;
281
108
  createdAt: Date;
282
109
  updatedAt: Date;
283
110
  deletedAt: Date | null;
284
- headers: {
285
- key: string;
286
- value: string;
287
- }[] | null;
288
- upload: {
289
- id: string;
290
- status: string | null;
291
- createdAt: Date;
292
- updatedAt: Date;
293
- deletedAt: Date | null;
294
- fileName: string;
295
- fileKey: string;
296
- bucketName: string;
297
- fileSize: number;
298
- fileUrl: string | null;
299
- } | null;
300
111
  fields: {
301
112
  data: string[];
302
113
  };
@@ -330,7 +141,7 @@ export declare const widgetContract: {
330
141
  error?: any;
331
142
  }>;
332
143
  };
333
- path: "ms/widget";
144
+ path: "widget";
334
145
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
335
146
  'x-tenant': z.ZodString;
336
147
  'x-service-token': z.ZodString;
@@ -372,61 +183,25 @@ export declare const widgetContract: {
372
183
  lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
373
184
  data: z.ZodArray<z.ZodType<{
374
185
  name: string;
375
- type: "custom" | "iframe" | null;
376
186
  id: string;
377
187
  url: string;
378
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
379
- method: "get" | "post" | null;
188
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
380
189
  description: string | null;
381
190
  createdAt: Date;
382
191
  updatedAt: Date;
383
192
  deletedAt: Date | null;
384
- headers: {
385
- key: string;
386
- value: string;
387
- }[] | null;
388
- upload: {
389
- id: string;
390
- status: string | null;
391
- createdAt: Date;
392
- updatedAt: Date;
393
- deletedAt: Date | null;
394
- fileName: string;
395
- fileKey: string;
396
- bucketName: string;
397
- fileSize: number;
398
- fileUrl: string | null;
399
- } | null;
400
193
  fields: {
401
194
  data: string[];
402
195
  };
403
196
  }, z.ZodTypeDef, {
404
197
  name: string;
405
- type: "custom" | "iframe" | null;
406
198
  id: string;
407
199
  url: string;
408
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
409
- method: "get" | "post" | null;
200
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
410
201
  description: string | null;
411
202
  createdAt: Date;
412
203
  updatedAt: Date;
413
204
  deletedAt: Date | null;
414
- headers: {
415
- key: string;
416
- value: string;
417
- }[] | null;
418
- upload: {
419
- id: string;
420
- status: string | null;
421
- createdAt: Date;
422
- updatedAt: Date;
423
- deletedAt: Date | null;
424
- fileName: string;
425
- fileKey: string;
426
- bucketName: string;
427
- fileSize: number;
428
- fileUrl: string | null;
429
- } | null;
430
205
  fields: {
431
206
  data: string[];
432
207
  };
@@ -434,31 +209,13 @@ export declare const widgetContract: {
434
209
  }, "strip", z.ZodTypeAny, {
435
210
  data: {
436
211
  name: string;
437
- type: "custom" | "iframe" | null;
438
212
  id: string;
439
213
  url: string;
440
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
441
- method: "get" | "post" | null;
214
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
442
215
  description: string | null;
443
216
  createdAt: Date;
444
217
  updatedAt: Date;
445
218
  deletedAt: Date | null;
446
- headers: {
447
- key: string;
448
- value: string;
449
- }[] | null;
450
- upload: {
451
- id: string;
452
- status: string | null;
453
- createdAt: Date;
454
- updatedAt: Date;
455
- deletedAt: Date | null;
456
- fileName: string;
457
- fileKey: string;
458
- bucketName: string;
459
- fileSize: number;
460
- fileUrl: string | null;
461
- } | null;
462
219
  fields: {
463
220
  data: string[];
464
221
  };
@@ -470,31 +227,13 @@ export declare const widgetContract: {
470
227
  }, {
471
228
  data: {
472
229
  name: string;
473
- type: "custom" | "iframe" | null;
474
230
  id: string;
475
231
  url: string;
476
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
477
- method: "get" | "post" | null;
232
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
478
233
  description: string | null;
479
234
  createdAt: Date;
480
235
  updatedAt: Date;
481
236
  deletedAt: Date | null;
482
- headers: {
483
- key: string;
484
- value: string;
485
- }[] | null;
486
- upload: {
487
- id: string;
488
- status: string | null;
489
- createdAt: Date;
490
- updatedAt: Date;
491
- deletedAt: Date | null;
492
- fileName: string;
493
- fileKey: string;
494
- bucketName: string;
495
- fileSize: number;
496
- fileUrl: string | null;
497
- } | null;
498
237
  fields: {
499
238
  data: string[];
500
239
  };
@@ -532,7 +271,7 @@ export declare const widgetContract: {
532
271
  error?: any;
533
272
  }>;
534
273
  };
535
- path: "ms/widget";
274
+ path: "widget";
536
275
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
537
276
  'x-tenant': z.ZodString;
538
277
  'x-service-token': z.ZodString;
@@ -561,7 +300,7 @@ export declare const widgetContract: {
561
300
  deletedAt: z.ZodNullable<z.ZodDate>;
562
301
  name: z.ZodString;
563
302
  description: z.ZodNullable<z.ZodString>;
564
- 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">]>>;
565
304
  fields: z.ZodObject<{
566
305
  data: z.ZodArray<z.ZodString, "many">;
567
306
  }, "strip", z.ZodTypeAny, {
@@ -570,109 +309,27 @@ export declare const widgetContract: {
570
309
  data: string[];
571
310
  }>;
572
311
  url: z.ZodString;
573
- upload: z.ZodNullable<z.ZodObject<{
574
- id: z.ZodString;
575
- createdAt: z.ZodDate;
576
- updatedAt: z.ZodDate;
577
- deletedAt: z.ZodNullable<z.ZodDate>;
578
- bucketName: z.ZodString;
579
- fileName: z.ZodString;
580
- fileSize: z.ZodNumber;
581
- fileKey: z.ZodString;
582
- fileUrl: z.ZodNullable<z.ZodString>;
583
- status: z.ZodNullable<z.ZodString>;
584
- }, "strip", z.ZodTypeAny, {
585
- id: string;
586
- status: string | null;
587
- createdAt: Date;
588
- updatedAt: Date;
589
- deletedAt: Date | null;
590
- fileName: string;
591
- fileKey: string;
592
- bucketName: string;
593
- fileSize: number;
594
- fileUrl: string | null;
595
- }, {
596
- id: string;
597
- status: string | null;
598
- createdAt: Date;
599
- updatedAt: Date;
600
- deletedAt: Date | null;
601
- fileName: string;
602
- fileKey: string;
603
- bucketName: string;
604
- fileSize: number;
605
- fileUrl: string | null;
606
- }>>;
607
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
608
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
609
- key: z.ZodString;
610
- value: z.ZodString;
611
- }, "strip", z.ZodTypeAny, {
612
- key: string;
613
- value: string;
614
- }, {
615
- key: string;
616
- value: string;
617
- }>, "many">>;
618
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
619
312
  }, "strip", z.ZodTypeAny, {
620
313
  name: string;
621
- type: "custom" | "iframe" | null;
622
314
  id: string;
623
315
  url: string;
624
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
625
- method: "get" | "post" | null;
316
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
626
317
  description: string | null;
627
318
  createdAt: Date;
628
319
  updatedAt: Date;
629
320
  deletedAt: Date | null;
630
- headers: {
631
- key: string;
632
- value: string;
633
- }[] | null;
634
- upload: {
635
- id: string;
636
- status: string | null;
637
- createdAt: Date;
638
- updatedAt: Date;
639
- deletedAt: Date | null;
640
- fileName: string;
641
- fileKey: string;
642
- bucketName: string;
643
- fileSize: number;
644
- fileUrl: string | null;
645
- } | null;
646
321
  fields: {
647
322
  data: string[];
648
323
  };
649
324
  }, {
650
325
  name: string;
651
- type: "custom" | "iframe" | null;
652
326
  id: string;
653
327
  url: string;
654
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
655
- method: "get" | "post" | null;
328
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
656
329
  description: string | null;
657
330
  createdAt: Date;
658
331
  updatedAt: Date;
659
332
  deletedAt: Date | null;
660
- headers: {
661
- key: string;
662
- value: string;
663
- }[] | null;
664
- upload: {
665
- id: string;
666
- status: string | null;
667
- createdAt: Date;
668
- updatedAt: Date;
669
- deletedAt: Date | null;
670
- fileName: string;
671
- fileKey: string;
672
- bucketName: string;
673
- fileSize: number;
674
- fileUrl: string | null;
675
- } | null;
676
333
  fields: {
677
334
  data: string[];
678
335
  };
@@ -705,7 +362,7 @@ export declare const widgetContract: {
705
362
  error?: any;
706
363
  }>;
707
364
  };
708
- path: "ms/widget/menu";
365
+ path: "widget/menu";
709
366
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
710
367
  'x-tenant': z.ZodString;
711
368
  'x-service-token': z.ZodString;
@@ -734,7 +391,7 @@ export declare const widgetContract: {
734
391
  deletedAt: z.ZodNullable<z.ZodDate>;
735
392
  name: z.ZodString;
736
393
  description: z.ZodNullable<z.ZodString>;
737
- 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">]>>;
738
395
  fields: z.ZodObject<{
739
396
  data: z.ZodArray<z.ZodString, "many">;
740
397
  }, "strip", z.ZodTypeAny, {
@@ -743,109 +400,27 @@ export declare const widgetContract: {
743
400
  data: string[];
744
401
  }>;
745
402
  url: z.ZodString;
746
- upload: z.ZodNullable<z.ZodObject<{
747
- id: z.ZodString;
748
- createdAt: z.ZodDate;
749
- updatedAt: z.ZodDate;
750
- deletedAt: z.ZodNullable<z.ZodDate>;
751
- bucketName: z.ZodString;
752
- fileName: z.ZodString;
753
- fileSize: z.ZodNumber;
754
- fileKey: z.ZodString;
755
- fileUrl: z.ZodNullable<z.ZodString>;
756
- status: z.ZodNullable<z.ZodString>;
757
- }, "strip", z.ZodTypeAny, {
758
- id: string;
759
- status: string | null;
760
- createdAt: Date;
761
- updatedAt: Date;
762
- deletedAt: Date | null;
763
- fileName: string;
764
- fileKey: string;
765
- bucketName: string;
766
- fileSize: number;
767
- fileUrl: string | null;
768
- }, {
769
- id: string;
770
- status: string | null;
771
- createdAt: Date;
772
- updatedAt: Date;
773
- deletedAt: Date | null;
774
- fileName: string;
775
- fileKey: string;
776
- bucketName: string;
777
- fileSize: number;
778
- fileUrl: string | null;
779
- }>>;
780
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
781
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
782
- key: z.ZodString;
783
- value: z.ZodString;
784
- }, "strip", z.ZodTypeAny, {
785
- key: string;
786
- value: string;
787
- }, {
788
- key: string;
789
- value: string;
790
- }>, "many">>;
791
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
792
403
  }, "strip", z.ZodTypeAny, {
793
404
  name: string;
794
- type: "custom" | "iframe" | null;
795
405
  id: string;
796
406
  url: string;
797
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
798
- method: "get" | "post" | null;
407
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
799
408
  description: string | null;
800
409
  createdAt: Date;
801
410
  updatedAt: Date;
802
411
  deletedAt: Date | null;
803
- headers: {
804
- key: string;
805
- value: string;
806
- }[] | null;
807
- upload: {
808
- id: string;
809
- status: string | null;
810
- createdAt: Date;
811
- updatedAt: Date;
812
- deletedAt: Date | null;
813
- fileName: string;
814
- fileKey: string;
815
- bucketName: string;
816
- fileSize: number;
817
- fileUrl: string | null;
818
- } | null;
819
412
  fields: {
820
413
  data: string[];
821
414
  };
822
415
  }, {
823
416
  name: string;
824
- type: "custom" | "iframe" | null;
825
417
  id: string;
826
418
  url: string;
827
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
828
- method: "get" | "post" | null;
419
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
829
420
  description: string | null;
830
421
  createdAt: Date;
831
422
  updatedAt: Date;
832
423
  deletedAt: Date | null;
833
- headers: {
834
- key: string;
835
- value: string;
836
- }[] | null;
837
- upload: {
838
- id: string;
839
- status: string | null;
840
- createdAt: Date;
841
- updatedAt: Date;
842
- deletedAt: Date | null;
843
- fileName: string;
844
- fileKey: string;
845
- bucketName: string;
846
- fileSize: number;
847
- fileUrl: string | null;
848
- } | null;
849
424
  fields: {
850
425
  data: string[];
851
426
  };
@@ -878,7 +453,7 @@ export declare const widgetContract: {
878
453
  error?: any;
879
454
  }>;
880
455
  };
881
- path: "ms/widget/ticket_detail";
456
+ path: "widget/ticket_detail";
882
457
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
883
458
  'x-tenant': z.ZodString;
884
459
  'x-service-token': z.ZodString;
@@ -907,7 +482,7 @@ export declare const widgetContract: {
907
482
  deletedAt: z.ZodNullable<z.ZodDate>;
908
483
  name: z.ZodString;
909
484
  description: z.ZodNullable<z.ZodString>;
910
- 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">]>>;
911
486
  fields: z.ZodObject<{
912
487
  data: z.ZodArray<z.ZodString, "many">;
913
488
  }, "strip", z.ZodTypeAny, {
@@ -916,109 +491,27 @@ export declare const widgetContract: {
916
491
  data: string[];
917
492
  }>;
918
493
  url: z.ZodString;
919
- upload: z.ZodNullable<z.ZodObject<{
920
- id: z.ZodString;
921
- createdAt: z.ZodDate;
922
- updatedAt: z.ZodDate;
923
- deletedAt: z.ZodNullable<z.ZodDate>;
924
- bucketName: z.ZodString;
925
- fileName: z.ZodString;
926
- fileSize: z.ZodNumber;
927
- fileKey: z.ZodString;
928
- fileUrl: z.ZodNullable<z.ZodString>;
929
- status: z.ZodNullable<z.ZodString>;
930
- }, "strip", z.ZodTypeAny, {
931
- id: string;
932
- status: string | null;
933
- createdAt: Date;
934
- updatedAt: Date;
935
- deletedAt: Date | null;
936
- fileName: string;
937
- fileKey: string;
938
- bucketName: string;
939
- fileSize: number;
940
- fileUrl: string | null;
941
- }, {
942
- id: string;
943
- status: string | null;
944
- createdAt: Date;
945
- updatedAt: Date;
946
- deletedAt: Date | null;
947
- fileName: string;
948
- fileKey: string;
949
- bucketName: string;
950
- fileSize: number;
951
- fileUrl: string | null;
952
- }>>;
953
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
954
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
955
- key: z.ZodString;
956
- value: z.ZodString;
957
- }, "strip", z.ZodTypeAny, {
958
- key: string;
959
- value: string;
960
- }, {
961
- key: string;
962
- value: string;
963
- }>, "many">>;
964
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
965
494
  }, "strip", z.ZodTypeAny, {
966
495
  name: string;
967
- type: "custom" | "iframe" | null;
968
496
  id: string;
969
497
  url: string;
970
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
971
- method: "get" | "post" | null;
498
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
972
499
  description: string | null;
973
500
  createdAt: Date;
974
501
  updatedAt: Date;
975
502
  deletedAt: Date | null;
976
- headers: {
977
- key: string;
978
- value: string;
979
- }[] | null;
980
- upload: {
981
- id: string;
982
- status: string | null;
983
- createdAt: Date;
984
- updatedAt: Date;
985
- deletedAt: Date | null;
986
- fileName: string;
987
- fileKey: string;
988
- bucketName: string;
989
- fileSize: number;
990
- fileUrl: string | null;
991
- } | null;
992
503
  fields: {
993
504
  data: string[];
994
505
  };
995
506
  }, {
996
507
  name: string;
997
- type: "custom" | "iframe" | null;
998
508
  id: string;
999
509
  url: string;
1000
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1001
- method: "get" | "post" | null;
510
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1002
511
  description: string | null;
1003
512
  createdAt: Date;
1004
513
  updatedAt: Date;
1005
514
  deletedAt: Date | null;
1006
- headers: {
1007
- key: string;
1008
- value: string;
1009
- }[] | null;
1010
- upload: {
1011
- id: string;
1012
- status: string | null;
1013
- createdAt: Date;
1014
- updatedAt: Date;
1015
- deletedAt: Date | null;
1016
- fileName: string;
1017
- fileKey: string;
1018
- bucketName: string;
1019
- fileSize: number;
1020
- fileUrl: string | null;
1021
- } | null;
1022
515
  fields: {
1023
516
  data: string[];
1024
517
  };
@@ -1051,7 +544,7 @@ export declare const widgetContract: {
1051
544
  error?: any;
1052
545
  }>;
1053
546
  };
1054
- path: "ms/widget/contact_detail";
547
+ path: "widget/contact_detail";
1055
548
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1056
549
  'x-tenant': z.ZodString;
1057
550
  'x-service-token': z.ZodString;
@@ -1087,7 +580,7 @@ export declare const widgetContract: {
1087
580
  deletedAt: z.ZodNullable<z.ZodDate>;
1088
581
  name: z.ZodString;
1089
582
  description: z.ZodNullable<z.ZodString>;
1090
- 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">]>>;
1091
584
  fields: z.ZodObject<{
1092
585
  data: z.ZodArray<z.ZodString, "many">;
1093
586
  }, "strip", z.ZodTypeAny, {
@@ -1096,109 +589,27 @@ export declare const widgetContract: {
1096
589
  data: string[];
1097
590
  }>;
1098
591
  url: z.ZodString;
1099
- upload: z.ZodNullable<z.ZodObject<{
1100
- id: z.ZodString;
1101
- createdAt: z.ZodDate;
1102
- updatedAt: z.ZodDate;
1103
- deletedAt: z.ZodNullable<z.ZodDate>;
1104
- bucketName: z.ZodString;
1105
- fileName: z.ZodString;
1106
- fileSize: z.ZodNumber;
1107
- fileKey: z.ZodString;
1108
- fileUrl: z.ZodNullable<z.ZodString>;
1109
- status: z.ZodNullable<z.ZodString>;
1110
- }, "strip", z.ZodTypeAny, {
1111
- id: string;
1112
- status: string | null;
1113
- createdAt: Date;
1114
- updatedAt: Date;
1115
- deletedAt: Date | null;
1116
- fileName: string;
1117
- fileKey: string;
1118
- bucketName: string;
1119
- fileSize: number;
1120
- fileUrl: string | null;
1121
- }, {
1122
- id: string;
1123
- status: string | null;
1124
- createdAt: Date;
1125
- updatedAt: Date;
1126
- deletedAt: Date | null;
1127
- fileName: string;
1128
- fileKey: string;
1129
- bucketName: string;
1130
- fileSize: number;
1131
- fileUrl: string | null;
1132
- }>>;
1133
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
1134
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
1135
- key: z.ZodString;
1136
- value: z.ZodString;
1137
- }, "strip", z.ZodTypeAny, {
1138
- key: string;
1139
- value: string;
1140
- }, {
1141
- key: string;
1142
- value: string;
1143
- }>, "many">>;
1144
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1145
592
  }, "strip", z.ZodTypeAny, {
1146
593
  name: string;
1147
- type: "custom" | "iframe" | null;
1148
594
  id: string;
1149
595
  url: string;
1150
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1151
- method: "get" | "post" | null;
596
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1152
597
  description: string | null;
1153
598
  createdAt: Date;
1154
599
  updatedAt: Date;
1155
600
  deletedAt: Date | null;
1156
- headers: {
1157
- key: string;
1158
- value: string;
1159
- }[] | null;
1160
- upload: {
1161
- id: string;
1162
- status: string | null;
1163
- createdAt: Date;
1164
- updatedAt: Date;
1165
- deletedAt: Date | null;
1166
- fileName: string;
1167
- fileKey: string;
1168
- bucketName: string;
1169
- fileSize: number;
1170
- fileUrl: string | null;
1171
- } | null;
1172
601
  fields: {
1173
602
  data: string[];
1174
603
  };
1175
604
  }, {
1176
605
  name: string;
1177
- type: "custom" | "iframe" | null;
1178
606
  id: string;
1179
607
  url: string;
1180
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1181
- method: "get" | "post" | null;
608
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1182
609
  description: string | null;
1183
610
  createdAt: Date;
1184
611
  updatedAt: Date;
1185
612
  deletedAt: Date | null;
1186
- headers: {
1187
- key: string;
1188
- value: string;
1189
- }[] | null;
1190
- upload: {
1191
- id: string;
1192
- status: string | null;
1193
- createdAt: Date;
1194
- updatedAt: Date;
1195
- deletedAt: Date | null;
1196
- fileName: string;
1197
- fileKey: string;
1198
- bucketName: string;
1199
- fileSize: number;
1200
- fileUrl: string | null;
1201
- } | null;
1202
613
  fields: {
1203
614
  data: string[];
1204
615
  };
@@ -1231,7 +642,7 @@ export declare const widgetContract: {
1231
642
  error?: any;
1232
643
  }>;
1233
644
  };
1234
- path: "ms/widget/:id";
645
+ path: "widget/:id";
1235
646
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1236
647
  'x-tenant': z.ZodString;
1237
648
  'x-service-token': z.ZodString;
@@ -1291,7 +702,7 @@ export declare const widgetContract: {
1291
702
  error?: any;
1292
703
  }>;
1293
704
  };
1294
- path: "ms/widget/url_token/generate";
705
+ path: "widget/url_token/generate";
1295
706
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1296
707
  'x-tenant': z.ZodString;
1297
708
  'x-service-token': z.ZodString;
@@ -1312,9 +723,9 @@ export declare const widgetContract: {
1312
723
  updateWidget: {
1313
724
  body: z.ZodObject<{
1314
725
  name: z.ZodString;
1315
- description: z.ZodOptional<z.ZodString>;
726
+ description: z.ZodString;
1316
727
  url: z.ZodString;
1317
- 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">]>;
1318
729
  fields: z.ZodOptional<z.ZodObject<{
1319
730
  data: z.ZodArray<z.ZodString, "many">;
1320
731
  }, "strip", z.ZodTypeAny, {
@@ -1322,89 +733,22 @@ export declare const widgetContract: {
1322
733
  }, {
1323
734
  data: string[];
1324
735
  }>>;
1325
- widgetUploadAttachment: z.ZodOptional<z.ZodObject<{
1326
- bucketName: z.ZodString;
1327
- fileKey: z.ZodString;
1328
- fileName: z.ZodString;
1329
- fileSize: z.ZodNumber;
1330
- url: z.ZodNullable<z.ZodString>;
1331
- fileType: z.ZodString;
1332
- thumbnailUrl: z.ZodOptional<z.ZodString>;
1333
- }, "strip", z.ZodTypeAny, {
1334
- url: string | null;
1335
- fileName: string;
1336
- fileType: string;
1337
- fileKey: string;
1338
- bucketName: string;
1339
- fileSize: number;
1340
- thumbnailUrl?: string | undefined;
1341
- }, {
1342
- url: string | null;
1343
- fileName: string;
1344
- fileType: string;
1345
- fileKey: string;
1346
- bucketName: string;
1347
- fileSize: number;
1348
- thumbnailUrl?: string | undefined;
1349
- }>>;
1350
- type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
1351
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1352
- key: z.ZodString;
1353
- value: z.ZodString;
1354
- }, "strip", z.ZodTypeAny, {
1355
- key: string;
1356
- value: string;
1357
- }, {
1358
- key: string;
1359
- value: string;
1360
- }>, "many">>;
1361
- method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1362
736
  }, "strip", z.ZodTypeAny, {
1363
737
  name: string;
1364
- type: "custom" | "iframe";
1365
738
  url: string;
1366
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1367
- description?: string | undefined;
739
+ position: "menu" | "ticket_detail" | "contact_detail";
740
+ description: string;
1368
741
  fields?: {
1369
742
  data: string[];
1370
743
  } | undefined;
1371
- widgetUploadAttachment?: {
1372
- url: string | null;
1373
- fileName: string;
1374
- fileType: string;
1375
- fileKey: string;
1376
- bucketName: string;
1377
- fileSize: number;
1378
- thumbnailUrl?: string | undefined;
1379
- } | undefined;
1380
- headers?: {
1381
- key: string;
1382
- value: string;
1383
- }[] | undefined;
1384
- method?: "get" | "post" | undefined;
1385
744
  }, {
1386
745
  name: string;
1387
- type: "custom" | "iframe";
1388
746
  url: string;
1389
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1390
- description?: string | undefined;
747
+ position: "menu" | "ticket_detail" | "contact_detail";
748
+ description: string;
1391
749
  fields?: {
1392
750
  data: string[];
1393
751
  } | undefined;
1394
- widgetUploadAttachment?: {
1395
- url: string | null;
1396
- fileName: string;
1397
- fileType: string;
1398
- fileKey: string;
1399
- bucketName: string;
1400
- fileSize: number;
1401
- thumbnailUrl?: string | undefined;
1402
- } | undefined;
1403
- headers?: {
1404
- key: string;
1405
- value: string;
1406
- }[] | undefined;
1407
- method?: "get" | "post" | undefined;
1408
752
  }>;
1409
753
  summary: "Update a widget.";
1410
754
  method: "PATCH";
@@ -1425,7 +769,7 @@ export declare const widgetContract: {
1425
769
  deletedAt: z.ZodNullable<z.ZodDate>;
1426
770
  name: z.ZodString;
1427
771
  description: z.ZodNullable<z.ZodString>;
1428
- 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">]>>;
1429
773
  fields: z.ZodObject<{
1430
774
  data: z.ZodArray<z.ZodString, "many">;
1431
775
  }, "strip", z.ZodTypeAny, {
@@ -1434,109 +778,27 @@ export declare const widgetContract: {
1434
778
  data: string[];
1435
779
  }>;
1436
780
  url: z.ZodString;
1437
- upload: z.ZodNullable<z.ZodObject<{
1438
- id: z.ZodString;
1439
- createdAt: z.ZodDate;
1440
- updatedAt: z.ZodDate;
1441
- deletedAt: z.ZodNullable<z.ZodDate>;
1442
- bucketName: z.ZodString;
1443
- fileName: z.ZodString;
1444
- fileSize: z.ZodNumber;
1445
- fileKey: z.ZodString;
1446
- fileUrl: z.ZodNullable<z.ZodString>;
1447
- status: z.ZodNullable<z.ZodString>;
1448
- }, "strip", z.ZodTypeAny, {
1449
- id: string;
1450
- status: string | null;
1451
- createdAt: Date;
1452
- updatedAt: Date;
1453
- deletedAt: Date | null;
1454
- fileName: string;
1455
- fileKey: string;
1456
- bucketName: string;
1457
- fileSize: number;
1458
- fileUrl: string | null;
1459
- }, {
1460
- id: string;
1461
- status: string | null;
1462
- createdAt: Date;
1463
- updatedAt: Date;
1464
- deletedAt: Date | null;
1465
- fileName: string;
1466
- fileKey: string;
1467
- bucketName: string;
1468
- fileSize: number;
1469
- fileUrl: string | null;
1470
- }>>;
1471
- type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
1472
- headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
1473
- key: z.ZodString;
1474
- value: z.ZodString;
1475
- }, "strip", z.ZodTypeAny, {
1476
- key: string;
1477
- value: string;
1478
- }, {
1479
- key: string;
1480
- value: string;
1481
- }>, "many">>;
1482
- method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
1483
781
  }, "strip", z.ZodTypeAny, {
1484
782
  name: string;
1485
- type: "custom" | "iframe" | null;
1486
783
  id: string;
1487
784
  url: string;
1488
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1489
- method: "get" | "post" | null;
785
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1490
786
  description: string | null;
1491
787
  createdAt: Date;
1492
788
  updatedAt: Date;
1493
789
  deletedAt: Date | null;
1494
- headers: {
1495
- key: string;
1496
- value: string;
1497
- }[] | null;
1498
- upload: {
1499
- id: string;
1500
- status: string | null;
1501
- createdAt: Date;
1502
- updatedAt: Date;
1503
- deletedAt: Date | null;
1504
- fileName: string;
1505
- fileKey: string;
1506
- bucketName: string;
1507
- fileSize: number;
1508
- fileUrl: string | null;
1509
- } | null;
1510
790
  fields: {
1511
791
  data: string[];
1512
792
  };
1513
793
  }, {
1514
794
  name: string;
1515
- type: "custom" | "iframe" | null;
1516
795
  id: string;
1517
796
  url: string;
1518
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1519
- method: "get" | "post" | null;
797
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1520
798
  description: string | null;
1521
799
  createdAt: Date;
1522
800
  updatedAt: Date;
1523
801
  deletedAt: Date | null;
1524
- headers: {
1525
- key: string;
1526
- value: string;
1527
- }[] | null;
1528
- upload: {
1529
- id: string;
1530
- status: string | null;
1531
- createdAt: Date;
1532
- updatedAt: Date;
1533
- deletedAt: Date | null;
1534
- fileName: string;
1535
- fileKey: string;
1536
- bucketName: string;
1537
- fileSize: number;
1538
- fileUrl: string | null;
1539
- } | null;
1540
802
  fields: {
1541
803
  data: string[];
1542
804
  };
@@ -1545,31 +807,13 @@ export declare const widgetContract: {
1545
807
  requestId: string;
1546
808
  widget: {
1547
809
  name: string;
1548
- type: "custom" | "iframe" | null;
1549
810
  id: string;
1550
811
  url: string;
1551
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1552
- method: "get" | "post" | null;
812
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1553
813
  description: string | null;
1554
814
  createdAt: Date;
1555
815
  updatedAt: Date;
1556
816
  deletedAt: Date | null;
1557
- headers: {
1558
- key: string;
1559
- value: string;
1560
- }[] | null;
1561
- upload: {
1562
- id: string;
1563
- status: string | null;
1564
- createdAt: Date;
1565
- updatedAt: Date;
1566
- deletedAt: Date | null;
1567
- fileName: string;
1568
- fileKey: string;
1569
- bucketName: string;
1570
- fileSize: number;
1571
- fileUrl: string | null;
1572
- } | null;
1573
817
  fields: {
1574
818
  data: string[];
1575
819
  };
@@ -1578,31 +822,13 @@ export declare const widgetContract: {
1578
822
  requestId: string;
1579
823
  widget: {
1580
824
  name: string;
1581
- type: "custom" | "iframe" | null;
1582
825
  id: string;
1583
826
  url: string;
1584
- position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
1585
- method: "get" | "post" | null;
827
+ position: "menu" | "ticket_detail" | "contact_detail" | null;
1586
828
  description: string | null;
1587
829
  createdAt: Date;
1588
830
  updatedAt: Date;
1589
831
  deletedAt: Date | null;
1590
- headers: {
1591
- key: string;
1592
- value: string;
1593
- }[] | null;
1594
- upload: {
1595
- id: string;
1596
- status: string | null;
1597
- createdAt: Date;
1598
- updatedAt: Date;
1599
- deletedAt: Date | null;
1600
- fileName: string;
1601
- fileKey: string;
1602
- bucketName: string;
1603
- fileSize: number;
1604
- fileUrl: string | null;
1605
- } | null;
1606
832
  fields: {
1607
833
  data: string[];
1608
834
  };
@@ -1626,7 +852,7 @@ export declare const widgetContract: {
1626
852
  error?: any;
1627
853
  }>;
1628
854
  };
1629
- path: "ms/widget/:id";
855
+ path: "widget/:id";
1630
856
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1631
857
  'x-tenant': z.ZodString;
1632
858
  'x-service-token': z.ZodString;
@@ -1677,7 +903,7 @@ export declare const widgetContract: {
1677
903
  error?: any;
1678
904
  }>;
1679
905
  };
1680
- path: "ms/widget/:id";
906
+ path: "widget/:id";
1681
907
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1682
908
  'x-tenant': z.ZodString;
1683
909
  'x-service-token': z.ZodString;