@voltade/envoy-sdk 1.2.9 → 1.2.11
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/client.d.ts +1 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -2
- package/dist/client.js.map +1 -1
- package/dist/resources/companies/index.d.ts +6 -0
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +5 -0
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +14 -14
- package/dist/resources/company-members/index.d.ts +3 -3
- package/dist/resources/company-members/index.d.ts.map +1 -1
- package/dist/resources/company-members/index.js +6 -6
- package/dist/resources/company-members/index.js.map +1 -1
- package/dist/resources/company-members/types.d.ts +4 -4
- package/dist/resources/conversations/types.d.ts +105 -105
- package/dist/resources/inboxes/types.d.ts +6 -6
- package/dist/resources/orders/types.d.ts +15 -7
- package/dist/resources/orders/types.d.ts.map +1 -1
- package/dist/resources/orders/types.js +1 -0
- package/dist/resources/orders/types.js.map +1 -1
- package/dist/resources/webhooks/types.d.ts +766 -766
- package/package.json +1 -1
|
@@ -38,44 +38,44 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
38
38
|
email: z.ZodOptional<z.ZodString>;
|
|
39
39
|
type: z.ZodString;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
type: string;
|
|
41
42
|
id: number;
|
|
42
43
|
name: string;
|
|
43
|
-
type: string;
|
|
44
44
|
email?: string | undefined;
|
|
45
45
|
}, {
|
|
46
|
+
type: string;
|
|
46
47
|
id: number;
|
|
47
48
|
name: string;
|
|
48
|
-
type: string;
|
|
49
49
|
email?: string | undefined;
|
|
50
50
|
}>>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
id: number;
|
|
53
|
-
created_at: number;
|
|
54
52
|
content: string;
|
|
55
53
|
message_type: "incoming" | "outgoing";
|
|
56
54
|
private: boolean;
|
|
57
55
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
58
56
|
content_attributes: Record<string, unknown>;
|
|
57
|
+
id: number;
|
|
58
|
+
created_at: number;
|
|
59
59
|
conversation_id: number;
|
|
60
60
|
sender?: {
|
|
61
|
+
type: string;
|
|
61
62
|
id: number;
|
|
62
63
|
name: string;
|
|
63
|
-
type: string;
|
|
64
64
|
email?: string | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
}, {
|
|
67
|
-
id: number;
|
|
68
|
-
created_at: number;
|
|
69
67
|
content: string;
|
|
70
68
|
message_type: "incoming" | "outgoing";
|
|
71
69
|
private: boolean;
|
|
72
70
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
73
71
|
content_attributes: Record<string, unknown>;
|
|
72
|
+
id: number;
|
|
73
|
+
created_at: number;
|
|
74
74
|
conversation_id: number;
|
|
75
75
|
sender?: {
|
|
76
|
+
type: string;
|
|
76
77
|
id: number;
|
|
77
78
|
name: string;
|
|
78
|
-
type: string;
|
|
79
79
|
email?: string | undefined;
|
|
80
80
|
} | undefined;
|
|
81
81
|
}>;
|
|
@@ -100,17 +100,17 @@ export declare const AgentSchema: z.ZodObject<{
|
|
|
100
100
|
availability: z.ZodOptional<z.ZodString>;
|
|
101
101
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
type?: string | undefined;
|
|
103
104
|
id?: number | undefined;
|
|
104
105
|
name?: string | undefined;
|
|
105
|
-
type?: string | undefined;
|
|
106
106
|
available_name?: string | undefined;
|
|
107
107
|
avatar_url?: string | undefined;
|
|
108
108
|
availability?: string | undefined;
|
|
109
109
|
thumbnail?: string | undefined;
|
|
110
110
|
}, {
|
|
111
|
+
type?: string | undefined;
|
|
111
112
|
id?: number | undefined;
|
|
112
113
|
name?: string | undefined;
|
|
113
|
-
type?: string | undefined;
|
|
114
114
|
available_name?: string | undefined;
|
|
115
115
|
avatar_url?: string | undefined;
|
|
116
116
|
availability?: string | undefined;
|
|
@@ -138,17 +138,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
138
138
|
availability: z.ZodOptional<z.ZodString>;
|
|
139
139
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
type?: string | undefined;
|
|
141
142
|
id?: number | undefined;
|
|
142
143
|
name?: string | undefined;
|
|
143
|
-
type?: string | undefined;
|
|
144
144
|
available_name?: string | undefined;
|
|
145
145
|
avatar_url?: string | undefined;
|
|
146
146
|
availability?: string | undefined;
|
|
147
147
|
thumbnail?: string | undefined;
|
|
148
148
|
}, {
|
|
149
|
+
type?: string | undefined;
|
|
149
150
|
id?: number | undefined;
|
|
150
151
|
name?: string | undefined;
|
|
151
|
-
type?: string | undefined;
|
|
152
152
|
available_name?: string | undefined;
|
|
153
153
|
avatar_url?: string | undefined;
|
|
154
154
|
availability?: string | undefined;
|
|
@@ -159,9 +159,9 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
success: boolean;
|
|
161
161
|
agent?: {
|
|
162
|
+
type?: string | undefined;
|
|
162
163
|
id?: number | undefined;
|
|
163
164
|
name?: string | undefined;
|
|
164
|
-
type?: string | undefined;
|
|
165
165
|
available_name?: string | undefined;
|
|
166
166
|
avatar_url?: string | undefined;
|
|
167
167
|
availability?: string | undefined;
|
|
@@ -177,9 +177,9 @@ export declare const EscalationResponseSchema: z.ZodObject<{
|
|
|
177
177
|
}, {
|
|
178
178
|
success: boolean;
|
|
179
179
|
agent?: {
|
|
180
|
+
type?: string | undefined;
|
|
180
181
|
id?: number | undefined;
|
|
181
182
|
name?: string | undefined;
|
|
182
|
-
type?: string | undefined;
|
|
183
183
|
available_name?: string | undefined;
|
|
184
184
|
avatar_url?: string | undefined;
|
|
185
185
|
availability?: string | undefined;
|
|
@@ -211,8 +211,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
211
211
|
id: number;
|
|
212
212
|
name: string | null;
|
|
213
213
|
email: string | null;
|
|
214
|
-
phone_number: string | null;
|
|
215
214
|
thumbnail: string;
|
|
215
|
+
phone_number: string | null;
|
|
216
216
|
identifier: string | null;
|
|
217
217
|
additional_attributes: Record<string, unknown>;
|
|
218
218
|
custom_attributes: Record<string, unknown>;
|
|
@@ -224,8 +224,8 @@ export declare const ContactSchema: z.ZodObject<{
|
|
|
224
224
|
id: number;
|
|
225
225
|
name: string | null;
|
|
226
226
|
email: string | null;
|
|
227
|
-
phone_number: string | null;
|
|
228
227
|
thumbnail: string;
|
|
228
|
+
phone_number: string | null;
|
|
229
229
|
identifier: string | null;
|
|
230
230
|
additional_attributes: Record<string, unknown>;
|
|
231
231
|
custom_attributes: Record<string, unknown>;
|
|
@@ -246,19 +246,19 @@ export declare const ContactInboxSchema: z.ZodObject<{
|
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
247
|
id: number;
|
|
248
248
|
created_at: string;
|
|
249
|
-
updated_at: string;
|
|
250
249
|
contact_id: number;
|
|
251
250
|
inbox_id: number;
|
|
252
251
|
source_id: string | null;
|
|
252
|
+
updated_at: string;
|
|
253
253
|
hmac_verified: boolean;
|
|
254
254
|
pubsub_token: string;
|
|
255
255
|
}, {
|
|
256
256
|
id: number;
|
|
257
257
|
created_at: string;
|
|
258
|
-
updated_at: string;
|
|
259
258
|
contact_id: number;
|
|
260
259
|
inbox_id: number;
|
|
261
260
|
source_id: string | null;
|
|
261
|
+
updated_at: string;
|
|
262
262
|
hmac_verified: boolean;
|
|
263
263
|
pubsub_token: string;
|
|
264
264
|
}>;
|
|
@@ -293,8 +293,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
293
293
|
id: number;
|
|
294
294
|
name: string | null;
|
|
295
295
|
email: string | null;
|
|
296
|
-
phone_number: string | null;
|
|
297
296
|
thumbnail: string;
|
|
297
|
+
phone_number: string | null;
|
|
298
298
|
identifier: string | null;
|
|
299
299
|
additional_attributes: Record<string, unknown>;
|
|
300
300
|
custom_attributes: Record<string, unknown>;
|
|
@@ -306,8 +306,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
306
306
|
id: number;
|
|
307
307
|
name: string | null;
|
|
308
308
|
email: string | null;
|
|
309
|
-
phone_number: string | null;
|
|
310
309
|
thumbnail: string;
|
|
310
|
+
phone_number: string | null;
|
|
311
311
|
identifier: string | null;
|
|
312
312
|
additional_attributes: Record<string, unknown>;
|
|
313
313
|
custom_attributes: Record<string, unknown>;
|
|
@@ -336,8 +336,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
336
336
|
id: number;
|
|
337
337
|
name: string | null;
|
|
338
338
|
email: string | null;
|
|
339
|
-
phone_number: string | null;
|
|
340
339
|
thumbnail: string;
|
|
340
|
+
phone_number: string | null;
|
|
341
341
|
identifier: string | null;
|
|
342
342
|
additional_attributes: Record<string, unknown>;
|
|
343
343
|
custom_attributes: Record<string, unknown>;
|
|
@@ -358,8 +358,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
|
|
|
358
358
|
id: number;
|
|
359
359
|
name: string | null;
|
|
360
360
|
email: string | null;
|
|
361
|
-
phone_number: string | null;
|
|
362
361
|
thumbnail: string;
|
|
362
|
+
phone_number: string | null;
|
|
363
363
|
identifier: string | null;
|
|
364
364
|
additional_attributes: Record<string, unknown>;
|
|
365
365
|
custom_attributes: Record<string, unknown>;
|
|
@@ -395,19 +395,19 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
396
|
id: number;
|
|
397
397
|
created_at: string;
|
|
398
|
-
updated_at: string;
|
|
399
398
|
contact_id: number;
|
|
400
399
|
inbox_id: number;
|
|
401
400
|
source_id: string | null;
|
|
401
|
+
updated_at: string;
|
|
402
402
|
hmac_verified: boolean;
|
|
403
403
|
pubsub_token: string;
|
|
404
404
|
}, {
|
|
405
405
|
id: number;
|
|
406
406
|
created_at: string;
|
|
407
|
-
updated_at: string;
|
|
408
407
|
contact_id: number;
|
|
409
408
|
inbox_id: number;
|
|
410
409
|
source_id: string | null;
|
|
410
|
+
updated_at: string;
|
|
411
411
|
hmac_verified: boolean;
|
|
412
412
|
pubsub_token: string;
|
|
413
413
|
}>>;
|
|
@@ -426,44 +426,44 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
426
426
|
email: z.ZodOptional<z.ZodString>;
|
|
427
427
|
type: z.ZodString;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
type: string;
|
|
429
430
|
id: number;
|
|
430
431
|
name: string;
|
|
431
|
-
type: string;
|
|
432
432
|
email?: string | undefined;
|
|
433
433
|
}, {
|
|
434
|
+
type: string;
|
|
434
435
|
id: number;
|
|
435
436
|
name: string;
|
|
436
|
-
type: string;
|
|
437
437
|
email?: string | undefined;
|
|
438
438
|
}>>;
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
id: number;
|
|
441
|
-
created_at: number;
|
|
442
440
|
content: string;
|
|
443
441
|
message_type: "incoming" | "outgoing";
|
|
444
442
|
private: boolean;
|
|
445
443
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
446
444
|
content_attributes: Record<string, unknown>;
|
|
445
|
+
id: number;
|
|
446
|
+
created_at: number;
|
|
447
447
|
conversation_id: number;
|
|
448
448
|
sender?: {
|
|
449
|
+
type: string;
|
|
449
450
|
id: number;
|
|
450
451
|
name: string;
|
|
451
|
-
type: string;
|
|
452
452
|
email?: string | undefined;
|
|
453
453
|
} | undefined;
|
|
454
454
|
}, {
|
|
455
|
-
id: number;
|
|
456
|
-
created_at: number;
|
|
457
455
|
content: string;
|
|
458
456
|
message_type: "incoming" | "outgoing";
|
|
459
457
|
private: boolean;
|
|
460
458
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
461
459
|
content_attributes: Record<string, unknown>;
|
|
460
|
+
id: number;
|
|
461
|
+
created_at: number;
|
|
462
462
|
conversation_id: number;
|
|
463
463
|
sender?: {
|
|
464
|
+
type: string;
|
|
464
465
|
id: number;
|
|
465
466
|
name: string;
|
|
466
|
-
type: string;
|
|
467
467
|
email?: string | undefined;
|
|
468
468
|
} | undefined;
|
|
469
469
|
}>, "many">>;
|
|
@@ -485,8 +485,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
485
485
|
id: number;
|
|
486
486
|
name: string | null;
|
|
487
487
|
email: string | null;
|
|
488
|
-
phone_number: string | null;
|
|
489
488
|
thumbnail: string;
|
|
489
|
+
phone_number: string | null;
|
|
490
490
|
identifier: string | null;
|
|
491
491
|
additional_attributes: Record<string, unknown>;
|
|
492
492
|
custom_attributes: Record<string, unknown>;
|
|
@@ -498,8 +498,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
498
498
|
id: number;
|
|
499
499
|
name: string | null;
|
|
500
500
|
email: string | null;
|
|
501
|
-
phone_number: string | null;
|
|
502
501
|
thumbnail: string;
|
|
502
|
+
phone_number: string | null;
|
|
503
503
|
identifier: string | null;
|
|
504
504
|
additional_attributes: Record<string, unknown>;
|
|
505
505
|
custom_attributes: Record<string, unknown>;
|
|
@@ -528,8 +528,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
528
528
|
id: number;
|
|
529
529
|
name: string | null;
|
|
530
530
|
email: string | null;
|
|
531
|
-
phone_number: string | null;
|
|
532
531
|
thumbnail: string;
|
|
532
|
+
phone_number: string | null;
|
|
533
533
|
identifier: string | null;
|
|
534
534
|
additional_attributes: Record<string, unknown>;
|
|
535
535
|
custom_attributes: Record<string, unknown>;
|
|
@@ -550,8 +550,8 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
550
550
|
id: number;
|
|
551
551
|
name: string | null;
|
|
552
552
|
email: string | null;
|
|
553
|
-
phone_number: string | null;
|
|
554
553
|
thumbnail: string;
|
|
554
|
+
phone_number: string | null;
|
|
555
555
|
identifier: string | null;
|
|
556
556
|
additional_attributes: Record<string, unknown>;
|
|
557
557
|
custom_attributes: Record<string, unknown>;
|
|
@@ -587,35 +587,12 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
587
587
|
created_at: z.ZodNumber;
|
|
588
588
|
updated_at: z.ZodNumber;
|
|
589
589
|
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
id: number;
|
|
591
590
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
592
|
-
|
|
591
|
+
id: number;
|
|
593
592
|
created_at: number;
|
|
594
|
-
updated_at: number;
|
|
595
593
|
inbox_id: number;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
id: number;
|
|
599
|
-
name: string | null;
|
|
600
|
-
email: string | null;
|
|
601
|
-
phone_number: string | null;
|
|
602
|
-
thumbnail: string;
|
|
603
|
-
identifier: string | null;
|
|
604
|
-
additional_attributes: Record<string, unknown>;
|
|
605
|
-
custom_attributes: Record<string, unknown>;
|
|
606
|
-
blocked: boolean;
|
|
607
|
-
customer_stage: string;
|
|
608
|
-
customer_stage_explanation: string | null;
|
|
609
|
-
type?: string | undefined;
|
|
610
|
-
};
|
|
611
|
-
hmac_verified: boolean;
|
|
612
|
-
assignee: {
|
|
613
|
-
id: number;
|
|
614
|
-
name: string;
|
|
615
|
-
email: string;
|
|
616
|
-
} | null;
|
|
617
|
-
team?: unknown;
|
|
618
|
-
} | undefined;
|
|
594
|
+
updated_at: number;
|
|
595
|
+
account_id: number;
|
|
619
596
|
priority?: string | null | undefined;
|
|
620
597
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
621
598
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -624,56 +601,36 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
624
601
|
contact_inbox?: {
|
|
625
602
|
id: number;
|
|
626
603
|
created_at: string;
|
|
627
|
-
updated_at: string;
|
|
628
604
|
contact_id: number;
|
|
629
605
|
inbox_id: number;
|
|
630
606
|
source_id: string | null;
|
|
607
|
+
updated_at: string;
|
|
631
608
|
hmac_verified: boolean;
|
|
632
609
|
pubsub_token: string;
|
|
633
610
|
} | undefined;
|
|
634
611
|
messages?: {
|
|
635
|
-
id: number;
|
|
636
|
-
created_at: number;
|
|
637
612
|
content: string;
|
|
638
613
|
message_type: "incoming" | "outgoing";
|
|
639
614
|
private: boolean;
|
|
640
615
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
641
616
|
content_attributes: Record<string, unknown>;
|
|
617
|
+
id: number;
|
|
618
|
+
created_at: number;
|
|
642
619
|
conversation_id: number;
|
|
643
620
|
sender?: {
|
|
621
|
+
type: string;
|
|
644
622
|
id: number;
|
|
645
623
|
name: string;
|
|
646
|
-
type: string;
|
|
647
624
|
email?: string | undefined;
|
|
648
625
|
} | undefined;
|
|
649
626
|
}[] | undefined;
|
|
650
|
-
labels?: string[] | undefined;
|
|
651
|
-
snoozed_until?: number | null | undefined;
|
|
652
|
-
unread_count?: number | undefined;
|
|
653
|
-
first_reply_created_at?: string | number | null | undefined;
|
|
654
|
-
waiting_since?: number | null | undefined;
|
|
655
|
-
ai_disabled?: boolean | undefined;
|
|
656
|
-
reenable_ai_at?: number | null | undefined;
|
|
657
|
-
ai_summary?: string | null | undefined;
|
|
658
|
-
conversation_type?: string | undefined;
|
|
659
|
-
agent_last_seen_at?: number | undefined;
|
|
660
|
-
contact_last_seen_at?: number | undefined;
|
|
661
|
-
last_activity_at?: number | undefined;
|
|
662
|
-
timestamp?: number | undefined;
|
|
663
|
-
}, {
|
|
664
|
-
id: number;
|
|
665
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
666
|
-
account_id: number;
|
|
667
|
-
created_at: number;
|
|
668
|
-
updated_at: number;
|
|
669
|
-
inbox_id: number;
|
|
670
627
|
meta?: {
|
|
671
628
|
sender: {
|
|
672
629
|
id: number;
|
|
673
630
|
name: string | null;
|
|
674
631
|
email: string | null;
|
|
675
|
-
phone_number: string | null;
|
|
676
632
|
thumbnail: string;
|
|
633
|
+
phone_number: string | null;
|
|
677
634
|
identifier: string | null;
|
|
678
635
|
additional_attributes: Record<string, unknown>;
|
|
679
636
|
custom_attributes: Record<string, unknown>;
|
|
@@ -690,6 +647,26 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
690
647
|
} | null;
|
|
691
648
|
team?: unknown;
|
|
692
649
|
} | undefined;
|
|
650
|
+
labels?: string[] | undefined;
|
|
651
|
+
snoozed_until?: number | null | undefined;
|
|
652
|
+
unread_count?: number | undefined;
|
|
653
|
+
first_reply_created_at?: string | number | null | undefined;
|
|
654
|
+
waiting_since?: number | null | undefined;
|
|
655
|
+
ai_disabled?: boolean | undefined;
|
|
656
|
+
reenable_ai_at?: number | null | undefined;
|
|
657
|
+
ai_summary?: string | null | undefined;
|
|
658
|
+
conversation_type?: string | undefined;
|
|
659
|
+
agent_last_seen_at?: number | undefined;
|
|
660
|
+
contact_last_seen_at?: number | undefined;
|
|
661
|
+
last_activity_at?: number | undefined;
|
|
662
|
+
timestamp?: number | undefined;
|
|
663
|
+
}, {
|
|
664
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
665
|
+
id: number;
|
|
666
|
+
created_at: number;
|
|
667
|
+
inbox_id: number;
|
|
668
|
+
updated_at: number;
|
|
669
|
+
account_id: number;
|
|
693
670
|
priority?: string | null | undefined;
|
|
694
671
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
695
672
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -698,29 +675,52 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
698
675
|
contact_inbox?: {
|
|
699
676
|
id: number;
|
|
700
677
|
created_at: string;
|
|
701
|
-
updated_at: string;
|
|
702
678
|
contact_id: number;
|
|
703
679
|
inbox_id: number;
|
|
704
680
|
source_id: string | null;
|
|
681
|
+
updated_at: string;
|
|
705
682
|
hmac_verified: boolean;
|
|
706
683
|
pubsub_token: string;
|
|
707
684
|
} | undefined;
|
|
708
685
|
messages?: {
|
|
709
|
-
id: number;
|
|
710
|
-
created_at: number;
|
|
711
686
|
content: string;
|
|
712
687
|
message_type: "incoming" | "outgoing";
|
|
713
688
|
private: boolean;
|
|
714
689
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
715
690
|
content_attributes: Record<string, unknown>;
|
|
691
|
+
id: number;
|
|
692
|
+
created_at: number;
|
|
716
693
|
conversation_id: number;
|
|
717
694
|
sender?: {
|
|
695
|
+
type: string;
|
|
718
696
|
id: number;
|
|
719
697
|
name: string;
|
|
720
|
-
type: string;
|
|
721
698
|
email?: string | undefined;
|
|
722
699
|
} | undefined;
|
|
723
700
|
}[] | undefined;
|
|
701
|
+
meta?: {
|
|
702
|
+
sender: {
|
|
703
|
+
id: number;
|
|
704
|
+
name: string | null;
|
|
705
|
+
email: string | null;
|
|
706
|
+
thumbnail: string;
|
|
707
|
+
phone_number: string | null;
|
|
708
|
+
identifier: string | null;
|
|
709
|
+
additional_attributes: Record<string, unknown>;
|
|
710
|
+
custom_attributes: Record<string, unknown>;
|
|
711
|
+
blocked: boolean;
|
|
712
|
+
customer_stage: string;
|
|
713
|
+
customer_stage_explanation: string | null;
|
|
714
|
+
type?: string | undefined;
|
|
715
|
+
};
|
|
716
|
+
hmac_verified: boolean;
|
|
717
|
+
assignee: {
|
|
718
|
+
id: number;
|
|
719
|
+
name: string;
|
|
720
|
+
email: string;
|
|
721
|
+
} | null;
|
|
722
|
+
team?: unknown;
|
|
723
|
+
} | undefined;
|
|
724
724
|
labels?: string[] | undefined;
|
|
725
725
|
snoozed_until?: number | null | undefined;
|
|
726
726
|
unread_count?: number | undefined;
|
|
@@ -835,44 +835,44 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
835
835
|
email: z.ZodOptional<z.ZodString>;
|
|
836
836
|
type: z.ZodString;
|
|
837
837
|
}, "strip", z.ZodTypeAny, {
|
|
838
|
+
type: string;
|
|
838
839
|
id: number;
|
|
839
840
|
name: string;
|
|
840
|
-
type: string;
|
|
841
841
|
email?: string | undefined;
|
|
842
842
|
}, {
|
|
843
|
+
type: string;
|
|
843
844
|
id: number;
|
|
844
845
|
name: string;
|
|
845
|
-
type: string;
|
|
846
846
|
email?: string | undefined;
|
|
847
847
|
}>>;
|
|
848
848
|
}, "strip", z.ZodTypeAny, {
|
|
849
|
-
id: number;
|
|
850
|
-
created_at: number;
|
|
851
849
|
content: string;
|
|
852
850
|
message_type: "incoming" | "outgoing";
|
|
853
851
|
private: boolean;
|
|
854
852
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
855
853
|
content_attributes: Record<string, unknown>;
|
|
854
|
+
id: number;
|
|
855
|
+
created_at: number;
|
|
856
856
|
conversation_id: number;
|
|
857
857
|
sender?: {
|
|
858
|
+
type: string;
|
|
858
859
|
id: number;
|
|
859
860
|
name: string;
|
|
860
|
-
type: string;
|
|
861
861
|
email?: string | undefined;
|
|
862
862
|
} | undefined;
|
|
863
863
|
}, {
|
|
864
|
-
id: number;
|
|
865
|
-
created_at: number;
|
|
866
864
|
content: string;
|
|
867
865
|
message_type: "incoming" | "outgoing";
|
|
868
866
|
private: boolean;
|
|
869
867
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
870
868
|
content_attributes: Record<string, unknown>;
|
|
869
|
+
id: number;
|
|
870
|
+
created_at: number;
|
|
871
871
|
conversation_id: number;
|
|
872
872
|
sender?: {
|
|
873
|
+
type: string;
|
|
873
874
|
id: number;
|
|
874
875
|
name: string;
|
|
875
|
-
type: string;
|
|
876
876
|
email?: string | undefined;
|
|
877
877
|
} | undefined;
|
|
878
878
|
}>, "many">;
|
|
@@ -890,18 +890,18 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
890
890
|
contact?: unknown;
|
|
891
891
|
};
|
|
892
892
|
payload: {
|
|
893
|
-
id: number;
|
|
894
|
-
created_at: number;
|
|
895
893
|
content: string;
|
|
896
894
|
message_type: "incoming" | "outgoing";
|
|
897
895
|
private: boolean;
|
|
898
896
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
899
897
|
content_attributes: Record<string, unknown>;
|
|
898
|
+
id: number;
|
|
899
|
+
created_at: number;
|
|
900
900
|
conversation_id: number;
|
|
901
901
|
sender?: {
|
|
902
|
+
type: string;
|
|
902
903
|
id: number;
|
|
903
904
|
name: string;
|
|
904
|
-
type: string;
|
|
905
905
|
email?: string | undefined;
|
|
906
906
|
} | undefined;
|
|
907
907
|
}[];
|
|
@@ -919,18 +919,18 @@ export declare const MessagesResponseSchema: z.ZodObject<{
|
|
|
919
919
|
contact?: unknown;
|
|
920
920
|
};
|
|
921
921
|
payload: {
|
|
922
|
-
id: number;
|
|
923
|
-
created_at: number;
|
|
924
922
|
content: string;
|
|
925
923
|
message_type: "incoming" | "outgoing";
|
|
926
924
|
private: boolean;
|
|
927
925
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
928
926
|
content_attributes: Record<string, unknown>;
|
|
927
|
+
id: number;
|
|
928
|
+
created_at: number;
|
|
929
929
|
conversation_id: number;
|
|
930
930
|
sender?: {
|
|
931
|
+
type: string;
|
|
931
932
|
id: number;
|
|
932
933
|
name: string;
|
|
933
|
-
type: string;
|
|
934
934
|
email?: string | undefined;
|
|
935
935
|
} | undefined;
|
|
936
936
|
}[];
|
|
@@ -10,17 +10,17 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
10
10
|
created_at: z.ZodNumber;
|
|
11
11
|
updated_at: z.ZodNumber;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
content: string;
|
|
13
14
|
id: number;
|
|
14
15
|
created_at: number;
|
|
15
16
|
updated_at: number;
|
|
16
|
-
content: string;
|
|
17
17
|
title: string;
|
|
18
18
|
slug: string;
|
|
19
19
|
}, {
|
|
20
|
+
content: string;
|
|
20
21
|
id: number;
|
|
21
22
|
created_at: number;
|
|
22
23
|
updated_at: number;
|
|
23
|
-
content: string;
|
|
24
24
|
title: string;
|
|
25
25
|
slug: string;
|
|
26
26
|
}>;
|
|
@@ -41,17 +41,17 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
41
41
|
created_at: z.ZodNumber;
|
|
42
42
|
updated_at: z.ZodNumber;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
content: string;
|
|
44
45
|
id: number;
|
|
45
46
|
created_at: number;
|
|
46
47
|
updated_at: number;
|
|
47
|
-
content: string;
|
|
48
48
|
title: string;
|
|
49
49
|
slug: string;
|
|
50
50
|
}, {
|
|
51
|
+
content: string;
|
|
51
52
|
id: number;
|
|
52
53
|
created_at: number;
|
|
53
54
|
updated_at: number;
|
|
54
|
-
content: string;
|
|
55
55
|
title: string;
|
|
56
56
|
slug: string;
|
|
57
57
|
}>, "many">>;
|
|
@@ -59,10 +59,10 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
success: boolean;
|
|
61
61
|
payload?: {
|
|
62
|
+
content: string;
|
|
62
63
|
id: number;
|
|
63
64
|
created_at: number;
|
|
64
65
|
updated_at: number;
|
|
65
|
-
content: string;
|
|
66
66
|
title: string;
|
|
67
67
|
slug: string;
|
|
68
68
|
}[] | undefined;
|
|
@@ -70,10 +70,10 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
70
70
|
}, {
|
|
71
71
|
success: boolean;
|
|
72
72
|
payload?: {
|
|
73
|
+
content: string;
|
|
73
74
|
id: number;
|
|
74
75
|
created_at: number;
|
|
75
76
|
updated_at: number;
|
|
76
|
-
content: string;
|
|
77
77
|
title: string;
|
|
78
78
|
slug: string;
|
|
79
79
|
}[] | undefined;
|