@voltade/envoy-sdk 1.2.12 → 1.2.13
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.
- package/dist/resources/companies/types.d.ts +14 -14
- package/dist/resources/company-members/types.d.ts +4 -4
- package/dist/resources/conversations/index.d.ts +19 -13
- package/dist/resources/conversations/index.d.ts.map +1 -1
- package/dist/resources/conversations/index.js +20 -41
- package/dist/resources/conversations/index.js.map +1 -1
- package/dist/resources/conversations/types.d.ts +191 -67
- package/dist/resources/conversations/types.d.ts.map +1 -1
- package/dist/resources/conversations/types.js +14 -6
- package/dist/resources/conversations/types.js.map +1 -1
- package/dist/resources/webhooks/types.d.ts +192 -192
- package/package.json +1 -1
|
@@ -4,28 +4,152 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const MessageTypeSchema: z.ZodEnum<["incoming", "outgoing"]>;
|
|
6
6
|
export declare const ContentTypeSchema: z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const TemplateParamsSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
category: z.ZodString;
|
|
10
|
+
language: z.ZodString;
|
|
11
|
+
processed_params: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
media_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
media_url?: string | undefined;
|
|
18
|
+
media_type?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
media_url?: string | undefined;
|
|
21
|
+
media_type?: string | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
body?: Record<string, string> | undefined;
|
|
25
|
+
header?: {
|
|
26
|
+
media_url?: string | undefined;
|
|
27
|
+
media_type?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
body?: Record<string, string> | undefined;
|
|
31
|
+
header?: {
|
|
32
|
+
media_url?: string | undefined;
|
|
33
|
+
media_type?: string | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
category: string;
|
|
39
|
+
language: string;
|
|
40
|
+
processed_params?: {
|
|
41
|
+
body?: Record<string, string> | undefined;
|
|
42
|
+
header?: {
|
|
43
|
+
media_url?: string | undefined;
|
|
44
|
+
media_type?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
name: string;
|
|
49
|
+
category: string;
|
|
50
|
+
language: string;
|
|
51
|
+
processed_params?: {
|
|
52
|
+
body?: Record<string, string> | undefined;
|
|
53
|
+
header?: {
|
|
54
|
+
media_url?: string | undefined;
|
|
55
|
+
media_type?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
}>;
|
|
8
59
|
export declare const CreateMessageParamsSchema: z.ZodObject<{
|
|
9
60
|
content: z.ZodString;
|
|
10
61
|
message_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>>;
|
|
11
62
|
private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
63
|
content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>>>;
|
|
13
64
|
content_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
-
|
|
65
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
category: z.ZodString;
|
|
68
|
+
language: z.ZodString;
|
|
69
|
+
processed_params: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
71
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
media_url: z.ZodOptional<z.ZodString>;
|
|
73
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
media_url?: string | undefined;
|
|
76
|
+
media_type?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
media_url?: string | undefined;
|
|
79
|
+
media_type?: string | undefined;
|
|
80
|
+
}>>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
body?: Record<string, string> | undefined;
|
|
83
|
+
header?: {
|
|
84
|
+
media_url?: string | undefined;
|
|
85
|
+
media_type?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
body?: Record<string, string> | undefined;
|
|
89
|
+
header?: {
|
|
90
|
+
media_url?: string | undefined;
|
|
91
|
+
media_type?: string | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
}>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
name: string;
|
|
96
|
+
category: string;
|
|
97
|
+
language: string;
|
|
98
|
+
processed_params?: {
|
|
99
|
+
body?: Record<string, string> | undefined;
|
|
100
|
+
header?: {
|
|
101
|
+
media_url?: string | undefined;
|
|
102
|
+
media_type?: string | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
name: string;
|
|
107
|
+
category: string;
|
|
108
|
+
language: string;
|
|
109
|
+
processed_params?: {
|
|
110
|
+
body?: Record<string, string> | undefined;
|
|
111
|
+
header?: {
|
|
112
|
+
media_url?: string | undefined;
|
|
113
|
+
media_type?: string | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
}>>;
|
|
15
117
|
}, "strip", z.ZodTypeAny, {
|
|
16
118
|
content: string;
|
|
17
119
|
message_type: "incoming" | "outgoing";
|
|
18
120
|
private: boolean;
|
|
19
121
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
20
122
|
content_attributes?: Record<string, unknown> | undefined;
|
|
21
|
-
|
|
123
|
+
template_params?: {
|
|
124
|
+
name: string;
|
|
125
|
+
category: string;
|
|
126
|
+
language: string;
|
|
127
|
+
processed_params?: {
|
|
128
|
+
body?: Record<string, string> | undefined;
|
|
129
|
+
header?: {
|
|
130
|
+
media_url?: string | undefined;
|
|
131
|
+
media_type?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
} | undefined;
|
|
22
135
|
}, {
|
|
23
136
|
content: string;
|
|
24
137
|
message_type?: "incoming" | "outgoing" | undefined;
|
|
25
138
|
private?: boolean | undefined;
|
|
26
139
|
content_type?: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email" | undefined;
|
|
27
140
|
content_attributes?: Record<string, unknown> | undefined;
|
|
28
|
-
|
|
141
|
+
template_params?: {
|
|
142
|
+
name: string;
|
|
143
|
+
category: string;
|
|
144
|
+
language: string;
|
|
145
|
+
processed_params?: {
|
|
146
|
+
body?: Record<string, string> | undefined;
|
|
147
|
+
header?: {
|
|
148
|
+
media_url?: string | undefined;
|
|
149
|
+
media_type?: string | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
} | undefined;
|
|
29
153
|
}>;
|
|
30
154
|
export declare const MessageSchema: z.ZodObject<{
|
|
31
155
|
id: z.ZodNumber;
|
|
@@ -42,14 +166,14 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
42
166
|
email: z.ZodOptional<z.ZodString>;
|
|
43
167
|
type: z.ZodString;
|
|
44
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
name: string;
|
|
45
170
|
type: string;
|
|
46
171
|
id: number;
|
|
47
|
-
name: string;
|
|
48
172
|
email?: string | undefined;
|
|
49
173
|
}, {
|
|
174
|
+
name: string;
|
|
50
175
|
type: string;
|
|
51
176
|
id: number;
|
|
52
|
-
name: string;
|
|
53
177
|
email?: string | undefined;
|
|
54
178
|
}>>;
|
|
55
179
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -62,9 +186,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
62
186
|
created_at: number;
|
|
63
187
|
conversation_id: number;
|
|
64
188
|
sender?: {
|
|
189
|
+
name: string;
|
|
65
190
|
type: string;
|
|
66
191
|
id: number;
|
|
67
|
-
name: string;
|
|
68
192
|
email?: string | undefined;
|
|
69
193
|
} | undefined;
|
|
70
194
|
}, {
|
|
@@ -77,9 +201,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
77
201
|
created_at: number;
|
|
78
202
|
conversation_id: number;
|
|
79
203
|
sender?: {
|
|
204
|
+
name: string;
|
|
80
205
|
type: string;
|
|
81
206
|
id: number;
|
|
82
|
-
name: string;
|
|
83
207
|
email?: string | undefined;
|
|
84
208
|
} | undefined;
|
|
85
209
|
}>;
|
|
@@ -89,11 +213,11 @@ export declare const TeamSchema: z.ZodObject<{
|
|
|
89
213
|
id: z.ZodOptional<z.ZodNumber>;
|
|
90
214
|
name: z.ZodOptional<z.ZodString>;
|
|
91
215
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
id?: number | undefined;
|
|
93
216
|
name?: string | undefined;
|
|
94
|
-
}, {
|
|
95
217
|
id?: number | undefined;
|
|
218
|
+
}, {
|
|
96
219
|
name?: string | undefined;
|
|
220
|
+
id?: number | undefined;
|
|
97
221
|
}>;
|
|
98
222
|
export declare const AgentSchema: z.ZodObject<{
|
|
99
223
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -104,17 +228,17 @@ export declare const AgentSchema: z.ZodObject<{
|
|
|
104
228
|
availability: z.ZodOptional<z.ZodString>;
|
|
105
229
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
106
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
name?: string | undefined;
|
|
107
232
|
type?: string | undefined;
|
|
108
233
|
id?: number | undefined;
|
|
109
|
-
name?: string | undefined;
|
|
110
234
|
available_name?: string | undefined;
|
|
111
235
|
avatar_url?: string | undefined;
|
|
112
236
|
availability?: string | undefined;
|
|
113
237
|
thumbnail?: string | undefined;
|
|
114
238
|
}, {
|
|
239
|
+
name?: string | undefined;
|
|
115
240
|
type?: string | undefined;
|
|
116
241
|
id?: number | undefined;
|
|
117
|
-
name?: string | undefined;
|
|
118
242
|
available_name?: string | undefined;
|
|
119
243
|
avatar_url?: string | undefined;
|
|
120
244
|
availability?: string | undefined;
|
|
@@ -127,11 +251,11 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
127
251
|
id: z.ZodOptional<z.ZodNumber>;
|
|
128
252
|
name: z.ZodOptional<z.ZodString>;
|
|
129
253
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
id?: number | undefined;
|
|
131
254
|
name?: string | undefined;
|
|
132
|
-
}, {
|
|
133
255
|
id?: number | undefined;
|
|
256
|
+
}, {
|
|
134
257
|
name?: string | undefined;
|
|
258
|
+
id?: number | undefined;
|
|
135
259
|
}>>>;
|
|
136
260
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
137
261
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -142,17 +266,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
142
266
|
availability: z.ZodOptional<z.ZodString>;
|
|
143
267
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
144
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
name?: string | undefined;
|
|
145
270
|
type?: string | undefined;
|
|
146
271
|
id?: number | undefined;
|
|
147
|
-
name?: string | undefined;
|
|
148
272
|
available_name?: string | undefined;
|
|
149
273
|
avatar_url?: string | undefined;
|
|
150
274
|
availability?: string | undefined;
|
|
151
275
|
thumbnail?: string | undefined;
|
|
152
276
|
}, {
|
|
277
|
+
name?: string | undefined;
|
|
153
278
|
type?: string | undefined;
|
|
154
279
|
id?: number | undefined;
|
|
155
|
-
name?: string | undefined;
|
|
156
280
|
available_name?: string | undefined;
|
|
157
281
|
avatar_url?: string | undefined;
|
|
158
282
|
availability?: string | undefined;
|
|
@@ -163,17 +287,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
163
287
|
}, "strip", z.ZodTypeAny, {
|
|
164
288
|
success: boolean;
|
|
165
289
|
agent?: {
|
|
290
|
+
name?: string | undefined;
|
|
166
291
|
type?: string | undefined;
|
|
167
292
|
id?: number | undefined;
|
|
168
|
-
name?: string | undefined;
|
|
169
293
|
available_name?: string | undefined;
|
|
170
294
|
avatar_url?: string | undefined;
|
|
171
295
|
availability?: string | undefined;
|
|
172
296
|
thumbnail?: string | undefined;
|
|
173
297
|
} | null | undefined;
|
|
174
298
|
team?: {
|
|
175
|
-
id?: number | undefined;
|
|
176
299
|
name?: string | undefined;
|
|
300
|
+
id?: number | undefined;
|
|
177
301
|
} | null | undefined;
|
|
178
302
|
escalation_type?: "agent" | "team" | undefined;
|
|
179
303
|
reason?: string | undefined;
|
|
@@ -181,17 +305,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
181
305
|
}, {
|
|
182
306
|
success: boolean;
|
|
183
307
|
agent?: {
|
|
308
|
+
name?: string | undefined;
|
|
184
309
|
type?: string | undefined;
|
|
185
310
|
id?: number | undefined;
|
|
186
|
-
name?: string | undefined;
|
|
187
311
|
available_name?: string | undefined;
|
|
188
312
|
avatar_url?: string | undefined;
|
|
189
313
|
availability?: string | undefined;
|
|
190
314
|
thumbnail?: string | undefined;
|
|
191
315
|
} | null | undefined;
|
|
192
316
|
team?: {
|
|
193
|
-
id?: number | undefined;
|
|
194
317
|
name?: string | undefined;
|
|
318
|
+
id?: number | undefined;
|
|
195
319
|
} | null | undefined;
|
|
196
320
|
escalation_type?: "agent" | "team" | undefined;
|
|
197
321
|
reason?: string | undefined;
|
|
@@ -212,8 +336,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
212
336
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
213
337
|
type: z.ZodOptional<z.ZodString>;
|
|
214
338
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
id: number;
|
|
216
339
|
name: string | null;
|
|
340
|
+
id: number;
|
|
217
341
|
email: string | null;
|
|
218
342
|
thumbnail: string;
|
|
219
343
|
phone_number: string | null;
|
|
@@ -225,8 +349,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
225
349
|
customer_stage_explanation: string | null;
|
|
226
350
|
type?: string | undefined;
|
|
227
351
|
}, {
|
|
228
|
-
id: number;
|
|
229
352
|
name: string | null;
|
|
353
|
+
id: number;
|
|
230
354
|
email: string | null;
|
|
231
355
|
thumbnail: string;
|
|
232
356
|
phone_number: string | null;
|
|
@@ -271,12 +395,12 @@ export declare const AssigneeSchema: z.ZodObject<{
|
|
|
271
395
|
name: z.ZodString;
|
|
272
396
|
email: z.ZodString;
|
|
273
397
|
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
id: number;
|
|
275
398
|
name: string;
|
|
399
|
+
id: number;
|
|
276
400
|
email: string;
|
|
277
401
|
}, {
|
|
278
|
-
id: number;
|
|
279
402
|
name: string;
|
|
403
|
+
id: number;
|
|
280
404
|
email: string;
|
|
281
405
|
}>;
|
|
282
406
|
export declare const ConversationMetaSchema: z.ZodObject<{
|
|
@@ -294,8 +418,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
294
418
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
295
419
|
type: z.ZodOptional<z.ZodString>;
|
|
296
420
|
}, "strip", z.ZodTypeAny, {
|
|
297
|
-
id: number;
|
|
298
421
|
name: string | null;
|
|
422
|
+
id: number;
|
|
299
423
|
email: string | null;
|
|
300
424
|
thumbnail: string;
|
|
301
425
|
phone_number: string | null;
|
|
@@ -307,8 +431,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
307
431
|
customer_stage_explanation: string | null;
|
|
308
432
|
type?: string | undefined;
|
|
309
433
|
}, {
|
|
310
|
-
id: number;
|
|
311
434
|
name: string | null;
|
|
435
|
+
id: number;
|
|
312
436
|
email: string | null;
|
|
313
437
|
thumbnail: string;
|
|
314
438
|
phone_number: string | null;
|
|
@@ -325,20 +449,20 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
325
449
|
name: z.ZodString;
|
|
326
450
|
email: z.ZodString;
|
|
327
451
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
id: number;
|
|
329
452
|
name: string;
|
|
453
|
+
id: number;
|
|
330
454
|
email: string;
|
|
331
455
|
}, {
|
|
332
|
-
id: number;
|
|
333
456
|
name: string;
|
|
457
|
+
id: number;
|
|
334
458
|
email: string;
|
|
335
459
|
}>>;
|
|
336
460
|
team: z.ZodNullable<z.ZodUnknown>;
|
|
337
461
|
hmac_verified: z.ZodBoolean;
|
|
338
462
|
}, "strip", z.ZodTypeAny, {
|
|
339
463
|
sender: {
|
|
340
|
-
id: number;
|
|
341
464
|
name: string | null;
|
|
465
|
+
id: number;
|
|
342
466
|
email: string | null;
|
|
343
467
|
thumbnail: string;
|
|
344
468
|
phone_number: string | null;
|
|
@@ -352,15 +476,15 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
352
476
|
};
|
|
353
477
|
hmac_verified: boolean;
|
|
354
478
|
assignee: {
|
|
355
|
-
id: number;
|
|
356
479
|
name: string;
|
|
480
|
+
id: number;
|
|
357
481
|
email: string;
|
|
358
482
|
} | null;
|
|
359
483
|
team?: unknown;
|
|
360
484
|
}, {
|
|
361
485
|
sender: {
|
|
362
|
-
id: number;
|
|
363
486
|
name: string | null;
|
|
487
|
+
id: number;
|
|
364
488
|
email: string | null;
|
|
365
489
|
thumbnail: string;
|
|
366
490
|
phone_number: string | null;
|
|
@@ -374,8 +498,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
374
498
|
};
|
|
375
499
|
hmac_verified: boolean;
|
|
376
500
|
assignee: {
|
|
377
|
-
id: number;
|
|
378
501
|
name: string;
|
|
502
|
+
id: number;
|
|
379
503
|
email: string;
|
|
380
504
|
} | null;
|
|
381
505
|
team?: unknown;
|
|
@@ -430,14 +554,14 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
430
554
|
email: z.ZodOptional<z.ZodString>;
|
|
431
555
|
type: z.ZodString;
|
|
432
556
|
}, "strip", z.ZodTypeAny, {
|
|
557
|
+
name: string;
|
|
433
558
|
type: string;
|
|
434
559
|
id: number;
|
|
435
|
-
name: string;
|
|
436
560
|
email?: string | undefined;
|
|
437
561
|
}, {
|
|
562
|
+
name: string;
|
|
438
563
|
type: string;
|
|
439
564
|
id: number;
|
|
440
|
-
name: string;
|
|
441
565
|
email?: string | undefined;
|
|
442
566
|
}>>;
|
|
443
567
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -450,9 +574,9 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
450
574
|
created_at: number;
|
|
451
575
|
conversation_id: number;
|
|
452
576
|
sender?: {
|
|
577
|
+
name: string;
|
|
453
578
|
type: string;
|
|
454
579
|
id: number;
|
|
455
|
-
name: string;
|
|
456
580
|
email?: string | undefined;
|
|
457
581
|
} | undefined;
|
|
458
582
|
}, {
|
|
@@ -465,9 +589,9 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
465
589
|
created_at: number;
|
|
466
590
|
conversation_id: number;
|
|
467
591
|
sender?: {
|
|
592
|
+
name: string;
|
|
468
593
|
type: string;
|
|
469
594
|
id: number;
|
|
470
|
-
name: string;
|
|
471
595
|
email?: string | undefined;
|
|
472
596
|
} | undefined;
|
|
473
597
|
}>, "many">>;
|
|
@@ -486,8 +610,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
486
610
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
487
611
|
type: z.ZodOptional<z.ZodString>;
|
|
488
612
|
}, "strip", z.ZodTypeAny, {
|
|
489
|
-
id: number;
|
|
490
613
|
name: string | null;
|
|
614
|
+
id: number;
|
|
491
615
|
email: string | null;
|
|
492
616
|
thumbnail: string;
|
|
493
617
|
phone_number: string | null;
|
|
@@ -499,8 +623,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
499
623
|
customer_stage_explanation: string | null;
|
|
500
624
|
type?: string | undefined;
|
|
501
625
|
}, {
|
|
502
|
-
id: number;
|
|
503
626
|
name: string | null;
|
|
627
|
+
id: number;
|
|
504
628
|
email: string | null;
|
|
505
629
|
thumbnail: string;
|
|
506
630
|
phone_number: string | null;
|
|
@@ -517,20 +641,20 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
517
641
|
name: z.ZodString;
|
|
518
642
|
email: z.ZodString;
|
|
519
643
|
}, "strip", z.ZodTypeAny, {
|
|
520
|
-
id: number;
|
|
521
644
|
name: string;
|
|
645
|
+
id: number;
|
|
522
646
|
email: string;
|
|
523
647
|
}, {
|
|
524
|
-
id: number;
|
|
525
648
|
name: string;
|
|
649
|
+
id: number;
|
|
526
650
|
email: string;
|
|
527
651
|
}>>;
|
|
528
652
|
team: z.ZodNullable<z.ZodUnknown>;
|
|
529
653
|
hmac_verified: z.ZodBoolean;
|
|
530
654
|
}, "strip", z.ZodTypeAny, {
|
|
531
655
|
sender: {
|
|
532
|
-
id: number;
|
|
533
656
|
name: string | null;
|
|
657
|
+
id: number;
|
|
534
658
|
email: string | null;
|
|
535
659
|
thumbnail: string;
|
|
536
660
|
phone_number: string | null;
|
|
@@ -544,15 +668,15 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
544
668
|
};
|
|
545
669
|
hmac_verified: boolean;
|
|
546
670
|
assignee: {
|
|
547
|
-
id: number;
|
|
548
671
|
name: string;
|
|
672
|
+
id: number;
|
|
549
673
|
email: string;
|
|
550
674
|
} | null;
|
|
551
675
|
team?: unknown;
|
|
552
676
|
}, {
|
|
553
677
|
sender: {
|
|
554
|
-
id: number;
|
|
555
678
|
name: string | null;
|
|
679
|
+
id: number;
|
|
556
680
|
email: string | null;
|
|
557
681
|
thumbnail: string;
|
|
558
682
|
phone_number: string | null;
|
|
@@ -566,8 +690,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
566
690
|
};
|
|
567
691
|
hmac_verified: boolean;
|
|
568
692
|
assignee: {
|
|
569
|
-
id: number;
|
|
570
693
|
name: string;
|
|
694
|
+
id: number;
|
|
571
695
|
email: string;
|
|
572
696
|
} | null;
|
|
573
697
|
team?: unknown;
|
|
@@ -622,16 +746,16 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
622
746
|
created_at: number;
|
|
623
747
|
conversation_id: number;
|
|
624
748
|
sender?: {
|
|
749
|
+
name: string;
|
|
625
750
|
type: string;
|
|
626
751
|
id: number;
|
|
627
|
-
name: string;
|
|
628
752
|
email?: string | undefined;
|
|
629
753
|
} | undefined;
|
|
630
754
|
}[] | undefined;
|
|
631
755
|
meta?: {
|
|
632
756
|
sender: {
|
|
633
|
-
id: number;
|
|
634
757
|
name: string | null;
|
|
758
|
+
id: number;
|
|
635
759
|
email: string | null;
|
|
636
760
|
thumbnail: string;
|
|
637
761
|
phone_number: string | null;
|
|
@@ -645,8 +769,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
645
769
|
};
|
|
646
770
|
hmac_verified: boolean;
|
|
647
771
|
assignee: {
|
|
648
|
-
id: number;
|
|
649
772
|
name: string;
|
|
773
|
+
id: number;
|
|
650
774
|
email: string;
|
|
651
775
|
} | null;
|
|
652
776
|
team?: unknown;
|
|
@@ -696,16 +820,16 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
696
820
|
created_at: number;
|
|
697
821
|
conversation_id: number;
|
|
698
822
|
sender?: {
|
|
823
|
+
name: string;
|
|
699
824
|
type: string;
|
|
700
825
|
id: number;
|
|
701
|
-
name: string;
|
|
702
826
|
email?: string | undefined;
|
|
703
827
|
} | undefined;
|
|
704
828
|
}[] | undefined;
|
|
705
829
|
meta?: {
|
|
706
830
|
sender: {
|
|
707
|
-
id: number;
|
|
708
831
|
name: string | null;
|
|
832
|
+
id: number;
|
|
709
833
|
email: string | null;
|
|
710
834
|
thumbnail: string;
|
|
711
835
|
phone_number: string | null;
|
|
@@ -719,8 +843,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
719
843
|
};
|
|
720
844
|
hmac_verified: boolean;
|
|
721
845
|
assignee: {
|
|
722
|
-
id: number;
|
|
723
846
|
name: string;
|
|
847
|
+
id: number;
|
|
724
848
|
email: string;
|
|
725
849
|
} | null;
|
|
726
850
|
team?: unknown;
|
|
@@ -748,12 +872,12 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
|
|
|
748
872
|
name: z.ZodString;
|
|
749
873
|
email: z.ZodString;
|
|
750
874
|
}, "strip", z.ZodTypeAny, {
|
|
751
|
-
id: number;
|
|
752
875
|
name: string;
|
|
876
|
+
id: number;
|
|
753
877
|
email: string;
|
|
754
878
|
}, {
|
|
755
|
-
id: number;
|
|
756
879
|
name: string;
|
|
880
|
+
id: number;
|
|
757
881
|
email: string;
|
|
758
882
|
}>>;
|
|
759
883
|
agent_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
@@ -761,8 +885,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
|
|
|
761
885
|
}, "strip", z.ZodTypeAny, {
|
|
762
886
|
additional_attributes: Record<string, unknown>;
|
|
763
887
|
assignee: {
|
|
764
|
-
id: number;
|
|
765
888
|
name: string;
|
|
889
|
+
id: number;
|
|
766
890
|
email: string;
|
|
767
891
|
} | null;
|
|
768
892
|
labels: string[];
|
|
@@ -772,8 +896,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
|
|
|
772
896
|
}, {
|
|
773
897
|
additional_attributes: Record<string, unknown>;
|
|
774
898
|
assignee: {
|
|
775
|
-
id: number;
|
|
776
899
|
name: string;
|
|
900
|
+
id: number;
|
|
777
901
|
email: string;
|
|
778
902
|
} | null;
|
|
779
903
|
labels: string[];
|
|
@@ -791,12 +915,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
791
915
|
name: z.ZodString;
|
|
792
916
|
email: z.ZodString;
|
|
793
917
|
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
id: number;
|
|
795
918
|
name: string;
|
|
919
|
+
id: number;
|
|
796
920
|
email: string;
|
|
797
921
|
}, {
|
|
798
|
-
id: number;
|
|
799
922
|
name: string;
|
|
923
|
+
id: number;
|
|
800
924
|
email: string;
|
|
801
925
|
}>>;
|
|
802
926
|
agent_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
@@ -804,8 +928,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
804
928
|
}, "strip", z.ZodTypeAny, {
|
|
805
929
|
additional_attributes: Record<string, unknown>;
|
|
806
930
|
assignee: {
|
|
807
|
-
id: number;
|
|
808
931
|
name: string;
|
|
932
|
+
id: number;
|
|
809
933
|
email: string;
|
|
810
934
|
} | null;
|
|
811
935
|
labels: string[];
|
|
@@ -815,8 +939,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
815
939
|
}, {
|
|
816
940
|
additional_attributes: Record<string, unknown>;
|
|
817
941
|
assignee: {
|
|
818
|
-
id: number;
|
|
819
942
|
name: string;
|
|
943
|
+
id: number;
|
|
820
944
|
email: string;
|
|
821
945
|
} | null;
|
|
822
946
|
labels: string[];
|
|
@@ -839,14 +963,14 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
839
963
|
email: z.ZodOptional<z.ZodString>;
|
|
840
964
|
type: z.ZodString;
|
|
841
965
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
name: string;
|
|
842
967
|
type: string;
|
|
843
968
|
id: number;
|
|
844
|
-
name: string;
|
|
845
969
|
email?: string | undefined;
|
|
846
970
|
}, {
|
|
971
|
+
name: string;
|
|
847
972
|
type: string;
|
|
848
973
|
id: number;
|
|
849
|
-
name: string;
|
|
850
974
|
email?: string | undefined;
|
|
851
975
|
}>>;
|
|
852
976
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -859,9 +983,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
859
983
|
created_at: number;
|
|
860
984
|
conversation_id: number;
|
|
861
985
|
sender?: {
|
|
986
|
+
name: string;
|
|
862
987
|
type: string;
|
|
863
988
|
id: number;
|
|
864
|
-
name: string;
|
|
865
989
|
email?: string | undefined;
|
|
866
990
|
} | undefined;
|
|
867
991
|
}, {
|
|
@@ -874,9 +998,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
874
998
|
created_at: number;
|
|
875
999
|
conversation_id: number;
|
|
876
1000
|
sender?: {
|
|
1001
|
+
name: string;
|
|
877
1002
|
type: string;
|
|
878
1003
|
id: number;
|
|
879
|
-
name: string;
|
|
880
1004
|
email?: string | undefined;
|
|
881
1005
|
} | undefined;
|
|
882
1006
|
}>, "many">;
|
|
@@ -884,8 +1008,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
884
1008
|
meta: {
|
|
885
1009
|
additional_attributes: Record<string, unknown>;
|
|
886
1010
|
assignee: {
|
|
887
|
-
id: number;
|
|
888
1011
|
name: string;
|
|
1012
|
+
id: number;
|
|
889
1013
|
email: string;
|
|
890
1014
|
} | null;
|
|
891
1015
|
labels: string[];
|
|
@@ -903,9 +1027,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
903
1027
|
created_at: number;
|
|
904
1028
|
conversation_id: number;
|
|
905
1029
|
sender?: {
|
|
1030
|
+
name: string;
|
|
906
1031
|
type: string;
|
|
907
1032
|
id: number;
|
|
908
|
-
name: string;
|
|
909
1033
|
email?: string | undefined;
|
|
910
1034
|
} | undefined;
|
|
911
1035
|
}[];
|
|
@@ -913,8 +1037,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
913
1037
|
meta: {
|
|
914
1038
|
additional_attributes: Record<string, unknown>;
|
|
915
1039
|
assignee: {
|
|
916
|
-
id: number;
|
|
917
1040
|
name: string;
|
|
1041
|
+
id: number;
|
|
918
1042
|
email: string;
|
|
919
1043
|
} | null;
|
|
920
1044
|
labels: string[];
|
|
@@ -932,9 +1056,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
932
1056
|
created_at: number;
|
|
933
1057
|
conversation_id: number;
|
|
934
1058
|
sender?: {
|
|
1059
|
+
name: string;
|
|
935
1060
|
type: string;
|
|
936
1061
|
id: number;
|
|
937
|
-
name: string;
|
|
938
1062
|
email?: string | undefined;
|
|
939
1063
|
} | undefined;
|
|
940
1064
|
}[];
|
|
@@ -944,7 +1068,7 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
944
1068
|
*/
|
|
945
1069
|
export type MessageType = z.infer<typeof MessageTypeSchema>;
|
|
946
1070
|
export type ContentType = z.infer<typeof ContentTypeSchema>;
|
|
947
|
-
export type
|
|
1071
|
+
export type TemplateParams = z.infer<typeof TemplateParamsSchema>;
|
|
948
1072
|
export type CreateMessageParams = z.infer<typeof CreateMessageParamsSchema>;
|
|
949
1073
|
export type Message = z.infer<typeof MessageSchema>;
|
|
950
1074
|
export type EscalationType = z.infer<typeof EscalationTypeSchema>;
|