@voltade/envoy-sdk 1.2.9 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -2
- package/dist/client.js.map +1 -1
- package/dist/resources/companies/index.d.ts +6 -0
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +5 -0
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +14 -14
- package/dist/resources/company-members/index.d.ts +3 -3
- package/dist/resources/company-members/index.d.ts.map +1 -1
- package/dist/resources/company-members/index.js +6 -6
- package/dist/resources/company-members/index.js.map +1 -1
- package/dist/resources/company-members/types.d.ts +4 -4
- package/dist/resources/conversations/types.d.ts +105 -105
- package/dist/resources/inboxes/types.d.ts +6 -6
- package/dist/resources/orders/types.d.ts +7 -7
- package/dist/resources/webhooks/types.d.ts +766 -766
- package/package.json +1 -1
|
@@ -157,8 +157,8 @@ export declare const WebhookSenderSchema: z.ZodObject<{
|
|
|
157
157
|
id: number;
|
|
158
158
|
name?: string | null | undefined;
|
|
159
159
|
email?: string | null | undefined;
|
|
160
|
-
phone_number?: string | null | undefined;
|
|
161
160
|
thumbnail?: string | undefined;
|
|
161
|
+
phone_number?: string | null | undefined;
|
|
162
162
|
identifier?: string | null | undefined;
|
|
163
163
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
164
164
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -174,8 +174,8 @@ export declare const WebhookSenderSchema: z.ZodObject<{
|
|
|
174
174
|
id: number;
|
|
175
175
|
name?: string | null | undefined;
|
|
176
176
|
email?: string | null | undefined;
|
|
177
|
-
phone_number?: string | null | undefined;
|
|
178
177
|
thumbnail?: string | undefined;
|
|
178
|
+
phone_number?: string | null | undefined;
|
|
179
179
|
identifier?: string | null | undefined;
|
|
180
180
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
181
181
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -237,11 +237,11 @@ 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
|
+
type?: string | undefined;
|
|
240
241
|
name?: string | null | undefined;
|
|
241
242
|
email?: string | null | undefined;
|
|
242
|
-
phone_number?: string | null | undefined;
|
|
243
|
-
type?: string | undefined;
|
|
244
243
|
thumbnail?: string | undefined;
|
|
244
|
+
phone_number?: string | null | undefined;
|
|
245
245
|
identifier?: string | null | undefined;
|
|
246
246
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
247
247
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -250,11 +250,11 @@ export declare const MessageSenderSchema: z.ZodObject<{
|
|
|
250
250
|
customer_stage_explanation?: string | null | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: number;
|
|
253
|
+
type?: string | undefined;
|
|
253
254
|
name?: string | null | undefined;
|
|
254
255
|
email?: string | null | undefined;
|
|
255
|
-
phone_number?: string | null | undefined;
|
|
256
|
-
type?: string | undefined;
|
|
257
256
|
thumbnail?: string | undefined;
|
|
257
|
+
phone_number?: string | null | undefined;
|
|
258
258
|
identifier?: string | null | undefined;
|
|
259
259
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
260
260
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -334,11 +334,11 @@ 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
|
+
type?: string | undefined;
|
|
337
338
|
name?: string | null | undefined;
|
|
338
339
|
email?: string | null | undefined;
|
|
339
|
-
phone_number?: string | null | undefined;
|
|
340
|
-
type?: string | undefined;
|
|
341
340
|
thumbnail?: string | undefined;
|
|
341
|
+
phone_number?: string | null | undefined;
|
|
342
342
|
identifier?: string | null | undefined;
|
|
343
343
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
344
344
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -347,11 +347,11 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
347
347
|
customer_stage_explanation?: string | null | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
id: number;
|
|
350
|
+
type?: string | undefined;
|
|
350
351
|
name?: string | null | undefined;
|
|
351
352
|
email?: string | null | undefined;
|
|
352
|
-
phone_number?: string | null | undefined;
|
|
353
|
-
type?: string | undefined;
|
|
354
353
|
thumbnail?: string | undefined;
|
|
354
|
+
phone_number?: string | null | undefined;
|
|
355
355
|
identifier?: string | null | undefined;
|
|
356
356
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
357
357
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -360,28 +360,26 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
360
360
|
customer_stage_explanation?: string | null | undefined;
|
|
361
361
|
}>;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
id: number;
|
|
364
|
-
status: string;
|
|
365
|
-
account_id: number;
|
|
366
|
-
created_at: number;
|
|
367
|
-
updated_at: string;
|
|
368
363
|
content: string | null;
|
|
369
364
|
message_type: number;
|
|
370
365
|
private: boolean;
|
|
371
366
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
367
|
+
status: string;
|
|
372
368
|
content_attributes: {
|
|
373
369
|
in_reply_to?: unknown;
|
|
374
370
|
} & {
|
|
375
371
|
[k: string]: unknown;
|
|
376
372
|
};
|
|
373
|
+
id: number;
|
|
374
|
+
created_at: number;
|
|
377
375
|
conversation_id: number;
|
|
378
376
|
sender: {
|
|
379
377
|
id: number;
|
|
378
|
+
type?: string | undefined;
|
|
380
379
|
name?: string | null | undefined;
|
|
381
380
|
email?: string | null | undefined;
|
|
382
|
-
phone_number?: string | null | undefined;
|
|
383
|
-
type?: string | undefined;
|
|
384
381
|
thumbnail?: string | undefined;
|
|
382
|
+
phone_number?: string | null | undefined;
|
|
385
383
|
identifier?: string | null | undefined;
|
|
386
384
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
387
385
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -392,6 +390,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
392
390
|
additional_attributes: Record<string, unknown>;
|
|
393
391
|
inbox_id: number;
|
|
394
392
|
source_id: string | null;
|
|
393
|
+
updated_at: string;
|
|
394
|
+
account_id: number;
|
|
395
395
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
396
396
|
sender_id: number;
|
|
397
397
|
external_source_ids: Record<string, unknown>;
|
|
@@ -410,28 +410,26 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
410
410
|
assignee_id: number | null;
|
|
411
411
|
};
|
|
412
412
|
}, {
|
|
413
|
-
id: number;
|
|
414
|
-
status: string;
|
|
415
|
-
account_id: number;
|
|
416
|
-
created_at: number;
|
|
417
|
-
updated_at: string;
|
|
418
413
|
content: string | null;
|
|
419
414
|
message_type: number;
|
|
420
415
|
private: boolean;
|
|
421
416
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
417
|
+
status: string;
|
|
422
418
|
content_attributes: {
|
|
423
419
|
in_reply_to?: unknown;
|
|
424
420
|
} & {
|
|
425
421
|
[k: string]: unknown;
|
|
426
422
|
};
|
|
423
|
+
id: number;
|
|
424
|
+
created_at: number;
|
|
427
425
|
conversation_id: number;
|
|
428
426
|
sender: {
|
|
429
427
|
id: number;
|
|
428
|
+
type?: string | undefined;
|
|
430
429
|
name?: string | null | undefined;
|
|
431
430
|
email?: string | null | undefined;
|
|
432
|
-
phone_number?: string | null | undefined;
|
|
433
|
-
type?: string | undefined;
|
|
434
431
|
thumbnail?: string | undefined;
|
|
432
|
+
phone_number?: string | null | undefined;
|
|
435
433
|
identifier?: string | null | undefined;
|
|
436
434
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
437
435
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -442,6 +440,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
442
440
|
additional_attributes: Record<string, unknown>;
|
|
443
441
|
inbox_id: number;
|
|
444
442
|
source_id: string | null;
|
|
443
|
+
updated_at: string;
|
|
444
|
+
account_id: number;
|
|
445
445
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
446
446
|
sender_id: number;
|
|
447
447
|
external_source_ids: Record<string, unknown>;
|
|
@@ -478,8 +478,8 @@ export declare const WebhookConversationMetaSchema: z.ZodObject<{
|
|
|
478
478
|
id: number;
|
|
479
479
|
name: string | null;
|
|
480
480
|
email: string | null;
|
|
481
|
-
phone_number: string | null;
|
|
482
481
|
thumbnail: string;
|
|
482
|
+
phone_number: string | null;
|
|
483
483
|
identifier: string | null;
|
|
484
484
|
additional_attributes: Record<string, unknown>;
|
|
485
485
|
custom_attributes: Record<string, unknown>;
|
|
@@ -491,8 +491,8 @@ export declare const WebhookConversationMetaSchema: z.ZodObject<{
|
|
|
491
491
|
id: number;
|
|
492
492
|
name: string | null;
|
|
493
493
|
email: string | null;
|
|
494
|
-
phone_number: string | null;
|
|
495
494
|
thumbnail: string;
|
|
495
|
+
phone_number: string | null;
|
|
496
496
|
identifier: string | null;
|
|
497
497
|
additional_attributes: Record<string, unknown>;
|
|
498
498
|
custom_attributes: Record<string, unknown>;
|
|
@@ -521,8 +521,8 @@ export declare const WebhookConversationMetaSchema: z.ZodObject<{
|
|
|
521
521
|
id: number;
|
|
522
522
|
name: string | null;
|
|
523
523
|
email: string | null;
|
|
524
|
-
phone_number: string | null;
|
|
525
524
|
thumbnail: string;
|
|
525
|
+
phone_number: string | null;
|
|
526
526
|
identifier: string | null;
|
|
527
527
|
additional_attributes: Record<string, unknown>;
|
|
528
528
|
custom_attributes: Record<string, unknown>;
|
|
@@ -543,8 +543,8 @@ export declare const WebhookConversationMetaSchema: z.ZodObject<{
|
|
|
543
543
|
id: number;
|
|
544
544
|
name: string | null;
|
|
545
545
|
email: string | null;
|
|
546
|
-
phone_number: string | null;
|
|
547
546
|
thumbnail: string;
|
|
547
|
+
phone_number: string | null;
|
|
548
548
|
identifier: string | null;
|
|
549
549
|
additional_attributes: Record<string, unknown>;
|
|
550
550
|
custom_attributes: Record<string, unknown>;
|
|
@@ -664,19 +664,19 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
664
664
|
}, "strip", z.ZodTypeAny, {
|
|
665
665
|
id: number;
|
|
666
666
|
created_at: string;
|
|
667
|
-
updated_at: string;
|
|
668
667
|
contact_id: number;
|
|
669
668
|
inbox_id: number;
|
|
670
669
|
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
675
|
created_at: string;
|
|
676
|
-
updated_at: string;
|
|
677
676
|
contact_id: number;
|
|
678
677
|
inbox_id: number;
|
|
679
678
|
source_id: string | null;
|
|
679
|
+
updated_at: string;
|
|
680
680
|
hmac_verified: boolean;
|
|
681
681
|
pubsub_token: string;
|
|
682
682
|
}>;
|
|
@@ -754,11 +754,11 @@ 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
|
+
type?: string | undefined;
|
|
757
758
|
name?: string | null | undefined;
|
|
758
759
|
email?: string | null | undefined;
|
|
759
|
-
phone_number?: string | null | undefined;
|
|
760
|
-
type?: string | undefined;
|
|
761
760
|
thumbnail?: string | undefined;
|
|
761
|
+
phone_number?: string | null | undefined;
|
|
762
762
|
identifier?: string | null | undefined;
|
|
763
763
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
764
764
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -767,11 +767,11 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
767
767
|
customer_stage_explanation?: string | null | undefined;
|
|
768
768
|
}, {
|
|
769
769
|
id: number;
|
|
770
|
+
type?: string | undefined;
|
|
770
771
|
name?: string | null | undefined;
|
|
771
772
|
email?: string | null | undefined;
|
|
772
|
-
phone_number?: string | null | undefined;
|
|
773
|
-
type?: string | undefined;
|
|
774
773
|
thumbnail?: string | undefined;
|
|
774
|
+
phone_number?: string | null | undefined;
|
|
775
775
|
identifier?: string | null | undefined;
|
|
776
776
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
777
777
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -780,28 +780,26 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
780
780
|
customer_stage_explanation?: string | null | undefined;
|
|
781
781
|
}>;
|
|
782
782
|
}, "strip", z.ZodTypeAny, {
|
|
783
|
-
id: number;
|
|
784
|
-
status: string;
|
|
785
|
-
account_id: number;
|
|
786
|
-
created_at: number;
|
|
787
|
-
updated_at: string;
|
|
788
783
|
content: string | null;
|
|
789
784
|
message_type: number;
|
|
790
785
|
private: boolean;
|
|
791
786
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
787
|
+
status: string;
|
|
792
788
|
content_attributes: {
|
|
793
789
|
in_reply_to?: unknown;
|
|
794
790
|
} & {
|
|
795
791
|
[k: string]: unknown;
|
|
796
792
|
};
|
|
793
|
+
id: number;
|
|
794
|
+
created_at: number;
|
|
797
795
|
conversation_id: number;
|
|
798
796
|
sender: {
|
|
799
797
|
id: number;
|
|
798
|
+
type?: string | undefined;
|
|
800
799
|
name?: string | null | undefined;
|
|
801
800
|
email?: string | null | undefined;
|
|
802
|
-
phone_number?: string | null | undefined;
|
|
803
|
-
type?: string | undefined;
|
|
804
801
|
thumbnail?: string | undefined;
|
|
802
|
+
phone_number?: string | null | undefined;
|
|
805
803
|
identifier?: string | null | undefined;
|
|
806
804
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
807
805
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -812,6 +810,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
812
810
|
additional_attributes: Record<string, unknown>;
|
|
813
811
|
inbox_id: number;
|
|
814
812
|
source_id: string | null;
|
|
813
|
+
updated_at: string;
|
|
814
|
+
account_id: number;
|
|
815
815
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
816
816
|
sender_id: number;
|
|
817
817
|
external_source_ids: Record<string, unknown>;
|
|
@@ -830,28 +830,26 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
830
830
|
assignee_id: number | null;
|
|
831
831
|
};
|
|
832
832
|
}, {
|
|
833
|
-
id: number;
|
|
834
|
-
status: string;
|
|
835
|
-
account_id: number;
|
|
836
|
-
created_at: number;
|
|
837
|
-
updated_at: string;
|
|
838
833
|
content: string | null;
|
|
839
834
|
message_type: number;
|
|
840
835
|
private: boolean;
|
|
841
836
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
837
|
+
status: string;
|
|
842
838
|
content_attributes: {
|
|
843
839
|
in_reply_to?: unknown;
|
|
844
840
|
} & {
|
|
845
841
|
[k: string]: unknown;
|
|
846
842
|
};
|
|
843
|
+
id: number;
|
|
844
|
+
created_at: number;
|
|
847
845
|
conversation_id: number;
|
|
848
846
|
sender: {
|
|
849
847
|
id: number;
|
|
848
|
+
type?: string | undefined;
|
|
850
849
|
name?: string | null | undefined;
|
|
851
850
|
email?: string | null | undefined;
|
|
852
|
-
phone_number?: string | null | undefined;
|
|
853
|
-
type?: string | undefined;
|
|
854
851
|
thumbnail?: string | undefined;
|
|
852
|
+
phone_number?: string | null | undefined;
|
|
855
853
|
identifier?: string | null | undefined;
|
|
856
854
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
857
855
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -862,6 +860,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
862
860
|
additional_attributes: Record<string, unknown>;
|
|
863
861
|
inbox_id: number;
|
|
864
862
|
source_id: string | null;
|
|
863
|
+
updated_at: string;
|
|
864
|
+
account_id: number;
|
|
865
865
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
866
866
|
sender_id: number;
|
|
867
867
|
external_source_ids: Record<string, unknown>;
|
|
@@ -899,8 +899,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
899
899
|
id: number;
|
|
900
900
|
name: string | null;
|
|
901
901
|
email: string | null;
|
|
902
|
-
phone_number: string | null;
|
|
903
902
|
thumbnail: string;
|
|
903
|
+
phone_number: string | null;
|
|
904
904
|
identifier: string | null;
|
|
905
905
|
additional_attributes: Record<string, unknown>;
|
|
906
906
|
custom_attributes: Record<string, unknown>;
|
|
@@ -912,8 +912,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
912
912
|
id: number;
|
|
913
913
|
name: string | null;
|
|
914
914
|
email: string | null;
|
|
915
|
-
phone_number: string | null;
|
|
916
915
|
thumbnail: string;
|
|
916
|
+
phone_number: string | null;
|
|
917
917
|
identifier: string | null;
|
|
918
918
|
additional_attributes: Record<string, unknown>;
|
|
919
919
|
custom_attributes: Record<string, unknown>;
|
|
@@ -942,8 +942,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
942
942
|
id: number;
|
|
943
943
|
name: string | null;
|
|
944
944
|
email: string | null;
|
|
945
|
-
phone_number: string | null;
|
|
946
945
|
thumbnail: string;
|
|
946
|
+
phone_number: string | null;
|
|
947
947
|
identifier: string | null;
|
|
948
948
|
additional_attributes: Record<string, unknown>;
|
|
949
949
|
custom_attributes: Record<string, unknown>;
|
|
@@ -964,8 +964,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
964
964
|
id: number;
|
|
965
965
|
name: string | null;
|
|
966
966
|
email: string | null;
|
|
967
|
-
phone_number: string | null;
|
|
968
967
|
thumbnail: string;
|
|
968
|
+
phone_number: string | null;
|
|
969
969
|
identifier: string | null;
|
|
970
970
|
additional_attributes: Record<string, unknown>;
|
|
971
971
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1000,33 +1000,9 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1000
1000
|
created_at: z.ZodNumber;
|
|
1001
1001
|
updated_at: z.ZodNumber;
|
|
1002
1002
|
}, "strip", z.ZodTypeAny, {
|
|
1003
|
-
id: number;
|
|
1004
1003
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1004
|
+
id: number;
|
|
1005
1005
|
created_at: number;
|
|
1006
|
-
updated_at: number;
|
|
1007
|
-
meta: {
|
|
1008
|
-
sender: {
|
|
1009
|
-
id: number;
|
|
1010
|
-
name: string | null;
|
|
1011
|
-
email: string | null;
|
|
1012
|
-
phone_number: string | null;
|
|
1013
|
-
thumbnail: string;
|
|
1014
|
-
identifier: string | null;
|
|
1015
|
-
additional_attributes: Record<string, unknown>;
|
|
1016
|
-
custom_attributes: Record<string, unknown>;
|
|
1017
|
-
blocked: boolean;
|
|
1018
|
-
customer_stage: string;
|
|
1019
|
-
customer_stage_explanation: string | null;
|
|
1020
|
-
type?: string | undefined;
|
|
1021
|
-
};
|
|
1022
|
-
hmac_verified: boolean;
|
|
1023
|
-
assignee: {
|
|
1024
|
-
id: number;
|
|
1025
|
-
name: string;
|
|
1026
|
-
email: string;
|
|
1027
|
-
} | null;
|
|
1028
|
-
team?: unknown;
|
|
1029
|
-
};
|
|
1030
1006
|
priority: string | null;
|
|
1031
1007
|
additional_attributes: {
|
|
1032
1008
|
browser?: {
|
|
@@ -1046,41 +1022,40 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1046
1022
|
};
|
|
1047
1023
|
custom_attributes: Record<string, unknown>;
|
|
1048
1024
|
inbox_id: number;
|
|
1025
|
+
updated_at: number;
|
|
1049
1026
|
channel: string;
|
|
1050
1027
|
can_reply: boolean;
|
|
1051
1028
|
contact_inbox: {
|
|
1052
1029
|
id: number;
|
|
1053
1030
|
created_at: string;
|
|
1054
|
-
updated_at: string;
|
|
1055
1031
|
contact_id: number;
|
|
1056
1032
|
inbox_id: number;
|
|
1057
1033
|
source_id: string | null;
|
|
1034
|
+
updated_at: string;
|
|
1058
1035
|
hmac_verified: boolean;
|
|
1059
1036
|
pubsub_token: string;
|
|
1060
1037
|
};
|
|
1061
1038
|
messages: {
|
|
1062
|
-
id: number;
|
|
1063
|
-
status: string;
|
|
1064
|
-
account_id: number;
|
|
1065
|
-
created_at: number;
|
|
1066
|
-
updated_at: string;
|
|
1067
1039
|
content: string | null;
|
|
1068
1040
|
message_type: number;
|
|
1069
1041
|
private: boolean;
|
|
1070
1042
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1043
|
+
status: string;
|
|
1071
1044
|
content_attributes: {
|
|
1072
1045
|
in_reply_to?: unknown;
|
|
1073
1046
|
} & {
|
|
1074
1047
|
[k: string]: unknown;
|
|
1075
1048
|
};
|
|
1049
|
+
id: number;
|
|
1050
|
+
created_at: number;
|
|
1076
1051
|
conversation_id: number;
|
|
1077
1052
|
sender: {
|
|
1078
1053
|
id: number;
|
|
1054
|
+
type?: string | undefined;
|
|
1079
1055
|
name?: string | null | undefined;
|
|
1080
1056
|
email?: string | null | undefined;
|
|
1081
|
-
phone_number?: string | null | undefined;
|
|
1082
|
-
type?: string | undefined;
|
|
1083
1057
|
thumbnail?: string | undefined;
|
|
1058
|
+
phone_number?: string | null | undefined;
|
|
1084
1059
|
identifier?: string | null | undefined;
|
|
1085
1060
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1086
1061
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1091,6 +1066,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1091
1066
|
additional_attributes: Record<string, unknown>;
|
|
1092
1067
|
inbox_id: number;
|
|
1093
1068
|
source_id: string | null;
|
|
1069
|
+
updated_at: string;
|
|
1070
|
+
account_id: number;
|
|
1094
1071
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1095
1072
|
sender_id: number;
|
|
1096
1073
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1109,31 +1086,13 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1109
1086
|
assignee_id: number | null;
|
|
1110
1087
|
};
|
|
1111
1088
|
}[];
|
|
1112
|
-
labels: string[];
|
|
1113
|
-
snoozed_until: number | null;
|
|
1114
|
-
unread_count: number;
|
|
1115
|
-
first_reply_created_at: string | number | null;
|
|
1116
|
-
waiting_since: number | null;
|
|
1117
|
-
ai_disabled: boolean;
|
|
1118
|
-
reenable_ai_at: number | null;
|
|
1119
|
-
ai_summary: string | null;
|
|
1120
|
-
conversation_type: string;
|
|
1121
|
-
agent_last_seen_at: number;
|
|
1122
|
-
contact_last_seen_at: number;
|
|
1123
|
-
last_activity_at: number;
|
|
1124
|
-
timestamp: number;
|
|
1125
|
-
}, {
|
|
1126
|
-
id: number;
|
|
1127
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1128
|
-
created_at: number;
|
|
1129
|
-
updated_at: number;
|
|
1130
1089
|
meta: {
|
|
1131
1090
|
sender: {
|
|
1132
1091
|
id: number;
|
|
1133
1092
|
name: string | null;
|
|
1134
1093
|
email: string | null;
|
|
1135
|
-
phone_number: string | null;
|
|
1136
1094
|
thumbnail: string;
|
|
1095
|
+
phone_number: string | null;
|
|
1137
1096
|
identifier: string | null;
|
|
1138
1097
|
additional_attributes: Record<string, unknown>;
|
|
1139
1098
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1150,6 +1109,23 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1150
1109
|
} | null;
|
|
1151
1110
|
team?: unknown;
|
|
1152
1111
|
};
|
|
1112
|
+
labels: string[];
|
|
1113
|
+
snoozed_until: number | null;
|
|
1114
|
+
unread_count: number;
|
|
1115
|
+
first_reply_created_at: string | number | null;
|
|
1116
|
+
waiting_since: number | null;
|
|
1117
|
+
ai_disabled: boolean;
|
|
1118
|
+
reenable_ai_at: number | null;
|
|
1119
|
+
ai_summary: string | null;
|
|
1120
|
+
conversation_type: string;
|
|
1121
|
+
agent_last_seen_at: number;
|
|
1122
|
+
contact_last_seen_at: number;
|
|
1123
|
+
last_activity_at: number;
|
|
1124
|
+
timestamp: number;
|
|
1125
|
+
}, {
|
|
1126
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1127
|
+
id: number;
|
|
1128
|
+
created_at: number;
|
|
1153
1129
|
priority: string | null;
|
|
1154
1130
|
additional_attributes: {
|
|
1155
1131
|
browser?: {
|
|
@@ -1169,41 +1145,40 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1169
1145
|
};
|
|
1170
1146
|
custom_attributes: Record<string, unknown>;
|
|
1171
1147
|
inbox_id: number;
|
|
1148
|
+
updated_at: number;
|
|
1172
1149
|
channel: string;
|
|
1173
1150
|
can_reply: boolean;
|
|
1174
1151
|
contact_inbox: {
|
|
1175
1152
|
id: number;
|
|
1176
1153
|
created_at: string;
|
|
1177
|
-
updated_at: string;
|
|
1178
1154
|
contact_id: number;
|
|
1179
1155
|
inbox_id: number;
|
|
1180
1156
|
source_id: string | null;
|
|
1157
|
+
updated_at: string;
|
|
1181
1158
|
hmac_verified: boolean;
|
|
1182
1159
|
pubsub_token: string;
|
|
1183
1160
|
};
|
|
1184
1161
|
messages: {
|
|
1185
|
-
id: number;
|
|
1186
|
-
status: string;
|
|
1187
|
-
account_id: number;
|
|
1188
|
-
created_at: number;
|
|
1189
|
-
updated_at: string;
|
|
1190
1162
|
content: string | null;
|
|
1191
1163
|
message_type: number;
|
|
1192
1164
|
private: boolean;
|
|
1193
1165
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1166
|
+
status: string;
|
|
1194
1167
|
content_attributes: {
|
|
1195
1168
|
in_reply_to?: unknown;
|
|
1196
1169
|
} & {
|
|
1197
1170
|
[k: string]: unknown;
|
|
1198
1171
|
};
|
|
1172
|
+
id: number;
|
|
1173
|
+
created_at: number;
|
|
1199
1174
|
conversation_id: number;
|
|
1200
1175
|
sender: {
|
|
1201
1176
|
id: number;
|
|
1177
|
+
type?: string | undefined;
|
|
1202
1178
|
name?: string | null | undefined;
|
|
1203
1179
|
email?: string | null | undefined;
|
|
1204
|
-
phone_number?: string | null | undefined;
|
|
1205
|
-
type?: string | undefined;
|
|
1206
1180
|
thumbnail?: string | undefined;
|
|
1181
|
+
phone_number?: string | null | undefined;
|
|
1207
1182
|
identifier?: string | null | undefined;
|
|
1208
1183
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1209
1184
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1214,6 +1189,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1214
1189
|
additional_attributes: Record<string, unknown>;
|
|
1215
1190
|
inbox_id: number;
|
|
1216
1191
|
source_id: string | null;
|
|
1192
|
+
updated_at: string;
|
|
1193
|
+
account_id: number;
|
|
1217
1194
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1218
1195
|
sender_id: number;
|
|
1219
1196
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1232,6 +1209,29 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1232
1209
|
assignee_id: number | null;
|
|
1233
1210
|
};
|
|
1234
1211
|
}[];
|
|
1212
|
+
meta: {
|
|
1213
|
+
sender: {
|
|
1214
|
+
id: number;
|
|
1215
|
+
name: string | null;
|
|
1216
|
+
email: string | null;
|
|
1217
|
+
thumbnail: string;
|
|
1218
|
+
phone_number: string | null;
|
|
1219
|
+
identifier: string | null;
|
|
1220
|
+
additional_attributes: Record<string, unknown>;
|
|
1221
|
+
custom_attributes: Record<string, unknown>;
|
|
1222
|
+
blocked: boolean;
|
|
1223
|
+
customer_stage: string;
|
|
1224
|
+
customer_stage_explanation: string | null;
|
|
1225
|
+
type?: string | undefined;
|
|
1226
|
+
};
|
|
1227
|
+
hmac_verified: boolean;
|
|
1228
|
+
assignee: {
|
|
1229
|
+
id: number;
|
|
1230
|
+
name: string;
|
|
1231
|
+
email: string;
|
|
1232
|
+
} | null;
|
|
1233
|
+
team?: unknown;
|
|
1234
|
+
};
|
|
1235
1235
|
labels: string[];
|
|
1236
1236
|
snoozed_until: number | null;
|
|
1237
1237
|
unread_count: number;
|
|
@@ -1370,19 +1370,19 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1370
1370
|
}, "strip", z.ZodTypeAny, {
|
|
1371
1371
|
id: number;
|
|
1372
1372
|
created_at: string;
|
|
1373
|
-
updated_at: string;
|
|
1374
1373
|
contact_id: number;
|
|
1375
1374
|
inbox_id: number;
|
|
1376
1375
|
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
1381
|
created_at: string;
|
|
1382
|
-
updated_at: string;
|
|
1383
1382
|
contact_id: number;
|
|
1384
1383
|
inbox_id: number;
|
|
1385
1384
|
source_id: string | null;
|
|
1385
|
+
updated_at: string;
|
|
1386
1386
|
hmac_verified: boolean;
|
|
1387
1387
|
pubsub_token: string;
|
|
1388
1388
|
}>;
|
|
@@ -1460,11 +1460,11 @@ 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
|
+
type?: string | undefined;
|
|
1463
1464
|
name?: string | null | undefined;
|
|
1464
1465
|
email?: string | null | undefined;
|
|
1465
|
-
phone_number?: string | null | undefined;
|
|
1466
|
-
type?: string | undefined;
|
|
1467
1466
|
thumbnail?: string | undefined;
|
|
1467
|
+
phone_number?: string | null | undefined;
|
|
1468
1468
|
identifier?: string | null | undefined;
|
|
1469
1469
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1470
1470
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1473,11 +1473,11 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1473
1473
|
customer_stage_explanation?: string | null | undefined;
|
|
1474
1474
|
}, {
|
|
1475
1475
|
id: number;
|
|
1476
|
+
type?: string | undefined;
|
|
1476
1477
|
name?: string | null | undefined;
|
|
1477
1478
|
email?: string | null | undefined;
|
|
1478
|
-
phone_number?: string | null | undefined;
|
|
1479
|
-
type?: string | undefined;
|
|
1480
1479
|
thumbnail?: string | undefined;
|
|
1480
|
+
phone_number?: string | null | undefined;
|
|
1481
1481
|
identifier?: string | null | undefined;
|
|
1482
1482
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1483
1483
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1486,28 +1486,26 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1486
1486
|
customer_stage_explanation?: string | null | undefined;
|
|
1487
1487
|
}>;
|
|
1488
1488
|
}, "strip", z.ZodTypeAny, {
|
|
1489
|
-
id: number;
|
|
1490
|
-
status: string;
|
|
1491
|
-
account_id: number;
|
|
1492
|
-
created_at: number;
|
|
1493
|
-
updated_at: string;
|
|
1494
1489
|
content: string | null;
|
|
1495
1490
|
message_type: number;
|
|
1496
1491
|
private: boolean;
|
|
1497
1492
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1493
|
+
status: string;
|
|
1498
1494
|
content_attributes: {
|
|
1499
1495
|
in_reply_to?: unknown;
|
|
1500
1496
|
} & {
|
|
1501
1497
|
[k: string]: unknown;
|
|
1502
1498
|
};
|
|
1499
|
+
id: number;
|
|
1500
|
+
created_at: number;
|
|
1503
1501
|
conversation_id: number;
|
|
1504
1502
|
sender: {
|
|
1505
1503
|
id: number;
|
|
1504
|
+
type?: string | undefined;
|
|
1506
1505
|
name?: string | null | undefined;
|
|
1507
1506
|
email?: string | null | undefined;
|
|
1508
|
-
phone_number?: string | null | undefined;
|
|
1509
|
-
type?: string | undefined;
|
|
1510
1507
|
thumbnail?: string | undefined;
|
|
1508
|
+
phone_number?: string | null | undefined;
|
|
1511
1509
|
identifier?: string | null | undefined;
|
|
1512
1510
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1513
1511
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1518,6 +1516,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1518
1516
|
additional_attributes: Record<string, unknown>;
|
|
1519
1517
|
inbox_id: number;
|
|
1520
1518
|
source_id: string | null;
|
|
1519
|
+
updated_at: string;
|
|
1520
|
+
account_id: number;
|
|
1521
1521
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1522
1522
|
sender_id: number;
|
|
1523
1523
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1536,28 +1536,26 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1536
1536
|
assignee_id: number | null;
|
|
1537
1537
|
};
|
|
1538
1538
|
}, {
|
|
1539
|
-
id: number;
|
|
1540
|
-
status: string;
|
|
1541
|
-
account_id: number;
|
|
1542
|
-
created_at: number;
|
|
1543
|
-
updated_at: string;
|
|
1544
1539
|
content: string | null;
|
|
1545
1540
|
message_type: number;
|
|
1546
1541
|
private: boolean;
|
|
1547
1542
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1543
|
+
status: string;
|
|
1548
1544
|
content_attributes: {
|
|
1549
1545
|
in_reply_to?: unknown;
|
|
1550
1546
|
} & {
|
|
1551
1547
|
[k: string]: unknown;
|
|
1552
1548
|
};
|
|
1549
|
+
id: number;
|
|
1550
|
+
created_at: number;
|
|
1553
1551
|
conversation_id: number;
|
|
1554
1552
|
sender: {
|
|
1555
1553
|
id: number;
|
|
1554
|
+
type?: string | undefined;
|
|
1556
1555
|
name?: string | null | undefined;
|
|
1557
1556
|
email?: string | null | undefined;
|
|
1558
|
-
phone_number?: string | null | undefined;
|
|
1559
|
-
type?: string | undefined;
|
|
1560
1557
|
thumbnail?: string | undefined;
|
|
1558
|
+
phone_number?: string | null | undefined;
|
|
1561
1559
|
identifier?: string | null | undefined;
|
|
1562
1560
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1563
1561
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1568,6 +1566,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1568
1566
|
additional_attributes: Record<string, unknown>;
|
|
1569
1567
|
inbox_id: number;
|
|
1570
1568
|
source_id: string | null;
|
|
1569
|
+
updated_at: string;
|
|
1570
|
+
account_id: number;
|
|
1571
1571
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1572
1572
|
sender_id: number;
|
|
1573
1573
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1605,8 +1605,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1605
1605
|
id: number;
|
|
1606
1606
|
name: string | null;
|
|
1607
1607
|
email: string | null;
|
|
1608
|
-
phone_number: string | null;
|
|
1609
1608
|
thumbnail: string;
|
|
1609
|
+
phone_number: string | null;
|
|
1610
1610
|
identifier: string | null;
|
|
1611
1611
|
additional_attributes: Record<string, unknown>;
|
|
1612
1612
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1618,8 +1618,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1618
1618
|
id: number;
|
|
1619
1619
|
name: string | null;
|
|
1620
1620
|
email: string | null;
|
|
1621
|
-
phone_number: string | null;
|
|
1622
1621
|
thumbnail: string;
|
|
1622
|
+
phone_number: string | null;
|
|
1623
1623
|
identifier: string | null;
|
|
1624
1624
|
additional_attributes: Record<string, unknown>;
|
|
1625
1625
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1648,8 +1648,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1648
1648
|
id: number;
|
|
1649
1649
|
name: string | null;
|
|
1650
1650
|
email: string | null;
|
|
1651
|
-
phone_number: string | null;
|
|
1652
1651
|
thumbnail: string;
|
|
1652
|
+
phone_number: string | null;
|
|
1653
1653
|
identifier: string | null;
|
|
1654
1654
|
additional_attributes: Record<string, unknown>;
|
|
1655
1655
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1670,8 +1670,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1670
1670
|
id: number;
|
|
1671
1671
|
name: string | null;
|
|
1672
1672
|
email: string | null;
|
|
1673
|
-
phone_number: string | null;
|
|
1674
1673
|
thumbnail: string;
|
|
1674
|
+
phone_number: string | null;
|
|
1675
1675
|
identifier: string | null;
|
|
1676
1676
|
additional_attributes: Record<string, unknown>;
|
|
1677
1677
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1706,33 +1706,9 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1706
1706
|
created_at: z.ZodNumber;
|
|
1707
1707
|
updated_at: z.ZodNumber;
|
|
1708
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1709
|
-
id: number;
|
|
1710
1709
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1710
|
+
id: number;
|
|
1711
1711
|
created_at: number;
|
|
1712
|
-
updated_at: number;
|
|
1713
|
-
meta: {
|
|
1714
|
-
sender: {
|
|
1715
|
-
id: number;
|
|
1716
|
-
name: string | null;
|
|
1717
|
-
email: string | null;
|
|
1718
|
-
phone_number: string | null;
|
|
1719
|
-
thumbnail: string;
|
|
1720
|
-
identifier: string | null;
|
|
1721
|
-
additional_attributes: Record<string, unknown>;
|
|
1722
|
-
custom_attributes: Record<string, unknown>;
|
|
1723
|
-
blocked: boolean;
|
|
1724
|
-
customer_stage: string;
|
|
1725
|
-
customer_stage_explanation: string | null;
|
|
1726
|
-
type?: string | undefined;
|
|
1727
|
-
};
|
|
1728
|
-
hmac_verified: boolean;
|
|
1729
|
-
assignee: {
|
|
1730
|
-
id: number;
|
|
1731
|
-
name: string;
|
|
1732
|
-
email: string;
|
|
1733
|
-
} | null;
|
|
1734
|
-
team?: unknown;
|
|
1735
|
-
};
|
|
1736
1712
|
priority: string | null;
|
|
1737
1713
|
additional_attributes: {
|
|
1738
1714
|
browser?: {
|
|
@@ -1752,41 +1728,40 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1752
1728
|
};
|
|
1753
1729
|
custom_attributes: Record<string, unknown>;
|
|
1754
1730
|
inbox_id: number;
|
|
1731
|
+
updated_at: number;
|
|
1755
1732
|
channel: string;
|
|
1756
1733
|
can_reply: boolean;
|
|
1757
1734
|
contact_inbox: {
|
|
1758
1735
|
id: number;
|
|
1759
1736
|
created_at: string;
|
|
1760
|
-
updated_at: string;
|
|
1761
1737
|
contact_id: number;
|
|
1762
1738
|
inbox_id: number;
|
|
1763
1739
|
source_id: string | null;
|
|
1740
|
+
updated_at: string;
|
|
1764
1741
|
hmac_verified: boolean;
|
|
1765
1742
|
pubsub_token: string;
|
|
1766
1743
|
};
|
|
1767
1744
|
messages: {
|
|
1768
|
-
id: number;
|
|
1769
|
-
status: string;
|
|
1770
|
-
account_id: number;
|
|
1771
|
-
created_at: number;
|
|
1772
|
-
updated_at: string;
|
|
1773
1745
|
content: string | null;
|
|
1774
1746
|
message_type: number;
|
|
1775
1747
|
private: boolean;
|
|
1776
1748
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1749
|
+
status: string;
|
|
1777
1750
|
content_attributes: {
|
|
1778
1751
|
in_reply_to?: unknown;
|
|
1779
1752
|
} & {
|
|
1780
1753
|
[k: string]: unknown;
|
|
1781
1754
|
};
|
|
1755
|
+
id: number;
|
|
1756
|
+
created_at: number;
|
|
1782
1757
|
conversation_id: number;
|
|
1783
1758
|
sender: {
|
|
1784
1759
|
id: number;
|
|
1760
|
+
type?: string | undefined;
|
|
1785
1761
|
name?: string | null | undefined;
|
|
1786
1762
|
email?: string | null | undefined;
|
|
1787
|
-
phone_number?: string | null | undefined;
|
|
1788
|
-
type?: string | undefined;
|
|
1789
1763
|
thumbnail?: string | undefined;
|
|
1764
|
+
phone_number?: string | null | undefined;
|
|
1790
1765
|
identifier?: string | null | undefined;
|
|
1791
1766
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1792
1767
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1797,6 +1772,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1797
1772
|
additional_attributes: Record<string, unknown>;
|
|
1798
1773
|
inbox_id: number;
|
|
1799
1774
|
source_id: string | null;
|
|
1775
|
+
updated_at: string;
|
|
1776
|
+
account_id: number;
|
|
1800
1777
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1801
1778
|
sender_id: number;
|
|
1802
1779
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1815,31 +1792,13 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1815
1792
|
assignee_id: number | null;
|
|
1816
1793
|
};
|
|
1817
1794
|
}[];
|
|
1818
|
-
labels: string[];
|
|
1819
|
-
snoozed_until: number | null;
|
|
1820
|
-
unread_count: number;
|
|
1821
|
-
first_reply_created_at: string | number | null;
|
|
1822
|
-
waiting_since: number | null;
|
|
1823
|
-
ai_disabled: boolean;
|
|
1824
|
-
reenable_ai_at: number | null;
|
|
1825
|
-
ai_summary: string | null;
|
|
1826
|
-
conversation_type: string;
|
|
1827
|
-
agent_last_seen_at: number;
|
|
1828
|
-
contact_last_seen_at: number;
|
|
1829
|
-
last_activity_at: number;
|
|
1830
|
-
timestamp: number;
|
|
1831
|
-
}, {
|
|
1832
|
-
id: number;
|
|
1833
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1834
|
-
created_at: number;
|
|
1835
|
-
updated_at: number;
|
|
1836
1795
|
meta: {
|
|
1837
1796
|
sender: {
|
|
1838
1797
|
id: number;
|
|
1839
1798
|
name: string | null;
|
|
1840
1799
|
email: string | null;
|
|
1841
|
-
phone_number: string | null;
|
|
1842
1800
|
thumbnail: string;
|
|
1801
|
+
phone_number: string | null;
|
|
1843
1802
|
identifier: string | null;
|
|
1844
1803
|
additional_attributes: Record<string, unknown>;
|
|
1845
1804
|
custom_attributes: Record<string, unknown>;
|
|
@@ -1856,6 +1815,23 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1856
1815
|
} | null;
|
|
1857
1816
|
team?: unknown;
|
|
1858
1817
|
};
|
|
1818
|
+
labels: string[];
|
|
1819
|
+
snoozed_until: number | null;
|
|
1820
|
+
unread_count: number;
|
|
1821
|
+
first_reply_created_at: string | number | null;
|
|
1822
|
+
waiting_since: number | null;
|
|
1823
|
+
ai_disabled: boolean;
|
|
1824
|
+
reenable_ai_at: number | null;
|
|
1825
|
+
ai_summary: string | null;
|
|
1826
|
+
conversation_type: string;
|
|
1827
|
+
agent_last_seen_at: number;
|
|
1828
|
+
contact_last_seen_at: number;
|
|
1829
|
+
last_activity_at: number;
|
|
1830
|
+
timestamp: number;
|
|
1831
|
+
}, {
|
|
1832
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1833
|
+
id: number;
|
|
1834
|
+
created_at: number;
|
|
1859
1835
|
priority: string | null;
|
|
1860
1836
|
additional_attributes: {
|
|
1861
1837
|
browser?: {
|
|
@@ -1875,41 +1851,40 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1875
1851
|
};
|
|
1876
1852
|
custom_attributes: Record<string, unknown>;
|
|
1877
1853
|
inbox_id: number;
|
|
1854
|
+
updated_at: number;
|
|
1878
1855
|
channel: string;
|
|
1879
1856
|
can_reply: boolean;
|
|
1880
1857
|
contact_inbox: {
|
|
1881
1858
|
id: number;
|
|
1882
1859
|
created_at: string;
|
|
1883
|
-
updated_at: string;
|
|
1884
1860
|
contact_id: number;
|
|
1885
1861
|
inbox_id: number;
|
|
1886
1862
|
source_id: string | null;
|
|
1863
|
+
updated_at: string;
|
|
1887
1864
|
hmac_verified: boolean;
|
|
1888
1865
|
pubsub_token: string;
|
|
1889
1866
|
};
|
|
1890
1867
|
messages: {
|
|
1891
|
-
id: number;
|
|
1892
|
-
status: string;
|
|
1893
|
-
account_id: number;
|
|
1894
|
-
created_at: number;
|
|
1895
|
-
updated_at: string;
|
|
1896
1868
|
content: string | null;
|
|
1897
1869
|
message_type: number;
|
|
1898
1870
|
private: boolean;
|
|
1899
1871
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
1872
|
+
status: string;
|
|
1900
1873
|
content_attributes: {
|
|
1901
1874
|
in_reply_to?: unknown;
|
|
1902
1875
|
} & {
|
|
1903
1876
|
[k: string]: unknown;
|
|
1904
1877
|
};
|
|
1878
|
+
id: number;
|
|
1879
|
+
created_at: number;
|
|
1905
1880
|
conversation_id: number;
|
|
1906
1881
|
sender: {
|
|
1907
1882
|
id: number;
|
|
1883
|
+
type?: string | undefined;
|
|
1908
1884
|
name?: string | null | undefined;
|
|
1909
1885
|
email?: string | null | undefined;
|
|
1910
|
-
phone_number?: string | null | undefined;
|
|
1911
|
-
type?: string | undefined;
|
|
1912
1886
|
thumbnail?: string | undefined;
|
|
1887
|
+
phone_number?: string | null | undefined;
|
|
1913
1888
|
identifier?: string | null | undefined;
|
|
1914
1889
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
1915
1890
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -1920,6 +1895,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1920
1895
|
additional_attributes: Record<string, unknown>;
|
|
1921
1896
|
inbox_id: number;
|
|
1922
1897
|
source_id: string | null;
|
|
1898
|
+
updated_at: string;
|
|
1899
|
+
account_id: number;
|
|
1923
1900
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
1924
1901
|
sender_id: number;
|
|
1925
1902
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1938,6 +1915,29 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1938
1915
|
assignee_id: number | null;
|
|
1939
1916
|
};
|
|
1940
1917
|
}[];
|
|
1918
|
+
meta: {
|
|
1919
|
+
sender: {
|
|
1920
|
+
id: number;
|
|
1921
|
+
name: string | null;
|
|
1922
|
+
email: string | null;
|
|
1923
|
+
thumbnail: string;
|
|
1924
|
+
phone_number: string | null;
|
|
1925
|
+
identifier: string | null;
|
|
1926
|
+
additional_attributes: Record<string, unknown>;
|
|
1927
|
+
custom_attributes: Record<string, unknown>;
|
|
1928
|
+
blocked: boolean;
|
|
1929
|
+
customer_stage: string;
|
|
1930
|
+
customer_stage_explanation: string | null;
|
|
1931
|
+
type?: string | undefined;
|
|
1932
|
+
};
|
|
1933
|
+
hmac_verified: boolean;
|
|
1934
|
+
assignee: {
|
|
1935
|
+
id: number;
|
|
1936
|
+
name: string;
|
|
1937
|
+
email: string;
|
|
1938
|
+
} | null;
|
|
1939
|
+
team?: unknown;
|
|
1940
|
+
};
|
|
1941
1941
|
labels: string[];
|
|
1942
1942
|
snoozed_until: number | null;
|
|
1943
1943
|
unread_count: number;
|
|
@@ -1995,8 +1995,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1995
1995
|
id: number;
|
|
1996
1996
|
name?: string | null | undefined;
|
|
1997
1997
|
email?: string | null | undefined;
|
|
1998
|
-
phone_number?: string | null | undefined;
|
|
1999
1998
|
thumbnail?: string | undefined;
|
|
1999
|
+
phone_number?: string | null | undefined;
|
|
2000
2000
|
identifier?: string | null | undefined;
|
|
2001
2001
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2002
2002
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2012,8 +2012,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2012
2012
|
id: number;
|
|
2013
2013
|
name?: string | null | undefined;
|
|
2014
2014
|
email?: string | null | undefined;
|
|
2015
|
-
phone_number?: string | null | undefined;
|
|
2016
2015
|
thumbnail?: string | undefined;
|
|
2016
|
+
phone_number?: string | null | undefined;
|
|
2017
2017
|
identifier?: string | null | undefined;
|
|
2018
2018
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2019
2019
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2030,24 +2030,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2030
2030
|
} & {
|
|
2031
2031
|
event: z.ZodLiteral<"message_created">;
|
|
2032
2032
|
}, "strip", z.ZodTypeAny, {
|
|
2033
|
-
id: number;
|
|
2034
|
-
status: string;
|
|
2035
|
-
created_at: string;
|
|
2036
2033
|
content: string | null;
|
|
2037
2034
|
message_type: "incoming" | "outgoing";
|
|
2038
2035
|
private: boolean;
|
|
2039
2036
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2037
|
+
status: string;
|
|
2040
2038
|
content_attributes: {
|
|
2041
2039
|
in_reply_to?: unknown;
|
|
2042
2040
|
} & {
|
|
2043
2041
|
[k: string]: unknown;
|
|
2044
2042
|
};
|
|
2043
|
+
id: number;
|
|
2044
|
+
created_at: string;
|
|
2045
2045
|
sender: {
|
|
2046
2046
|
id: number;
|
|
2047
2047
|
name?: string | null | undefined;
|
|
2048
2048
|
email?: string | null | undefined;
|
|
2049
|
-
phone_number?: string | null | undefined;
|
|
2050
2049
|
thumbnail?: string | undefined;
|
|
2050
|
+
phone_number?: string | null | undefined;
|
|
2051
2051
|
identifier?: string | null | undefined;
|
|
2052
2052
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2053
2053
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2067,33 +2067,9 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2067
2067
|
name: string;
|
|
2068
2068
|
};
|
|
2069
2069
|
conversation: {
|
|
2070
|
-
id: number;
|
|
2071
2070
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2071
|
+
id: number;
|
|
2072
2072
|
created_at: number;
|
|
2073
|
-
updated_at: number;
|
|
2074
|
-
meta: {
|
|
2075
|
-
sender: {
|
|
2076
|
-
id: number;
|
|
2077
|
-
name: string | null;
|
|
2078
|
-
email: string | null;
|
|
2079
|
-
phone_number: string | null;
|
|
2080
|
-
thumbnail: string;
|
|
2081
|
-
identifier: string | null;
|
|
2082
|
-
additional_attributes: Record<string, unknown>;
|
|
2083
|
-
custom_attributes: Record<string, unknown>;
|
|
2084
|
-
blocked: boolean;
|
|
2085
|
-
customer_stage: string;
|
|
2086
|
-
customer_stage_explanation: string | null;
|
|
2087
|
-
type?: string | undefined;
|
|
2088
|
-
};
|
|
2089
|
-
hmac_verified: boolean;
|
|
2090
|
-
assignee: {
|
|
2091
|
-
id: number;
|
|
2092
|
-
name: string;
|
|
2093
|
-
email: string;
|
|
2094
|
-
} | null;
|
|
2095
|
-
team?: unknown;
|
|
2096
|
-
};
|
|
2097
2073
|
priority: string | null;
|
|
2098
2074
|
additional_attributes: {
|
|
2099
2075
|
browser?: {
|
|
@@ -2113,41 +2089,40 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2113
2089
|
};
|
|
2114
2090
|
custom_attributes: Record<string, unknown>;
|
|
2115
2091
|
inbox_id: number;
|
|
2092
|
+
updated_at: number;
|
|
2116
2093
|
channel: string;
|
|
2117
2094
|
can_reply: boolean;
|
|
2118
2095
|
contact_inbox: {
|
|
2119
2096
|
id: number;
|
|
2120
2097
|
created_at: string;
|
|
2121
|
-
updated_at: string;
|
|
2122
2098
|
contact_id: number;
|
|
2123
2099
|
inbox_id: number;
|
|
2124
2100
|
source_id: string | null;
|
|
2101
|
+
updated_at: string;
|
|
2125
2102
|
hmac_verified: boolean;
|
|
2126
2103
|
pubsub_token: string;
|
|
2127
2104
|
};
|
|
2128
2105
|
messages: {
|
|
2129
|
-
id: number;
|
|
2130
|
-
status: string;
|
|
2131
|
-
account_id: number;
|
|
2132
|
-
created_at: number;
|
|
2133
|
-
updated_at: string;
|
|
2134
2106
|
content: string | null;
|
|
2135
2107
|
message_type: number;
|
|
2136
2108
|
private: boolean;
|
|
2137
2109
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2110
|
+
status: string;
|
|
2138
2111
|
content_attributes: {
|
|
2139
2112
|
in_reply_to?: unknown;
|
|
2140
2113
|
} & {
|
|
2141
2114
|
[k: string]: unknown;
|
|
2142
2115
|
};
|
|
2116
|
+
id: number;
|
|
2117
|
+
created_at: number;
|
|
2143
2118
|
conversation_id: number;
|
|
2144
2119
|
sender: {
|
|
2145
2120
|
id: number;
|
|
2121
|
+
type?: string | undefined;
|
|
2146
2122
|
name?: string | null | undefined;
|
|
2147
2123
|
email?: string | null | undefined;
|
|
2148
|
-
phone_number?: string | null | undefined;
|
|
2149
|
-
type?: string | undefined;
|
|
2150
2124
|
thumbnail?: string | undefined;
|
|
2125
|
+
phone_number?: string | null | undefined;
|
|
2151
2126
|
identifier?: string | null | undefined;
|
|
2152
2127
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2153
2128
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2158,6 +2133,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2158
2133
|
additional_attributes: Record<string, unknown>;
|
|
2159
2134
|
inbox_id: number;
|
|
2160
2135
|
source_id: string | null;
|
|
2136
|
+
updated_at: string;
|
|
2137
|
+
account_id: number;
|
|
2161
2138
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2162
2139
|
sender_id: number;
|
|
2163
2140
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2176,6 +2153,29 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2176
2153
|
assignee_id: number | null;
|
|
2177
2154
|
};
|
|
2178
2155
|
}[];
|
|
2156
|
+
meta: {
|
|
2157
|
+
sender: {
|
|
2158
|
+
id: number;
|
|
2159
|
+
name: string | null;
|
|
2160
|
+
email: string | null;
|
|
2161
|
+
thumbnail: string;
|
|
2162
|
+
phone_number: string | null;
|
|
2163
|
+
identifier: string | null;
|
|
2164
|
+
additional_attributes: Record<string, unknown>;
|
|
2165
|
+
custom_attributes: Record<string, unknown>;
|
|
2166
|
+
blocked: boolean;
|
|
2167
|
+
customer_stage: string;
|
|
2168
|
+
customer_stage_explanation: string | null;
|
|
2169
|
+
type?: string | undefined;
|
|
2170
|
+
};
|
|
2171
|
+
hmac_verified: boolean;
|
|
2172
|
+
assignee: {
|
|
2173
|
+
id: number;
|
|
2174
|
+
name: string;
|
|
2175
|
+
email: string;
|
|
2176
|
+
} | null;
|
|
2177
|
+
team?: unknown;
|
|
2178
|
+
};
|
|
2179
2179
|
labels: string[];
|
|
2180
2180
|
snoozed_until: number | null;
|
|
2181
2181
|
unread_count: number;
|
|
@@ -2196,24 +2196,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2196
2196
|
};
|
|
2197
2197
|
event: "message_created";
|
|
2198
2198
|
}, {
|
|
2199
|
-
id: number;
|
|
2200
|
-
status: string;
|
|
2201
|
-
created_at: string;
|
|
2202
2199
|
content: string | null;
|
|
2203
2200
|
message_type: "incoming" | "outgoing";
|
|
2204
2201
|
private: boolean;
|
|
2205
2202
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2203
|
+
status: string;
|
|
2206
2204
|
content_attributes: {
|
|
2207
2205
|
in_reply_to?: unknown;
|
|
2208
2206
|
} & {
|
|
2209
2207
|
[k: string]: unknown;
|
|
2210
2208
|
};
|
|
2209
|
+
id: number;
|
|
2210
|
+
created_at: string;
|
|
2211
2211
|
sender: {
|
|
2212
2212
|
id: number;
|
|
2213
2213
|
name?: string | null | undefined;
|
|
2214
2214
|
email?: string | null | undefined;
|
|
2215
|
-
phone_number?: string | null | undefined;
|
|
2216
2215
|
thumbnail?: string | undefined;
|
|
2216
|
+
phone_number?: string | null | undefined;
|
|
2217
2217
|
identifier?: string | null | undefined;
|
|
2218
2218
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2219
2219
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2233,33 +2233,9 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2233
2233
|
name: string;
|
|
2234
2234
|
};
|
|
2235
2235
|
conversation: {
|
|
2236
|
-
id: number;
|
|
2237
2236
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2237
|
+
id: number;
|
|
2238
2238
|
created_at: number;
|
|
2239
|
-
updated_at: number;
|
|
2240
|
-
meta: {
|
|
2241
|
-
sender: {
|
|
2242
|
-
id: number;
|
|
2243
|
-
name: string | null;
|
|
2244
|
-
email: string | null;
|
|
2245
|
-
phone_number: string | null;
|
|
2246
|
-
thumbnail: string;
|
|
2247
|
-
identifier: string | null;
|
|
2248
|
-
additional_attributes: Record<string, unknown>;
|
|
2249
|
-
custom_attributes: Record<string, unknown>;
|
|
2250
|
-
blocked: boolean;
|
|
2251
|
-
customer_stage: string;
|
|
2252
|
-
customer_stage_explanation: string | null;
|
|
2253
|
-
type?: string | undefined;
|
|
2254
|
-
};
|
|
2255
|
-
hmac_verified: boolean;
|
|
2256
|
-
assignee: {
|
|
2257
|
-
id: number;
|
|
2258
|
-
name: string;
|
|
2259
|
-
email: string;
|
|
2260
|
-
} | null;
|
|
2261
|
-
team?: unknown;
|
|
2262
|
-
};
|
|
2263
2239
|
priority: string | null;
|
|
2264
2240
|
additional_attributes: {
|
|
2265
2241
|
browser?: {
|
|
@@ -2279,41 +2255,40 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2279
2255
|
};
|
|
2280
2256
|
custom_attributes: Record<string, unknown>;
|
|
2281
2257
|
inbox_id: number;
|
|
2258
|
+
updated_at: number;
|
|
2282
2259
|
channel: string;
|
|
2283
2260
|
can_reply: boolean;
|
|
2284
2261
|
contact_inbox: {
|
|
2285
2262
|
id: number;
|
|
2286
2263
|
created_at: string;
|
|
2287
|
-
updated_at: string;
|
|
2288
2264
|
contact_id: number;
|
|
2289
2265
|
inbox_id: number;
|
|
2290
2266
|
source_id: string | null;
|
|
2267
|
+
updated_at: string;
|
|
2291
2268
|
hmac_verified: boolean;
|
|
2292
2269
|
pubsub_token: string;
|
|
2293
2270
|
};
|
|
2294
2271
|
messages: {
|
|
2295
|
-
id: number;
|
|
2296
|
-
status: string;
|
|
2297
|
-
account_id: number;
|
|
2298
|
-
created_at: number;
|
|
2299
|
-
updated_at: string;
|
|
2300
2272
|
content: string | null;
|
|
2301
2273
|
message_type: number;
|
|
2302
2274
|
private: boolean;
|
|
2303
2275
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2276
|
+
status: string;
|
|
2304
2277
|
content_attributes: {
|
|
2305
2278
|
in_reply_to?: unknown;
|
|
2306
2279
|
} & {
|
|
2307
2280
|
[k: string]: unknown;
|
|
2308
2281
|
};
|
|
2282
|
+
id: number;
|
|
2283
|
+
created_at: number;
|
|
2309
2284
|
conversation_id: number;
|
|
2310
2285
|
sender: {
|
|
2311
2286
|
id: number;
|
|
2287
|
+
type?: string | undefined;
|
|
2312
2288
|
name?: string | null | undefined;
|
|
2313
2289
|
email?: string | null | undefined;
|
|
2314
|
-
phone_number?: string | null | undefined;
|
|
2315
|
-
type?: string | undefined;
|
|
2316
2290
|
thumbnail?: string | undefined;
|
|
2291
|
+
phone_number?: string | null | undefined;
|
|
2317
2292
|
identifier?: string | null | undefined;
|
|
2318
2293
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2319
2294
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2324,6 +2299,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2324
2299
|
additional_attributes: Record<string, unknown>;
|
|
2325
2300
|
inbox_id: number;
|
|
2326
2301
|
source_id: string | null;
|
|
2302
|
+
updated_at: string;
|
|
2303
|
+
account_id: number;
|
|
2327
2304
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2328
2305
|
sender_id: number;
|
|
2329
2306
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2342,6 +2319,29 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2342
2319
|
assignee_id: number | null;
|
|
2343
2320
|
};
|
|
2344
2321
|
}[];
|
|
2322
|
+
meta: {
|
|
2323
|
+
sender: {
|
|
2324
|
+
id: number;
|
|
2325
|
+
name: string | null;
|
|
2326
|
+
email: string | null;
|
|
2327
|
+
thumbnail: string;
|
|
2328
|
+
phone_number: string | null;
|
|
2329
|
+
identifier: string | null;
|
|
2330
|
+
additional_attributes: Record<string, unknown>;
|
|
2331
|
+
custom_attributes: Record<string, unknown>;
|
|
2332
|
+
blocked: boolean;
|
|
2333
|
+
customer_stage: string;
|
|
2334
|
+
customer_stage_explanation: string | null;
|
|
2335
|
+
type?: string | undefined;
|
|
2336
|
+
};
|
|
2337
|
+
hmac_verified: boolean;
|
|
2338
|
+
assignee: {
|
|
2339
|
+
id: number;
|
|
2340
|
+
name: string;
|
|
2341
|
+
email: string;
|
|
2342
|
+
} | null;
|
|
2343
|
+
team?: unknown;
|
|
2344
|
+
};
|
|
2345
2345
|
labels: string[];
|
|
2346
2346
|
snoozed_until: number | null;
|
|
2347
2347
|
unread_count: number;
|
|
@@ -2486,19 +2486,19 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2486
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2487
2487
|
id: number;
|
|
2488
2488
|
created_at: string;
|
|
2489
|
-
updated_at: string;
|
|
2490
2489
|
contact_id: number;
|
|
2491
2490
|
inbox_id: number;
|
|
2492
2491
|
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
2497
|
created_at: string;
|
|
2498
|
-
updated_at: string;
|
|
2499
2498
|
contact_id: number;
|
|
2500
2499
|
inbox_id: number;
|
|
2501
2500
|
source_id: string | null;
|
|
2501
|
+
updated_at: string;
|
|
2502
2502
|
hmac_verified: boolean;
|
|
2503
2503
|
pubsub_token: string;
|
|
2504
2504
|
}>;
|
|
@@ -2576,11 +2576,11 @@ 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
|
+
type?: string | undefined;
|
|
2579
2580
|
name?: string | null | undefined;
|
|
2580
2581
|
email?: string | null | undefined;
|
|
2581
|
-
phone_number?: string | null | undefined;
|
|
2582
|
-
type?: string | undefined;
|
|
2583
2582
|
thumbnail?: string | undefined;
|
|
2583
|
+
phone_number?: string | null | undefined;
|
|
2584
2584
|
identifier?: string | null | undefined;
|
|
2585
2585
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2586
2586
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2589,11 +2589,11 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2589
2589
|
customer_stage_explanation?: string | null | undefined;
|
|
2590
2590
|
}, {
|
|
2591
2591
|
id: number;
|
|
2592
|
+
type?: string | undefined;
|
|
2592
2593
|
name?: string | null | undefined;
|
|
2593
2594
|
email?: string | null | undefined;
|
|
2594
|
-
phone_number?: string | null | undefined;
|
|
2595
|
-
type?: string | undefined;
|
|
2596
2595
|
thumbnail?: string | undefined;
|
|
2596
|
+
phone_number?: string | null | undefined;
|
|
2597
2597
|
identifier?: string | null | undefined;
|
|
2598
2598
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2599
2599
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2602,28 +2602,26 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2602
2602
|
customer_stage_explanation?: string | null | undefined;
|
|
2603
2603
|
}>;
|
|
2604
2604
|
}, "strip", z.ZodTypeAny, {
|
|
2605
|
-
id: number;
|
|
2606
|
-
status: string;
|
|
2607
|
-
account_id: number;
|
|
2608
|
-
created_at: number;
|
|
2609
|
-
updated_at: string;
|
|
2610
2605
|
content: string | null;
|
|
2611
2606
|
message_type: number;
|
|
2612
2607
|
private: boolean;
|
|
2613
2608
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2609
|
+
status: string;
|
|
2614
2610
|
content_attributes: {
|
|
2615
2611
|
in_reply_to?: unknown;
|
|
2616
2612
|
} & {
|
|
2617
2613
|
[k: string]: unknown;
|
|
2618
2614
|
};
|
|
2615
|
+
id: number;
|
|
2616
|
+
created_at: number;
|
|
2619
2617
|
conversation_id: number;
|
|
2620
2618
|
sender: {
|
|
2621
2619
|
id: number;
|
|
2620
|
+
type?: string | undefined;
|
|
2622
2621
|
name?: string | null | undefined;
|
|
2623
2622
|
email?: string | null | undefined;
|
|
2624
|
-
phone_number?: string | null | undefined;
|
|
2625
|
-
type?: string | undefined;
|
|
2626
2623
|
thumbnail?: string | undefined;
|
|
2624
|
+
phone_number?: string | null | undefined;
|
|
2627
2625
|
identifier?: string | null | undefined;
|
|
2628
2626
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2629
2627
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2634,6 +2632,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2634
2632
|
additional_attributes: Record<string, unknown>;
|
|
2635
2633
|
inbox_id: number;
|
|
2636
2634
|
source_id: string | null;
|
|
2635
|
+
updated_at: string;
|
|
2636
|
+
account_id: number;
|
|
2637
2637
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2638
2638
|
sender_id: number;
|
|
2639
2639
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2652,28 +2652,26 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2652
2652
|
assignee_id: number | null;
|
|
2653
2653
|
};
|
|
2654
2654
|
}, {
|
|
2655
|
-
id: number;
|
|
2656
|
-
status: string;
|
|
2657
|
-
account_id: number;
|
|
2658
|
-
created_at: number;
|
|
2659
|
-
updated_at: string;
|
|
2660
2655
|
content: string | null;
|
|
2661
2656
|
message_type: number;
|
|
2662
2657
|
private: boolean;
|
|
2663
2658
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2659
|
+
status: string;
|
|
2664
2660
|
content_attributes: {
|
|
2665
2661
|
in_reply_to?: unknown;
|
|
2666
2662
|
} & {
|
|
2667
2663
|
[k: string]: unknown;
|
|
2668
2664
|
};
|
|
2665
|
+
id: number;
|
|
2666
|
+
created_at: number;
|
|
2669
2667
|
conversation_id: number;
|
|
2670
2668
|
sender: {
|
|
2671
2669
|
id: number;
|
|
2670
|
+
type?: string | undefined;
|
|
2672
2671
|
name?: string | null | undefined;
|
|
2673
2672
|
email?: string | null | undefined;
|
|
2674
|
-
phone_number?: string | null | undefined;
|
|
2675
|
-
type?: string | undefined;
|
|
2676
2673
|
thumbnail?: string | undefined;
|
|
2674
|
+
phone_number?: string | null | undefined;
|
|
2677
2675
|
identifier?: string | null | undefined;
|
|
2678
2676
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2679
2677
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2684,6 +2682,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2684
2682
|
additional_attributes: Record<string, unknown>;
|
|
2685
2683
|
inbox_id: number;
|
|
2686
2684
|
source_id: string | null;
|
|
2685
|
+
updated_at: string;
|
|
2686
|
+
account_id: number;
|
|
2687
2687
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2688
2688
|
sender_id: number;
|
|
2689
2689
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2721,8 +2721,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2721
2721
|
id: number;
|
|
2722
2722
|
name: string | null;
|
|
2723
2723
|
email: string | null;
|
|
2724
|
-
phone_number: string | null;
|
|
2725
2724
|
thumbnail: string;
|
|
2725
|
+
phone_number: string | null;
|
|
2726
2726
|
identifier: string | null;
|
|
2727
2727
|
additional_attributes: Record<string, unknown>;
|
|
2728
2728
|
custom_attributes: Record<string, unknown>;
|
|
@@ -2734,8 +2734,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2734
2734
|
id: number;
|
|
2735
2735
|
name: string | null;
|
|
2736
2736
|
email: string | null;
|
|
2737
|
-
phone_number: string | null;
|
|
2738
2737
|
thumbnail: string;
|
|
2738
|
+
phone_number: string | null;
|
|
2739
2739
|
identifier: string | null;
|
|
2740
2740
|
additional_attributes: Record<string, unknown>;
|
|
2741
2741
|
custom_attributes: Record<string, unknown>;
|
|
@@ -2764,8 +2764,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2764
2764
|
id: number;
|
|
2765
2765
|
name: string | null;
|
|
2766
2766
|
email: string | null;
|
|
2767
|
-
phone_number: string | null;
|
|
2768
2767
|
thumbnail: string;
|
|
2768
|
+
phone_number: string | null;
|
|
2769
2769
|
identifier: string | null;
|
|
2770
2770
|
additional_attributes: Record<string, unknown>;
|
|
2771
2771
|
custom_attributes: Record<string, unknown>;
|
|
@@ -2786,8 +2786,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2786
2786
|
id: number;
|
|
2787
2787
|
name: string | null;
|
|
2788
2788
|
email: string | null;
|
|
2789
|
-
phone_number: string | null;
|
|
2790
2789
|
thumbnail: string;
|
|
2790
|
+
phone_number: string | null;
|
|
2791
2791
|
identifier: string | null;
|
|
2792
2792
|
additional_attributes: Record<string, unknown>;
|
|
2793
2793
|
custom_attributes: Record<string, unknown>;
|
|
@@ -2822,33 +2822,9 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2822
2822
|
created_at: z.ZodNumber;
|
|
2823
2823
|
updated_at: z.ZodNumber;
|
|
2824
2824
|
}, "strip", z.ZodTypeAny, {
|
|
2825
|
-
id: number;
|
|
2826
2825
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2826
|
+
id: number;
|
|
2827
2827
|
created_at: number;
|
|
2828
|
-
updated_at: number;
|
|
2829
|
-
meta: {
|
|
2830
|
-
sender: {
|
|
2831
|
-
id: number;
|
|
2832
|
-
name: string | null;
|
|
2833
|
-
email: string | null;
|
|
2834
|
-
phone_number: string | null;
|
|
2835
|
-
thumbnail: string;
|
|
2836
|
-
identifier: string | null;
|
|
2837
|
-
additional_attributes: Record<string, unknown>;
|
|
2838
|
-
custom_attributes: Record<string, unknown>;
|
|
2839
|
-
blocked: boolean;
|
|
2840
|
-
customer_stage: string;
|
|
2841
|
-
customer_stage_explanation: string | null;
|
|
2842
|
-
type?: string | undefined;
|
|
2843
|
-
};
|
|
2844
|
-
hmac_verified: boolean;
|
|
2845
|
-
assignee: {
|
|
2846
|
-
id: number;
|
|
2847
|
-
name: string;
|
|
2848
|
-
email: string;
|
|
2849
|
-
} | null;
|
|
2850
|
-
team?: unknown;
|
|
2851
|
-
};
|
|
2852
2828
|
priority: string | null;
|
|
2853
2829
|
additional_attributes: {
|
|
2854
2830
|
browser?: {
|
|
@@ -2868,41 +2844,40 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2868
2844
|
};
|
|
2869
2845
|
custom_attributes: Record<string, unknown>;
|
|
2870
2846
|
inbox_id: number;
|
|
2847
|
+
updated_at: number;
|
|
2871
2848
|
channel: string;
|
|
2872
2849
|
can_reply: boolean;
|
|
2873
2850
|
contact_inbox: {
|
|
2874
2851
|
id: number;
|
|
2875
2852
|
created_at: string;
|
|
2876
|
-
updated_at: string;
|
|
2877
2853
|
contact_id: number;
|
|
2878
2854
|
inbox_id: number;
|
|
2879
2855
|
source_id: string | null;
|
|
2856
|
+
updated_at: string;
|
|
2880
2857
|
hmac_verified: boolean;
|
|
2881
2858
|
pubsub_token: string;
|
|
2882
2859
|
};
|
|
2883
2860
|
messages: {
|
|
2884
|
-
id: number;
|
|
2885
|
-
status: string;
|
|
2886
|
-
account_id: number;
|
|
2887
|
-
created_at: number;
|
|
2888
|
-
updated_at: string;
|
|
2889
2861
|
content: string | null;
|
|
2890
2862
|
message_type: number;
|
|
2891
2863
|
private: boolean;
|
|
2892
2864
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2865
|
+
status: string;
|
|
2893
2866
|
content_attributes: {
|
|
2894
2867
|
in_reply_to?: unknown;
|
|
2895
2868
|
} & {
|
|
2896
2869
|
[k: string]: unknown;
|
|
2897
2870
|
};
|
|
2871
|
+
id: number;
|
|
2872
|
+
created_at: number;
|
|
2898
2873
|
conversation_id: number;
|
|
2899
2874
|
sender: {
|
|
2900
2875
|
id: number;
|
|
2876
|
+
type?: string | undefined;
|
|
2901
2877
|
name?: string | null | undefined;
|
|
2902
2878
|
email?: string | null | undefined;
|
|
2903
|
-
phone_number?: string | null | undefined;
|
|
2904
|
-
type?: string | undefined;
|
|
2905
2879
|
thumbnail?: string | undefined;
|
|
2880
|
+
phone_number?: string | null | undefined;
|
|
2906
2881
|
identifier?: string | null | undefined;
|
|
2907
2882
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
2908
2883
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -2913,6 +2888,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2913
2888
|
additional_attributes: Record<string, unknown>;
|
|
2914
2889
|
inbox_id: number;
|
|
2915
2890
|
source_id: string | null;
|
|
2891
|
+
updated_at: string;
|
|
2892
|
+
account_id: number;
|
|
2916
2893
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
2917
2894
|
sender_id: number;
|
|
2918
2895
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2931,31 +2908,13 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2931
2908
|
assignee_id: number | null;
|
|
2932
2909
|
};
|
|
2933
2910
|
}[];
|
|
2934
|
-
labels: string[];
|
|
2935
|
-
snoozed_until: number | null;
|
|
2936
|
-
unread_count: number;
|
|
2937
|
-
first_reply_created_at: string | number | null;
|
|
2938
|
-
waiting_since: number | null;
|
|
2939
|
-
ai_disabled: boolean;
|
|
2940
|
-
reenable_ai_at: number | null;
|
|
2941
|
-
ai_summary: string | null;
|
|
2942
|
-
conversation_type: string;
|
|
2943
|
-
agent_last_seen_at: number;
|
|
2944
|
-
contact_last_seen_at: number;
|
|
2945
|
-
last_activity_at: number;
|
|
2946
|
-
timestamp: number;
|
|
2947
|
-
}, {
|
|
2948
|
-
id: number;
|
|
2949
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2950
|
-
created_at: number;
|
|
2951
|
-
updated_at: number;
|
|
2952
2911
|
meta: {
|
|
2953
2912
|
sender: {
|
|
2954
2913
|
id: number;
|
|
2955
2914
|
name: string | null;
|
|
2956
2915
|
email: string | null;
|
|
2957
|
-
phone_number: string | null;
|
|
2958
2916
|
thumbnail: string;
|
|
2917
|
+
phone_number: string | null;
|
|
2959
2918
|
identifier: string | null;
|
|
2960
2919
|
additional_attributes: Record<string, unknown>;
|
|
2961
2920
|
custom_attributes: Record<string, unknown>;
|
|
@@ -2972,6 +2931,23 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2972
2931
|
} | null;
|
|
2973
2932
|
team?: unknown;
|
|
2974
2933
|
};
|
|
2934
|
+
labels: string[];
|
|
2935
|
+
snoozed_until: number | null;
|
|
2936
|
+
unread_count: number;
|
|
2937
|
+
first_reply_created_at: string | number | null;
|
|
2938
|
+
waiting_since: number | null;
|
|
2939
|
+
ai_disabled: boolean;
|
|
2940
|
+
reenable_ai_at: number | null;
|
|
2941
|
+
ai_summary: string | null;
|
|
2942
|
+
conversation_type: string;
|
|
2943
|
+
agent_last_seen_at: number;
|
|
2944
|
+
contact_last_seen_at: number;
|
|
2945
|
+
last_activity_at: number;
|
|
2946
|
+
timestamp: number;
|
|
2947
|
+
}, {
|
|
2948
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2949
|
+
id: number;
|
|
2950
|
+
created_at: number;
|
|
2975
2951
|
priority: string | null;
|
|
2976
2952
|
additional_attributes: {
|
|
2977
2953
|
browser?: {
|
|
@@ -2991,41 +2967,40 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2991
2967
|
};
|
|
2992
2968
|
custom_attributes: Record<string, unknown>;
|
|
2993
2969
|
inbox_id: number;
|
|
2970
|
+
updated_at: number;
|
|
2994
2971
|
channel: string;
|
|
2995
2972
|
can_reply: boolean;
|
|
2996
2973
|
contact_inbox: {
|
|
2997
2974
|
id: number;
|
|
2998
2975
|
created_at: string;
|
|
2999
|
-
updated_at: string;
|
|
3000
2976
|
contact_id: number;
|
|
3001
2977
|
inbox_id: number;
|
|
3002
2978
|
source_id: string | null;
|
|
2979
|
+
updated_at: string;
|
|
3003
2980
|
hmac_verified: boolean;
|
|
3004
2981
|
pubsub_token: string;
|
|
3005
2982
|
};
|
|
3006
2983
|
messages: {
|
|
3007
|
-
id: number;
|
|
3008
|
-
status: string;
|
|
3009
|
-
account_id: number;
|
|
3010
|
-
created_at: number;
|
|
3011
|
-
updated_at: string;
|
|
3012
2984
|
content: string | null;
|
|
3013
2985
|
message_type: number;
|
|
3014
2986
|
private: boolean;
|
|
3015
2987
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
2988
|
+
status: string;
|
|
3016
2989
|
content_attributes: {
|
|
3017
2990
|
in_reply_to?: unknown;
|
|
3018
2991
|
} & {
|
|
3019
2992
|
[k: string]: unknown;
|
|
3020
2993
|
};
|
|
2994
|
+
id: number;
|
|
2995
|
+
created_at: number;
|
|
3021
2996
|
conversation_id: number;
|
|
3022
2997
|
sender: {
|
|
3023
2998
|
id: number;
|
|
2999
|
+
type?: string | undefined;
|
|
3024
3000
|
name?: string | null | undefined;
|
|
3025
3001
|
email?: string | null | undefined;
|
|
3026
|
-
phone_number?: string | null | undefined;
|
|
3027
|
-
type?: string | undefined;
|
|
3028
3002
|
thumbnail?: string | undefined;
|
|
3003
|
+
phone_number?: string | null | undefined;
|
|
3029
3004
|
identifier?: string | null | undefined;
|
|
3030
3005
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3031
3006
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3036,6 +3011,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3036
3011
|
additional_attributes: Record<string, unknown>;
|
|
3037
3012
|
inbox_id: number;
|
|
3038
3013
|
source_id: string | null;
|
|
3014
|
+
updated_at: string;
|
|
3015
|
+
account_id: number;
|
|
3039
3016
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3040
3017
|
sender_id: number;
|
|
3041
3018
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3054,6 +3031,29 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3054
3031
|
assignee_id: number | null;
|
|
3055
3032
|
};
|
|
3056
3033
|
}[];
|
|
3034
|
+
meta: {
|
|
3035
|
+
sender: {
|
|
3036
|
+
id: number;
|
|
3037
|
+
name: string | null;
|
|
3038
|
+
email: string | null;
|
|
3039
|
+
thumbnail: string;
|
|
3040
|
+
phone_number: string | null;
|
|
3041
|
+
identifier: string | null;
|
|
3042
|
+
additional_attributes: Record<string, unknown>;
|
|
3043
|
+
custom_attributes: Record<string, unknown>;
|
|
3044
|
+
blocked: boolean;
|
|
3045
|
+
customer_stage: string;
|
|
3046
|
+
customer_stage_explanation: string | null;
|
|
3047
|
+
type?: string | undefined;
|
|
3048
|
+
};
|
|
3049
|
+
hmac_verified: boolean;
|
|
3050
|
+
assignee: {
|
|
3051
|
+
id: number;
|
|
3052
|
+
name: string;
|
|
3053
|
+
email: string;
|
|
3054
|
+
} | null;
|
|
3055
|
+
team?: unknown;
|
|
3056
|
+
};
|
|
3057
3057
|
labels: string[];
|
|
3058
3058
|
snoozed_until: number | null;
|
|
3059
3059
|
unread_count: number;
|
|
@@ -3111,8 +3111,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3111
3111
|
id: number;
|
|
3112
3112
|
name?: string | null | undefined;
|
|
3113
3113
|
email?: string | null | undefined;
|
|
3114
|
-
phone_number?: string | null | undefined;
|
|
3115
3114
|
thumbnail?: string | undefined;
|
|
3115
|
+
phone_number?: string | null | undefined;
|
|
3116
3116
|
identifier?: string | null | undefined;
|
|
3117
3117
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3118
3118
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3128,8 +3128,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3128
3128
|
id: number;
|
|
3129
3129
|
name?: string | null | undefined;
|
|
3130
3130
|
email?: string | null | undefined;
|
|
3131
|
-
phone_number?: string | null | undefined;
|
|
3132
3131
|
thumbnail?: string | undefined;
|
|
3132
|
+
phone_number?: string | null | undefined;
|
|
3133
3133
|
identifier?: string | null | undefined;
|
|
3134
3134
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3135
3135
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3146,24 +3146,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3146
3146
|
} & {
|
|
3147
3147
|
event: z.ZodLiteral<"message_updated">;
|
|
3148
3148
|
}, "strip", z.ZodTypeAny, {
|
|
3149
|
-
id: number;
|
|
3150
|
-
status: string;
|
|
3151
|
-
created_at: string;
|
|
3152
3149
|
content: string | null;
|
|
3153
3150
|
message_type: "incoming" | "outgoing";
|
|
3154
3151
|
private: boolean;
|
|
3155
3152
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3153
|
+
status: string;
|
|
3156
3154
|
content_attributes: {
|
|
3157
3155
|
in_reply_to?: unknown;
|
|
3158
3156
|
} & {
|
|
3159
3157
|
[k: string]: unknown;
|
|
3160
3158
|
};
|
|
3159
|
+
id: number;
|
|
3160
|
+
created_at: string;
|
|
3161
3161
|
sender: {
|
|
3162
3162
|
id: number;
|
|
3163
3163
|
name?: string | null | undefined;
|
|
3164
3164
|
email?: string | null | undefined;
|
|
3165
|
-
phone_number?: string | null | undefined;
|
|
3166
3165
|
thumbnail?: string | undefined;
|
|
3166
|
+
phone_number?: string | null | undefined;
|
|
3167
3167
|
identifier?: string | null | undefined;
|
|
3168
3168
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3169
3169
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3183,33 +3183,9 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3183
3183
|
name: string;
|
|
3184
3184
|
};
|
|
3185
3185
|
conversation: {
|
|
3186
|
-
id: number;
|
|
3187
3186
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3187
|
+
id: number;
|
|
3188
3188
|
created_at: number;
|
|
3189
|
-
updated_at: number;
|
|
3190
|
-
meta: {
|
|
3191
|
-
sender: {
|
|
3192
|
-
id: number;
|
|
3193
|
-
name: string | null;
|
|
3194
|
-
email: string | null;
|
|
3195
|
-
phone_number: string | null;
|
|
3196
|
-
thumbnail: string;
|
|
3197
|
-
identifier: string | null;
|
|
3198
|
-
additional_attributes: Record<string, unknown>;
|
|
3199
|
-
custom_attributes: Record<string, unknown>;
|
|
3200
|
-
blocked: boolean;
|
|
3201
|
-
customer_stage: string;
|
|
3202
|
-
customer_stage_explanation: string | null;
|
|
3203
|
-
type?: string | undefined;
|
|
3204
|
-
};
|
|
3205
|
-
hmac_verified: boolean;
|
|
3206
|
-
assignee: {
|
|
3207
|
-
id: number;
|
|
3208
|
-
name: string;
|
|
3209
|
-
email: string;
|
|
3210
|
-
} | null;
|
|
3211
|
-
team?: unknown;
|
|
3212
|
-
};
|
|
3213
3189
|
priority: string | null;
|
|
3214
3190
|
additional_attributes: {
|
|
3215
3191
|
browser?: {
|
|
@@ -3229,41 +3205,40 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3229
3205
|
};
|
|
3230
3206
|
custom_attributes: Record<string, unknown>;
|
|
3231
3207
|
inbox_id: number;
|
|
3208
|
+
updated_at: number;
|
|
3232
3209
|
channel: string;
|
|
3233
3210
|
can_reply: boolean;
|
|
3234
3211
|
contact_inbox: {
|
|
3235
3212
|
id: number;
|
|
3236
3213
|
created_at: string;
|
|
3237
|
-
updated_at: string;
|
|
3238
3214
|
contact_id: number;
|
|
3239
3215
|
inbox_id: number;
|
|
3240
3216
|
source_id: string | null;
|
|
3217
|
+
updated_at: string;
|
|
3241
3218
|
hmac_verified: boolean;
|
|
3242
3219
|
pubsub_token: string;
|
|
3243
3220
|
};
|
|
3244
3221
|
messages: {
|
|
3245
|
-
id: number;
|
|
3246
|
-
status: string;
|
|
3247
|
-
account_id: number;
|
|
3248
|
-
created_at: number;
|
|
3249
|
-
updated_at: string;
|
|
3250
3222
|
content: string | null;
|
|
3251
3223
|
message_type: number;
|
|
3252
3224
|
private: boolean;
|
|
3253
3225
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3226
|
+
status: string;
|
|
3254
3227
|
content_attributes: {
|
|
3255
3228
|
in_reply_to?: unknown;
|
|
3256
3229
|
} & {
|
|
3257
3230
|
[k: string]: unknown;
|
|
3258
3231
|
};
|
|
3232
|
+
id: number;
|
|
3233
|
+
created_at: number;
|
|
3259
3234
|
conversation_id: number;
|
|
3260
3235
|
sender: {
|
|
3261
3236
|
id: number;
|
|
3237
|
+
type?: string | undefined;
|
|
3262
3238
|
name?: string | null | undefined;
|
|
3263
3239
|
email?: string | null | undefined;
|
|
3264
|
-
phone_number?: string | null | undefined;
|
|
3265
|
-
type?: string | undefined;
|
|
3266
3240
|
thumbnail?: string | undefined;
|
|
3241
|
+
phone_number?: string | null | undefined;
|
|
3267
3242
|
identifier?: string | null | undefined;
|
|
3268
3243
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3269
3244
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3274,6 +3249,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3274
3249
|
additional_attributes: Record<string, unknown>;
|
|
3275
3250
|
inbox_id: number;
|
|
3276
3251
|
source_id: string | null;
|
|
3252
|
+
updated_at: string;
|
|
3253
|
+
account_id: number;
|
|
3277
3254
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3278
3255
|
sender_id: number;
|
|
3279
3256
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3292,7 +3269,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3292
3269
|
assignee_id: number | null;
|
|
3293
3270
|
};
|
|
3294
3271
|
}[];
|
|
3295
|
-
|
|
3272
|
+
meta: {
|
|
3273
|
+
sender: {
|
|
3274
|
+
id: number;
|
|
3275
|
+
name: string | null;
|
|
3276
|
+
email: string | null;
|
|
3277
|
+
thumbnail: string;
|
|
3278
|
+
phone_number: string | null;
|
|
3279
|
+
identifier: string | null;
|
|
3280
|
+
additional_attributes: Record<string, unknown>;
|
|
3281
|
+
custom_attributes: Record<string, unknown>;
|
|
3282
|
+
blocked: boolean;
|
|
3283
|
+
customer_stage: string;
|
|
3284
|
+
customer_stage_explanation: string | null;
|
|
3285
|
+
type?: string | undefined;
|
|
3286
|
+
};
|
|
3287
|
+
hmac_verified: boolean;
|
|
3288
|
+
assignee: {
|
|
3289
|
+
id: number;
|
|
3290
|
+
name: string;
|
|
3291
|
+
email: string;
|
|
3292
|
+
} | null;
|
|
3293
|
+
team?: unknown;
|
|
3294
|
+
};
|
|
3295
|
+
labels: string[];
|
|
3296
3296
|
snoozed_until: number | null;
|
|
3297
3297
|
unread_count: number;
|
|
3298
3298
|
first_reply_created_at: string | number | null;
|
|
@@ -3312,24 +3312,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3312
3312
|
};
|
|
3313
3313
|
event: "message_updated";
|
|
3314
3314
|
}, {
|
|
3315
|
-
id: number;
|
|
3316
|
-
status: string;
|
|
3317
|
-
created_at: string;
|
|
3318
3315
|
content: string | null;
|
|
3319
3316
|
message_type: "incoming" | "outgoing";
|
|
3320
3317
|
private: boolean;
|
|
3321
3318
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3319
|
+
status: string;
|
|
3322
3320
|
content_attributes: {
|
|
3323
3321
|
in_reply_to?: unknown;
|
|
3324
3322
|
} & {
|
|
3325
3323
|
[k: string]: unknown;
|
|
3326
3324
|
};
|
|
3325
|
+
id: number;
|
|
3326
|
+
created_at: string;
|
|
3327
3327
|
sender: {
|
|
3328
3328
|
id: number;
|
|
3329
3329
|
name?: string | null | undefined;
|
|
3330
3330
|
email?: string | null | undefined;
|
|
3331
|
-
phone_number?: string | null | undefined;
|
|
3332
3331
|
thumbnail?: string | undefined;
|
|
3332
|
+
phone_number?: string | null | undefined;
|
|
3333
3333
|
identifier?: string | null | undefined;
|
|
3334
3334
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3335
3335
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3349,33 +3349,9 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3349
3349
|
name: string;
|
|
3350
3350
|
};
|
|
3351
3351
|
conversation: {
|
|
3352
|
-
id: number;
|
|
3353
3352
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3353
|
+
id: number;
|
|
3354
3354
|
created_at: number;
|
|
3355
|
-
updated_at: number;
|
|
3356
|
-
meta: {
|
|
3357
|
-
sender: {
|
|
3358
|
-
id: number;
|
|
3359
|
-
name: string | null;
|
|
3360
|
-
email: string | null;
|
|
3361
|
-
phone_number: string | null;
|
|
3362
|
-
thumbnail: string;
|
|
3363
|
-
identifier: string | null;
|
|
3364
|
-
additional_attributes: Record<string, unknown>;
|
|
3365
|
-
custom_attributes: Record<string, unknown>;
|
|
3366
|
-
blocked: boolean;
|
|
3367
|
-
customer_stage: string;
|
|
3368
|
-
customer_stage_explanation: string | null;
|
|
3369
|
-
type?: string | undefined;
|
|
3370
|
-
};
|
|
3371
|
-
hmac_verified: boolean;
|
|
3372
|
-
assignee: {
|
|
3373
|
-
id: number;
|
|
3374
|
-
name: string;
|
|
3375
|
-
email: string;
|
|
3376
|
-
} | null;
|
|
3377
|
-
team?: unknown;
|
|
3378
|
-
};
|
|
3379
3355
|
priority: string | null;
|
|
3380
3356
|
additional_attributes: {
|
|
3381
3357
|
browser?: {
|
|
@@ -3395,41 +3371,40 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3395
3371
|
};
|
|
3396
3372
|
custom_attributes: Record<string, unknown>;
|
|
3397
3373
|
inbox_id: number;
|
|
3374
|
+
updated_at: number;
|
|
3398
3375
|
channel: string;
|
|
3399
3376
|
can_reply: boolean;
|
|
3400
3377
|
contact_inbox: {
|
|
3401
3378
|
id: number;
|
|
3402
3379
|
created_at: string;
|
|
3403
|
-
updated_at: string;
|
|
3404
3380
|
contact_id: number;
|
|
3405
3381
|
inbox_id: number;
|
|
3406
3382
|
source_id: string | null;
|
|
3383
|
+
updated_at: string;
|
|
3407
3384
|
hmac_verified: boolean;
|
|
3408
3385
|
pubsub_token: string;
|
|
3409
3386
|
};
|
|
3410
3387
|
messages: {
|
|
3411
|
-
id: number;
|
|
3412
|
-
status: string;
|
|
3413
|
-
account_id: number;
|
|
3414
|
-
created_at: number;
|
|
3415
|
-
updated_at: string;
|
|
3416
3388
|
content: string | null;
|
|
3417
3389
|
message_type: number;
|
|
3418
3390
|
private: boolean;
|
|
3419
3391
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3392
|
+
status: string;
|
|
3420
3393
|
content_attributes: {
|
|
3421
3394
|
in_reply_to?: unknown;
|
|
3422
3395
|
} & {
|
|
3423
3396
|
[k: string]: unknown;
|
|
3424
3397
|
};
|
|
3398
|
+
id: number;
|
|
3399
|
+
created_at: number;
|
|
3425
3400
|
conversation_id: number;
|
|
3426
3401
|
sender: {
|
|
3427
3402
|
id: number;
|
|
3403
|
+
type?: string | undefined;
|
|
3428
3404
|
name?: string | null | undefined;
|
|
3429
3405
|
email?: string | null | undefined;
|
|
3430
|
-
phone_number?: string | null | undefined;
|
|
3431
|
-
type?: string | undefined;
|
|
3432
3406
|
thumbnail?: string | undefined;
|
|
3407
|
+
phone_number?: string | null | undefined;
|
|
3433
3408
|
identifier?: string | null | undefined;
|
|
3434
3409
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3435
3410
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3440,6 +3415,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3440
3415
|
additional_attributes: Record<string, unknown>;
|
|
3441
3416
|
inbox_id: number;
|
|
3442
3417
|
source_id: string | null;
|
|
3418
|
+
updated_at: string;
|
|
3419
|
+
account_id: number;
|
|
3443
3420
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3444
3421
|
sender_id: number;
|
|
3445
3422
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3458,6 +3435,29 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3458
3435
|
assignee_id: number | null;
|
|
3459
3436
|
};
|
|
3460
3437
|
}[];
|
|
3438
|
+
meta: {
|
|
3439
|
+
sender: {
|
|
3440
|
+
id: number;
|
|
3441
|
+
name: string | null;
|
|
3442
|
+
email: string | null;
|
|
3443
|
+
thumbnail: string;
|
|
3444
|
+
phone_number: string | null;
|
|
3445
|
+
identifier: string | null;
|
|
3446
|
+
additional_attributes: Record<string, unknown>;
|
|
3447
|
+
custom_attributes: Record<string, unknown>;
|
|
3448
|
+
blocked: boolean;
|
|
3449
|
+
customer_stage: string;
|
|
3450
|
+
customer_stage_explanation: string | null;
|
|
3451
|
+
type?: string | undefined;
|
|
3452
|
+
};
|
|
3453
|
+
hmac_verified: boolean;
|
|
3454
|
+
assignee: {
|
|
3455
|
+
id: number;
|
|
3456
|
+
name: string;
|
|
3457
|
+
email: string;
|
|
3458
|
+
} | null;
|
|
3459
|
+
team?: unknown;
|
|
3460
|
+
};
|
|
3461
3461
|
labels: string[];
|
|
3462
3462
|
snoozed_until: number | null;
|
|
3463
3463
|
unread_count: number;
|
|
@@ -3602,19 +3602,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3602
3602
|
}, "strip", z.ZodTypeAny, {
|
|
3603
3603
|
id: number;
|
|
3604
3604
|
created_at: string;
|
|
3605
|
-
updated_at: string;
|
|
3606
3605
|
contact_id: number;
|
|
3607
3606
|
inbox_id: number;
|
|
3608
3607
|
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
3613
|
created_at: string;
|
|
3614
|
-
updated_at: string;
|
|
3615
3614
|
contact_id: number;
|
|
3616
3615
|
inbox_id: number;
|
|
3617
3616
|
source_id: string | null;
|
|
3617
|
+
updated_at: string;
|
|
3618
3618
|
hmac_verified: boolean;
|
|
3619
3619
|
pubsub_token: string;
|
|
3620
3620
|
}>;
|
|
@@ -3692,11 +3692,11 @@ 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
|
+
type?: string | undefined;
|
|
3695
3696
|
name?: string | null | undefined;
|
|
3696
3697
|
email?: string | null | undefined;
|
|
3697
|
-
phone_number?: string | null | undefined;
|
|
3698
|
-
type?: string | undefined;
|
|
3699
3698
|
thumbnail?: string | undefined;
|
|
3699
|
+
phone_number?: string | null | undefined;
|
|
3700
3700
|
identifier?: string | null | undefined;
|
|
3701
3701
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3702
3702
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3705,11 +3705,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3705
3705
|
customer_stage_explanation?: string | null | undefined;
|
|
3706
3706
|
}, {
|
|
3707
3707
|
id: number;
|
|
3708
|
+
type?: string | undefined;
|
|
3708
3709
|
name?: string | null | undefined;
|
|
3709
3710
|
email?: string | null | undefined;
|
|
3710
|
-
phone_number?: string | null | undefined;
|
|
3711
|
-
type?: string | undefined;
|
|
3712
3711
|
thumbnail?: string | undefined;
|
|
3712
|
+
phone_number?: string | null | undefined;
|
|
3713
3713
|
identifier?: string | null | undefined;
|
|
3714
3714
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3715
3715
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3718,28 +3718,26 @@ 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
|
-
id: number;
|
|
3722
|
-
status: string;
|
|
3723
|
-
account_id: number;
|
|
3724
|
-
created_at: number;
|
|
3725
|
-
updated_at: string;
|
|
3726
3721
|
content: string | null;
|
|
3727
3722
|
message_type: number;
|
|
3728
3723
|
private: boolean;
|
|
3729
3724
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3725
|
+
status: string;
|
|
3730
3726
|
content_attributes: {
|
|
3731
3727
|
in_reply_to?: unknown;
|
|
3732
3728
|
} & {
|
|
3733
3729
|
[k: string]: unknown;
|
|
3734
3730
|
};
|
|
3731
|
+
id: number;
|
|
3732
|
+
created_at: number;
|
|
3735
3733
|
conversation_id: number;
|
|
3736
3734
|
sender: {
|
|
3737
3735
|
id: number;
|
|
3736
|
+
type?: string | undefined;
|
|
3738
3737
|
name?: string | null | undefined;
|
|
3739
3738
|
email?: string | null | undefined;
|
|
3740
|
-
phone_number?: string | null | undefined;
|
|
3741
|
-
type?: string | undefined;
|
|
3742
3739
|
thumbnail?: string | undefined;
|
|
3740
|
+
phone_number?: string | null | undefined;
|
|
3743
3741
|
identifier?: string | null | undefined;
|
|
3744
3742
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3745
3743
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3750,6 +3748,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3750
3748
|
additional_attributes: Record<string, unknown>;
|
|
3751
3749
|
inbox_id: number;
|
|
3752
3750
|
source_id: string | null;
|
|
3751
|
+
updated_at: string;
|
|
3752
|
+
account_id: number;
|
|
3753
3753
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3754
3754
|
sender_id: number;
|
|
3755
3755
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3768,28 +3768,26 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3768
3768
|
assignee_id: number | null;
|
|
3769
3769
|
};
|
|
3770
3770
|
}, {
|
|
3771
|
-
id: number;
|
|
3772
|
-
status: string;
|
|
3773
|
-
account_id: number;
|
|
3774
|
-
created_at: number;
|
|
3775
|
-
updated_at: string;
|
|
3776
3771
|
content: string | null;
|
|
3777
3772
|
message_type: number;
|
|
3778
3773
|
private: boolean;
|
|
3779
3774
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3775
|
+
status: string;
|
|
3780
3776
|
content_attributes: {
|
|
3781
3777
|
in_reply_to?: unknown;
|
|
3782
3778
|
} & {
|
|
3783
3779
|
[k: string]: unknown;
|
|
3784
3780
|
};
|
|
3781
|
+
id: number;
|
|
3782
|
+
created_at: number;
|
|
3785
3783
|
conversation_id: number;
|
|
3786
3784
|
sender: {
|
|
3787
3785
|
id: number;
|
|
3786
|
+
type?: string | undefined;
|
|
3788
3787
|
name?: string | null | undefined;
|
|
3789
3788
|
email?: string | null | undefined;
|
|
3790
|
-
phone_number?: string | null | undefined;
|
|
3791
|
-
type?: string | undefined;
|
|
3792
3789
|
thumbnail?: string | undefined;
|
|
3790
|
+
phone_number?: string | null | undefined;
|
|
3793
3791
|
identifier?: string | null | undefined;
|
|
3794
3792
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
3795
3793
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -3800,6 +3798,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3800
3798
|
additional_attributes: Record<string, unknown>;
|
|
3801
3799
|
inbox_id: number;
|
|
3802
3800
|
source_id: string | null;
|
|
3801
|
+
updated_at: string;
|
|
3802
|
+
account_id: number;
|
|
3803
3803
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
3804
3804
|
sender_id: number;
|
|
3805
3805
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3837,8 +3837,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3837
3837
|
id: number;
|
|
3838
3838
|
name: string | null;
|
|
3839
3839
|
email: string | null;
|
|
3840
|
-
phone_number: string | null;
|
|
3841
3840
|
thumbnail: string;
|
|
3841
|
+
phone_number: string | null;
|
|
3842
3842
|
identifier: string | null;
|
|
3843
3843
|
additional_attributes: Record<string, unknown>;
|
|
3844
3844
|
custom_attributes: Record<string, unknown>;
|
|
@@ -3850,8 +3850,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3850
3850
|
id: number;
|
|
3851
3851
|
name: string | null;
|
|
3852
3852
|
email: string | null;
|
|
3853
|
-
phone_number: string | null;
|
|
3854
3853
|
thumbnail: string;
|
|
3854
|
+
phone_number: string | null;
|
|
3855
3855
|
identifier: string | null;
|
|
3856
3856
|
additional_attributes: Record<string, unknown>;
|
|
3857
3857
|
custom_attributes: Record<string, unknown>;
|
|
@@ -3880,8 +3880,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3880
3880
|
id: number;
|
|
3881
3881
|
name: string | null;
|
|
3882
3882
|
email: string | null;
|
|
3883
|
-
phone_number: string | null;
|
|
3884
3883
|
thumbnail: string;
|
|
3884
|
+
phone_number: string | null;
|
|
3885
3885
|
identifier: string | null;
|
|
3886
3886
|
additional_attributes: Record<string, unknown>;
|
|
3887
3887
|
custom_attributes: Record<string, unknown>;
|
|
@@ -3902,8 +3902,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3902
3902
|
id: number;
|
|
3903
3903
|
name: string | null;
|
|
3904
3904
|
email: string | null;
|
|
3905
|
-
phone_number: string | null;
|
|
3906
3905
|
thumbnail: string;
|
|
3906
|
+
phone_number: string | null;
|
|
3907
3907
|
identifier: string | null;
|
|
3908
3908
|
additional_attributes: Record<string, unknown>;
|
|
3909
3909
|
custom_attributes: Record<string, unknown>;
|
|
@@ -3938,33 +3938,9 @@ 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
|
-
id: number;
|
|
3942
3941
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3942
|
+
id: number;
|
|
3943
3943
|
created_at: number;
|
|
3944
|
-
updated_at: number;
|
|
3945
|
-
meta: {
|
|
3946
|
-
sender: {
|
|
3947
|
-
id: number;
|
|
3948
|
-
name: string | null;
|
|
3949
|
-
email: string | null;
|
|
3950
|
-
phone_number: string | null;
|
|
3951
|
-
thumbnail: string;
|
|
3952
|
-
identifier: string | null;
|
|
3953
|
-
additional_attributes: Record<string, unknown>;
|
|
3954
|
-
custom_attributes: Record<string, unknown>;
|
|
3955
|
-
blocked: boolean;
|
|
3956
|
-
customer_stage: string;
|
|
3957
|
-
customer_stage_explanation: string | null;
|
|
3958
|
-
type?: string | undefined;
|
|
3959
|
-
};
|
|
3960
|
-
hmac_verified: boolean;
|
|
3961
|
-
assignee: {
|
|
3962
|
-
id: number;
|
|
3963
|
-
name: string;
|
|
3964
|
-
email: string;
|
|
3965
|
-
} | null;
|
|
3966
|
-
team?: unknown;
|
|
3967
|
-
};
|
|
3968
3944
|
priority: string | null;
|
|
3969
3945
|
additional_attributes: {
|
|
3970
3946
|
browser?: {
|
|
@@ -3984,41 +3960,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3984
3960
|
};
|
|
3985
3961
|
custom_attributes: Record<string, unknown>;
|
|
3986
3962
|
inbox_id: number;
|
|
3963
|
+
updated_at: number;
|
|
3987
3964
|
channel: string;
|
|
3988
3965
|
can_reply: boolean;
|
|
3989
3966
|
contact_inbox: {
|
|
3990
3967
|
id: number;
|
|
3991
3968
|
created_at: string;
|
|
3992
|
-
updated_at: string;
|
|
3993
3969
|
contact_id: number;
|
|
3994
3970
|
inbox_id: number;
|
|
3995
3971
|
source_id: string | null;
|
|
3972
|
+
updated_at: string;
|
|
3996
3973
|
hmac_verified: boolean;
|
|
3997
3974
|
pubsub_token: string;
|
|
3998
3975
|
};
|
|
3999
3976
|
messages: {
|
|
4000
|
-
id: number;
|
|
4001
|
-
status: string;
|
|
4002
|
-
account_id: number;
|
|
4003
|
-
created_at: number;
|
|
4004
|
-
updated_at: string;
|
|
4005
3977
|
content: string | null;
|
|
4006
3978
|
message_type: number;
|
|
4007
3979
|
private: boolean;
|
|
4008
3980
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
3981
|
+
status: string;
|
|
4009
3982
|
content_attributes: {
|
|
4010
3983
|
in_reply_to?: unknown;
|
|
4011
3984
|
} & {
|
|
4012
3985
|
[k: string]: unknown;
|
|
4013
3986
|
};
|
|
3987
|
+
id: number;
|
|
3988
|
+
created_at: number;
|
|
4014
3989
|
conversation_id: number;
|
|
4015
3990
|
sender: {
|
|
4016
3991
|
id: number;
|
|
3992
|
+
type?: string | undefined;
|
|
4017
3993
|
name?: string | null | undefined;
|
|
4018
3994
|
email?: string | null | undefined;
|
|
4019
|
-
phone_number?: string | null | undefined;
|
|
4020
|
-
type?: string | undefined;
|
|
4021
3995
|
thumbnail?: string | undefined;
|
|
3996
|
+
phone_number?: string | null | undefined;
|
|
4022
3997
|
identifier?: string | null | undefined;
|
|
4023
3998
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4024
3999
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4029,6 +4004,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4029
4004
|
additional_attributes: Record<string, unknown>;
|
|
4030
4005
|
inbox_id: number;
|
|
4031
4006
|
source_id: string | null;
|
|
4007
|
+
updated_at: string;
|
|
4008
|
+
account_id: number;
|
|
4032
4009
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4033
4010
|
sender_id: number;
|
|
4034
4011
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4047,31 +4024,13 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4047
4024
|
assignee_id: number | null;
|
|
4048
4025
|
};
|
|
4049
4026
|
}[];
|
|
4050
|
-
labels: string[];
|
|
4051
|
-
snoozed_until: number | null;
|
|
4052
|
-
unread_count: number;
|
|
4053
|
-
first_reply_created_at: string | number | null;
|
|
4054
|
-
waiting_since: number | null;
|
|
4055
|
-
ai_disabled: boolean;
|
|
4056
|
-
reenable_ai_at: number | null;
|
|
4057
|
-
ai_summary: string | null;
|
|
4058
|
-
conversation_type: string;
|
|
4059
|
-
agent_last_seen_at: number;
|
|
4060
|
-
contact_last_seen_at: number;
|
|
4061
|
-
last_activity_at: number;
|
|
4062
|
-
timestamp: number;
|
|
4063
|
-
}, {
|
|
4064
|
-
id: number;
|
|
4065
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4066
|
-
created_at: number;
|
|
4067
|
-
updated_at: number;
|
|
4068
4027
|
meta: {
|
|
4069
4028
|
sender: {
|
|
4070
4029
|
id: number;
|
|
4071
4030
|
name: string | null;
|
|
4072
4031
|
email: string | null;
|
|
4073
|
-
phone_number: string | null;
|
|
4074
4032
|
thumbnail: string;
|
|
4033
|
+
phone_number: string | null;
|
|
4075
4034
|
identifier: string | null;
|
|
4076
4035
|
additional_attributes: Record<string, unknown>;
|
|
4077
4036
|
custom_attributes: Record<string, unknown>;
|
|
@@ -4088,6 +4047,23 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4088
4047
|
} | null;
|
|
4089
4048
|
team?: unknown;
|
|
4090
4049
|
};
|
|
4050
|
+
labels: string[];
|
|
4051
|
+
snoozed_until: number | null;
|
|
4052
|
+
unread_count: number;
|
|
4053
|
+
first_reply_created_at: string | number | null;
|
|
4054
|
+
waiting_since: number | null;
|
|
4055
|
+
ai_disabled: boolean;
|
|
4056
|
+
reenable_ai_at: number | null;
|
|
4057
|
+
ai_summary: string | null;
|
|
4058
|
+
conversation_type: string;
|
|
4059
|
+
agent_last_seen_at: number;
|
|
4060
|
+
contact_last_seen_at: number;
|
|
4061
|
+
last_activity_at: number;
|
|
4062
|
+
timestamp: number;
|
|
4063
|
+
}, {
|
|
4064
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4065
|
+
id: number;
|
|
4066
|
+
created_at: number;
|
|
4091
4067
|
priority: string | null;
|
|
4092
4068
|
additional_attributes: {
|
|
4093
4069
|
browser?: {
|
|
@@ -4107,41 +4083,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4107
4083
|
};
|
|
4108
4084
|
custom_attributes: Record<string, unknown>;
|
|
4109
4085
|
inbox_id: number;
|
|
4086
|
+
updated_at: number;
|
|
4110
4087
|
channel: string;
|
|
4111
4088
|
can_reply: boolean;
|
|
4112
4089
|
contact_inbox: {
|
|
4113
4090
|
id: number;
|
|
4114
4091
|
created_at: string;
|
|
4115
|
-
updated_at: string;
|
|
4116
4092
|
contact_id: number;
|
|
4117
4093
|
inbox_id: number;
|
|
4118
4094
|
source_id: string | null;
|
|
4095
|
+
updated_at: string;
|
|
4119
4096
|
hmac_verified: boolean;
|
|
4120
4097
|
pubsub_token: string;
|
|
4121
4098
|
};
|
|
4122
4099
|
messages: {
|
|
4123
|
-
id: number;
|
|
4124
|
-
status: string;
|
|
4125
|
-
account_id: number;
|
|
4126
|
-
created_at: number;
|
|
4127
|
-
updated_at: string;
|
|
4128
4100
|
content: string | null;
|
|
4129
4101
|
message_type: number;
|
|
4130
4102
|
private: boolean;
|
|
4131
4103
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4104
|
+
status: string;
|
|
4132
4105
|
content_attributes: {
|
|
4133
4106
|
in_reply_to?: unknown;
|
|
4134
4107
|
} & {
|
|
4135
4108
|
[k: string]: unknown;
|
|
4136
4109
|
};
|
|
4110
|
+
id: number;
|
|
4111
|
+
created_at: number;
|
|
4137
4112
|
conversation_id: number;
|
|
4138
4113
|
sender: {
|
|
4139
4114
|
id: number;
|
|
4115
|
+
type?: string | undefined;
|
|
4140
4116
|
name?: string | null | undefined;
|
|
4141
4117
|
email?: string | null | undefined;
|
|
4142
|
-
phone_number?: string | null | undefined;
|
|
4143
|
-
type?: string | undefined;
|
|
4144
4118
|
thumbnail?: string | undefined;
|
|
4119
|
+
phone_number?: string | null | undefined;
|
|
4145
4120
|
identifier?: string | null | undefined;
|
|
4146
4121
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4147
4122
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4152,6 +4127,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4152
4127
|
additional_attributes: Record<string, unknown>;
|
|
4153
4128
|
inbox_id: number;
|
|
4154
4129
|
source_id: string | null;
|
|
4130
|
+
updated_at: string;
|
|
4131
|
+
account_id: number;
|
|
4155
4132
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4156
4133
|
sender_id: number;
|
|
4157
4134
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4170,19 +4147,42 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4170
4147
|
assignee_id: number | null;
|
|
4171
4148
|
};
|
|
4172
4149
|
}[];
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4150
|
+
meta: {
|
|
4151
|
+
sender: {
|
|
4152
|
+
id: number;
|
|
4153
|
+
name: string | null;
|
|
4154
|
+
email: string | null;
|
|
4155
|
+
thumbnail: string;
|
|
4156
|
+
phone_number: string | null;
|
|
4157
|
+
identifier: string | null;
|
|
4158
|
+
additional_attributes: Record<string, unknown>;
|
|
4159
|
+
custom_attributes: Record<string, unknown>;
|
|
4160
|
+
blocked: boolean;
|
|
4161
|
+
customer_stage: string;
|
|
4162
|
+
customer_stage_explanation: string | null;
|
|
4163
|
+
type?: string | undefined;
|
|
4164
|
+
};
|
|
4165
|
+
hmac_verified: boolean;
|
|
4166
|
+
assignee: {
|
|
4167
|
+
id: number;
|
|
4168
|
+
name: string;
|
|
4169
|
+
email: string;
|
|
4170
|
+
} | null;
|
|
4171
|
+
team?: unknown;
|
|
4172
|
+
};
|
|
4173
|
+
labels: string[];
|
|
4174
|
+
snoozed_until: number | null;
|
|
4175
|
+
unread_count: number;
|
|
4176
|
+
first_reply_created_at: string | number | null;
|
|
4177
|
+
waiting_since: number | null;
|
|
4178
|
+
ai_disabled: boolean;
|
|
4179
|
+
reenable_ai_at: number | null;
|
|
4180
|
+
ai_summary: string | null;
|
|
4181
|
+
conversation_type: string;
|
|
4182
|
+
agent_last_seen_at: number;
|
|
4183
|
+
contact_last_seen_at: number;
|
|
4184
|
+
last_activity_at: number;
|
|
4185
|
+
timestamp: number;
|
|
4186
4186
|
}>;
|
|
4187
4187
|
created_at: z.ZodString;
|
|
4188
4188
|
id: z.ZodNumber;
|
|
@@ -4227,8 +4227,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4227
4227
|
id: number;
|
|
4228
4228
|
name?: string | null | undefined;
|
|
4229
4229
|
email?: string | null | undefined;
|
|
4230
|
-
phone_number?: string | null | undefined;
|
|
4231
4230
|
thumbnail?: string | undefined;
|
|
4231
|
+
phone_number?: string | null | undefined;
|
|
4232
4232
|
identifier?: string | null | undefined;
|
|
4233
4233
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4234
4234
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4244,8 +4244,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4244
4244
|
id: number;
|
|
4245
4245
|
name?: string | null | undefined;
|
|
4246
4246
|
email?: string | null | undefined;
|
|
4247
|
-
phone_number?: string | null | undefined;
|
|
4248
4247
|
thumbnail?: string | undefined;
|
|
4248
|
+
phone_number?: string | null | undefined;
|
|
4249
4249
|
identifier?: string | null | undefined;
|
|
4250
4250
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4251
4251
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4262,24 +4262,24 @@ 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;
|
|
4266
|
-
status: string;
|
|
4267
|
-
created_at: string;
|
|
4268
4265
|
content: string | null;
|
|
4269
4266
|
message_type: "incoming" | "outgoing";
|
|
4270
4267
|
private: boolean;
|
|
4271
4268
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4269
|
+
status: string;
|
|
4272
4270
|
content_attributes: {
|
|
4273
4271
|
in_reply_to?: unknown;
|
|
4274
4272
|
} & {
|
|
4275
4273
|
[k: string]: unknown;
|
|
4276
4274
|
};
|
|
4275
|
+
id: number;
|
|
4276
|
+
created_at: string;
|
|
4277
4277
|
sender: {
|
|
4278
4278
|
id: number;
|
|
4279
4279
|
name?: string | null | undefined;
|
|
4280
4280
|
email?: string | null | undefined;
|
|
4281
|
-
phone_number?: string | null | undefined;
|
|
4282
4281
|
thumbnail?: string | undefined;
|
|
4282
|
+
phone_number?: string | null | undefined;
|
|
4283
4283
|
identifier?: string | null | undefined;
|
|
4284
4284
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4285
4285
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4299,33 +4299,9 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4299
4299
|
name: string;
|
|
4300
4300
|
};
|
|
4301
4301
|
conversation: {
|
|
4302
|
-
id: number;
|
|
4303
4302
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4303
|
+
id: number;
|
|
4304
4304
|
created_at: number;
|
|
4305
|
-
updated_at: number;
|
|
4306
|
-
meta: {
|
|
4307
|
-
sender: {
|
|
4308
|
-
id: number;
|
|
4309
|
-
name: string | null;
|
|
4310
|
-
email: string | null;
|
|
4311
|
-
phone_number: string | null;
|
|
4312
|
-
thumbnail: string;
|
|
4313
|
-
identifier: string | null;
|
|
4314
|
-
additional_attributes: Record<string, unknown>;
|
|
4315
|
-
custom_attributes: Record<string, unknown>;
|
|
4316
|
-
blocked: boolean;
|
|
4317
|
-
customer_stage: string;
|
|
4318
|
-
customer_stage_explanation: string | null;
|
|
4319
|
-
type?: string | undefined;
|
|
4320
|
-
};
|
|
4321
|
-
hmac_verified: boolean;
|
|
4322
|
-
assignee: {
|
|
4323
|
-
id: number;
|
|
4324
|
-
name: string;
|
|
4325
|
-
email: string;
|
|
4326
|
-
} | null;
|
|
4327
|
-
team?: unknown;
|
|
4328
|
-
};
|
|
4329
4305
|
priority: string | null;
|
|
4330
4306
|
additional_attributes: {
|
|
4331
4307
|
browser?: {
|
|
@@ -4345,41 +4321,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4345
4321
|
};
|
|
4346
4322
|
custom_attributes: Record<string, unknown>;
|
|
4347
4323
|
inbox_id: number;
|
|
4324
|
+
updated_at: number;
|
|
4348
4325
|
channel: string;
|
|
4349
4326
|
can_reply: boolean;
|
|
4350
4327
|
contact_inbox: {
|
|
4351
4328
|
id: number;
|
|
4352
4329
|
created_at: string;
|
|
4353
|
-
updated_at: string;
|
|
4354
4330
|
contact_id: number;
|
|
4355
4331
|
inbox_id: number;
|
|
4356
4332
|
source_id: string | null;
|
|
4333
|
+
updated_at: string;
|
|
4357
4334
|
hmac_verified: boolean;
|
|
4358
4335
|
pubsub_token: string;
|
|
4359
4336
|
};
|
|
4360
4337
|
messages: {
|
|
4361
|
-
id: number;
|
|
4362
|
-
status: string;
|
|
4363
|
-
account_id: number;
|
|
4364
|
-
created_at: number;
|
|
4365
|
-
updated_at: string;
|
|
4366
4338
|
content: string | null;
|
|
4367
4339
|
message_type: number;
|
|
4368
4340
|
private: boolean;
|
|
4369
4341
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4342
|
+
status: string;
|
|
4370
4343
|
content_attributes: {
|
|
4371
4344
|
in_reply_to?: unknown;
|
|
4372
4345
|
} & {
|
|
4373
4346
|
[k: string]: unknown;
|
|
4374
4347
|
};
|
|
4348
|
+
id: number;
|
|
4349
|
+
created_at: number;
|
|
4375
4350
|
conversation_id: number;
|
|
4376
4351
|
sender: {
|
|
4377
4352
|
id: number;
|
|
4353
|
+
type?: string | undefined;
|
|
4378
4354
|
name?: string | null | undefined;
|
|
4379
4355
|
email?: string | null | undefined;
|
|
4380
|
-
phone_number?: string | null | undefined;
|
|
4381
|
-
type?: string | undefined;
|
|
4382
4356
|
thumbnail?: string | undefined;
|
|
4357
|
+
phone_number?: string | null | undefined;
|
|
4383
4358
|
identifier?: string | null | undefined;
|
|
4384
4359
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4385
4360
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4390,6 +4365,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4390
4365
|
additional_attributes: Record<string, unknown>;
|
|
4391
4366
|
inbox_id: number;
|
|
4392
4367
|
source_id: string | null;
|
|
4368
|
+
updated_at: string;
|
|
4369
|
+
account_id: number;
|
|
4393
4370
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4394
4371
|
sender_id: number;
|
|
4395
4372
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4408,6 +4385,29 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4408
4385
|
assignee_id: number | null;
|
|
4409
4386
|
};
|
|
4410
4387
|
}[];
|
|
4388
|
+
meta: {
|
|
4389
|
+
sender: {
|
|
4390
|
+
id: number;
|
|
4391
|
+
name: string | null;
|
|
4392
|
+
email: string | null;
|
|
4393
|
+
thumbnail: string;
|
|
4394
|
+
phone_number: string | null;
|
|
4395
|
+
identifier: string | null;
|
|
4396
|
+
additional_attributes: Record<string, unknown>;
|
|
4397
|
+
custom_attributes: Record<string, unknown>;
|
|
4398
|
+
blocked: boolean;
|
|
4399
|
+
customer_stage: string;
|
|
4400
|
+
customer_stage_explanation: string | null;
|
|
4401
|
+
type?: string | undefined;
|
|
4402
|
+
};
|
|
4403
|
+
hmac_verified: boolean;
|
|
4404
|
+
assignee: {
|
|
4405
|
+
id: number;
|
|
4406
|
+
name: string;
|
|
4407
|
+
email: string;
|
|
4408
|
+
} | null;
|
|
4409
|
+
team?: unknown;
|
|
4410
|
+
};
|
|
4411
4411
|
labels: string[];
|
|
4412
4412
|
snoozed_until: number | null;
|
|
4413
4413
|
unread_count: number;
|
|
@@ -4428,24 +4428,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4428
4428
|
};
|
|
4429
4429
|
event: "message_created";
|
|
4430
4430
|
}, {
|
|
4431
|
-
id: number;
|
|
4432
|
-
status: string;
|
|
4433
|
-
created_at: string;
|
|
4434
4431
|
content: string | null;
|
|
4435
4432
|
message_type: "incoming" | "outgoing";
|
|
4436
4433
|
private: boolean;
|
|
4437
4434
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4435
|
+
status: string;
|
|
4438
4436
|
content_attributes: {
|
|
4439
4437
|
in_reply_to?: unknown;
|
|
4440
4438
|
} & {
|
|
4441
4439
|
[k: string]: unknown;
|
|
4442
4440
|
};
|
|
4441
|
+
id: number;
|
|
4442
|
+
created_at: string;
|
|
4443
4443
|
sender: {
|
|
4444
4444
|
id: number;
|
|
4445
4445
|
name?: string | null | undefined;
|
|
4446
4446
|
email?: string | null | undefined;
|
|
4447
|
-
phone_number?: string | null | undefined;
|
|
4448
4447
|
thumbnail?: string | undefined;
|
|
4448
|
+
phone_number?: string | null | undefined;
|
|
4449
4449
|
identifier?: string | null | undefined;
|
|
4450
4450
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4451
4451
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4465,33 +4465,9 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4465
4465
|
name: string;
|
|
4466
4466
|
};
|
|
4467
4467
|
conversation: {
|
|
4468
|
-
id: number;
|
|
4469
4468
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4469
|
+
id: number;
|
|
4470
4470
|
created_at: number;
|
|
4471
|
-
updated_at: number;
|
|
4472
|
-
meta: {
|
|
4473
|
-
sender: {
|
|
4474
|
-
id: number;
|
|
4475
|
-
name: string | null;
|
|
4476
|
-
email: string | null;
|
|
4477
|
-
phone_number: string | null;
|
|
4478
|
-
thumbnail: string;
|
|
4479
|
-
identifier: string | null;
|
|
4480
|
-
additional_attributes: Record<string, unknown>;
|
|
4481
|
-
custom_attributes: Record<string, unknown>;
|
|
4482
|
-
blocked: boolean;
|
|
4483
|
-
customer_stage: string;
|
|
4484
|
-
customer_stage_explanation: string | null;
|
|
4485
|
-
type?: string | undefined;
|
|
4486
|
-
};
|
|
4487
|
-
hmac_verified: boolean;
|
|
4488
|
-
assignee: {
|
|
4489
|
-
id: number;
|
|
4490
|
-
name: string;
|
|
4491
|
-
email: string;
|
|
4492
|
-
} | null;
|
|
4493
|
-
team?: unknown;
|
|
4494
|
-
};
|
|
4495
4471
|
priority: string | null;
|
|
4496
4472
|
additional_attributes: {
|
|
4497
4473
|
browser?: {
|
|
@@ -4511,41 +4487,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4511
4487
|
};
|
|
4512
4488
|
custom_attributes: Record<string, unknown>;
|
|
4513
4489
|
inbox_id: number;
|
|
4490
|
+
updated_at: number;
|
|
4514
4491
|
channel: string;
|
|
4515
4492
|
can_reply: boolean;
|
|
4516
4493
|
contact_inbox: {
|
|
4517
4494
|
id: number;
|
|
4518
4495
|
created_at: string;
|
|
4519
|
-
updated_at: string;
|
|
4520
4496
|
contact_id: number;
|
|
4521
4497
|
inbox_id: number;
|
|
4522
4498
|
source_id: string | null;
|
|
4499
|
+
updated_at: string;
|
|
4523
4500
|
hmac_verified: boolean;
|
|
4524
4501
|
pubsub_token: string;
|
|
4525
4502
|
};
|
|
4526
4503
|
messages: {
|
|
4527
|
-
id: number;
|
|
4528
|
-
status: string;
|
|
4529
|
-
account_id: number;
|
|
4530
|
-
created_at: number;
|
|
4531
|
-
updated_at: string;
|
|
4532
4504
|
content: string | null;
|
|
4533
4505
|
message_type: number;
|
|
4534
4506
|
private: boolean;
|
|
4535
4507
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4508
|
+
status: string;
|
|
4536
4509
|
content_attributes: {
|
|
4537
4510
|
in_reply_to?: unknown;
|
|
4538
4511
|
} & {
|
|
4539
4512
|
[k: string]: unknown;
|
|
4540
4513
|
};
|
|
4514
|
+
id: number;
|
|
4515
|
+
created_at: number;
|
|
4541
4516
|
conversation_id: number;
|
|
4542
4517
|
sender: {
|
|
4543
4518
|
id: number;
|
|
4519
|
+
type?: string | undefined;
|
|
4544
4520
|
name?: string | null | undefined;
|
|
4545
4521
|
email?: string | null | undefined;
|
|
4546
|
-
phone_number?: string | null | undefined;
|
|
4547
|
-
type?: string | undefined;
|
|
4548
4522
|
thumbnail?: string | undefined;
|
|
4523
|
+
phone_number?: string | null | undefined;
|
|
4549
4524
|
identifier?: string | null | undefined;
|
|
4550
4525
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4551
4526
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4556,6 +4531,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4556
4531
|
additional_attributes: Record<string, unknown>;
|
|
4557
4532
|
inbox_id: number;
|
|
4558
4533
|
source_id: string | null;
|
|
4534
|
+
updated_at: string;
|
|
4535
|
+
account_id: number;
|
|
4559
4536
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4560
4537
|
sender_id: number;
|
|
4561
4538
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4574,6 +4551,29 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4574
4551
|
assignee_id: number | null;
|
|
4575
4552
|
};
|
|
4576
4553
|
}[];
|
|
4554
|
+
meta: {
|
|
4555
|
+
sender: {
|
|
4556
|
+
id: number;
|
|
4557
|
+
name: string | null;
|
|
4558
|
+
email: string | null;
|
|
4559
|
+
thumbnail: string;
|
|
4560
|
+
phone_number: string | null;
|
|
4561
|
+
identifier: string | null;
|
|
4562
|
+
additional_attributes: Record<string, unknown>;
|
|
4563
|
+
custom_attributes: Record<string, unknown>;
|
|
4564
|
+
blocked: boolean;
|
|
4565
|
+
customer_stage: string;
|
|
4566
|
+
customer_stage_explanation: string | null;
|
|
4567
|
+
type?: string | undefined;
|
|
4568
|
+
};
|
|
4569
|
+
hmac_verified: boolean;
|
|
4570
|
+
assignee: {
|
|
4571
|
+
id: number;
|
|
4572
|
+
name: string;
|
|
4573
|
+
email: string;
|
|
4574
|
+
} | null;
|
|
4575
|
+
team?: unknown;
|
|
4576
|
+
};
|
|
4577
4577
|
labels: string[];
|
|
4578
4578
|
snoozed_until: number | null;
|
|
4579
4579
|
unread_count: number;
|
|
@@ -4717,19 +4717,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4717
4717
|
}, "strip", z.ZodTypeAny, {
|
|
4718
4718
|
id: number;
|
|
4719
4719
|
created_at: string;
|
|
4720
|
-
updated_at: string;
|
|
4721
4720
|
contact_id: number;
|
|
4722
4721
|
inbox_id: number;
|
|
4723
4722
|
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
4728
|
created_at: string;
|
|
4729
|
-
updated_at: string;
|
|
4730
4729
|
contact_id: number;
|
|
4731
4730
|
inbox_id: number;
|
|
4732
4731
|
source_id: string | null;
|
|
4732
|
+
updated_at: string;
|
|
4733
4733
|
hmac_verified: boolean;
|
|
4734
4734
|
pubsub_token: string;
|
|
4735
4735
|
}>;
|
|
@@ -4807,11 +4807,11 @@ 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
|
+
type?: string | undefined;
|
|
4810
4811
|
name?: string | null | undefined;
|
|
4811
4812
|
email?: string | null | undefined;
|
|
4812
|
-
phone_number?: string | null | undefined;
|
|
4813
|
-
type?: string | undefined;
|
|
4814
4813
|
thumbnail?: string | undefined;
|
|
4814
|
+
phone_number?: string | null | undefined;
|
|
4815
4815
|
identifier?: string | null | undefined;
|
|
4816
4816
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4817
4817
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4820,11 +4820,11 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4820
4820
|
customer_stage_explanation?: string | null | undefined;
|
|
4821
4821
|
}, {
|
|
4822
4822
|
id: number;
|
|
4823
|
+
type?: string | undefined;
|
|
4823
4824
|
name?: string | null | undefined;
|
|
4824
4825
|
email?: string | null | undefined;
|
|
4825
|
-
phone_number?: string | null | undefined;
|
|
4826
|
-
type?: string | undefined;
|
|
4827
4826
|
thumbnail?: string | undefined;
|
|
4827
|
+
phone_number?: string | null | undefined;
|
|
4828
4828
|
identifier?: string | null | undefined;
|
|
4829
4829
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4830
4830
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4833,28 +4833,26 @@ 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
|
-
id: number;
|
|
4837
|
-
status: string;
|
|
4838
|
-
account_id: number;
|
|
4839
|
-
created_at: number;
|
|
4840
|
-
updated_at: string;
|
|
4841
4836
|
content: string | null;
|
|
4842
4837
|
message_type: number;
|
|
4843
4838
|
private: boolean;
|
|
4844
4839
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4840
|
+
status: string;
|
|
4845
4841
|
content_attributes: {
|
|
4846
4842
|
in_reply_to?: unknown;
|
|
4847
4843
|
} & {
|
|
4848
4844
|
[k: string]: unknown;
|
|
4849
4845
|
};
|
|
4846
|
+
id: number;
|
|
4847
|
+
created_at: number;
|
|
4850
4848
|
conversation_id: number;
|
|
4851
4849
|
sender: {
|
|
4852
4850
|
id: number;
|
|
4851
|
+
type?: string | undefined;
|
|
4853
4852
|
name?: string | null | undefined;
|
|
4854
4853
|
email?: string | null | undefined;
|
|
4855
|
-
phone_number?: string | null | undefined;
|
|
4856
|
-
type?: string | undefined;
|
|
4857
4854
|
thumbnail?: string | undefined;
|
|
4855
|
+
phone_number?: string | null | undefined;
|
|
4858
4856
|
identifier?: string | null | undefined;
|
|
4859
4857
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4860
4858
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4865,6 +4863,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4865
4863
|
additional_attributes: Record<string, unknown>;
|
|
4866
4864
|
inbox_id: number;
|
|
4867
4865
|
source_id: string | null;
|
|
4866
|
+
updated_at: string;
|
|
4867
|
+
account_id: number;
|
|
4868
4868
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4869
4869
|
sender_id: number;
|
|
4870
4870
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4883,28 +4883,26 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4883
4883
|
assignee_id: number | null;
|
|
4884
4884
|
};
|
|
4885
4885
|
}, {
|
|
4886
|
-
id: number;
|
|
4887
|
-
status: string;
|
|
4888
|
-
account_id: number;
|
|
4889
|
-
created_at: number;
|
|
4890
|
-
updated_at: string;
|
|
4891
4886
|
content: string | null;
|
|
4892
4887
|
message_type: number;
|
|
4893
4888
|
private: boolean;
|
|
4894
4889
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
4890
|
+
status: string;
|
|
4895
4891
|
content_attributes: {
|
|
4896
4892
|
in_reply_to?: unknown;
|
|
4897
4893
|
} & {
|
|
4898
4894
|
[k: string]: unknown;
|
|
4899
4895
|
};
|
|
4896
|
+
id: number;
|
|
4897
|
+
created_at: number;
|
|
4900
4898
|
conversation_id: number;
|
|
4901
4899
|
sender: {
|
|
4902
4900
|
id: number;
|
|
4901
|
+
type?: string | undefined;
|
|
4903
4902
|
name?: string | null | undefined;
|
|
4904
4903
|
email?: string | null | undefined;
|
|
4905
|
-
phone_number?: string | null | undefined;
|
|
4906
|
-
type?: string | undefined;
|
|
4907
4904
|
thumbnail?: string | undefined;
|
|
4905
|
+
phone_number?: string | null | undefined;
|
|
4908
4906
|
identifier?: string | null | undefined;
|
|
4909
4907
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
4910
4908
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -4915,6 +4913,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4915
4913
|
additional_attributes: Record<string, unknown>;
|
|
4916
4914
|
inbox_id: number;
|
|
4917
4915
|
source_id: string | null;
|
|
4916
|
+
updated_at: string;
|
|
4917
|
+
account_id: number;
|
|
4918
4918
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
4919
4919
|
sender_id: number;
|
|
4920
4920
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4952,8 +4952,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4952
4952
|
id: number;
|
|
4953
4953
|
name: string | null;
|
|
4954
4954
|
email: string | null;
|
|
4955
|
-
phone_number: string | null;
|
|
4956
4955
|
thumbnail: string;
|
|
4956
|
+
phone_number: string | null;
|
|
4957
4957
|
identifier: string | null;
|
|
4958
4958
|
additional_attributes: Record<string, unknown>;
|
|
4959
4959
|
custom_attributes: Record<string, unknown>;
|
|
@@ -4965,8 +4965,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4965
4965
|
id: number;
|
|
4966
4966
|
name: string | null;
|
|
4967
4967
|
email: string | null;
|
|
4968
|
-
phone_number: string | null;
|
|
4969
4968
|
thumbnail: string;
|
|
4969
|
+
phone_number: string | null;
|
|
4970
4970
|
identifier: string | null;
|
|
4971
4971
|
additional_attributes: Record<string, unknown>;
|
|
4972
4972
|
custom_attributes: Record<string, unknown>;
|
|
@@ -4995,8 +4995,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4995
4995
|
id: number;
|
|
4996
4996
|
name: string | null;
|
|
4997
4997
|
email: string | null;
|
|
4998
|
-
phone_number: string | null;
|
|
4999
4998
|
thumbnail: string;
|
|
4999
|
+
phone_number: string | null;
|
|
5000
5000
|
identifier: string | null;
|
|
5001
5001
|
additional_attributes: Record<string, unknown>;
|
|
5002
5002
|
custom_attributes: Record<string, unknown>;
|
|
@@ -5017,8 +5017,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5017
5017
|
id: number;
|
|
5018
5018
|
name: string | null;
|
|
5019
5019
|
email: string | null;
|
|
5020
|
-
phone_number: string | null;
|
|
5021
5020
|
thumbnail: string;
|
|
5021
|
+
phone_number: string | null;
|
|
5022
5022
|
identifier: string | null;
|
|
5023
5023
|
additional_attributes: Record<string, unknown>;
|
|
5024
5024
|
custom_attributes: Record<string, unknown>;
|
|
@@ -5053,33 +5053,9 @@ 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
|
-
id: number;
|
|
5057
5056
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5057
|
+
id: number;
|
|
5058
5058
|
created_at: number;
|
|
5059
|
-
updated_at: number;
|
|
5060
|
-
meta: {
|
|
5061
|
-
sender: {
|
|
5062
|
-
id: number;
|
|
5063
|
-
name: string | null;
|
|
5064
|
-
email: string | null;
|
|
5065
|
-
phone_number: string | null;
|
|
5066
|
-
thumbnail: string;
|
|
5067
|
-
identifier: string | null;
|
|
5068
|
-
additional_attributes: Record<string, unknown>;
|
|
5069
|
-
custom_attributes: Record<string, unknown>;
|
|
5070
|
-
blocked: boolean;
|
|
5071
|
-
customer_stage: string;
|
|
5072
|
-
customer_stage_explanation: string | null;
|
|
5073
|
-
type?: string | undefined;
|
|
5074
|
-
};
|
|
5075
|
-
hmac_verified: boolean;
|
|
5076
|
-
assignee: {
|
|
5077
|
-
id: number;
|
|
5078
|
-
name: string;
|
|
5079
|
-
email: string;
|
|
5080
|
-
} | null;
|
|
5081
|
-
team?: unknown;
|
|
5082
|
-
};
|
|
5083
5059
|
priority: string | null;
|
|
5084
5060
|
additional_attributes: {
|
|
5085
5061
|
browser?: {
|
|
@@ -5099,41 +5075,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5099
5075
|
};
|
|
5100
5076
|
custom_attributes: Record<string, unknown>;
|
|
5101
5077
|
inbox_id: number;
|
|
5078
|
+
updated_at: number;
|
|
5102
5079
|
channel: string;
|
|
5103
5080
|
can_reply: boolean;
|
|
5104
5081
|
contact_inbox: {
|
|
5105
5082
|
id: number;
|
|
5106
5083
|
created_at: string;
|
|
5107
|
-
updated_at: string;
|
|
5108
5084
|
contact_id: number;
|
|
5109
5085
|
inbox_id: number;
|
|
5110
5086
|
source_id: string | null;
|
|
5087
|
+
updated_at: string;
|
|
5111
5088
|
hmac_verified: boolean;
|
|
5112
5089
|
pubsub_token: string;
|
|
5113
5090
|
};
|
|
5114
5091
|
messages: {
|
|
5115
|
-
id: number;
|
|
5116
|
-
status: string;
|
|
5117
|
-
account_id: number;
|
|
5118
|
-
created_at: number;
|
|
5119
|
-
updated_at: string;
|
|
5120
5092
|
content: string | null;
|
|
5121
5093
|
message_type: number;
|
|
5122
5094
|
private: boolean;
|
|
5123
5095
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5096
|
+
status: string;
|
|
5124
5097
|
content_attributes: {
|
|
5125
5098
|
in_reply_to?: unknown;
|
|
5126
5099
|
} & {
|
|
5127
5100
|
[k: string]: unknown;
|
|
5128
5101
|
};
|
|
5102
|
+
id: number;
|
|
5103
|
+
created_at: number;
|
|
5129
5104
|
conversation_id: number;
|
|
5130
5105
|
sender: {
|
|
5131
5106
|
id: number;
|
|
5107
|
+
type?: string | undefined;
|
|
5132
5108
|
name?: string | null | undefined;
|
|
5133
5109
|
email?: string | null | undefined;
|
|
5134
|
-
phone_number?: string | null | undefined;
|
|
5135
|
-
type?: string | undefined;
|
|
5136
5110
|
thumbnail?: string | undefined;
|
|
5111
|
+
phone_number?: string | null | undefined;
|
|
5137
5112
|
identifier?: string | null | undefined;
|
|
5138
5113
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5139
5114
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5144,6 +5119,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5144
5119
|
additional_attributes: Record<string, unknown>;
|
|
5145
5120
|
inbox_id: number;
|
|
5146
5121
|
source_id: string | null;
|
|
5122
|
+
updated_at: string;
|
|
5123
|
+
account_id: number;
|
|
5147
5124
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5148
5125
|
sender_id: number;
|
|
5149
5126
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5162,31 +5139,13 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5162
5139
|
assignee_id: number | null;
|
|
5163
5140
|
};
|
|
5164
5141
|
}[];
|
|
5165
|
-
labels: string[];
|
|
5166
|
-
snoozed_until: number | null;
|
|
5167
|
-
unread_count: number;
|
|
5168
|
-
first_reply_created_at: string | number | null;
|
|
5169
|
-
waiting_since: number | null;
|
|
5170
|
-
ai_disabled: boolean;
|
|
5171
|
-
reenable_ai_at: number | null;
|
|
5172
|
-
ai_summary: string | null;
|
|
5173
|
-
conversation_type: string;
|
|
5174
|
-
agent_last_seen_at: number;
|
|
5175
|
-
contact_last_seen_at: number;
|
|
5176
|
-
last_activity_at: number;
|
|
5177
|
-
timestamp: number;
|
|
5178
|
-
}, {
|
|
5179
|
-
id: number;
|
|
5180
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5181
|
-
created_at: number;
|
|
5182
|
-
updated_at: number;
|
|
5183
5142
|
meta: {
|
|
5184
5143
|
sender: {
|
|
5185
5144
|
id: number;
|
|
5186
5145
|
name: string | null;
|
|
5187
5146
|
email: string | null;
|
|
5188
|
-
phone_number: string | null;
|
|
5189
5147
|
thumbnail: string;
|
|
5148
|
+
phone_number: string | null;
|
|
5190
5149
|
identifier: string | null;
|
|
5191
5150
|
additional_attributes: Record<string, unknown>;
|
|
5192
5151
|
custom_attributes: Record<string, unknown>;
|
|
@@ -5203,6 +5162,23 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5203
5162
|
} | null;
|
|
5204
5163
|
team?: unknown;
|
|
5205
5164
|
};
|
|
5165
|
+
labels: string[];
|
|
5166
|
+
snoozed_until: number | null;
|
|
5167
|
+
unread_count: number;
|
|
5168
|
+
first_reply_created_at: string | number | null;
|
|
5169
|
+
waiting_since: number | null;
|
|
5170
|
+
ai_disabled: boolean;
|
|
5171
|
+
reenable_ai_at: number | null;
|
|
5172
|
+
ai_summary: string | null;
|
|
5173
|
+
conversation_type: string;
|
|
5174
|
+
agent_last_seen_at: number;
|
|
5175
|
+
contact_last_seen_at: number;
|
|
5176
|
+
last_activity_at: number;
|
|
5177
|
+
timestamp: number;
|
|
5178
|
+
}, {
|
|
5179
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5180
|
+
id: number;
|
|
5181
|
+
created_at: number;
|
|
5206
5182
|
priority: string | null;
|
|
5207
5183
|
additional_attributes: {
|
|
5208
5184
|
browser?: {
|
|
@@ -5222,41 +5198,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5222
5198
|
};
|
|
5223
5199
|
custom_attributes: Record<string, unknown>;
|
|
5224
5200
|
inbox_id: number;
|
|
5201
|
+
updated_at: number;
|
|
5225
5202
|
channel: string;
|
|
5226
5203
|
can_reply: boolean;
|
|
5227
5204
|
contact_inbox: {
|
|
5228
5205
|
id: number;
|
|
5229
5206
|
created_at: string;
|
|
5230
|
-
updated_at: string;
|
|
5231
5207
|
contact_id: number;
|
|
5232
5208
|
inbox_id: number;
|
|
5233
5209
|
source_id: string | null;
|
|
5210
|
+
updated_at: string;
|
|
5234
5211
|
hmac_verified: boolean;
|
|
5235
5212
|
pubsub_token: string;
|
|
5236
5213
|
};
|
|
5237
5214
|
messages: {
|
|
5238
|
-
id: number;
|
|
5239
|
-
status: string;
|
|
5240
|
-
account_id: number;
|
|
5241
|
-
created_at: number;
|
|
5242
|
-
updated_at: string;
|
|
5243
5215
|
content: string | null;
|
|
5244
5216
|
message_type: number;
|
|
5245
5217
|
private: boolean;
|
|
5246
5218
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5219
|
+
status: string;
|
|
5247
5220
|
content_attributes: {
|
|
5248
5221
|
in_reply_to?: unknown;
|
|
5249
5222
|
} & {
|
|
5250
5223
|
[k: string]: unknown;
|
|
5251
5224
|
};
|
|
5225
|
+
id: number;
|
|
5226
|
+
created_at: number;
|
|
5252
5227
|
conversation_id: number;
|
|
5253
5228
|
sender: {
|
|
5254
5229
|
id: number;
|
|
5230
|
+
type?: string | undefined;
|
|
5255
5231
|
name?: string | null | undefined;
|
|
5256
5232
|
email?: string | null | undefined;
|
|
5257
|
-
phone_number?: string | null | undefined;
|
|
5258
|
-
type?: string | undefined;
|
|
5259
5233
|
thumbnail?: string | undefined;
|
|
5234
|
+
phone_number?: string | null | undefined;
|
|
5260
5235
|
identifier?: string | null | undefined;
|
|
5261
5236
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5262
5237
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5267,6 +5242,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5267
5242
|
additional_attributes: Record<string, unknown>;
|
|
5268
5243
|
inbox_id: number;
|
|
5269
5244
|
source_id: string | null;
|
|
5245
|
+
updated_at: string;
|
|
5246
|
+
account_id: number;
|
|
5270
5247
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5271
5248
|
sender_id: number;
|
|
5272
5249
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5285,6 +5262,29 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5285
5262
|
assignee_id: number | null;
|
|
5286
5263
|
};
|
|
5287
5264
|
}[];
|
|
5265
|
+
meta: {
|
|
5266
|
+
sender: {
|
|
5267
|
+
id: number;
|
|
5268
|
+
name: string | null;
|
|
5269
|
+
email: string | null;
|
|
5270
|
+
thumbnail: string;
|
|
5271
|
+
phone_number: string | null;
|
|
5272
|
+
identifier: string | null;
|
|
5273
|
+
additional_attributes: Record<string, unknown>;
|
|
5274
|
+
custom_attributes: Record<string, unknown>;
|
|
5275
|
+
blocked: boolean;
|
|
5276
|
+
customer_stage: string;
|
|
5277
|
+
customer_stage_explanation: string | null;
|
|
5278
|
+
type?: string | undefined;
|
|
5279
|
+
};
|
|
5280
|
+
hmac_verified: boolean;
|
|
5281
|
+
assignee: {
|
|
5282
|
+
id: number;
|
|
5283
|
+
name: string;
|
|
5284
|
+
email: string;
|
|
5285
|
+
} | null;
|
|
5286
|
+
team?: unknown;
|
|
5287
|
+
};
|
|
5288
5288
|
labels: string[];
|
|
5289
5289
|
snoozed_until: number | null;
|
|
5290
5290
|
unread_count: number;
|
|
@@ -5342,8 +5342,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5342
5342
|
id: number;
|
|
5343
5343
|
name?: string | null | undefined;
|
|
5344
5344
|
email?: string | null | undefined;
|
|
5345
|
-
phone_number?: string | null | undefined;
|
|
5346
5345
|
thumbnail?: string | undefined;
|
|
5346
|
+
phone_number?: string | null | undefined;
|
|
5347
5347
|
identifier?: string | null | undefined;
|
|
5348
5348
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5349
5349
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5359,8 +5359,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5359
5359
|
id: number;
|
|
5360
5360
|
name?: string | null | undefined;
|
|
5361
5361
|
email?: string | null | undefined;
|
|
5362
|
-
phone_number?: string | null | undefined;
|
|
5363
5362
|
thumbnail?: string | undefined;
|
|
5363
|
+
phone_number?: string | null | undefined;
|
|
5364
5364
|
identifier?: string | null | undefined;
|
|
5365
5365
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5366
5366
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5377,24 +5377,24 @@ 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;
|
|
5381
|
-
status: string;
|
|
5382
|
-
created_at: string;
|
|
5383
5380
|
content: string | null;
|
|
5384
5381
|
message_type: "incoming" | "outgoing";
|
|
5385
5382
|
private: boolean;
|
|
5386
5383
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5384
|
+
status: string;
|
|
5387
5385
|
content_attributes: {
|
|
5388
5386
|
in_reply_to?: unknown;
|
|
5389
5387
|
} & {
|
|
5390
5388
|
[k: string]: unknown;
|
|
5391
5389
|
};
|
|
5390
|
+
id: number;
|
|
5391
|
+
created_at: string;
|
|
5392
5392
|
sender: {
|
|
5393
5393
|
id: number;
|
|
5394
5394
|
name?: string | null | undefined;
|
|
5395
5395
|
email?: string | null | undefined;
|
|
5396
|
-
phone_number?: string | null | undefined;
|
|
5397
5396
|
thumbnail?: string | undefined;
|
|
5397
|
+
phone_number?: string | null | undefined;
|
|
5398
5398
|
identifier?: string | null | undefined;
|
|
5399
5399
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5400
5400
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5414,33 +5414,9 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5414
5414
|
name: string;
|
|
5415
5415
|
};
|
|
5416
5416
|
conversation: {
|
|
5417
|
-
id: number;
|
|
5418
5417
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5418
|
+
id: number;
|
|
5419
5419
|
created_at: number;
|
|
5420
|
-
updated_at: number;
|
|
5421
|
-
meta: {
|
|
5422
|
-
sender: {
|
|
5423
|
-
id: number;
|
|
5424
|
-
name: string | null;
|
|
5425
|
-
email: string | null;
|
|
5426
|
-
phone_number: string | null;
|
|
5427
|
-
thumbnail: string;
|
|
5428
|
-
identifier: string | null;
|
|
5429
|
-
additional_attributes: Record<string, unknown>;
|
|
5430
|
-
custom_attributes: Record<string, unknown>;
|
|
5431
|
-
blocked: boolean;
|
|
5432
|
-
customer_stage: string;
|
|
5433
|
-
customer_stage_explanation: string | null;
|
|
5434
|
-
type?: string | undefined;
|
|
5435
|
-
};
|
|
5436
|
-
hmac_verified: boolean;
|
|
5437
|
-
assignee: {
|
|
5438
|
-
id: number;
|
|
5439
|
-
name: string;
|
|
5440
|
-
email: string;
|
|
5441
|
-
} | null;
|
|
5442
|
-
team?: unknown;
|
|
5443
|
-
};
|
|
5444
5420
|
priority: string | null;
|
|
5445
5421
|
additional_attributes: {
|
|
5446
5422
|
browser?: {
|
|
@@ -5460,41 +5436,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5460
5436
|
};
|
|
5461
5437
|
custom_attributes: Record<string, unknown>;
|
|
5462
5438
|
inbox_id: number;
|
|
5439
|
+
updated_at: number;
|
|
5463
5440
|
channel: string;
|
|
5464
5441
|
can_reply: boolean;
|
|
5465
5442
|
contact_inbox: {
|
|
5466
5443
|
id: number;
|
|
5467
5444
|
created_at: string;
|
|
5468
|
-
updated_at: string;
|
|
5469
5445
|
contact_id: number;
|
|
5470
5446
|
inbox_id: number;
|
|
5471
5447
|
source_id: string | null;
|
|
5448
|
+
updated_at: string;
|
|
5472
5449
|
hmac_verified: boolean;
|
|
5473
5450
|
pubsub_token: string;
|
|
5474
5451
|
};
|
|
5475
5452
|
messages: {
|
|
5476
|
-
id: number;
|
|
5477
|
-
status: string;
|
|
5478
|
-
account_id: number;
|
|
5479
|
-
created_at: number;
|
|
5480
|
-
updated_at: string;
|
|
5481
5453
|
content: string | null;
|
|
5482
5454
|
message_type: number;
|
|
5483
5455
|
private: boolean;
|
|
5484
5456
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5457
|
+
status: string;
|
|
5485
5458
|
content_attributes: {
|
|
5486
5459
|
in_reply_to?: unknown;
|
|
5487
5460
|
} & {
|
|
5488
5461
|
[k: string]: unknown;
|
|
5489
5462
|
};
|
|
5463
|
+
id: number;
|
|
5464
|
+
created_at: number;
|
|
5490
5465
|
conversation_id: number;
|
|
5491
5466
|
sender: {
|
|
5492
5467
|
id: number;
|
|
5468
|
+
type?: string | undefined;
|
|
5493
5469
|
name?: string | null | undefined;
|
|
5494
5470
|
email?: string | null | undefined;
|
|
5495
|
-
phone_number?: string | null | undefined;
|
|
5496
|
-
type?: string | undefined;
|
|
5497
5471
|
thumbnail?: string | undefined;
|
|
5472
|
+
phone_number?: string | null | undefined;
|
|
5498
5473
|
identifier?: string | null | undefined;
|
|
5499
5474
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5500
5475
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5505,6 +5480,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5505
5480
|
additional_attributes: Record<string, unknown>;
|
|
5506
5481
|
inbox_id: number;
|
|
5507
5482
|
source_id: string | null;
|
|
5483
|
+
updated_at: string;
|
|
5484
|
+
account_id: number;
|
|
5508
5485
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5509
5486
|
sender_id: number;
|
|
5510
5487
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5523,6 +5500,29 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5523
5500
|
assignee_id: number | null;
|
|
5524
5501
|
};
|
|
5525
5502
|
}[];
|
|
5503
|
+
meta: {
|
|
5504
|
+
sender: {
|
|
5505
|
+
id: number;
|
|
5506
|
+
name: string | null;
|
|
5507
|
+
email: string | null;
|
|
5508
|
+
thumbnail: string;
|
|
5509
|
+
phone_number: string | null;
|
|
5510
|
+
identifier: string | null;
|
|
5511
|
+
additional_attributes: Record<string, unknown>;
|
|
5512
|
+
custom_attributes: Record<string, unknown>;
|
|
5513
|
+
blocked: boolean;
|
|
5514
|
+
customer_stage: string;
|
|
5515
|
+
customer_stage_explanation: string | null;
|
|
5516
|
+
type?: string | undefined;
|
|
5517
|
+
};
|
|
5518
|
+
hmac_verified: boolean;
|
|
5519
|
+
assignee: {
|
|
5520
|
+
id: number;
|
|
5521
|
+
name: string;
|
|
5522
|
+
email: string;
|
|
5523
|
+
} | null;
|
|
5524
|
+
team?: unknown;
|
|
5525
|
+
};
|
|
5526
5526
|
labels: string[];
|
|
5527
5527
|
snoozed_until: number | null;
|
|
5528
5528
|
unread_count: number;
|
|
@@ -5543,24 +5543,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5543
5543
|
};
|
|
5544
5544
|
event: "message_updated";
|
|
5545
5545
|
}, {
|
|
5546
|
-
id: number;
|
|
5547
|
-
status: string;
|
|
5548
|
-
created_at: string;
|
|
5549
5546
|
content: string | null;
|
|
5550
5547
|
message_type: "incoming" | "outgoing";
|
|
5551
5548
|
private: boolean;
|
|
5552
5549
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5550
|
+
status: string;
|
|
5553
5551
|
content_attributes: {
|
|
5554
5552
|
in_reply_to?: unknown;
|
|
5555
5553
|
} & {
|
|
5556
5554
|
[k: string]: unknown;
|
|
5557
5555
|
};
|
|
5556
|
+
id: number;
|
|
5557
|
+
created_at: string;
|
|
5558
5558
|
sender: {
|
|
5559
5559
|
id: number;
|
|
5560
5560
|
name?: string | null | undefined;
|
|
5561
5561
|
email?: string | null | undefined;
|
|
5562
|
-
phone_number?: string | null | undefined;
|
|
5563
5562
|
thumbnail?: string | undefined;
|
|
5563
|
+
phone_number?: string | null | undefined;
|
|
5564
5564
|
identifier?: string | null | undefined;
|
|
5565
5565
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5566
5566
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5580,33 +5580,9 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5580
5580
|
name: string;
|
|
5581
5581
|
};
|
|
5582
5582
|
conversation: {
|
|
5583
|
-
id: number;
|
|
5584
5583
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5584
|
+
id: number;
|
|
5585
5585
|
created_at: number;
|
|
5586
|
-
updated_at: number;
|
|
5587
|
-
meta: {
|
|
5588
|
-
sender: {
|
|
5589
|
-
id: number;
|
|
5590
|
-
name: string | null;
|
|
5591
|
-
email: string | null;
|
|
5592
|
-
phone_number: string | null;
|
|
5593
|
-
thumbnail: string;
|
|
5594
|
-
identifier: string | null;
|
|
5595
|
-
additional_attributes: Record<string, unknown>;
|
|
5596
|
-
custom_attributes: Record<string, unknown>;
|
|
5597
|
-
blocked: boolean;
|
|
5598
|
-
customer_stage: string;
|
|
5599
|
-
customer_stage_explanation: string | null;
|
|
5600
|
-
type?: string | undefined;
|
|
5601
|
-
};
|
|
5602
|
-
hmac_verified: boolean;
|
|
5603
|
-
assignee: {
|
|
5604
|
-
id: number;
|
|
5605
|
-
name: string;
|
|
5606
|
-
email: string;
|
|
5607
|
-
} | null;
|
|
5608
|
-
team?: unknown;
|
|
5609
|
-
};
|
|
5610
5586
|
priority: string | null;
|
|
5611
5587
|
additional_attributes: {
|
|
5612
5588
|
browser?: {
|
|
@@ -5626,41 +5602,40 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5626
5602
|
};
|
|
5627
5603
|
custom_attributes: Record<string, unknown>;
|
|
5628
5604
|
inbox_id: number;
|
|
5605
|
+
updated_at: number;
|
|
5629
5606
|
channel: string;
|
|
5630
5607
|
can_reply: boolean;
|
|
5631
5608
|
contact_inbox: {
|
|
5632
5609
|
id: number;
|
|
5633
5610
|
created_at: string;
|
|
5634
|
-
updated_at: string;
|
|
5635
5611
|
contact_id: number;
|
|
5636
5612
|
inbox_id: number;
|
|
5637
5613
|
source_id: string | null;
|
|
5614
|
+
updated_at: string;
|
|
5638
5615
|
hmac_verified: boolean;
|
|
5639
5616
|
pubsub_token: string;
|
|
5640
5617
|
};
|
|
5641
5618
|
messages: {
|
|
5642
|
-
id: number;
|
|
5643
|
-
status: string;
|
|
5644
|
-
account_id: number;
|
|
5645
|
-
created_at: number;
|
|
5646
|
-
updated_at: string;
|
|
5647
5619
|
content: string | null;
|
|
5648
5620
|
message_type: number;
|
|
5649
5621
|
private: boolean;
|
|
5650
5622
|
content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
|
|
5623
|
+
status: string;
|
|
5651
5624
|
content_attributes: {
|
|
5652
5625
|
in_reply_to?: unknown;
|
|
5653
5626
|
} & {
|
|
5654
5627
|
[k: string]: unknown;
|
|
5655
5628
|
};
|
|
5629
|
+
id: number;
|
|
5630
|
+
created_at: number;
|
|
5656
5631
|
conversation_id: number;
|
|
5657
5632
|
sender: {
|
|
5658
5633
|
id: number;
|
|
5634
|
+
type?: string | undefined;
|
|
5659
5635
|
name?: string | null | undefined;
|
|
5660
5636
|
email?: string | null | undefined;
|
|
5661
|
-
phone_number?: string | null | undefined;
|
|
5662
|
-
type?: string | undefined;
|
|
5663
5637
|
thumbnail?: string | undefined;
|
|
5638
|
+
phone_number?: string | null | undefined;
|
|
5664
5639
|
identifier?: string | null | undefined;
|
|
5665
5640
|
additional_attributes?: Record<string, unknown> | undefined;
|
|
5666
5641
|
custom_attributes?: Record<string, unknown> | undefined;
|
|
@@ -5671,6 +5646,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5671
5646
|
additional_attributes: Record<string, unknown>;
|
|
5672
5647
|
inbox_id: number;
|
|
5673
5648
|
source_id: string | null;
|
|
5649
|
+
updated_at: string;
|
|
5650
|
+
account_id: number;
|
|
5674
5651
|
sender_type: "Contact" | "User" | "AgentBot";
|
|
5675
5652
|
sender_id: number;
|
|
5676
5653
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5689,6 +5666,29 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5689
5666
|
assignee_id: number | null;
|
|
5690
5667
|
};
|
|
5691
5668
|
}[];
|
|
5669
|
+
meta: {
|
|
5670
|
+
sender: {
|
|
5671
|
+
id: number;
|
|
5672
|
+
name: string | null;
|
|
5673
|
+
email: string | null;
|
|
5674
|
+
thumbnail: string;
|
|
5675
|
+
phone_number: string | null;
|
|
5676
|
+
identifier: string | null;
|
|
5677
|
+
additional_attributes: Record<string, unknown>;
|
|
5678
|
+
custom_attributes: Record<string, unknown>;
|
|
5679
|
+
blocked: boolean;
|
|
5680
|
+
customer_stage: string;
|
|
5681
|
+
customer_stage_explanation: string | null;
|
|
5682
|
+
type?: string | undefined;
|
|
5683
|
+
};
|
|
5684
|
+
hmac_verified: boolean;
|
|
5685
|
+
assignee: {
|
|
5686
|
+
id: number;
|
|
5687
|
+
name: string;
|
|
5688
|
+
email: string;
|
|
5689
|
+
} | null;
|
|
5690
|
+
team?: unknown;
|
|
5691
|
+
};
|
|
5692
5692
|
labels: string[];
|
|
5693
5693
|
snoozed_until: number | null;
|
|
5694
5694
|
unread_count: number;
|