@voltade/envoy-sdk 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +536 -64
- package/dist/client.d.ts +5 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/resources/base-resource.d.ts +9 -0
- package/dist/resources/base-resource.d.ts.map +1 -0
- package/dist/resources/base-resource.js +9 -0
- package/dist/resources/base-resource.js.map +1 -0
- package/dist/resources/campaigns/index.d.ts +123 -0
- package/dist/resources/campaigns/index.d.ts.map +1 -0
- package/dist/resources/campaigns/index.js +159 -0
- package/dist/resources/campaigns/index.js.map +1 -0
- package/dist/resources/campaigns/types.d.ts +757 -0
- package/dist/resources/campaigns/types.d.ts.map +1 -0
- package/dist/resources/campaigns/types.js +132 -0
- package/dist/resources/campaigns/types.js.map +1 -0
- package/dist/resources/companies/index.d.ts +1 -7
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +1 -8
- 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 +1 -8
- package/dist/resources/company-members/index.d.ts.map +1 -1
- package/dist/resources/company-members/index.js +1 -8
- package/dist/resources/company-members/index.js.map +1 -1
- package/dist/resources/contacts/index.d.ts +1 -8
- package/dist/resources/contacts/index.d.ts.map +1 -1
- package/dist/resources/contacts/index.js +1 -8
- package/dist/resources/contacts/index.js.map +1 -1
- package/dist/resources/conversations/index.d.ts +1 -8
- package/dist/resources/conversations/index.d.ts.map +1 -1
- package/dist/resources/conversations/index.js +1 -8
- package/dist/resources/conversations/index.js.map +1 -1
- package/dist/resources/conversations/types.d.ts +67 -67
- package/dist/resources/inboxes/index.d.ts +1 -8
- package/dist/resources/inboxes/index.d.ts.map +1 -1
- package/dist/resources/inboxes/index.js +1 -8
- package/dist/resources/inboxes/index.js.map +1 -1
- package/dist/resources/inboxes/types.d.ts +12 -12
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/orders/index.d.ts +1 -8
- package/dist/resources/orders/index.d.ts.map +1 -1
- package/dist/resources/orders/index.js +1 -8
- package/dist/resources/orders/index.js.map +1 -1
- package/dist/resources/orders/types.d.ts +116 -116
- package/dist/resources/webhooks/types.d.ts +753 -753
- package/package.json +1 -1
|
@@ -237,8 +237,8 @@ export declare const MessageSenderSchema: z.ZodObject<{
|
|
|
237
237
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
239
|
id: number;
|
|
240
|
-
name?: string | null | undefined;
|
|
241
240
|
type?: string | undefined;
|
|
241
|
+
name?: string | null | undefined;
|
|
242
242
|
email?: string | null | undefined;
|
|
243
243
|
thumbnail?: string | undefined;
|
|
244
244
|
phone_number?: string | null | undefined;
|
|
@@ -250,8 +250,8 @@ export declare const MessageSenderSchema: z.ZodObject<{
|
|
|
250
250
|
customer_stage_explanation?: string | null | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: number;
|
|
253
|
-
name?: string | null | undefined;
|
|
254
253
|
type?: string | undefined;
|
|
254
|
+
name?: string | null | undefined;
|
|
255
255
|
email?: string | null | undefined;
|
|
256
256
|
thumbnail?: string | undefined;
|
|
257
257
|
phone_number?: string | null | undefined;
|
|
@@ -334,8 +334,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
334
334
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
335
|
}, "strip", z.ZodTypeAny, {
|
|
336
336
|
id: number;
|
|
337
|
-
name?: string | null | undefined;
|
|
338
337
|
type?: string | undefined;
|
|
338
|
+
name?: string | null | undefined;
|
|
339
339
|
email?: string | null | undefined;
|
|
340
340
|
thumbnail?: string | undefined;
|
|
341
341
|
phone_number?: string | null | undefined;
|
|
@@ -347,8 +347,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
347
347
|
customer_stage_explanation?: string | null | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
id: number;
|
|
350
|
-
name?: string | null | undefined;
|
|
351
350
|
type?: string | undefined;
|
|
351
|
+
name?: string | null | undefined;
|
|
352
352
|
email?: string | null | undefined;
|
|
353
353
|
thumbnail?: string | undefined;
|
|
354
354
|
phone_number?: string | null | undefined;
|
|
@@ -360,23 +360,15 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
360
360
|
customer_stage_explanation?: string | null | undefined;
|
|
361
361
|
}>;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
status: string;
|
|
364
|
-
content: string | null;
|
|
365
|
-
message_type: number;
|
|
366
|
-
private: boolean;
|
|
367
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
368
|
-
content_attributes: {
|
|
369
|
-
in_reply_to?: unknown;
|
|
370
|
-
} & {
|
|
371
|
-
[k: string]: unknown;
|
|
372
|
-
};
|
|
373
363
|
id: number;
|
|
374
|
-
|
|
375
|
-
|
|
364
|
+
status: string;
|
|
365
|
+
inbox_id: number;
|
|
366
|
+
sender_id: number;
|
|
367
|
+
account_id: number;
|
|
376
368
|
sender: {
|
|
377
369
|
id: number;
|
|
378
|
-
name?: string | null | undefined;
|
|
379
370
|
type?: string | undefined;
|
|
371
|
+
name?: string | null | undefined;
|
|
380
372
|
email?: string | null | undefined;
|
|
381
373
|
thumbnail?: string | undefined;
|
|
382
374
|
phone_number?: string | null | undefined;
|
|
@@ -387,13 +379,21 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
387
379
|
customer_stage?: string | null | undefined;
|
|
388
380
|
customer_stage_explanation?: string | null | undefined;
|
|
389
381
|
};
|
|
382
|
+
created_at: number;
|
|
383
|
+
updated_at: string;
|
|
384
|
+
content: string | null;
|
|
385
|
+
message_type: number;
|
|
386
|
+
private: boolean;
|
|
387
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
388
|
+
content_attributes: {
|
|
389
|
+
in_reply_to?: unknown;
|
|
390
|
+
} & {
|
|
391
|
+
[k: string]: unknown;
|
|
392
|
+
};
|
|
393
|
+
conversation_id: number;
|
|
390
394
|
additional_attributes: Record<string, unknown>;
|
|
391
|
-
inbox_id: number;
|
|
392
395
|
source_id: string | null;
|
|
393
|
-
updated_at: string;
|
|
394
|
-
account_id: number;
|
|
395
396
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
396
|
-
sender_id: number;
|
|
397
397
|
external_source_ids: Record<string, unknown>;
|
|
398
398
|
processed_message_content: string | null;
|
|
399
399
|
sentiment: Record<string, unknown>;
|
|
@@ -410,23 +410,15 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
410
410
|
assignee_id: number | null;
|
|
411
411
|
};
|
|
412
412
|
}, {
|
|
413
|
-
status: string;
|
|
414
|
-
content: string | null;
|
|
415
|
-
message_type: number;
|
|
416
|
-
private: boolean;
|
|
417
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
418
|
-
content_attributes: {
|
|
419
|
-
in_reply_to?: unknown;
|
|
420
|
-
} & {
|
|
421
|
-
[k: string]: unknown;
|
|
422
|
-
};
|
|
423
413
|
id: number;
|
|
424
|
-
|
|
425
|
-
|
|
414
|
+
status: string;
|
|
415
|
+
inbox_id: number;
|
|
416
|
+
sender_id: number;
|
|
417
|
+
account_id: number;
|
|
426
418
|
sender: {
|
|
427
419
|
id: number;
|
|
428
|
-
name?: string | null | undefined;
|
|
429
420
|
type?: string | undefined;
|
|
421
|
+
name?: string | null | undefined;
|
|
430
422
|
email?: string | null | undefined;
|
|
431
423
|
thumbnail?: string | undefined;
|
|
432
424
|
phone_number?: string | null | undefined;
|
|
@@ -437,13 +429,21 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
437
429
|
customer_stage?: string | null | undefined;
|
|
438
430
|
customer_stage_explanation?: string | null | undefined;
|
|
439
431
|
};
|
|
432
|
+
created_at: number;
|
|
433
|
+
updated_at: string;
|
|
434
|
+
content: string | null;
|
|
435
|
+
message_type: number;
|
|
436
|
+
private: boolean;
|
|
437
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
438
|
+
content_attributes: {
|
|
439
|
+
in_reply_to?: unknown;
|
|
440
|
+
} & {
|
|
441
|
+
[k: string]: unknown;
|
|
442
|
+
};
|
|
443
|
+
conversation_id: number;
|
|
440
444
|
additional_attributes: Record<string, unknown>;
|
|
441
|
-
inbox_id: number;
|
|
442
445
|
source_id: string | null;
|
|
443
|
-
updated_at: string;
|
|
444
|
-
account_id: number;
|
|
445
446
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
446
|
-
sender_id: number;
|
|
447
447
|
external_source_ids: Record<string, unknown>;
|
|
448
448
|
processed_message_content: string | null;
|
|
449
449
|
sentiment: Record<string, unknown>;
|
|
@@ -663,20 +663,20 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
663
663
|
pubsub_token: z.ZodString;
|
|
664
664
|
}, "strip", z.ZodTypeAny, {
|
|
665
665
|
id: number;
|
|
666
|
+
inbox_id: number;
|
|
666
667
|
created_at: string;
|
|
668
|
+
updated_at: string;
|
|
667
669
|
contact_id: number;
|
|
668
|
-
inbox_id: number;
|
|
669
670
|
source_id: string | null;
|
|
670
|
-
updated_at: string;
|
|
671
671
|
hmac_verified: boolean;
|
|
672
672
|
pubsub_token: string;
|
|
673
673
|
}, {
|
|
674
674
|
id: number;
|
|
675
|
+
inbox_id: number;
|
|
675
676
|
created_at: string;
|
|
677
|
+
updated_at: string;
|
|
676
678
|
contact_id: number;
|
|
677
|
-
inbox_id: number;
|
|
678
679
|
source_id: string | null;
|
|
679
|
-
updated_at: string;
|
|
680
680
|
hmac_verified: boolean;
|
|
681
681
|
pubsub_token: string;
|
|
682
682
|
}>;
|
|
@@ -754,8 +754,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
754
754
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
755
|
}, "strip", z.ZodTypeAny, {
|
|
756
756
|
id: number;
|
|
757
|
-
name?: string | null | undefined;
|
|
758
757
|
type?: string | undefined;
|
|
758
|
+
name?: string | null | undefined;
|
|
759
759
|
email?: string | null | undefined;
|
|
760
760
|
thumbnail?: string | undefined;
|
|
761
761
|
phone_number?: string | null | undefined;
|
|
@@ -767,8 +767,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
767
767
|
customer_stage_explanation?: string | null | undefined;
|
|
768
768
|
}, {
|
|
769
769
|
id: number;
|
|
770
|
-
name?: string | null | undefined;
|
|
771
770
|
type?: string | undefined;
|
|
771
|
+
name?: string | null | undefined;
|
|
772
772
|
email?: string | null | undefined;
|
|
773
773
|
thumbnail?: string | undefined;
|
|
774
774
|
phone_number?: string | null | undefined;
|
|
@@ -780,23 +780,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
780
780
|
customer_stage_explanation?: string | null | undefined;
|
|
781
781
|
}>;
|
|
782
782
|
}, "strip", z.ZodTypeAny, {
|
|
783
|
-
status: string;
|
|
784
|
-
content: string | null;
|
|
785
|
-
message_type: number;
|
|
786
|
-
private: boolean;
|
|
787
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
788
|
-
content_attributes: {
|
|
789
|
-
in_reply_to?: unknown;
|
|
790
|
-
} & {
|
|
791
|
-
[k: string]: unknown;
|
|
792
|
-
};
|
|
793
783
|
id: number;
|
|
794
|
-
|
|
795
|
-
|
|
784
|
+
status: string;
|
|
785
|
+
inbox_id: number;
|
|
786
|
+
sender_id: number;
|
|
787
|
+
account_id: number;
|
|
796
788
|
sender: {
|
|
797
789
|
id: number;
|
|
798
|
-
name?: string | null | undefined;
|
|
799
790
|
type?: string | undefined;
|
|
791
|
+
name?: string | null | undefined;
|
|
800
792
|
email?: string | null | undefined;
|
|
801
793
|
thumbnail?: string | undefined;
|
|
802
794
|
phone_number?: string | null | undefined;
|
|
@@ -807,13 +799,21 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
807
799
|
customer_stage?: string | null | undefined;
|
|
808
800
|
customer_stage_explanation?: string | null | undefined;
|
|
809
801
|
};
|
|
802
|
+
created_at: number;
|
|
803
|
+
updated_at: string;
|
|
804
|
+
content: string | null;
|
|
805
|
+
message_type: number;
|
|
806
|
+
private: boolean;
|
|
807
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
808
|
+
content_attributes: {
|
|
809
|
+
in_reply_to?: unknown;
|
|
810
|
+
} & {
|
|
811
|
+
[k: string]: unknown;
|
|
812
|
+
};
|
|
813
|
+
conversation_id: number;
|
|
810
814
|
additional_attributes: Record<string, unknown>;
|
|
811
|
-
inbox_id: number;
|
|
812
815
|
source_id: string | null;
|
|
813
|
-
updated_at: string;
|
|
814
|
-
account_id: number;
|
|
815
816
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
816
|
-
sender_id: number;
|
|
817
817
|
external_source_ids: Record<string, unknown>;
|
|
818
818
|
processed_message_content: string | null;
|
|
819
819
|
sentiment: Record<string, unknown>;
|
|
@@ -830,23 +830,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
830
830
|
assignee_id: number | null;
|
|
831
831
|
};
|
|
832
832
|
}, {
|
|
833
|
-
status: string;
|
|
834
|
-
content: string | null;
|
|
835
|
-
message_type: number;
|
|
836
|
-
private: boolean;
|
|
837
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
838
|
-
content_attributes: {
|
|
839
|
-
in_reply_to?: unknown;
|
|
840
|
-
} & {
|
|
841
|
-
[k: string]: unknown;
|
|
842
|
-
};
|
|
843
833
|
id: number;
|
|
844
|
-
|
|
845
|
-
|
|
834
|
+
status: string;
|
|
835
|
+
inbox_id: number;
|
|
836
|
+
sender_id: number;
|
|
837
|
+
account_id: number;
|
|
846
838
|
sender: {
|
|
847
839
|
id: number;
|
|
848
|
-
name?: string | null | undefined;
|
|
849
840
|
type?: string | undefined;
|
|
841
|
+
name?: string | null | undefined;
|
|
850
842
|
email?: string | null | undefined;
|
|
851
843
|
thumbnail?: string | undefined;
|
|
852
844
|
phone_number?: string | null | undefined;
|
|
@@ -857,13 +849,21 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
857
849
|
customer_stage?: string | null | undefined;
|
|
858
850
|
customer_stage_explanation?: string | null | undefined;
|
|
859
851
|
};
|
|
852
|
+
created_at: number;
|
|
853
|
+
updated_at: string;
|
|
854
|
+
content: string | null;
|
|
855
|
+
message_type: number;
|
|
856
|
+
private: boolean;
|
|
857
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
858
|
+
content_attributes: {
|
|
859
|
+
in_reply_to?: unknown;
|
|
860
|
+
} & {
|
|
861
|
+
[k: string]: unknown;
|
|
862
|
+
};
|
|
863
|
+
conversation_id: number;
|
|
860
864
|
additional_attributes: Record<string, unknown>;
|
|
861
|
-
inbox_id: number;
|
|
862
865
|
source_id: string | null;
|
|
863
|
-
updated_at: string;
|
|
864
|
-
account_id: number;
|
|
865
866
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
866
|
-
sender_id: number;
|
|
867
867
|
external_source_ids: Record<string, unknown>;
|
|
868
868
|
processed_message_content: string | null;
|
|
869
869
|
sentiment: Record<string, unknown>;
|
|
@@ -1000,9 +1000,11 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1000
1000
|
created_at: z.ZodNumber;
|
|
1001
1001
|
updated_at: z.ZodNumber;
|
|
1002
1002
|
}, "strip", z.ZodTypeAny, {
|
|
1003
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1004
1003
|
id: number;
|
|
1004
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1005
|
+
inbox_id: number;
|
|
1005
1006
|
created_at: number;
|
|
1007
|
+
updated_at: number;
|
|
1006
1008
|
priority: string | null;
|
|
1007
1009
|
additional_attributes: {
|
|
1008
1010
|
browser?: {
|
|
@@ -1021,38 +1023,28 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1021
1023
|
[k: string]: unknown;
|
|
1022
1024
|
};
|
|
1023
1025
|
custom_attributes: Record<string, unknown>;
|
|
1024
|
-
inbox_id: number;
|
|
1025
|
-
updated_at: number;
|
|
1026
1026
|
channel: string;
|
|
1027
1027
|
can_reply: boolean;
|
|
1028
1028
|
contact_inbox: {
|
|
1029
1029
|
id: number;
|
|
1030
|
+
inbox_id: number;
|
|
1030
1031
|
created_at: string;
|
|
1032
|
+
updated_at: string;
|
|
1031
1033
|
contact_id: number;
|
|
1032
|
-
inbox_id: number;
|
|
1033
1034
|
source_id: string | null;
|
|
1034
|
-
updated_at: string;
|
|
1035
1035
|
hmac_verified: boolean;
|
|
1036
1036
|
pubsub_token: string;
|
|
1037
1037
|
};
|
|
1038
1038
|
messages: {
|
|
1039
|
-
status: string;
|
|
1040
|
-
content: string | null;
|
|
1041
|
-
message_type: number;
|
|
1042
|
-
private: boolean;
|
|
1043
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1044
|
-
content_attributes: {
|
|
1045
|
-
in_reply_to?: unknown;
|
|
1046
|
-
} & {
|
|
1047
|
-
[k: string]: unknown;
|
|
1048
|
-
};
|
|
1049
1039
|
id: number;
|
|
1050
|
-
|
|
1051
|
-
|
|
1040
|
+
status: string;
|
|
1041
|
+
inbox_id: number;
|
|
1042
|
+
sender_id: number;
|
|
1043
|
+
account_id: number;
|
|
1052
1044
|
sender: {
|
|
1053
1045
|
id: number;
|
|
1054
|
-
name?: string | null | undefined;
|
|
1055
1046
|
type?: string | undefined;
|
|
1047
|
+
name?: string | null | undefined;
|
|
1056
1048
|
email?: string | null | undefined;
|
|
1057
1049
|
thumbnail?: string | undefined;
|
|
1058
1050
|
phone_number?: string | null | undefined;
|
|
@@ -1063,13 +1055,21 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1063
1055
|
customer_stage?: string | null | undefined;
|
|
1064
1056
|
customer_stage_explanation?: string | null | undefined;
|
|
1065
1057
|
};
|
|
1058
|
+
created_at: number;
|
|
1059
|
+
updated_at: string;
|
|
1060
|
+
content: string | null;
|
|
1061
|
+
message_type: number;
|
|
1062
|
+
private: boolean;
|
|
1063
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1064
|
+
content_attributes: {
|
|
1065
|
+
in_reply_to?: unknown;
|
|
1066
|
+
} & {
|
|
1067
|
+
[k: string]: unknown;
|
|
1068
|
+
};
|
|
1069
|
+
conversation_id: number;
|
|
1066
1070
|
additional_attributes: Record<string, unknown>;
|
|
1067
|
-
inbox_id: number;
|
|
1068
1071
|
source_id: string | null;
|
|
1069
|
-
updated_at: string;
|
|
1070
|
-
account_id: number;
|
|
1071
1072
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1072
|
-
sender_id: number;
|
|
1073
1073
|
external_source_ids: Record<string, unknown>;
|
|
1074
1074
|
processed_message_content: string | null;
|
|
1075
1075
|
sentiment: Record<string, unknown>;
|
|
@@ -1123,9 +1123,11 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1123
1123
|
last_activity_at: number;
|
|
1124
1124
|
timestamp: number;
|
|
1125
1125
|
}, {
|
|
1126
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1127
1126
|
id: number;
|
|
1127
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1128
|
+
inbox_id: number;
|
|
1128
1129
|
created_at: number;
|
|
1130
|
+
updated_at: number;
|
|
1129
1131
|
priority: string | null;
|
|
1130
1132
|
additional_attributes: {
|
|
1131
1133
|
browser?: {
|
|
@@ -1144,38 +1146,28 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1144
1146
|
[k: string]: unknown;
|
|
1145
1147
|
};
|
|
1146
1148
|
custom_attributes: Record<string, unknown>;
|
|
1147
|
-
inbox_id: number;
|
|
1148
|
-
updated_at: number;
|
|
1149
1149
|
channel: string;
|
|
1150
1150
|
can_reply: boolean;
|
|
1151
1151
|
contact_inbox: {
|
|
1152
1152
|
id: number;
|
|
1153
|
+
inbox_id: number;
|
|
1153
1154
|
created_at: string;
|
|
1155
|
+
updated_at: string;
|
|
1154
1156
|
contact_id: number;
|
|
1155
|
-
inbox_id: number;
|
|
1156
1157
|
source_id: string | null;
|
|
1157
|
-
updated_at: string;
|
|
1158
1158
|
hmac_verified: boolean;
|
|
1159
1159
|
pubsub_token: string;
|
|
1160
1160
|
};
|
|
1161
1161
|
messages: {
|
|
1162
|
-
status: string;
|
|
1163
|
-
content: string | null;
|
|
1164
|
-
message_type: number;
|
|
1165
|
-
private: boolean;
|
|
1166
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1167
|
-
content_attributes: {
|
|
1168
|
-
in_reply_to?: unknown;
|
|
1169
|
-
} & {
|
|
1170
|
-
[k: string]: unknown;
|
|
1171
|
-
};
|
|
1172
1162
|
id: number;
|
|
1173
|
-
|
|
1174
|
-
|
|
1163
|
+
status: string;
|
|
1164
|
+
inbox_id: number;
|
|
1165
|
+
sender_id: number;
|
|
1166
|
+
account_id: number;
|
|
1175
1167
|
sender: {
|
|
1176
1168
|
id: number;
|
|
1177
|
-
name?: string | null | undefined;
|
|
1178
1169
|
type?: string | undefined;
|
|
1170
|
+
name?: string | null | undefined;
|
|
1179
1171
|
email?: string | null | undefined;
|
|
1180
1172
|
thumbnail?: string | undefined;
|
|
1181
1173
|
phone_number?: string | null | undefined;
|
|
@@ -1186,13 +1178,21 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1186
1178
|
customer_stage?: string | null | undefined;
|
|
1187
1179
|
customer_stage_explanation?: string | null | undefined;
|
|
1188
1180
|
};
|
|
1181
|
+
created_at: number;
|
|
1182
|
+
updated_at: string;
|
|
1183
|
+
content: string | null;
|
|
1184
|
+
message_type: number;
|
|
1185
|
+
private: boolean;
|
|
1186
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1187
|
+
content_attributes: {
|
|
1188
|
+
in_reply_to?: unknown;
|
|
1189
|
+
} & {
|
|
1190
|
+
[k: string]: unknown;
|
|
1191
|
+
};
|
|
1192
|
+
conversation_id: number;
|
|
1189
1193
|
additional_attributes: Record<string, unknown>;
|
|
1190
|
-
inbox_id: number;
|
|
1191
1194
|
source_id: string | null;
|
|
1192
|
-
updated_at: string;
|
|
1193
|
-
account_id: number;
|
|
1194
1195
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1195
|
-
sender_id: number;
|
|
1196
1196
|
external_source_ids: Record<string, unknown>;
|
|
1197
1197
|
processed_message_content: string | null;
|
|
1198
1198
|
sentiment: Record<string, unknown>;
|
|
@@ -1369,20 +1369,20 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1369
1369
|
pubsub_token: z.ZodString;
|
|
1370
1370
|
}, "strip", z.ZodTypeAny, {
|
|
1371
1371
|
id: number;
|
|
1372
|
+
inbox_id: number;
|
|
1372
1373
|
created_at: string;
|
|
1374
|
+
updated_at: string;
|
|
1373
1375
|
contact_id: number;
|
|
1374
|
-
inbox_id: number;
|
|
1375
1376
|
source_id: string | null;
|
|
1376
|
-
updated_at: string;
|
|
1377
1377
|
hmac_verified: boolean;
|
|
1378
1378
|
pubsub_token: string;
|
|
1379
1379
|
}, {
|
|
1380
1380
|
id: number;
|
|
1381
|
+
inbox_id: number;
|
|
1381
1382
|
created_at: string;
|
|
1383
|
+
updated_at: string;
|
|
1382
1384
|
contact_id: number;
|
|
1383
|
-
inbox_id: number;
|
|
1384
1385
|
source_id: string | null;
|
|
1385
|
-
updated_at: string;
|
|
1386
1386
|
hmac_verified: boolean;
|
|
1387
1387
|
pubsub_token: string;
|
|
1388
1388
|
}>;
|
|
@@ -1460,8 +1460,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1460
1460
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1461
1461
|
}, "strip", z.ZodTypeAny, {
|
|
1462
1462
|
id: number;
|
|
1463
|
-
name?: string | null | undefined;
|
|
1464
1463
|
type?: string | undefined;
|
|
1464
|
+
name?: string | null | undefined;
|
|
1465
1465
|
email?: string | null | undefined;
|
|
1466
1466
|
thumbnail?: string | undefined;
|
|
1467
1467
|
phone_number?: string | null | undefined;
|
|
@@ -1473,8 +1473,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1473
1473
|
customer_stage_explanation?: string | null | undefined;
|
|
1474
1474
|
}, {
|
|
1475
1475
|
id: number;
|
|
1476
|
-
name?: string | null | undefined;
|
|
1477
1476
|
type?: string | undefined;
|
|
1477
|
+
name?: string | null | undefined;
|
|
1478
1478
|
email?: string | null | undefined;
|
|
1479
1479
|
thumbnail?: string | undefined;
|
|
1480
1480
|
phone_number?: string | null | undefined;
|
|
@@ -1486,23 +1486,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1486
1486
|
customer_stage_explanation?: string | null | undefined;
|
|
1487
1487
|
}>;
|
|
1488
1488
|
}, "strip", z.ZodTypeAny, {
|
|
1489
|
-
status: string;
|
|
1490
|
-
content: string | null;
|
|
1491
|
-
message_type: number;
|
|
1492
|
-
private: boolean;
|
|
1493
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1494
|
-
content_attributes: {
|
|
1495
|
-
in_reply_to?: unknown;
|
|
1496
|
-
} & {
|
|
1497
|
-
[k: string]: unknown;
|
|
1498
|
-
};
|
|
1499
1489
|
id: number;
|
|
1500
|
-
|
|
1501
|
-
|
|
1490
|
+
status: string;
|
|
1491
|
+
inbox_id: number;
|
|
1492
|
+
sender_id: number;
|
|
1493
|
+
account_id: number;
|
|
1502
1494
|
sender: {
|
|
1503
1495
|
id: number;
|
|
1504
|
-
name?: string | null | undefined;
|
|
1505
1496
|
type?: string | undefined;
|
|
1497
|
+
name?: string | null | undefined;
|
|
1506
1498
|
email?: string | null | undefined;
|
|
1507
1499
|
thumbnail?: string | undefined;
|
|
1508
1500
|
phone_number?: string | null | undefined;
|
|
@@ -1513,13 +1505,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1513
1505
|
customer_stage?: string | null | undefined;
|
|
1514
1506
|
customer_stage_explanation?: string | null | undefined;
|
|
1515
1507
|
};
|
|
1508
|
+
created_at: number;
|
|
1509
|
+
updated_at: string;
|
|
1510
|
+
content: string | null;
|
|
1511
|
+
message_type: number;
|
|
1512
|
+
private: boolean;
|
|
1513
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1514
|
+
content_attributes: {
|
|
1515
|
+
in_reply_to?: unknown;
|
|
1516
|
+
} & {
|
|
1517
|
+
[k: string]: unknown;
|
|
1518
|
+
};
|
|
1519
|
+
conversation_id: number;
|
|
1516
1520
|
additional_attributes: Record<string, unknown>;
|
|
1517
|
-
inbox_id: number;
|
|
1518
1521
|
source_id: string | null;
|
|
1519
|
-
updated_at: string;
|
|
1520
|
-
account_id: number;
|
|
1521
1522
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1522
|
-
sender_id: number;
|
|
1523
1523
|
external_source_ids: Record<string, unknown>;
|
|
1524
1524
|
processed_message_content: string | null;
|
|
1525
1525
|
sentiment: Record<string, unknown>;
|
|
@@ -1536,23 +1536,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1536
1536
|
assignee_id: number | null;
|
|
1537
1537
|
};
|
|
1538
1538
|
}, {
|
|
1539
|
-
status: string;
|
|
1540
|
-
content: string | null;
|
|
1541
|
-
message_type: number;
|
|
1542
|
-
private: boolean;
|
|
1543
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1544
|
-
content_attributes: {
|
|
1545
|
-
in_reply_to?: unknown;
|
|
1546
|
-
} & {
|
|
1547
|
-
[k: string]: unknown;
|
|
1548
|
-
};
|
|
1549
1539
|
id: number;
|
|
1550
|
-
|
|
1551
|
-
|
|
1540
|
+
status: string;
|
|
1541
|
+
inbox_id: number;
|
|
1542
|
+
sender_id: number;
|
|
1543
|
+
account_id: number;
|
|
1552
1544
|
sender: {
|
|
1553
1545
|
id: number;
|
|
1554
|
-
name?: string | null | undefined;
|
|
1555
1546
|
type?: string | undefined;
|
|
1547
|
+
name?: string | null | undefined;
|
|
1556
1548
|
email?: string | null | undefined;
|
|
1557
1549
|
thumbnail?: string | undefined;
|
|
1558
1550
|
phone_number?: string | null | undefined;
|
|
@@ -1563,13 +1555,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1563
1555
|
customer_stage?: string | null | undefined;
|
|
1564
1556
|
customer_stage_explanation?: string | null | undefined;
|
|
1565
1557
|
};
|
|
1558
|
+
created_at: number;
|
|
1559
|
+
updated_at: string;
|
|
1560
|
+
content: string | null;
|
|
1561
|
+
message_type: number;
|
|
1562
|
+
private: boolean;
|
|
1563
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1564
|
+
content_attributes: {
|
|
1565
|
+
in_reply_to?: unknown;
|
|
1566
|
+
} & {
|
|
1567
|
+
[k: string]: unknown;
|
|
1568
|
+
};
|
|
1569
|
+
conversation_id: number;
|
|
1566
1570
|
additional_attributes: Record<string, unknown>;
|
|
1567
|
-
inbox_id: number;
|
|
1568
1571
|
source_id: string | null;
|
|
1569
|
-
updated_at: string;
|
|
1570
|
-
account_id: number;
|
|
1571
1572
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1572
|
-
sender_id: number;
|
|
1573
1573
|
external_source_ids: Record<string, unknown>;
|
|
1574
1574
|
processed_message_content: string | null;
|
|
1575
1575
|
sentiment: Record<string, unknown>;
|
|
@@ -1706,9 +1706,11 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1706
1706
|
created_at: z.ZodNumber;
|
|
1707
1707
|
updated_at: z.ZodNumber;
|
|
1708
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1709
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1710
1709
|
id: number;
|
|
1710
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1711
|
+
inbox_id: number;
|
|
1711
1712
|
created_at: number;
|
|
1713
|
+
updated_at: number;
|
|
1712
1714
|
priority: string | null;
|
|
1713
1715
|
additional_attributes: {
|
|
1714
1716
|
browser?: {
|
|
@@ -1727,38 +1729,28 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1727
1729
|
[k: string]: unknown;
|
|
1728
1730
|
};
|
|
1729
1731
|
custom_attributes: Record<string, unknown>;
|
|
1730
|
-
inbox_id: number;
|
|
1731
|
-
updated_at: number;
|
|
1732
1732
|
channel: string;
|
|
1733
1733
|
can_reply: boolean;
|
|
1734
1734
|
contact_inbox: {
|
|
1735
1735
|
id: number;
|
|
1736
|
+
inbox_id: number;
|
|
1736
1737
|
created_at: string;
|
|
1738
|
+
updated_at: string;
|
|
1737
1739
|
contact_id: number;
|
|
1738
|
-
inbox_id: number;
|
|
1739
1740
|
source_id: string | null;
|
|
1740
|
-
updated_at: string;
|
|
1741
1741
|
hmac_verified: boolean;
|
|
1742
1742
|
pubsub_token: string;
|
|
1743
1743
|
};
|
|
1744
1744
|
messages: {
|
|
1745
|
-
status: string;
|
|
1746
|
-
content: string | null;
|
|
1747
|
-
message_type: number;
|
|
1748
|
-
private: boolean;
|
|
1749
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1750
|
-
content_attributes: {
|
|
1751
|
-
in_reply_to?: unknown;
|
|
1752
|
-
} & {
|
|
1753
|
-
[k: string]: unknown;
|
|
1754
|
-
};
|
|
1755
1745
|
id: number;
|
|
1756
|
-
|
|
1757
|
-
|
|
1746
|
+
status: string;
|
|
1747
|
+
inbox_id: number;
|
|
1748
|
+
sender_id: number;
|
|
1749
|
+
account_id: number;
|
|
1758
1750
|
sender: {
|
|
1759
1751
|
id: number;
|
|
1760
|
-
name?: string | null | undefined;
|
|
1761
1752
|
type?: string | undefined;
|
|
1753
|
+
name?: string | null | undefined;
|
|
1762
1754
|
email?: string | null | undefined;
|
|
1763
1755
|
thumbnail?: string | undefined;
|
|
1764
1756
|
phone_number?: string | null | undefined;
|
|
@@ -1769,13 +1761,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1769
1761
|
customer_stage?: string | null | undefined;
|
|
1770
1762
|
customer_stage_explanation?: string | null | undefined;
|
|
1771
1763
|
};
|
|
1764
|
+
created_at: number;
|
|
1765
|
+
updated_at: string;
|
|
1766
|
+
content: string | null;
|
|
1767
|
+
message_type: number;
|
|
1768
|
+
private: boolean;
|
|
1769
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1770
|
+
content_attributes: {
|
|
1771
|
+
in_reply_to?: unknown;
|
|
1772
|
+
} & {
|
|
1773
|
+
[k: string]: unknown;
|
|
1774
|
+
};
|
|
1775
|
+
conversation_id: number;
|
|
1772
1776
|
additional_attributes: Record<string, unknown>;
|
|
1773
|
-
inbox_id: number;
|
|
1774
1777
|
source_id: string | null;
|
|
1775
|
-
updated_at: string;
|
|
1776
|
-
account_id: number;
|
|
1777
1778
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1778
|
-
sender_id: number;
|
|
1779
1779
|
external_source_ids: Record<string, unknown>;
|
|
1780
1780
|
processed_message_content: string | null;
|
|
1781
1781
|
sentiment: Record<string, unknown>;
|
|
@@ -1829,9 +1829,11 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1829
1829
|
last_activity_at: number;
|
|
1830
1830
|
timestamp: number;
|
|
1831
1831
|
}, {
|
|
1832
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1833
1832
|
id: number;
|
|
1833
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1834
|
+
inbox_id: number;
|
|
1834
1835
|
created_at: number;
|
|
1836
|
+
updated_at: number;
|
|
1835
1837
|
priority: string | null;
|
|
1836
1838
|
additional_attributes: {
|
|
1837
1839
|
browser?: {
|
|
@@ -1850,38 +1852,28 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1850
1852
|
[k: string]: unknown;
|
|
1851
1853
|
};
|
|
1852
1854
|
custom_attributes: Record<string, unknown>;
|
|
1853
|
-
inbox_id: number;
|
|
1854
|
-
updated_at: number;
|
|
1855
1855
|
channel: string;
|
|
1856
1856
|
can_reply: boolean;
|
|
1857
1857
|
contact_inbox: {
|
|
1858
1858
|
id: number;
|
|
1859
|
+
inbox_id: number;
|
|
1859
1860
|
created_at: string;
|
|
1861
|
+
updated_at: string;
|
|
1860
1862
|
contact_id: number;
|
|
1861
|
-
inbox_id: number;
|
|
1862
1863
|
source_id: string | null;
|
|
1863
|
-
updated_at: string;
|
|
1864
1864
|
hmac_verified: boolean;
|
|
1865
1865
|
pubsub_token: string;
|
|
1866
1866
|
};
|
|
1867
1867
|
messages: {
|
|
1868
|
-
status: string;
|
|
1869
|
-
content: string | null;
|
|
1870
|
-
message_type: number;
|
|
1871
|
-
private: boolean;
|
|
1872
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1873
|
-
content_attributes: {
|
|
1874
|
-
in_reply_to?: unknown;
|
|
1875
|
-
} & {
|
|
1876
|
-
[k: string]: unknown;
|
|
1877
|
-
};
|
|
1878
1868
|
id: number;
|
|
1879
|
-
|
|
1880
|
-
|
|
1869
|
+
status: string;
|
|
1870
|
+
inbox_id: number;
|
|
1871
|
+
sender_id: number;
|
|
1872
|
+
account_id: number;
|
|
1881
1873
|
sender: {
|
|
1882
1874
|
id: number;
|
|
1883
|
-
name?: string | null | undefined;
|
|
1884
1875
|
type?: string | undefined;
|
|
1876
|
+
name?: string | null | undefined;
|
|
1885
1877
|
email?: string | null | undefined;
|
|
1886
1878
|
thumbnail?: string | undefined;
|
|
1887
1879
|
phone_number?: string | null | undefined;
|
|
@@ -1892,13 +1884,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1892
1884
|
customer_stage?: string | null | undefined;
|
|
1893
1885
|
customer_stage_explanation?: string | null | undefined;
|
|
1894
1886
|
};
|
|
1887
|
+
created_at: number;
|
|
1888
|
+
updated_at: string;
|
|
1889
|
+
content: string | null;
|
|
1890
|
+
message_type: number;
|
|
1891
|
+
private: boolean;
|
|
1892
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1893
|
+
content_attributes: {
|
|
1894
|
+
in_reply_to?: unknown;
|
|
1895
|
+
} & {
|
|
1896
|
+
[k: string]: unknown;
|
|
1897
|
+
};
|
|
1898
|
+
conversation_id: number;
|
|
1895
1899
|
additional_attributes: Record<string, unknown>;
|
|
1896
|
-
inbox_id: number;
|
|
1897
1900
|
source_id: string | null;
|
|
1898
|
-
updated_at: string;
|
|
1899
|
-
account_id: number;
|
|
1900
1901
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1901
|
-
sender_id: number;
|
|
1902
1902
|
external_source_ids: Record<string, unknown>;
|
|
1903
1903
|
processed_message_content: string | null;
|
|
1904
1904
|
sentiment: Record<string, unknown>;
|
|
@@ -2030,18 +2030,13 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2030
2030
|
} & {
|
|
2031
2031
|
event: z.ZodLiteral<"message_created">;
|
|
2032
2032
|
}, "strip", z.ZodTypeAny, {
|
|
2033
|
+
id: number;
|
|
2033
2034
|
status: string;
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
content_attributes: {
|
|
2039
|
-
in_reply_to?: unknown;
|
|
2040
|
-
} & {
|
|
2041
|
-
[k: string]: unknown;
|
|
2035
|
+
event: "message_created";
|
|
2036
|
+
inbox: {
|
|
2037
|
+
name: string;
|
|
2038
|
+
id: number;
|
|
2042
2039
|
};
|
|
2043
|
-
id: number;
|
|
2044
|
-
created_at: string;
|
|
2045
2040
|
sender: {
|
|
2046
2041
|
id: number;
|
|
2047
2042
|
name?: string | null | undefined;
|
|
@@ -2060,6 +2055,16 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2060
2055
|
} | undefined;
|
|
2061
2056
|
avatar?: string | undefined;
|
|
2062
2057
|
};
|
|
2058
|
+
created_at: string;
|
|
2059
|
+
content: string | null;
|
|
2060
|
+
message_type: "incoming" | "outgoing";
|
|
2061
|
+
private: boolean;
|
|
2062
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2063
|
+
content_attributes: {
|
|
2064
|
+
in_reply_to?: unknown;
|
|
2065
|
+
} & {
|
|
2066
|
+
[k: string]: unknown;
|
|
2067
|
+
};
|
|
2063
2068
|
additional_attributes: Record<string, unknown>;
|
|
2064
2069
|
source_id: string | null;
|
|
2065
2070
|
account: {
|
|
@@ -2067,9 +2072,11 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2067
2072
|
id: number;
|
|
2068
2073
|
};
|
|
2069
2074
|
conversation: {
|
|
2070
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2071
2075
|
id: number;
|
|
2076
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2077
|
+
inbox_id: number;
|
|
2072
2078
|
created_at: number;
|
|
2079
|
+
updated_at: number;
|
|
2073
2080
|
priority: string | null;
|
|
2074
2081
|
additional_attributes: {
|
|
2075
2082
|
browser?: {
|
|
@@ -2088,38 +2095,28 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2088
2095
|
[k: string]: unknown;
|
|
2089
2096
|
};
|
|
2090
2097
|
custom_attributes: Record<string, unknown>;
|
|
2091
|
-
inbox_id: number;
|
|
2092
|
-
updated_at: number;
|
|
2093
2098
|
channel: string;
|
|
2094
2099
|
can_reply: boolean;
|
|
2095
2100
|
contact_inbox: {
|
|
2096
2101
|
id: number;
|
|
2102
|
+
inbox_id: number;
|
|
2097
2103
|
created_at: string;
|
|
2104
|
+
updated_at: string;
|
|
2098
2105
|
contact_id: number;
|
|
2099
|
-
inbox_id: number;
|
|
2100
2106
|
source_id: string | null;
|
|
2101
|
-
updated_at: string;
|
|
2102
2107
|
hmac_verified: boolean;
|
|
2103
2108
|
pubsub_token: string;
|
|
2104
2109
|
};
|
|
2105
2110
|
messages: {
|
|
2106
|
-
status: string;
|
|
2107
|
-
content: string | null;
|
|
2108
|
-
message_type: number;
|
|
2109
|
-
private: boolean;
|
|
2110
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2111
|
-
content_attributes: {
|
|
2112
|
-
in_reply_to?: unknown;
|
|
2113
|
-
} & {
|
|
2114
|
-
[k: string]: unknown;
|
|
2115
|
-
};
|
|
2116
2111
|
id: number;
|
|
2117
|
-
|
|
2118
|
-
|
|
2112
|
+
status: string;
|
|
2113
|
+
inbox_id: number;
|
|
2114
|
+
sender_id: number;
|
|
2115
|
+
account_id: number;
|
|
2119
2116
|
sender: {
|
|
2120
2117
|
id: number;
|
|
2121
|
-
name?: string | null | undefined;
|
|
2122
2118
|
type?: string | undefined;
|
|
2119
|
+
name?: string | null | undefined;
|
|
2123
2120
|
email?: string | null | undefined;
|
|
2124
2121
|
thumbnail?: string | undefined;
|
|
2125
2122
|
phone_number?: string | null | undefined;
|
|
@@ -2130,13 +2127,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2130
2127
|
customer_stage?: string | null | undefined;
|
|
2131
2128
|
customer_stage_explanation?: string | null | undefined;
|
|
2132
2129
|
};
|
|
2130
|
+
created_at: number;
|
|
2131
|
+
updated_at: string;
|
|
2132
|
+
content: string | null;
|
|
2133
|
+
message_type: number;
|
|
2134
|
+
private: boolean;
|
|
2135
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2136
|
+
content_attributes: {
|
|
2137
|
+
in_reply_to?: unknown;
|
|
2138
|
+
} & {
|
|
2139
|
+
[k: string]: unknown;
|
|
2140
|
+
};
|
|
2141
|
+
conversation_id: number;
|
|
2133
2142
|
additional_attributes: Record<string, unknown>;
|
|
2134
|
-
inbox_id: number;
|
|
2135
2143
|
source_id: string | null;
|
|
2136
|
-
updated_at: string;
|
|
2137
|
-
account_id: number;
|
|
2138
2144
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2139
|
-
sender_id: number;
|
|
2140
2145
|
external_source_ids: Record<string, unknown>;
|
|
2141
2146
|
processed_message_content: string | null;
|
|
2142
2147
|
sentiment: Record<string, unknown>;
|
|
@@ -2190,24 +2195,14 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2190
2195
|
last_activity_at: number;
|
|
2191
2196
|
timestamp: number;
|
|
2192
2197
|
};
|
|
2198
|
+
}, {
|
|
2199
|
+
id: number;
|
|
2200
|
+
status: string;
|
|
2201
|
+
event: "message_created";
|
|
2193
2202
|
inbox: {
|
|
2194
2203
|
name: string;
|
|
2195
2204
|
id: number;
|
|
2196
2205
|
};
|
|
2197
|
-
event: "message_created";
|
|
2198
|
-
}, {
|
|
2199
|
-
status: string;
|
|
2200
|
-
content: string | null;
|
|
2201
|
-
message_type: "incoming" | "outgoing";
|
|
2202
|
-
private: boolean;
|
|
2203
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2204
|
-
content_attributes: {
|
|
2205
|
-
in_reply_to?: unknown;
|
|
2206
|
-
} & {
|
|
2207
|
-
[k: string]: unknown;
|
|
2208
|
-
};
|
|
2209
|
-
id: number;
|
|
2210
|
-
created_at: string;
|
|
2211
2206
|
sender: {
|
|
2212
2207
|
id: number;
|
|
2213
2208
|
name?: string | null | undefined;
|
|
@@ -2226,6 +2221,16 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2226
2221
|
} | undefined;
|
|
2227
2222
|
avatar?: string | undefined;
|
|
2228
2223
|
};
|
|
2224
|
+
created_at: string;
|
|
2225
|
+
content: string | null;
|
|
2226
|
+
message_type: "incoming" | "outgoing";
|
|
2227
|
+
private: boolean;
|
|
2228
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2229
|
+
content_attributes: {
|
|
2230
|
+
in_reply_to?: unknown;
|
|
2231
|
+
} & {
|
|
2232
|
+
[k: string]: unknown;
|
|
2233
|
+
};
|
|
2229
2234
|
additional_attributes: Record<string, unknown>;
|
|
2230
2235
|
source_id: string | null;
|
|
2231
2236
|
account: {
|
|
@@ -2233,9 +2238,11 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2233
2238
|
id: number;
|
|
2234
2239
|
};
|
|
2235
2240
|
conversation: {
|
|
2236
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2237
2241
|
id: number;
|
|
2242
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2243
|
+
inbox_id: number;
|
|
2238
2244
|
created_at: number;
|
|
2245
|
+
updated_at: number;
|
|
2239
2246
|
priority: string | null;
|
|
2240
2247
|
additional_attributes: {
|
|
2241
2248
|
browser?: {
|
|
@@ -2254,38 +2261,28 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2254
2261
|
[k: string]: unknown;
|
|
2255
2262
|
};
|
|
2256
2263
|
custom_attributes: Record<string, unknown>;
|
|
2257
|
-
inbox_id: number;
|
|
2258
|
-
updated_at: number;
|
|
2259
2264
|
channel: string;
|
|
2260
2265
|
can_reply: boolean;
|
|
2261
2266
|
contact_inbox: {
|
|
2262
2267
|
id: number;
|
|
2268
|
+
inbox_id: number;
|
|
2263
2269
|
created_at: string;
|
|
2270
|
+
updated_at: string;
|
|
2264
2271
|
contact_id: number;
|
|
2265
|
-
inbox_id: number;
|
|
2266
2272
|
source_id: string | null;
|
|
2267
|
-
updated_at: string;
|
|
2268
2273
|
hmac_verified: boolean;
|
|
2269
2274
|
pubsub_token: string;
|
|
2270
2275
|
};
|
|
2271
2276
|
messages: {
|
|
2272
|
-
status: string;
|
|
2273
|
-
content: string | null;
|
|
2274
|
-
message_type: number;
|
|
2275
|
-
private: boolean;
|
|
2276
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2277
|
-
content_attributes: {
|
|
2278
|
-
in_reply_to?: unknown;
|
|
2279
|
-
} & {
|
|
2280
|
-
[k: string]: unknown;
|
|
2281
|
-
};
|
|
2282
2277
|
id: number;
|
|
2283
|
-
|
|
2284
|
-
|
|
2278
|
+
status: string;
|
|
2279
|
+
inbox_id: number;
|
|
2280
|
+
sender_id: number;
|
|
2281
|
+
account_id: number;
|
|
2285
2282
|
sender: {
|
|
2286
2283
|
id: number;
|
|
2287
|
-
name?: string | null | undefined;
|
|
2288
2284
|
type?: string | undefined;
|
|
2285
|
+
name?: string | null | undefined;
|
|
2289
2286
|
email?: string | null | undefined;
|
|
2290
2287
|
thumbnail?: string | undefined;
|
|
2291
2288
|
phone_number?: string | null | undefined;
|
|
@@ -2296,13 +2293,21 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2296
2293
|
customer_stage?: string | null | undefined;
|
|
2297
2294
|
customer_stage_explanation?: string | null | undefined;
|
|
2298
2295
|
};
|
|
2296
|
+
created_at: number;
|
|
2297
|
+
updated_at: string;
|
|
2298
|
+
content: string | null;
|
|
2299
|
+
message_type: number;
|
|
2300
|
+
private: boolean;
|
|
2301
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2302
|
+
content_attributes: {
|
|
2303
|
+
in_reply_to?: unknown;
|
|
2304
|
+
} & {
|
|
2305
|
+
[k: string]: unknown;
|
|
2306
|
+
};
|
|
2307
|
+
conversation_id: number;
|
|
2299
2308
|
additional_attributes: Record<string, unknown>;
|
|
2300
|
-
inbox_id: number;
|
|
2301
2309
|
source_id: string | null;
|
|
2302
|
-
updated_at: string;
|
|
2303
|
-
account_id: number;
|
|
2304
2310
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2305
|
-
sender_id: number;
|
|
2306
2311
|
external_source_ids: Record<string, unknown>;
|
|
2307
2312
|
processed_message_content: string | null;
|
|
2308
2313
|
sentiment: Record<string, unknown>;
|
|
@@ -2356,11 +2361,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2356
2361
|
last_activity_at: number;
|
|
2357
2362
|
timestamp: number;
|
|
2358
2363
|
};
|
|
2359
|
-
inbox: {
|
|
2360
|
-
name: string;
|
|
2361
|
-
id: number;
|
|
2362
|
-
};
|
|
2363
|
-
event: "message_created";
|
|
2364
2364
|
}>;
|
|
2365
2365
|
export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
2366
2366
|
account: z.ZodObject<{
|
|
@@ -2485,20 +2485,20 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2485
2485
|
pubsub_token: z.ZodString;
|
|
2486
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2487
2487
|
id: number;
|
|
2488
|
+
inbox_id: number;
|
|
2488
2489
|
created_at: string;
|
|
2490
|
+
updated_at: string;
|
|
2489
2491
|
contact_id: number;
|
|
2490
|
-
inbox_id: number;
|
|
2491
2492
|
source_id: string | null;
|
|
2492
|
-
updated_at: string;
|
|
2493
2493
|
hmac_verified: boolean;
|
|
2494
2494
|
pubsub_token: string;
|
|
2495
2495
|
}, {
|
|
2496
2496
|
id: number;
|
|
2497
|
+
inbox_id: number;
|
|
2497
2498
|
created_at: string;
|
|
2499
|
+
updated_at: string;
|
|
2498
2500
|
contact_id: number;
|
|
2499
|
-
inbox_id: number;
|
|
2500
2501
|
source_id: string | null;
|
|
2501
|
-
updated_at: string;
|
|
2502
2502
|
hmac_verified: boolean;
|
|
2503
2503
|
pubsub_token: string;
|
|
2504
2504
|
}>;
|
|
@@ -2576,8 +2576,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2576
2576
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2577
2577
|
}, "strip", z.ZodTypeAny, {
|
|
2578
2578
|
id: number;
|
|
2579
|
-
name?: string | null | undefined;
|
|
2580
2579
|
type?: string | undefined;
|
|
2580
|
+
name?: string | null | undefined;
|
|
2581
2581
|
email?: string | null | undefined;
|
|
2582
2582
|
thumbnail?: string | undefined;
|
|
2583
2583
|
phone_number?: string | null | undefined;
|
|
@@ -2589,8 +2589,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2589
2589
|
customer_stage_explanation?: string | null | undefined;
|
|
2590
2590
|
}, {
|
|
2591
2591
|
id: number;
|
|
2592
|
-
name?: string | null | undefined;
|
|
2593
2592
|
type?: string | undefined;
|
|
2593
|
+
name?: string | null | undefined;
|
|
2594
2594
|
email?: string | null | undefined;
|
|
2595
2595
|
thumbnail?: string | undefined;
|
|
2596
2596
|
phone_number?: string | null | undefined;
|
|
@@ -2602,23 +2602,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2602
2602
|
customer_stage_explanation?: string | null | undefined;
|
|
2603
2603
|
}>;
|
|
2604
2604
|
}, "strip", z.ZodTypeAny, {
|
|
2605
|
-
status: string;
|
|
2606
|
-
content: string | null;
|
|
2607
|
-
message_type: number;
|
|
2608
|
-
private: boolean;
|
|
2609
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2610
|
-
content_attributes: {
|
|
2611
|
-
in_reply_to?: unknown;
|
|
2612
|
-
} & {
|
|
2613
|
-
[k: string]: unknown;
|
|
2614
|
-
};
|
|
2615
2605
|
id: number;
|
|
2616
|
-
|
|
2617
|
-
|
|
2606
|
+
status: string;
|
|
2607
|
+
inbox_id: number;
|
|
2608
|
+
sender_id: number;
|
|
2609
|
+
account_id: number;
|
|
2618
2610
|
sender: {
|
|
2619
2611
|
id: number;
|
|
2620
|
-
name?: string | null | undefined;
|
|
2621
2612
|
type?: string | undefined;
|
|
2613
|
+
name?: string | null | undefined;
|
|
2622
2614
|
email?: string | null | undefined;
|
|
2623
2615
|
thumbnail?: string | undefined;
|
|
2624
2616
|
phone_number?: string | null | undefined;
|
|
@@ -2629,13 +2621,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2629
2621
|
customer_stage?: string | null | undefined;
|
|
2630
2622
|
customer_stage_explanation?: string | null | undefined;
|
|
2631
2623
|
};
|
|
2624
|
+
created_at: number;
|
|
2625
|
+
updated_at: string;
|
|
2626
|
+
content: string | null;
|
|
2627
|
+
message_type: number;
|
|
2628
|
+
private: boolean;
|
|
2629
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2630
|
+
content_attributes: {
|
|
2631
|
+
in_reply_to?: unknown;
|
|
2632
|
+
} & {
|
|
2633
|
+
[k: string]: unknown;
|
|
2634
|
+
};
|
|
2635
|
+
conversation_id: number;
|
|
2632
2636
|
additional_attributes: Record<string, unknown>;
|
|
2633
|
-
inbox_id: number;
|
|
2634
2637
|
source_id: string | null;
|
|
2635
|
-
updated_at: string;
|
|
2636
|
-
account_id: number;
|
|
2637
2638
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2638
|
-
sender_id: number;
|
|
2639
2639
|
external_source_ids: Record<string, unknown>;
|
|
2640
2640
|
processed_message_content: string | null;
|
|
2641
2641
|
sentiment: Record<string, unknown>;
|
|
@@ -2652,23 +2652,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2652
2652
|
assignee_id: number | null;
|
|
2653
2653
|
};
|
|
2654
2654
|
}, {
|
|
2655
|
-
status: string;
|
|
2656
|
-
content: string | null;
|
|
2657
|
-
message_type: number;
|
|
2658
|
-
private: boolean;
|
|
2659
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2660
|
-
content_attributes: {
|
|
2661
|
-
in_reply_to?: unknown;
|
|
2662
|
-
} & {
|
|
2663
|
-
[k: string]: unknown;
|
|
2664
|
-
};
|
|
2665
2655
|
id: number;
|
|
2666
|
-
|
|
2667
|
-
|
|
2656
|
+
status: string;
|
|
2657
|
+
inbox_id: number;
|
|
2658
|
+
sender_id: number;
|
|
2659
|
+
account_id: number;
|
|
2668
2660
|
sender: {
|
|
2669
2661
|
id: number;
|
|
2670
|
-
name?: string | null | undefined;
|
|
2671
2662
|
type?: string | undefined;
|
|
2663
|
+
name?: string | null | undefined;
|
|
2672
2664
|
email?: string | null | undefined;
|
|
2673
2665
|
thumbnail?: string | undefined;
|
|
2674
2666
|
phone_number?: string | null | undefined;
|
|
@@ -2679,13 +2671,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2679
2671
|
customer_stage?: string | null | undefined;
|
|
2680
2672
|
customer_stage_explanation?: string | null | undefined;
|
|
2681
2673
|
};
|
|
2674
|
+
created_at: number;
|
|
2675
|
+
updated_at: string;
|
|
2676
|
+
content: string | null;
|
|
2677
|
+
message_type: number;
|
|
2678
|
+
private: boolean;
|
|
2679
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2680
|
+
content_attributes: {
|
|
2681
|
+
in_reply_to?: unknown;
|
|
2682
|
+
} & {
|
|
2683
|
+
[k: string]: unknown;
|
|
2684
|
+
};
|
|
2685
|
+
conversation_id: number;
|
|
2682
2686
|
additional_attributes: Record<string, unknown>;
|
|
2683
|
-
inbox_id: number;
|
|
2684
2687
|
source_id: string | null;
|
|
2685
|
-
updated_at: string;
|
|
2686
|
-
account_id: number;
|
|
2687
2688
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2688
|
-
sender_id: number;
|
|
2689
2689
|
external_source_ids: Record<string, unknown>;
|
|
2690
2690
|
processed_message_content: string | null;
|
|
2691
2691
|
sentiment: Record<string, unknown>;
|
|
@@ -2822,9 +2822,11 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2822
2822
|
created_at: z.ZodNumber;
|
|
2823
2823
|
updated_at: z.ZodNumber;
|
|
2824
2824
|
}, "strip", z.ZodTypeAny, {
|
|
2825
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2826
2825
|
id: number;
|
|
2826
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2827
|
+
inbox_id: number;
|
|
2827
2828
|
created_at: number;
|
|
2829
|
+
updated_at: number;
|
|
2828
2830
|
priority: string | null;
|
|
2829
2831
|
additional_attributes: {
|
|
2830
2832
|
browser?: {
|
|
@@ -2843,38 +2845,28 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2843
2845
|
[k: string]: unknown;
|
|
2844
2846
|
};
|
|
2845
2847
|
custom_attributes: Record<string, unknown>;
|
|
2846
|
-
inbox_id: number;
|
|
2847
|
-
updated_at: number;
|
|
2848
2848
|
channel: string;
|
|
2849
2849
|
can_reply: boolean;
|
|
2850
2850
|
contact_inbox: {
|
|
2851
2851
|
id: number;
|
|
2852
|
+
inbox_id: number;
|
|
2852
2853
|
created_at: string;
|
|
2854
|
+
updated_at: string;
|
|
2853
2855
|
contact_id: number;
|
|
2854
|
-
inbox_id: number;
|
|
2855
2856
|
source_id: string | null;
|
|
2856
|
-
updated_at: string;
|
|
2857
2857
|
hmac_verified: boolean;
|
|
2858
2858
|
pubsub_token: string;
|
|
2859
2859
|
};
|
|
2860
2860
|
messages: {
|
|
2861
|
-
status: string;
|
|
2862
|
-
content: string | null;
|
|
2863
|
-
message_type: number;
|
|
2864
|
-
private: boolean;
|
|
2865
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2866
|
-
content_attributes: {
|
|
2867
|
-
in_reply_to?: unknown;
|
|
2868
|
-
} & {
|
|
2869
|
-
[k: string]: unknown;
|
|
2870
|
-
};
|
|
2871
2861
|
id: number;
|
|
2872
|
-
|
|
2873
|
-
|
|
2862
|
+
status: string;
|
|
2863
|
+
inbox_id: number;
|
|
2864
|
+
sender_id: number;
|
|
2865
|
+
account_id: number;
|
|
2874
2866
|
sender: {
|
|
2875
2867
|
id: number;
|
|
2876
|
-
name?: string | null | undefined;
|
|
2877
2868
|
type?: string | undefined;
|
|
2869
|
+
name?: string | null | undefined;
|
|
2878
2870
|
email?: string | null | undefined;
|
|
2879
2871
|
thumbnail?: string | undefined;
|
|
2880
2872
|
phone_number?: string | null | undefined;
|
|
@@ -2885,13 +2877,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2885
2877
|
customer_stage?: string | null | undefined;
|
|
2886
2878
|
customer_stage_explanation?: string | null | undefined;
|
|
2887
2879
|
};
|
|
2880
|
+
created_at: number;
|
|
2881
|
+
updated_at: string;
|
|
2882
|
+
content: string | null;
|
|
2883
|
+
message_type: number;
|
|
2884
|
+
private: boolean;
|
|
2885
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2886
|
+
content_attributes: {
|
|
2887
|
+
in_reply_to?: unknown;
|
|
2888
|
+
} & {
|
|
2889
|
+
[k: string]: unknown;
|
|
2890
|
+
};
|
|
2891
|
+
conversation_id: number;
|
|
2888
2892
|
additional_attributes: Record<string, unknown>;
|
|
2889
|
-
inbox_id: number;
|
|
2890
2893
|
source_id: string | null;
|
|
2891
|
-
updated_at: string;
|
|
2892
|
-
account_id: number;
|
|
2893
2894
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2894
|
-
sender_id: number;
|
|
2895
2895
|
external_source_ids: Record<string, unknown>;
|
|
2896
2896
|
processed_message_content: string | null;
|
|
2897
2897
|
sentiment: Record<string, unknown>;
|
|
@@ -2945,9 +2945,11 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2945
2945
|
last_activity_at: number;
|
|
2946
2946
|
timestamp: number;
|
|
2947
2947
|
}, {
|
|
2948
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2949
2948
|
id: number;
|
|
2949
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2950
|
+
inbox_id: number;
|
|
2950
2951
|
created_at: number;
|
|
2952
|
+
updated_at: number;
|
|
2951
2953
|
priority: string | null;
|
|
2952
2954
|
additional_attributes: {
|
|
2953
2955
|
browser?: {
|
|
@@ -2966,38 +2968,28 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2966
2968
|
[k: string]: unknown;
|
|
2967
2969
|
};
|
|
2968
2970
|
custom_attributes: Record<string, unknown>;
|
|
2969
|
-
inbox_id: number;
|
|
2970
|
-
updated_at: number;
|
|
2971
2971
|
channel: string;
|
|
2972
2972
|
can_reply: boolean;
|
|
2973
2973
|
contact_inbox: {
|
|
2974
2974
|
id: number;
|
|
2975
|
+
inbox_id: number;
|
|
2975
2976
|
created_at: string;
|
|
2977
|
+
updated_at: string;
|
|
2976
2978
|
contact_id: number;
|
|
2977
|
-
inbox_id: number;
|
|
2978
2979
|
source_id: string | null;
|
|
2979
|
-
updated_at: string;
|
|
2980
2980
|
hmac_verified: boolean;
|
|
2981
2981
|
pubsub_token: string;
|
|
2982
2982
|
};
|
|
2983
2983
|
messages: {
|
|
2984
|
-
status: string;
|
|
2985
|
-
content: string | null;
|
|
2986
|
-
message_type: number;
|
|
2987
|
-
private: boolean;
|
|
2988
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2989
|
-
content_attributes: {
|
|
2990
|
-
in_reply_to?: unknown;
|
|
2991
|
-
} & {
|
|
2992
|
-
[k: string]: unknown;
|
|
2993
|
-
};
|
|
2994
2984
|
id: number;
|
|
2995
|
-
|
|
2996
|
-
|
|
2985
|
+
status: string;
|
|
2986
|
+
inbox_id: number;
|
|
2987
|
+
sender_id: number;
|
|
2988
|
+
account_id: number;
|
|
2997
2989
|
sender: {
|
|
2998
2990
|
id: number;
|
|
2999
|
-
name?: string | null | undefined;
|
|
3000
2991
|
type?: string | undefined;
|
|
2992
|
+
name?: string | null | undefined;
|
|
3001
2993
|
email?: string | null | undefined;
|
|
3002
2994
|
thumbnail?: string | undefined;
|
|
3003
2995
|
phone_number?: string | null | undefined;
|
|
@@ -3008,13 +3000,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3008
3000
|
customer_stage?: string | null | undefined;
|
|
3009
3001
|
customer_stage_explanation?: string | null | undefined;
|
|
3010
3002
|
};
|
|
3003
|
+
created_at: number;
|
|
3004
|
+
updated_at: string;
|
|
3005
|
+
content: string | null;
|
|
3006
|
+
message_type: number;
|
|
3007
|
+
private: boolean;
|
|
3008
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3009
|
+
content_attributes: {
|
|
3010
|
+
in_reply_to?: unknown;
|
|
3011
|
+
} & {
|
|
3012
|
+
[k: string]: unknown;
|
|
3013
|
+
};
|
|
3014
|
+
conversation_id: number;
|
|
3011
3015
|
additional_attributes: Record<string, unknown>;
|
|
3012
|
-
inbox_id: number;
|
|
3013
3016
|
source_id: string | null;
|
|
3014
|
-
updated_at: string;
|
|
3015
|
-
account_id: number;
|
|
3016
3017
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3017
|
-
sender_id: number;
|
|
3018
3018
|
external_source_ids: Record<string, unknown>;
|
|
3019
3019
|
processed_message_content: string | null;
|
|
3020
3020
|
sentiment: Record<string, unknown>;
|
|
@@ -3144,20 +3144,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3144
3144
|
}>;
|
|
3145
3145
|
source_id: z.ZodNullable<z.ZodString>;
|
|
3146
3146
|
} & {
|
|
3147
|
-
event: z.ZodLiteral<"message_updated">;
|
|
3148
|
-
}, "strip", z.ZodTypeAny, {
|
|
3149
|
-
status: string;
|
|
3150
|
-
content: string | null;
|
|
3151
|
-
message_type: "incoming" | "outgoing";
|
|
3152
|
-
private: boolean;
|
|
3153
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3154
|
-
content_attributes: {
|
|
3155
|
-
in_reply_to?: unknown;
|
|
3156
|
-
} & {
|
|
3157
|
-
[k: string]: unknown;
|
|
3158
|
-
};
|
|
3147
|
+
event: z.ZodLiteral<"message_updated">;
|
|
3148
|
+
}, "strip", z.ZodTypeAny, {
|
|
3159
3149
|
id: number;
|
|
3160
|
-
|
|
3150
|
+
status: string;
|
|
3151
|
+
event: "message_updated";
|
|
3152
|
+
inbox: {
|
|
3153
|
+
name: string;
|
|
3154
|
+
id: number;
|
|
3155
|
+
};
|
|
3161
3156
|
sender: {
|
|
3162
3157
|
id: number;
|
|
3163
3158
|
name?: string | null | undefined;
|
|
@@ -3176,6 +3171,16 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3176
3171
|
} | undefined;
|
|
3177
3172
|
avatar?: string | undefined;
|
|
3178
3173
|
};
|
|
3174
|
+
created_at: string;
|
|
3175
|
+
content: string | null;
|
|
3176
|
+
message_type: "incoming" | "outgoing";
|
|
3177
|
+
private: boolean;
|
|
3178
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3179
|
+
content_attributes: {
|
|
3180
|
+
in_reply_to?: unknown;
|
|
3181
|
+
} & {
|
|
3182
|
+
[k: string]: unknown;
|
|
3183
|
+
};
|
|
3179
3184
|
additional_attributes: Record<string, unknown>;
|
|
3180
3185
|
source_id: string | null;
|
|
3181
3186
|
account: {
|
|
@@ -3183,9 +3188,11 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3183
3188
|
id: number;
|
|
3184
3189
|
};
|
|
3185
3190
|
conversation: {
|
|
3186
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3187
3191
|
id: number;
|
|
3192
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3193
|
+
inbox_id: number;
|
|
3188
3194
|
created_at: number;
|
|
3195
|
+
updated_at: number;
|
|
3189
3196
|
priority: string | null;
|
|
3190
3197
|
additional_attributes: {
|
|
3191
3198
|
browser?: {
|
|
@@ -3204,38 +3211,28 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3204
3211
|
[k: string]: unknown;
|
|
3205
3212
|
};
|
|
3206
3213
|
custom_attributes: Record<string, unknown>;
|
|
3207
|
-
inbox_id: number;
|
|
3208
|
-
updated_at: number;
|
|
3209
3214
|
channel: string;
|
|
3210
3215
|
can_reply: boolean;
|
|
3211
3216
|
contact_inbox: {
|
|
3212
3217
|
id: number;
|
|
3218
|
+
inbox_id: number;
|
|
3213
3219
|
created_at: string;
|
|
3220
|
+
updated_at: string;
|
|
3214
3221
|
contact_id: number;
|
|
3215
|
-
inbox_id: number;
|
|
3216
3222
|
source_id: string | null;
|
|
3217
|
-
updated_at: string;
|
|
3218
3223
|
hmac_verified: boolean;
|
|
3219
3224
|
pubsub_token: string;
|
|
3220
3225
|
};
|
|
3221
3226
|
messages: {
|
|
3222
|
-
status: string;
|
|
3223
|
-
content: string | null;
|
|
3224
|
-
message_type: number;
|
|
3225
|
-
private: boolean;
|
|
3226
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3227
|
-
content_attributes: {
|
|
3228
|
-
in_reply_to?: unknown;
|
|
3229
|
-
} & {
|
|
3230
|
-
[k: string]: unknown;
|
|
3231
|
-
};
|
|
3232
3227
|
id: number;
|
|
3233
|
-
|
|
3234
|
-
|
|
3228
|
+
status: string;
|
|
3229
|
+
inbox_id: number;
|
|
3230
|
+
sender_id: number;
|
|
3231
|
+
account_id: number;
|
|
3235
3232
|
sender: {
|
|
3236
3233
|
id: number;
|
|
3237
|
-
name?: string | null | undefined;
|
|
3238
3234
|
type?: string | undefined;
|
|
3235
|
+
name?: string | null | undefined;
|
|
3239
3236
|
email?: string | null | undefined;
|
|
3240
3237
|
thumbnail?: string | undefined;
|
|
3241
3238
|
phone_number?: string | null | undefined;
|
|
@@ -3246,13 +3243,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3246
3243
|
customer_stage?: string | null | undefined;
|
|
3247
3244
|
customer_stage_explanation?: string | null | undefined;
|
|
3248
3245
|
};
|
|
3246
|
+
created_at: number;
|
|
3247
|
+
updated_at: string;
|
|
3248
|
+
content: string | null;
|
|
3249
|
+
message_type: number;
|
|
3250
|
+
private: boolean;
|
|
3251
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3252
|
+
content_attributes: {
|
|
3253
|
+
in_reply_to?: unknown;
|
|
3254
|
+
} & {
|
|
3255
|
+
[k: string]: unknown;
|
|
3256
|
+
};
|
|
3257
|
+
conversation_id: number;
|
|
3249
3258
|
additional_attributes: Record<string, unknown>;
|
|
3250
|
-
inbox_id: number;
|
|
3251
3259
|
source_id: string | null;
|
|
3252
|
-
updated_at: string;
|
|
3253
|
-
account_id: number;
|
|
3254
3260
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3255
|
-
sender_id: number;
|
|
3256
3261
|
external_source_ids: Record<string, unknown>;
|
|
3257
3262
|
processed_message_content: string | null;
|
|
3258
3263
|
sentiment: Record<string, unknown>;
|
|
@@ -3306,24 +3311,14 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3306
3311
|
last_activity_at: number;
|
|
3307
3312
|
timestamp: number;
|
|
3308
3313
|
};
|
|
3314
|
+
}, {
|
|
3315
|
+
id: number;
|
|
3316
|
+
status: string;
|
|
3317
|
+
event: "message_updated";
|
|
3309
3318
|
inbox: {
|
|
3310
3319
|
name: string;
|
|
3311
3320
|
id: number;
|
|
3312
3321
|
};
|
|
3313
|
-
event: "message_updated";
|
|
3314
|
-
}, {
|
|
3315
|
-
status: string;
|
|
3316
|
-
content: string | null;
|
|
3317
|
-
message_type: "incoming" | "outgoing";
|
|
3318
|
-
private: boolean;
|
|
3319
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3320
|
-
content_attributes: {
|
|
3321
|
-
in_reply_to?: unknown;
|
|
3322
|
-
} & {
|
|
3323
|
-
[k: string]: unknown;
|
|
3324
|
-
};
|
|
3325
|
-
id: number;
|
|
3326
|
-
created_at: string;
|
|
3327
3322
|
sender: {
|
|
3328
3323
|
id: number;
|
|
3329
3324
|
name?: string | null | undefined;
|
|
@@ -3342,6 +3337,16 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3342
3337
|
} | undefined;
|
|
3343
3338
|
avatar?: string | undefined;
|
|
3344
3339
|
};
|
|
3340
|
+
created_at: string;
|
|
3341
|
+
content: string | null;
|
|
3342
|
+
message_type: "incoming" | "outgoing";
|
|
3343
|
+
private: boolean;
|
|
3344
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3345
|
+
content_attributes: {
|
|
3346
|
+
in_reply_to?: unknown;
|
|
3347
|
+
} & {
|
|
3348
|
+
[k: string]: unknown;
|
|
3349
|
+
};
|
|
3345
3350
|
additional_attributes: Record<string, unknown>;
|
|
3346
3351
|
source_id: string | null;
|
|
3347
3352
|
account: {
|
|
@@ -3349,9 +3354,11 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3349
3354
|
id: number;
|
|
3350
3355
|
};
|
|
3351
3356
|
conversation: {
|
|
3352
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3353
3357
|
id: number;
|
|
3358
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3359
|
+
inbox_id: number;
|
|
3354
3360
|
created_at: number;
|
|
3361
|
+
updated_at: number;
|
|
3355
3362
|
priority: string | null;
|
|
3356
3363
|
additional_attributes: {
|
|
3357
3364
|
browser?: {
|
|
@@ -3370,38 +3377,28 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3370
3377
|
[k: string]: unknown;
|
|
3371
3378
|
};
|
|
3372
3379
|
custom_attributes: Record<string, unknown>;
|
|
3373
|
-
inbox_id: number;
|
|
3374
|
-
updated_at: number;
|
|
3375
3380
|
channel: string;
|
|
3376
3381
|
can_reply: boolean;
|
|
3377
3382
|
contact_inbox: {
|
|
3378
3383
|
id: number;
|
|
3384
|
+
inbox_id: number;
|
|
3379
3385
|
created_at: string;
|
|
3386
|
+
updated_at: string;
|
|
3380
3387
|
contact_id: number;
|
|
3381
|
-
inbox_id: number;
|
|
3382
3388
|
source_id: string | null;
|
|
3383
|
-
updated_at: string;
|
|
3384
3389
|
hmac_verified: boolean;
|
|
3385
3390
|
pubsub_token: string;
|
|
3386
3391
|
};
|
|
3387
3392
|
messages: {
|
|
3388
|
-
status: string;
|
|
3389
|
-
content: string | null;
|
|
3390
|
-
message_type: number;
|
|
3391
|
-
private: boolean;
|
|
3392
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3393
|
-
content_attributes: {
|
|
3394
|
-
in_reply_to?: unknown;
|
|
3395
|
-
} & {
|
|
3396
|
-
[k: string]: unknown;
|
|
3397
|
-
};
|
|
3398
3393
|
id: number;
|
|
3399
|
-
|
|
3400
|
-
|
|
3394
|
+
status: string;
|
|
3395
|
+
inbox_id: number;
|
|
3396
|
+
sender_id: number;
|
|
3397
|
+
account_id: number;
|
|
3401
3398
|
sender: {
|
|
3402
3399
|
id: number;
|
|
3403
|
-
name?: string | null | undefined;
|
|
3404
3400
|
type?: string | undefined;
|
|
3401
|
+
name?: string | null | undefined;
|
|
3405
3402
|
email?: string | null | undefined;
|
|
3406
3403
|
thumbnail?: string | undefined;
|
|
3407
3404
|
phone_number?: string | null | undefined;
|
|
@@ -3412,13 +3409,21 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3412
3409
|
customer_stage?: string | null | undefined;
|
|
3413
3410
|
customer_stage_explanation?: string | null | undefined;
|
|
3414
3411
|
};
|
|
3412
|
+
created_at: number;
|
|
3413
|
+
updated_at: string;
|
|
3414
|
+
content: string | null;
|
|
3415
|
+
message_type: number;
|
|
3416
|
+
private: boolean;
|
|
3417
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3418
|
+
content_attributes: {
|
|
3419
|
+
in_reply_to?: unknown;
|
|
3420
|
+
} & {
|
|
3421
|
+
[k: string]: unknown;
|
|
3422
|
+
};
|
|
3423
|
+
conversation_id: number;
|
|
3415
3424
|
additional_attributes: Record<string, unknown>;
|
|
3416
|
-
inbox_id: number;
|
|
3417
3425
|
source_id: string | null;
|
|
3418
|
-
updated_at: string;
|
|
3419
|
-
account_id: number;
|
|
3420
3426
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3421
|
-
sender_id: number;
|
|
3422
3427
|
external_source_ids: Record<string, unknown>;
|
|
3423
3428
|
processed_message_content: string | null;
|
|
3424
3429
|
sentiment: Record<string, unknown>;
|
|
@@ -3472,11 +3477,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3472
3477
|
last_activity_at: number;
|
|
3473
3478
|
timestamp: number;
|
|
3474
3479
|
};
|
|
3475
|
-
inbox: {
|
|
3476
|
-
name: string;
|
|
3477
|
-
id: number;
|
|
3478
|
-
};
|
|
3479
|
-
event: "message_updated";
|
|
3480
3480
|
}>;
|
|
3481
3481
|
export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.ZodObject<{
|
|
3482
3482
|
account: z.ZodObject<{
|
|
@@ -3601,20 +3601,20 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3601
3601
|
pubsub_token: z.ZodString;
|
|
3602
3602
|
}, "strip", z.ZodTypeAny, {
|
|
3603
3603
|
id: number;
|
|
3604
|
+
inbox_id: number;
|
|
3604
3605
|
created_at: string;
|
|
3606
|
+
updated_at: string;
|
|
3605
3607
|
contact_id: number;
|
|
3606
|
-
inbox_id: number;
|
|
3607
3608
|
source_id: string | null;
|
|
3608
|
-
updated_at: string;
|
|
3609
3609
|
hmac_verified: boolean;
|
|
3610
3610
|
pubsub_token: string;
|
|
3611
3611
|
}, {
|
|
3612
3612
|
id: number;
|
|
3613
|
+
inbox_id: number;
|
|
3613
3614
|
created_at: string;
|
|
3615
|
+
updated_at: string;
|
|
3614
3616
|
contact_id: number;
|
|
3615
|
-
inbox_id: number;
|
|
3616
3617
|
source_id: string | null;
|
|
3617
|
-
updated_at: string;
|
|
3618
3618
|
hmac_verified: boolean;
|
|
3619
3619
|
pubsub_token: string;
|
|
3620
3620
|
}>;
|
|
@@ -3692,8 +3692,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3692
3692
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3693
3693
|
}, "strip", z.ZodTypeAny, {
|
|
3694
3694
|
id: number;
|
|
3695
|
-
name?: string | null | undefined;
|
|
3696
3695
|
type?: string | undefined;
|
|
3696
|
+
name?: string | null | undefined;
|
|
3697
3697
|
email?: string | null | undefined;
|
|
3698
3698
|
thumbnail?: string | undefined;
|
|
3699
3699
|
phone_number?: string | null | undefined;
|
|
@@ -3705,8 +3705,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3705
3705
|
customer_stage_explanation?: string | null | undefined;
|
|
3706
3706
|
}, {
|
|
3707
3707
|
id: number;
|
|
3708
|
-
name?: string | null | undefined;
|
|
3709
3708
|
type?: string | undefined;
|
|
3709
|
+
name?: string | null | undefined;
|
|
3710
3710
|
email?: string | null | undefined;
|
|
3711
3711
|
thumbnail?: string | undefined;
|
|
3712
3712
|
phone_number?: string | null | undefined;
|
|
@@ -3718,23 +3718,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3718
3718
|
customer_stage_explanation?: string | null | undefined;
|
|
3719
3719
|
}>;
|
|
3720
3720
|
}, "strip", z.ZodTypeAny, {
|
|
3721
|
-
status: string;
|
|
3722
|
-
content: string | null;
|
|
3723
|
-
message_type: number;
|
|
3724
|
-
private: boolean;
|
|
3725
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3726
|
-
content_attributes: {
|
|
3727
|
-
in_reply_to?: unknown;
|
|
3728
|
-
} & {
|
|
3729
|
-
[k: string]: unknown;
|
|
3730
|
-
};
|
|
3731
3721
|
id: number;
|
|
3732
|
-
|
|
3733
|
-
|
|
3722
|
+
status: string;
|
|
3723
|
+
inbox_id: number;
|
|
3724
|
+
sender_id: number;
|
|
3725
|
+
account_id: number;
|
|
3734
3726
|
sender: {
|
|
3735
3727
|
id: number;
|
|
3736
|
-
name?: string | null | undefined;
|
|
3737
3728
|
type?: string | undefined;
|
|
3729
|
+
name?: string | null | undefined;
|
|
3738
3730
|
email?: string | null | undefined;
|
|
3739
3731
|
thumbnail?: string | undefined;
|
|
3740
3732
|
phone_number?: string | null | undefined;
|
|
@@ -3745,13 +3737,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3745
3737
|
customer_stage?: string | null | undefined;
|
|
3746
3738
|
customer_stage_explanation?: string | null | undefined;
|
|
3747
3739
|
};
|
|
3740
|
+
created_at: number;
|
|
3741
|
+
updated_at: string;
|
|
3742
|
+
content: string | null;
|
|
3743
|
+
message_type: number;
|
|
3744
|
+
private: boolean;
|
|
3745
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3746
|
+
content_attributes: {
|
|
3747
|
+
in_reply_to?: unknown;
|
|
3748
|
+
} & {
|
|
3749
|
+
[k: string]: unknown;
|
|
3750
|
+
};
|
|
3751
|
+
conversation_id: number;
|
|
3748
3752
|
additional_attributes: Record<string, unknown>;
|
|
3749
|
-
inbox_id: number;
|
|
3750
3753
|
source_id: string | null;
|
|
3751
|
-
updated_at: string;
|
|
3752
|
-
account_id: number;
|
|
3753
3754
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3754
|
-
sender_id: number;
|
|
3755
3755
|
external_source_ids: Record<string, unknown>;
|
|
3756
3756
|
processed_message_content: string | null;
|
|
3757
3757
|
sentiment: Record<string, unknown>;
|
|
@@ -3768,23 +3768,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3768
3768
|
assignee_id: number | null;
|
|
3769
3769
|
};
|
|
3770
3770
|
}, {
|
|
3771
|
-
status: string;
|
|
3772
|
-
content: string | null;
|
|
3773
|
-
message_type: number;
|
|
3774
|
-
private: boolean;
|
|
3775
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3776
|
-
content_attributes: {
|
|
3777
|
-
in_reply_to?: unknown;
|
|
3778
|
-
} & {
|
|
3779
|
-
[k: string]: unknown;
|
|
3780
|
-
};
|
|
3781
3771
|
id: number;
|
|
3782
|
-
|
|
3783
|
-
|
|
3772
|
+
status: string;
|
|
3773
|
+
inbox_id: number;
|
|
3774
|
+
sender_id: number;
|
|
3775
|
+
account_id: number;
|
|
3784
3776
|
sender: {
|
|
3785
3777
|
id: number;
|
|
3786
|
-
name?: string | null | undefined;
|
|
3787
3778
|
type?: string | undefined;
|
|
3779
|
+
name?: string | null | undefined;
|
|
3788
3780
|
email?: string | null | undefined;
|
|
3789
3781
|
thumbnail?: string | undefined;
|
|
3790
3782
|
phone_number?: string | null | undefined;
|
|
@@ -3795,13 +3787,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3795
3787
|
customer_stage?: string | null | undefined;
|
|
3796
3788
|
customer_stage_explanation?: string | null | undefined;
|
|
3797
3789
|
};
|
|
3790
|
+
created_at: number;
|
|
3791
|
+
updated_at: string;
|
|
3792
|
+
content: string | null;
|
|
3793
|
+
message_type: number;
|
|
3794
|
+
private: boolean;
|
|
3795
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3796
|
+
content_attributes: {
|
|
3797
|
+
in_reply_to?: unknown;
|
|
3798
|
+
} & {
|
|
3799
|
+
[k: string]: unknown;
|
|
3800
|
+
};
|
|
3801
|
+
conversation_id: number;
|
|
3798
3802
|
additional_attributes: Record<string, unknown>;
|
|
3799
|
-
inbox_id: number;
|
|
3800
3803
|
source_id: string | null;
|
|
3801
|
-
updated_at: string;
|
|
3802
|
-
account_id: number;
|
|
3803
3804
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3804
|
-
sender_id: number;
|
|
3805
3805
|
external_source_ids: Record<string, unknown>;
|
|
3806
3806
|
processed_message_content: string | null;
|
|
3807
3807
|
sentiment: Record<string, unknown>;
|
|
@@ -3938,9 +3938,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3938
3938
|
created_at: z.ZodNumber;
|
|
3939
3939
|
updated_at: z.ZodNumber;
|
|
3940
3940
|
}, "strip", z.ZodTypeAny, {
|
|
3941
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3942
3941
|
id: number;
|
|
3942
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3943
|
+
inbox_id: number;
|
|
3943
3944
|
created_at: number;
|
|
3945
|
+
updated_at: number;
|
|
3944
3946
|
priority: string | null;
|
|
3945
3947
|
additional_attributes: {
|
|
3946
3948
|
browser?: {
|
|
@@ -3959,38 +3961,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3959
3961
|
[k: string]: unknown;
|
|
3960
3962
|
};
|
|
3961
3963
|
custom_attributes: Record<string, unknown>;
|
|
3962
|
-
inbox_id: number;
|
|
3963
|
-
updated_at: number;
|
|
3964
3964
|
channel: string;
|
|
3965
3965
|
can_reply: boolean;
|
|
3966
3966
|
contact_inbox: {
|
|
3967
3967
|
id: number;
|
|
3968
|
+
inbox_id: number;
|
|
3968
3969
|
created_at: string;
|
|
3970
|
+
updated_at: string;
|
|
3969
3971
|
contact_id: number;
|
|
3970
|
-
inbox_id: number;
|
|
3971
3972
|
source_id: string | null;
|
|
3972
|
-
updated_at: string;
|
|
3973
3973
|
hmac_verified: boolean;
|
|
3974
3974
|
pubsub_token: string;
|
|
3975
3975
|
};
|
|
3976
3976
|
messages: {
|
|
3977
|
-
status: string;
|
|
3978
|
-
content: string | null;
|
|
3979
|
-
message_type: number;
|
|
3980
|
-
private: boolean;
|
|
3981
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3982
|
-
content_attributes: {
|
|
3983
|
-
in_reply_to?: unknown;
|
|
3984
|
-
} & {
|
|
3985
|
-
[k: string]: unknown;
|
|
3986
|
-
};
|
|
3987
3977
|
id: number;
|
|
3988
|
-
|
|
3989
|
-
|
|
3978
|
+
status: string;
|
|
3979
|
+
inbox_id: number;
|
|
3980
|
+
sender_id: number;
|
|
3981
|
+
account_id: number;
|
|
3990
3982
|
sender: {
|
|
3991
3983
|
id: number;
|
|
3992
|
-
name?: string | null | undefined;
|
|
3993
3984
|
type?: string | undefined;
|
|
3985
|
+
name?: string | null | undefined;
|
|
3994
3986
|
email?: string | null | undefined;
|
|
3995
3987
|
thumbnail?: string | undefined;
|
|
3996
3988
|
phone_number?: string | null | undefined;
|
|
@@ -4001,13 +3993,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4001
3993
|
customer_stage?: string | null | undefined;
|
|
4002
3994
|
customer_stage_explanation?: string | null | undefined;
|
|
4003
3995
|
};
|
|
3996
|
+
created_at: number;
|
|
3997
|
+
updated_at: string;
|
|
3998
|
+
content: string | null;
|
|
3999
|
+
message_type: number;
|
|
4000
|
+
private: boolean;
|
|
4001
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4002
|
+
content_attributes: {
|
|
4003
|
+
in_reply_to?: unknown;
|
|
4004
|
+
} & {
|
|
4005
|
+
[k: string]: unknown;
|
|
4006
|
+
};
|
|
4007
|
+
conversation_id: number;
|
|
4004
4008
|
additional_attributes: Record<string, unknown>;
|
|
4005
|
-
inbox_id: number;
|
|
4006
4009
|
source_id: string | null;
|
|
4007
|
-
updated_at: string;
|
|
4008
|
-
account_id: number;
|
|
4009
4010
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4010
|
-
sender_id: number;
|
|
4011
4011
|
external_source_ids: Record<string, unknown>;
|
|
4012
4012
|
processed_message_content: string | null;
|
|
4013
4013
|
sentiment: Record<string, unknown>;
|
|
@@ -4061,9 +4061,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4061
4061
|
last_activity_at: number;
|
|
4062
4062
|
timestamp: number;
|
|
4063
4063
|
}, {
|
|
4064
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4065
4064
|
id: number;
|
|
4065
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4066
|
+
inbox_id: number;
|
|
4066
4067
|
created_at: number;
|
|
4068
|
+
updated_at: number;
|
|
4067
4069
|
priority: string | null;
|
|
4068
4070
|
additional_attributes: {
|
|
4069
4071
|
browser?: {
|
|
@@ -4082,38 +4084,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4082
4084
|
[k: string]: unknown;
|
|
4083
4085
|
};
|
|
4084
4086
|
custom_attributes: Record<string, unknown>;
|
|
4085
|
-
inbox_id: number;
|
|
4086
|
-
updated_at: number;
|
|
4087
4087
|
channel: string;
|
|
4088
4088
|
can_reply: boolean;
|
|
4089
4089
|
contact_inbox: {
|
|
4090
4090
|
id: number;
|
|
4091
|
+
inbox_id: number;
|
|
4091
4092
|
created_at: string;
|
|
4093
|
+
updated_at: string;
|
|
4092
4094
|
contact_id: number;
|
|
4093
|
-
inbox_id: number;
|
|
4094
4095
|
source_id: string | null;
|
|
4095
|
-
updated_at: string;
|
|
4096
4096
|
hmac_verified: boolean;
|
|
4097
4097
|
pubsub_token: string;
|
|
4098
4098
|
};
|
|
4099
4099
|
messages: {
|
|
4100
|
-
status: string;
|
|
4101
|
-
content: string | null;
|
|
4102
|
-
message_type: number;
|
|
4103
|
-
private: boolean;
|
|
4104
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4105
|
-
content_attributes: {
|
|
4106
|
-
in_reply_to?: unknown;
|
|
4107
|
-
} & {
|
|
4108
|
-
[k: string]: unknown;
|
|
4109
|
-
};
|
|
4110
4100
|
id: number;
|
|
4111
|
-
|
|
4112
|
-
|
|
4101
|
+
status: string;
|
|
4102
|
+
inbox_id: number;
|
|
4103
|
+
sender_id: number;
|
|
4104
|
+
account_id: number;
|
|
4113
4105
|
sender: {
|
|
4114
4106
|
id: number;
|
|
4115
|
-
name?: string | null | undefined;
|
|
4116
4107
|
type?: string | undefined;
|
|
4108
|
+
name?: string | null | undefined;
|
|
4117
4109
|
email?: string | null | undefined;
|
|
4118
4110
|
thumbnail?: string | undefined;
|
|
4119
4111
|
phone_number?: string | null | undefined;
|
|
@@ -4124,13 +4116,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4124
4116
|
customer_stage?: string | null | undefined;
|
|
4125
4117
|
customer_stage_explanation?: string | null | undefined;
|
|
4126
4118
|
};
|
|
4119
|
+
created_at: number;
|
|
4120
|
+
updated_at: string;
|
|
4121
|
+
content: string | null;
|
|
4122
|
+
message_type: number;
|
|
4123
|
+
private: boolean;
|
|
4124
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4125
|
+
content_attributes: {
|
|
4126
|
+
in_reply_to?: unknown;
|
|
4127
|
+
} & {
|
|
4128
|
+
[k: string]: unknown;
|
|
4129
|
+
};
|
|
4130
|
+
conversation_id: number;
|
|
4127
4131
|
additional_attributes: Record<string, unknown>;
|
|
4128
|
-
inbox_id: number;
|
|
4129
4132
|
source_id: string | null;
|
|
4130
|
-
updated_at: string;
|
|
4131
|
-
account_id: number;
|
|
4132
4133
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4133
|
-
sender_id: number;
|
|
4134
4134
|
external_source_ids: Record<string, unknown>;
|
|
4135
4135
|
processed_message_content: string | null;
|
|
4136
4136
|
sentiment: Record<string, unknown>;
|
|
@@ -4262,18 +4262,13 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4262
4262
|
} & {
|
|
4263
4263
|
event: z.ZodLiteral<"message_created">;
|
|
4264
4264
|
}, "strip", z.ZodTypeAny, {
|
|
4265
|
+
id: number;
|
|
4265
4266
|
status: string;
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
content_attributes: {
|
|
4271
|
-
in_reply_to?: unknown;
|
|
4272
|
-
} & {
|
|
4273
|
-
[k: string]: unknown;
|
|
4267
|
+
event: "message_created";
|
|
4268
|
+
inbox: {
|
|
4269
|
+
name: string;
|
|
4270
|
+
id: number;
|
|
4274
4271
|
};
|
|
4275
|
-
id: number;
|
|
4276
|
-
created_at: string;
|
|
4277
4272
|
sender: {
|
|
4278
4273
|
id: number;
|
|
4279
4274
|
name?: string | null | undefined;
|
|
@@ -4292,6 +4287,16 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4292
4287
|
} | undefined;
|
|
4293
4288
|
avatar?: string | undefined;
|
|
4294
4289
|
};
|
|
4290
|
+
created_at: string;
|
|
4291
|
+
content: string | null;
|
|
4292
|
+
message_type: "incoming" | "outgoing";
|
|
4293
|
+
private: boolean;
|
|
4294
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4295
|
+
content_attributes: {
|
|
4296
|
+
in_reply_to?: unknown;
|
|
4297
|
+
} & {
|
|
4298
|
+
[k: string]: unknown;
|
|
4299
|
+
};
|
|
4295
4300
|
additional_attributes: Record<string, unknown>;
|
|
4296
4301
|
source_id: string | null;
|
|
4297
4302
|
account: {
|
|
@@ -4299,9 +4304,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4299
4304
|
id: number;
|
|
4300
4305
|
};
|
|
4301
4306
|
conversation: {
|
|
4302
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4303
4307
|
id: number;
|
|
4308
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4309
|
+
inbox_id: number;
|
|
4304
4310
|
created_at: number;
|
|
4311
|
+
updated_at: number;
|
|
4305
4312
|
priority: string | null;
|
|
4306
4313
|
additional_attributes: {
|
|
4307
4314
|
browser?: {
|
|
@@ -4320,38 +4327,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4320
4327
|
[k: string]: unknown;
|
|
4321
4328
|
};
|
|
4322
4329
|
custom_attributes: Record<string, unknown>;
|
|
4323
|
-
inbox_id: number;
|
|
4324
|
-
updated_at: number;
|
|
4325
4330
|
channel: string;
|
|
4326
4331
|
can_reply: boolean;
|
|
4327
4332
|
contact_inbox: {
|
|
4328
4333
|
id: number;
|
|
4334
|
+
inbox_id: number;
|
|
4329
4335
|
created_at: string;
|
|
4336
|
+
updated_at: string;
|
|
4330
4337
|
contact_id: number;
|
|
4331
|
-
inbox_id: number;
|
|
4332
4338
|
source_id: string | null;
|
|
4333
|
-
updated_at: string;
|
|
4334
4339
|
hmac_verified: boolean;
|
|
4335
4340
|
pubsub_token: string;
|
|
4336
4341
|
};
|
|
4337
4342
|
messages: {
|
|
4338
|
-
status: string;
|
|
4339
|
-
content: string | null;
|
|
4340
|
-
message_type: number;
|
|
4341
|
-
private: boolean;
|
|
4342
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4343
|
-
content_attributes: {
|
|
4344
|
-
in_reply_to?: unknown;
|
|
4345
|
-
} & {
|
|
4346
|
-
[k: string]: unknown;
|
|
4347
|
-
};
|
|
4348
4343
|
id: number;
|
|
4349
|
-
|
|
4350
|
-
|
|
4344
|
+
status: string;
|
|
4345
|
+
inbox_id: number;
|
|
4346
|
+
sender_id: number;
|
|
4347
|
+
account_id: number;
|
|
4351
4348
|
sender: {
|
|
4352
4349
|
id: number;
|
|
4353
|
-
name?: string | null | undefined;
|
|
4354
4350
|
type?: string | undefined;
|
|
4351
|
+
name?: string | null | undefined;
|
|
4355
4352
|
email?: string | null | undefined;
|
|
4356
4353
|
thumbnail?: string | undefined;
|
|
4357
4354
|
phone_number?: string | null | undefined;
|
|
@@ -4362,13 +4359,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4362
4359
|
customer_stage?: string | null | undefined;
|
|
4363
4360
|
customer_stage_explanation?: string | null | undefined;
|
|
4364
4361
|
};
|
|
4362
|
+
created_at: number;
|
|
4363
|
+
updated_at: string;
|
|
4364
|
+
content: string | null;
|
|
4365
|
+
message_type: number;
|
|
4366
|
+
private: boolean;
|
|
4367
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4368
|
+
content_attributes: {
|
|
4369
|
+
in_reply_to?: unknown;
|
|
4370
|
+
} & {
|
|
4371
|
+
[k: string]: unknown;
|
|
4372
|
+
};
|
|
4373
|
+
conversation_id: number;
|
|
4365
4374
|
additional_attributes: Record<string, unknown>;
|
|
4366
|
-
inbox_id: number;
|
|
4367
4375
|
source_id: string | null;
|
|
4368
|
-
updated_at: string;
|
|
4369
|
-
account_id: number;
|
|
4370
4376
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4371
|
-
sender_id: number;
|
|
4372
4377
|
external_source_ids: Record<string, unknown>;
|
|
4373
4378
|
processed_message_content: string | null;
|
|
4374
4379
|
sentiment: Record<string, unknown>;
|
|
@@ -4422,24 +4427,14 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4422
4427
|
last_activity_at: number;
|
|
4423
4428
|
timestamp: number;
|
|
4424
4429
|
};
|
|
4430
|
+
}, {
|
|
4431
|
+
id: number;
|
|
4432
|
+
status: string;
|
|
4433
|
+
event: "message_created";
|
|
4425
4434
|
inbox: {
|
|
4426
4435
|
name: string;
|
|
4427
4436
|
id: number;
|
|
4428
4437
|
};
|
|
4429
|
-
event: "message_created";
|
|
4430
|
-
}, {
|
|
4431
|
-
status: string;
|
|
4432
|
-
content: string | null;
|
|
4433
|
-
message_type: "incoming" | "outgoing";
|
|
4434
|
-
private: boolean;
|
|
4435
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4436
|
-
content_attributes: {
|
|
4437
|
-
in_reply_to?: unknown;
|
|
4438
|
-
} & {
|
|
4439
|
-
[k: string]: unknown;
|
|
4440
|
-
};
|
|
4441
|
-
id: number;
|
|
4442
|
-
created_at: string;
|
|
4443
4438
|
sender: {
|
|
4444
4439
|
id: number;
|
|
4445
4440
|
name?: string | null | undefined;
|
|
@@ -4458,6 +4453,16 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4458
4453
|
} | undefined;
|
|
4459
4454
|
avatar?: string | undefined;
|
|
4460
4455
|
};
|
|
4456
|
+
created_at: string;
|
|
4457
|
+
content: string | null;
|
|
4458
|
+
message_type: "incoming" | "outgoing";
|
|
4459
|
+
private: boolean;
|
|
4460
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4461
|
+
content_attributes: {
|
|
4462
|
+
in_reply_to?: unknown;
|
|
4463
|
+
} & {
|
|
4464
|
+
[k: string]: unknown;
|
|
4465
|
+
};
|
|
4461
4466
|
additional_attributes: Record<string, unknown>;
|
|
4462
4467
|
source_id: string | null;
|
|
4463
4468
|
account: {
|
|
@@ -4465,9 +4470,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4465
4470
|
id: number;
|
|
4466
4471
|
};
|
|
4467
4472
|
conversation: {
|
|
4468
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4469
4473
|
id: number;
|
|
4474
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4475
|
+
inbox_id: number;
|
|
4470
4476
|
created_at: number;
|
|
4477
|
+
updated_at: number;
|
|
4471
4478
|
priority: string | null;
|
|
4472
4479
|
additional_attributes: {
|
|
4473
4480
|
browser?: {
|
|
@@ -4486,38 +4493,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4486
4493
|
[k: string]: unknown;
|
|
4487
4494
|
};
|
|
4488
4495
|
custom_attributes: Record<string, unknown>;
|
|
4489
|
-
inbox_id: number;
|
|
4490
|
-
updated_at: number;
|
|
4491
4496
|
channel: string;
|
|
4492
4497
|
can_reply: boolean;
|
|
4493
4498
|
contact_inbox: {
|
|
4494
4499
|
id: number;
|
|
4500
|
+
inbox_id: number;
|
|
4495
4501
|
created_at: string;
|
|
4502
|
+
updated_at: string;
|
|
4496
4503
|
contact_id: number;
|
|
4497
|
-
inbox_id: number;
|
|
4498
4504
|
source_id: string | null;
|
|
4499
|
-
updated_at: string;
|
|
4500
4505
|
hmac_verified: boolean;
|
|
4501
4506
|
pubsub_token: string;
|
|
4502
4507
|
};
|
|
4503
4508
|
messages: {
|
|
4504
|
-
status: string;
|
|
4505
|
-
content: string | null;
|
|
4506
|
-
message_type: number;
|
|
4507
|
-
private: boolean;
|
|
4508
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4509
|
-
content_attributes: {
|
|
4510
|
-
in_reply_to?: unknown;
|
|
4511
|
-
} & {
|
|
4512
|
-
[k: string]: unknown;
|
|
4513
|
-
};
|
|
4514
4509
|
id: number;
|
|
4515
|
-
|
|
4516
|
-
|
|
4510
|
+
status: string;
|
|
4511
|
+
inbox_id: number;
|
|
4512
|
+
sender_id: number;
|
|
4513
|
+
account_id: number;
|
|
4517
4514
|
sender: {
|
|
4518
4515
|
id: number;
|
|
4519
|
-
name?: string | null | undefined;
|
|
4520
4516
|
type?: string | undefined;
|
|
4517
|
+
name?: string | null | undefined;
|
|
4521
4518
|
email?: string | null | undefined;
|
|
4522
4519
|
thumbnail?: string | undefined;
|
|
4523
4520
|
phone_number?: string | null | undefined;
|
|
@@ -4528,13 +4525,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4528
4525
|
customer_stage?: string | null | undefined;
|
|
4529
4526
|
customer_stage_explanation?: string | null | undefined;
|
|
4530
4527
|
};
|
|
4528
|
+
created_at: number;
|
|
4529
|
+
updated_at: string;
|
|
4530
|
+
content: string | null;
|
|
4531
|
+
message_type: number;
|
|
4532
|
+
private: boolean;
|
|
4533
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4534
|
+
content_attributes: {
|
|
4535
|
+
in_reply_to?: unknown;
|
|
4536
|
+
} & {
|
|
4537
|
+
[k: string]: unknown;
|
|
4538
|
+
};
|
|
4539
|
+
conversation_id: number;
|
|
4531
4540
|
additional_attributes: Record<string, unknown>;
|
|
4532
|
-
inbox_id: number;
|
|
4533
4541
|
source_id: string | null;
|
|
4534
|
-
updated_at: string;
|
|
4535
|
-
account_id: number;
|
|
4536
4542
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4537
|
-
sender_id: number;
|
|
4538
4543
|
external_source_ids: Record<string, unknown>;
|
|
4539
4544
|
processed_message_content: string | null;
|
|
4540
4545
|
sentiment: Record<string, unknown>;
|
|
@@ -4588,11 +4593,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4588
4593
|
last_activity_at: number;
|
|
4589
4594
|
timestamp: number;
|
|
4590
4595
|
};
|
|
4591
|
-
inbox: {
|
|
4592
|
-
name: string;
|
|
4593
|
-
id: number;
|
|
4594
|
-
};
|
|
4595
|
-
event: "message_created";
|
|
4596
4596
|
}>, z.ZodObject<{
|
|
4597
4597
|
account: z.ZodObject<{
|
|
4598
4598
|
id: z.ZodNumber;
|
|
@@ -4716,20 +4716,20 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4716
4716
|
pubsub_token: z.ZodString;
|
|
4717
4717
|
}, "strip", z.ZodTypeAny, {
|
|
4718
4718
|
id: number;
|
|
4719
|
+
inbox_id: number;
|
|
4719
4720
|
created_at: string;
|
|
4721
|
+
updated_at: string;
|
|
4720
4722
|
contact_id: number;
|
|
4721
|
-
inbox_id: number;
|
|
4722
4723
|
source_id: string | null;
|
|
4723
|
-
updated_at: string;
|
|
4724
4724
|
hmac_verified: boolean;
|
|
4725
4725
|
pubsub_token: string;
|
|
4726
4726
|
}, {
|
|
4727
4727
|
id: number;
|
|
4728
|
+
inbox_id: number;
|
|
4728
4729
|
created_at: string;
|
|
4730
|
+
updated_at: string;
|
|
4729
4731
|
contact_id: number;
|
|
4730
|
-
inbox_id: number;
|
|
4731
4732
|
source_id: string | null;
|
|
4732
|
-
updated_at: string;
|
|
4733
4733
|
hmac_verified: boolean;
|
|
4734
4734
|
pubsub_token: string;
|
|
4735
4735
|
}>;
|
|
@@ -4807,8 +4807,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4807
4807
|
customer_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4808
4808
|
}, "strip", z.ZodTypeAny, {
|
|
4809
4809
|
id: number;
|
|
4810
|
-
name?: string | null | undefined;
|
|
4811
4810
|
type?: string | undefined;
|
|
4811
|
+
name?: string | null | undefined;
|
|
4812
4812
|
email?: string | null | undefined;
|
|
4813
4813
|
thumbnail?: string | undefined;
|
|
4814
4814
|
phone_number?: string | null | undefined;
|
|
@@ -4820,8 +4820,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4820
4820
|
customer_stage_explanation?: string | null | undefined;
|
|
4821
4821
|
}, {
|
|
4822
4822
|
id: number;
|
|
4823
|
-
name?: string | null | undefined;
|
|
4824
4823
|
type?: string | undefined;
|
|
4824
|
+
name?: string | null | undefined;
|
|
4825
4825
|
email?: string | null | undefined;
|
|
4826
4826
|
thumbnail?: string | undefined;
|
|
4827
4827
|
phone_number?: string | null | undefined;
|
|
@@ -4833,23 +4833,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4833
4833
|
customer_stage_explanation?: string | null | undefined;
|
|
4834
4834
|
}>;
|
|
4835
4835
|
}, "strip", z.ZodTypeAny, {
|
|
4836
|
-
status: string;
|
|
4837
|
-
content: string | null;
|
|
4838
|
-
message_type: number;
|
|
4839
|
-
private: boolean;
|
|
4840
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4841
|
-
content_attributes: {
|
|
4842
|
-
in_reply_to?: unknown;
|
|
4843
|
-
} & {
|
|
4844
|
-
[k: string]: unknown;
|
|
4845
|
-
};
|
|
4846
4836
|
id: number;
|
|
4847
|
-
|
|
4848
|
-
|
|
4837
|
+
status: string;
|
|
4838
|
+
inbox_id: number;
|
|
4839
|
+
sender_id: number;
|
|
4840
|
+
account_id: number;
|
|
4849
4841
|
sender: {
|
|
4850
4842
|
id: number;
|
|
4851
|
-
name?: string | null | undefined;
|
|
4852
4843
|
type?: string | undefined;
|
|
4844
|
+
name?: string | null | undefined;
|
|
4853
4845
|
email?: string | null | undefined;
|
|
4854
4846
|
thumbnail?: string | undefined;
|
|
4855
4847
|
phone_number?: string | null | undefined;
|
|
@@ -4860,13 +4852,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4860
4852
|
customer_stage?: string | null | undefined;
|
|
4861
4853
|
customer_stage_explanation?: string | null | undefined;
|
|
4862
4854
|
};
|
|
4855
|
+
created_at: number;
|
|
4856
|
+
updated_at: string;
|
|
4857
|
+
content: string | null;
|
|
4858
|
+
message_type: number;
|
|
4859
|
+
private: boolean;
|
|
4860
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4861
|
+
content_attributes: {
|
|
4862
|
+
in_reply_to?: unknown;
|
|
4863
|
+
} & {
|
|
4864
|
+
[k: string]: unknown;
|
|
4865
|
+
};
|
|
4866
|
+
conversation_id: number;
|
|
4863
4867
|
additional_attributes: Record<string, unknown>;
|
|
4864
|
-
inbox_id: number;
|
|
4865
4868
|
source_id: string | null;
|
|
4866
|
-
updated_at: string;
|
|
4867
|
-
account_id: number;
|
|
4868
4869
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4869
|
-
sender_id: number;
|
|
4870
4870
|
external_source_ids: Record<string, unknown>;
|
|
4871
4871
|
processed_message_content: string | null;
|
|
4872
4872
|
sentiment: Record<string, unknown>;
|
|
@@ -4883,23 +4883,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4883
4883
|
assignee_id: number | null;
|
|
4884
4884
|
};
|
|
4885
4885
|
}, {
|
|
4886
|
-
status: string;
|
|
4887
|
-
content: string | null;
|
|
4888
|
-
message_type: number;
|
|
4889
|
-
private: boolean;
|
|
4890
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4891
|
-
content_attributes: {
|
|
4892
|
-
in_reply_to?: unknown;
|
|
4893
|
-
} & {
|
|
4894
|
-
[k: string]: unknown;
|
|
4895
|
-
};
|
|
4896
4886
|
id: number;
|
|
4897
|
-
|
|
4898
|
-
|
|
4887
|
+
status: string;
|
|
4888
|
+
inbox_id: number;
|
|
4889
|
+
sender_id: number;
|
|
4890
|
+
account_id: number;
|
|
4899
4891
|
sender: {
|
|
4900
4892
|
id: number;
|
|
4901
|
-
name?: string | null | undefined;
|
|
4902
4893
|
type?: string | undefined;
|
|
4894
|
+
name?: string | null | undefined;
|
|
4903
4895
|
email?: string | null | undefined;
|
|
4904
4896
|
thumbnail?: string | undefined;
|
|
4905
4897
|
phone_number?: string | null | undefined;
|
|
@@ -4910,13 +4902,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4910
4902
|
customer_stage?: string | null | undefined;
|
|
4911
4903
|
customer_stage_explanation?: string | null | undefined;
|
|
4912
4904
|
};
|
|
4905
|
+
created_at: number;
|
|
4906
|
+
updated_at: string;
|
|
4907
|
+
content: string | null;
|
|
4908
|
+
message_type: number;
|
|
4909
|
+
private: boolean;
|
|
4910
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4911
|
+
content_attributes: {
|
|
4912
|
+
in_reply_to?: unknown;
|
|
4913
|
+
} & {
|
|
4914
|
+
[k: string]: unknown;
|
|
4915
|
+
};
|
|
4916
|
+
conversation_id: number;
|
|
4913
4917
|
additional_attributes: Record<string, unknown>;
|
|
4914
|
-
inbox_id: number;
|
|
4915
4918
|
source_id: string | null;
|
|
4916
|
-
updated_at: string;
|
|
4917
|
-
account_id: number;
|
|
4918
4919
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4919
|
-
sender_id: number;
|
|
4920
4920
|
external_source_ids: Record<string, unknown>;
|
|
4921
4921
|
processed_message_content: string | null;
|
|
4922
4922
|
sentiment: Record<string, unknown>;
|
|
@@ -5053,9 +5053,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5053
5053
|
created_at: z.ZodNumber;
|
|
5054
5054
|
updated_at: z.ZodNumber;
|
|
5055
5055
|
}, "strip", z.ZodTypeAny, {
|
|
5056
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5057
5056
|
id: number;
|
|
5057
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5058
|
+
inbox_id: number;
|
|
5058
5059
|
created_at: number;
|
|
5060
|
+
updated_at: number;
|
|
5059
5061
|
priority: string | null;
|
|
5060
5062
|
additional_attributes: {
|
|
5061
5063
|
browser?: {
|
|
@@ -5074,38 +5076,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5074
5076
|
[k: string]: unknown;
|
|
5075
5077
|
};
|
|
5076
5078
|
custom_attributes: Record<string, unknown>;
|
|
5077
|
-
inbox_id: number;
|
|
5078
|
-
updated_at: number;
|
|
5079
5079
|
channel: string;
|
|
5080
5080
|
can_reply: boolean;
|
|
5081
5081
|
contact_inbox: {
|
|
5082
5082
|
id: number;
|
|
5083
|
+
inbox_id: number;
|
|
5083
5084
|
created_at: string;
|
|
5085
|
+
updated_at: string;
|
|
5084
5086
|
contact_id: number;
|
|
5085
|
-
inbox_id: number;
|
|
5086
5087
|
source_id: string | null;
|
|
5087
|
-
updated_at: string;
|
|
5088
5088
|
hmac_verified: boolean;
|
|
5089
5089
|
pubsub_token: string;
|
|
5090
5090
|
};
|
|
5091
5091
|
messages: {
|
|
5092
|
-
status: string;
|
|
5093
|
-
content: string | null;
|
|
5094
|
-
message_type: number;
|
|
5095
|
-
private: boolean;
|
|
5096
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5097
|
-
content_attributes: {
|
|
5098
|
-
in_reply_to?: unknown;
|
|
5099
|
-
} & {
|
|
5100
|
-
[k: string]: unknown;
|
|
5101
|
-
};
|
|
5102
5092
|
id: number;
|
|
5103
|
-
|
|
5104
|
-
|
|
5093
|
+
status: string;
|
|
5094
|
+
inbox_id: number;
|
|
5095
|
+
sender_id: number;
|
|
5096
|
+
account_id: number;
|
|
5105
5097
|
sender: {
|
|
5106
5098
|
id: number;
|
|
5107
|
-
name?: string | null | undefined;
|
|
5108
5099
|
type?: string | undefined;
|
|
5100
|
+
name?: string | null | undefined;
|
|
5109
5101
|
email?: string | null | undefined;
|
|
5110
5102
|
thumbnail?: string | undefined;
|
|
5111
5103
|
phone_number?: string | null | undefined;
|
|
@@ -5116,13 +5108,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5116
5108
|
customer_stage?: string | null | undefined;
|
|
5117
5109
|
customer_stage_explanation?: string | null | undefined;
|
|
5118
5110
|
};
|
|
5111
|
+
created_at: number;
|
|
5112
|
+
updated_at: string;
|
|
5113
|
+
content: string | null;
|
|
5114
|
+
message_type: number;
|
|
5115
|
+
private: boolean;
|
|
5116
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5117
|
+
content_attributes: {
|
|
5118
|
+
in_reply_to?: unknown;
|
|
5119
|
+
} & {
|
|
5120
|
+
[k: string]: unknown;
|
|
5121
|
+
};
|
|
5122
|
+
conversation_id: number;
|
|
5119
5123
|
additional_attributes: Record<string, unknown>;
|
|
5120
|
-
inbox_id: number;
|
|
5121
5124
|
source_id: string | null;
|
|
5122
|
-
updated_at: string;
|
|
5123
|
-
account_id: number;
|
|
5124
5125
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5125
|
-
sender_id: number;
|
|
5126
5126
|
external_source_ids: Record<string, unknown>;
|
|
5127
5127
|
processed_message_content: string | null;
|
|
5128
5128
|
sentiment: Record<string, unknown>;
|
|
@@ -5176,9 +5176,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5176
5176
|
last_activity_at: number;
|
|
5177
5177
|
timestamp: number;
|
|
5178
5178
|
}, {
|
|
5179
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5180
5179
|
id: number;
|
|
5180
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5181
|
+
inbox_id: number;
|
|
5181
5182
|
created_at: number;
|
|
5183
|
+
updated_at: number;
|
|
5182
5184
|
priority: string | null;
|
|
5183
5185
|
additional_attributes: {
|
|
5184
5186
|
browser?: {
|
|
@@ -5197,38 +5199,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5197
5199
|
[k: string]: unknown;
|
|
5198
5200
|
};
|
|
5199
5201
|
custom_attributes: Record<string, unknown>;
|
|
5200
|
-
inbox_id: number;
|
|
5201
|
-
updated_at: number;
|
|
5202
5202
|
channel: string;
|
|
5203
5203
|
can_reply: boolean;
|
|
5204
5204
|
contact_inbox: {
|
|
5205
5205
|
id: number;
|
|
5206
|
+
inbox_id: number;
|
|
5206
5207
|
created_at: string;
|
|
5208
|
+
updated_at: string;
|
|
5207
5209
|
contact_id: number;
|
|
5208
|
-
inbox_id: number;
|
|
5209
5210
|
source_id: string | null;
|
|
5210
|
-
updated_at: string;
|
|
5211
5211
|
hmac_verified: boolean;
|
|
5212
5212
|
pubsub_token: string;
|
|
5213
5213
|
};
|
|
5214
5214
|
messages: {
|
|
5215
|
-
status: string;
|
|
5216
|
-
content: string | null;
|
|
5217
|
-
message_type: number;
|
|
5218
|
-
private: boolean;
|
|
5219
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5220
|
-
content_attributes: {
|
|
5221
|
-
in_reply_to?: unknown;
|
|
5222
|
-
} & {
|
|
5223
|
-
[k: string]: unknown;
|
|
5224
|
-
};
|
|
5225
5215
|
id: number;
|
|
5226
|
-
|
|
5227
|
-
|
|
5216
|
+
status: string;
|
|
5217
|
+
inbox_id: number;
|
|
5218
|
+
sender_id: number;
|
|
5219
|
+
account_id: number;
|
|
5228
5220
|
sender: {
|
|
5229
5221
|
id: number;
|
|
5230
|
-
name?: string | null | undefined;
|
|
5231
5222
|
type?: string | undefined;
|
|
5223
|
+
name?: string | null | undefined;
|
|
5232
5224
|
email?: string | null | undefined;
|
|
5233
5225
|
thumbnail?: string | undefined;
|
|
5234
5226
|
phone_number?: string | null | undefined;
|
|
@@ -5239,13 +5231,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5239
5231
|
customer_stage?: string | null | undefined;
|
|
5240
5232
|
customer_stage_explanation?: string | null | undefined;
|
|
5241
5233
|
};
|
|
5234
|
+
created_at: number;
|
|
5235
|
+
updated_at: string;
|
|
5236
|
+
content: string | null;
|
|
5237
|
+
message_type: number;
|
|
5238
|
+
private: boolean;
|
|
5239
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5240
|
+
content_attributes: {
|
|
5241
|
+
in_reply_to?: unknown;
|
|
5242
|
+
} & {
|
|
5243
|
+
[k: string]: unknown;
|
|
5244
|
+
};
|
|
5245
|
+
conversation_id: number;
|
|
5242
5246
|
additional_attributes: Record<string, unknown>;
|
|
5243
|
-
inbox_id: number;
|
|
5244
5247
|
source_id: string | null;
|
|
5245
|
-
updated_at: string;
|
|
5246
|
-
account_id: number;
|
|
5247
5248
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5248
|
-
sender_id: number;
|
|
5249
5249
|
external_source_ids: Record<string, unknown>;
|
|
5250
5250
|
processed_message_content: string | null;
|
|
5251
5251
|
sentiment: Record<string, unknown>;
|
|
@@ -5377,18 +5377,13 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5377
5377
|
} & {
|
|
5378
5378
|
event: z.ZodLiteral<"message_updated">;
|
|
5379
5379
|
}, "strip", z.ZodTypeAny, {
|
|
5380
|
+
id: number;
|
|
5380
5381
|
status: string;
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
content_attributes: {
|
|
5386
|
-
in_reply_to?: unknown;
|
|
5387
|
-
} & {
|
|
5388
|
-
[k: string]: unknown;
|
|
5382
|
+
event: "message_updated";
|
|
5383
|
+
inbox: {
|
|
5384
|
+
name: string;
|
|
5385
|
+
id: number;
|
|
5389
5386
|
};
|
|
5390
|
-
id: number;
|
|
5391
|
-
created_at: string;
|
|
5392
5387
|
sender: {
|
|
5393
5388
|
id: number;
|
|
5394
5389
|
name?: string | null | undefined;
|
|
@@ -5407,6 +5402,16 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5407
5402
|
} | undefined;
|
|
5408
5403
|
avatar?: string | undefined;
|
|
5409
5404
|
};
|
|
5405
|
+
created_at: string;
|
|
5406
|
+
content: string | null;
|
|
5407
|
+
message_type: "incoming" | "outgoing";
|
|
5408
|
+
private: boolean;
|
|
5409
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5410
|
+
content_attributes: {
|
|
5411
|
+
in_reply_to?: unknown;
|
|
5412
|
+
} & {
|
|
5413
|
+
[k: string]: unknown;
|
|
5414
|
+
};
|
|
5410
5415
|
additional_attributes: Record<string, unknown>;
|
|
5411
5416
|
source_id: string | null;
|
|
5412
5417
|
account: {
|
|
@@ -5414,9 +5419,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5414
5419
|
id: number;
|
|
5415
5420
|
};
|
|
5416
5421
|
conversation: {
|
|
5417
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5418
5422
|
id: number;
|
|
5423
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5424
|
+
inbox_id: number;
|
|
5419
5425
|
created_at: number;
|
|
5426
|
+
updated_at: number;
|
|
5420
5427
|
priority: string | null;
|
|
5421
5428
|
additional_attributes: {
|
|
5422
5429
|
browser?: {
|
|
@@ -5435,38 +5442,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5435
5442
|
[k: string]: unknown;
|
|
5436
5443
|
};
|
|
5437
5444
|
custom_attributes: Record<string, unknown>;
|
|
5438
|
-
inbox_id: number;
|
|
5439
|
-
updated_at: number;
|
|
5440
5445
|
channel: string;
|
|
5441
5446
|
can_reply: boolean;
|
|
5442
5447
|
contact_inbox: {
|
|
5443
5448
|
id: number;
|
|
5449
|
+
inbox_id: number;
|
|
5444
5450
|
created_at: string;
|
|
5451
|
+
updated_at: string;
|
|
5445
5452
|
contact_id: number;
|
|
5446
|
-
inbox_id: number;
|
|
5447
5453
|
source_id: string | null;
|
|
5448
|
-
updated_at: string;
|
|
5449
5454
|
hmac_verified: boolean;
|
|
5450
5455
|
pubsub_token: string;
|
|
5451
5456
|
};
|
|
5452
5457
|
messages: {
|
|
5453
|
-
status: string;
|
|
5454
|
-
content: string | null;
|
|
5455
|
-
message_type: number;
|
|
5456
|
-
private: boolean;
|
|
5457
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5458
|
-
content_attributes: {
|
|
5459
|
-
in_reply_to?: unknown;
|
|
5460
|
-
} & {
|
|
5461
|
-
[k: string]: unknown;
|
|
5462
|
-
};
|
|
5463
5458
|
id: number;
|
|
5464
|
-
|
|
5465
|
-
|
|
5459
|
+
status: string;
|
|
5460
|
+
inbox_id: number;
|
|
5461
|
+
sender_id: number;
|
|
5462
|
+
account_id: number;
|
|
5466
5463
|
sender: {
|
|
5467
5464
|
id: number;
|
|
5468
|
-
name?: string | null | undefined;
|
|
5469
5465
|
type?: string | undefined;
|
|
5466
|
+
name?: string | null | undefined;
|
|
5470
5467
|
email?: string | null | undefined;
|
|
5471
5468
|
thumbnail?: string | undefined;
|
|
5472
5469
|
phone_number?: string | null | undefined;
|
|
@@ -5477,13 +5474,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5477
5474
|
customer_stage?: string | null | undefined;
|
|
5478
5475
|
customer_stage_explanation?: string | null | undefined;
|
|
5479
5476
|
};
|
|
5477
|
+
created_at: number;
|
|
5478
|
+
updated_at: string;
|
|
5479
|
+
content: string | null;
|
|
5480
|
+
message_type: number;
|
|
5481
|
+
private: boolean;
|
|
5482
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5483
|
+
content_attributes: {
|
|
5484
|
+
in_reply_to?: unknown;
|
|
5485
|
+
} & {
|
|
5486
|
+
[k: string]: unknown;
|
|
5487
|
+
};
|
|
5488
|
+
conversation_id: number;
|
|
5480
5489
|
additional_attributes: Record<string, unknown>;
|
|
5481
|
-
inbox_id: number;
|
|
5482
5490
|
source_id: string | null;
|
|
5483
|
-
updated_at: string;
|
|
5484
|
-
account_id: number;
|
|
5485
5491
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5486
|
-
sender_id: number;
|
|
5487
5492
|
external_source_ids: Record<string, unknown>;
|
|
5488
5493
|
processed_message_content: string | null;
|
|
5489
5494
|
sentiment: Record<string, unknown>;
|
|
@@ -5537,24 +5542,14 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5537
5542
|
last_activity_at: number;
|
|
5538
5543
|
timestamp: number;
|
|
5539
5544
|
};
|
|
5545
|
+
}, {
|
|
5546
|
+
id: number;
|
|
5547
|
+
status: string;
|
|
5548
|
+
event: "message_updated";
|
|
5540
5549
|
inbox: {
|
|
5541
5550
|
name: string;
|
|
5542
5551
|
id: number;
|
|
5543
5552
|
};
|
|
5544
|
-
event: "message_updated";
|
|
5545
|
-
}, {
|
|
5546
|
-
status: string;
|
|
5547
|
-
content: string | null;
|
|
5548
|
-
message_type: "incoming" | "outgoing";
|
|
5549
|
-
private: boolean;
|
|
5550
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5551
|
-
content_attributes: {
|
|
5552
|
-
in_reply_to?: unknown;
|
|
5553
|
-
} & {
|
|
5554
|
-
[k: string]: unknown;
|
|
5555
|
-
};
|
|
5556
|
-
id: number;
|
|
5557
|
-
created_at: string;
|
|
5558
5553
|
sender: {
|
|
5559
5554
|
id: number;
|
|
5560
5555
|
name?: string | null | undefined;
|
|
@@ -5573,6 +5568,16 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5573
5568
|
} | undefined;
|
|
5574
5569
|
avatar?: string | undefined;
|
|
5575
5570
|
};
|
|
5571
|
+
created_at: string;
|
|
5572
|
+
content: string | null;
|
|
5573
|
+
message_type: "incoming" | "outgoing";
|
|
5574
|
+
private: boolean;
|
|
5575
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5576
|
+
content_attributes: {
|
|
5577
|
+
in_reply_to?: unknown;
|
|
5578
|
+
} & {
|
|
5579
|
+
[k: string]: unknown;
|
|
5580
|
+
};
|
|
5576
5581
|
additional_attributes: Record<string, unknown>;
|
|
5577
5582
|
source_id: string | null;
|
|
5578
5583
|
account: {
|
|
@@ -5580,9 +5585,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5580
5585
|
id: number;
|
|
5581
5586
|
};
|
|
5582
5587
|
conversation: {
|
|
5583
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5584
5588
|
id: number;
|
|
5589
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5590
|
+
inbox_id: number;
|
|
5585
5591
|
created_at: number;
|
|
5592
|
+
updated_at: number;
|
|
5586
5593
|
priority: string | null;
|
|
5587
5594
|
additional_attributes: {
|
|
5588
5595
|
browser?: {
|
|
@@ -5601,38 +5608,28 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5601
5608
|
[k: string]: unknown;
|
|
5602
5609
|
};
|
|
5603
5610
|
custom_attributes: Record<string, unknown>;
|
|
5604
|
-
inbox_id: number;
|
|
5605
|
-
updated_at: number;
|
|
5606
5611
|
channel: string;
|
|
5607
5612
|
can_reply: boolean;
|
|
5608
5613
|
contact_inbox: {
|
|
5609
5614
|
id: number;
|
|
5615
|
+
inbox_id: number;
|
|
5610
5616
|
created_at: string;
|
|
5617
|
+
updated_at: string;
|
|
5611
5618
|
contact_id: number;
|
|
5612
|
-
inbox_id: number;
|
|
5613
5619
|
source_id: string | null;
|
|
5614
|
-
updated_at: string;
|
|
5615
5620
|
hmac_verified: boolean;
|
|
5616
5621
|
pubsub_token: string;
|
|
5617
5622
|
};
|
|
5618
5623
|
messages: {
|
|
5619
|
-
status: string;
|
|
5620
|
-
content: string | null;
|
|
5621
|
-
message_type: number;
|
|
5622
|
-
private: boolean;
|
|
5623
|
-
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5624
|
-
content_attributes: {
|
|
5625
|
-
in_reply_to?: unknown;
|
|
5626
|
-
} & {
|
|
5627
|
-
[k: string]: unknown;
|
|
5628
|
-
};
|
|
5629
5624
|
id: number;
|
|
5630
|
-
|
|
5631
|
-
|
|
5625
|
+
status: string;
|
|
5626
|
+
inbox_id: number;
|
|
5627
|
+
sender_id: number;
|
|
5628
|
+
account_id: number;
|
|
5632
5629
|
sender: {
|
|
5633
5630
|
id: number;
|
|
5634
|
-
name?: string | null | undefined;
|
|
5635
5631
|
type?: string | undefined;
|
|
5632
|
+
name?: string | null | undefined;
|
|
5636
5633
|
email?: string | null | undefined;
|
|
5637
5634
|
thumbnail?: string | undefined;
|
|
5638
5635
|
phone_number?: string | null | undefined;
|
|
@@ -5643,13 +5640,21 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5643
5640
|
customer_stage?: string | null | undefined;
|
|
5644
5641
|
customer_stage_explanation?: string | null | undefined;
|
|
5645
5642
|
};
|
|
5643
|
+
created_at: number;
|
|
5644
|
+
updated_at: string;
|
|
5645
|
+
content: string | null;
|
|
5646
|
+
message_type: number;
|
|
5647
|
+
private: boolean;
|
|
5648
|
+
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5649
|
+
content_attributes: {
|
|
5650
|
+
in_reply_to?: unknown;
|
|
5651
|
+
} & {
|
|
5652
|
+
[k: string]: unknown;
|
|
5653
|
+
};
|
|
5654
|
+
conversation_id: number;
|
|
5646
5655
|
additional_attributes: Record<string, unknown>;
|
|
5647
|
-
inbox_id: number;
|
|
5648
5656
|
source_id: string | null;
|
|
5649
|
-
updated_at: string;
|
|
5650
|
-
account_id: number;
|
|
5651
5657
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5652
|
-
sender_id: number;
|
|
5653
5658
|
external_source_ids: Record<string, unknown>;
|
|
5654
5659
|
processed_message_content: string | null;
|
|
5655
5660
|
sentiment: Record<string, unknown>;
|
|
@@ -5703,11 +5708,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5703
5708
|
last_activity_at: number;
|
|
5704
5709
|
timestamp: number;
|
|
5705
5710
|
};
|
|
5706
|
-
inbox: {
|
|
5707
|
-
name: string;
|
|
5708
|
-
id: number;
|
|
5709
|
-
};
|
|
5710
|
-
event: "message_updated";
|
|
5711
5711
|
}>]>;
|
|
5712
5712
|
/**
|
|
5713
5713
|
* TypeScript Types (inferred from Zod schemas)
|