@voltade/envoy-sdk 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/companies/types.d.ts +126 -32
- package/dist/resources/companies/types.d.ts.map +1 -1
- package/dist/resources/companies/types.js +12 -2
- package/dist/resources/companies/types.js.map +1 -1
- package/dist/resources/conversations/types.d.ts +60 -60
- package/dist/resources/inboxes/types.d.ts +6 -6
- package/dist/resources/orders/types.d.ts +6 -6
- package/dist/resources/webhooks/types.d.ts +774 -767
- package/dist/resources/webhooks/types.d.ts.map +1 -1
- package/dist/resources/webhooks/types.js +9 -2
- package/dist/resources/webhooks/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -227,40 +227,41 @@ export declare const MessageSenderSchema: z.ZodObject<{
|
|
|
227
227
|
name: z.ZodNullable<z.ZodString>;
|
|
228
228
|
email: z.ZodNullable<z.ZodString>;
|
|
229
229
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
230
|
-
thumbnail: z.ZodString;
|
|
231
230
|
identifier: z.ZodNullable<z.ZodString>;
|
|
232
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
233
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
234
|
-
blocked: z.ZodBoolean;
|
|
235
|
-
customer_stage: z.ZodString;
|
|
236
231
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
237
232
|
type: z.ZodOptional<z.ZodString>;
|
|
233
|
+
} & {
|
|
234
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
235
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
236
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
237
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
238
239
|
}, "strip", z.ZodTypeAny, {
|
|
239
240
|
id: number;
|
|
240
241
|
name: string | null;
|
|
241
242
|
email: string | null;
|
|
242
243
|
phone_number: string | null;
|
|
243
|
-
thumbnail: string;
|
|
244
244
|
identifier: string | null;
|
|
245
|
-
additional_attributes: Record<string, unknown>;
|
|
246
|
-
custom_attributes: Record<string, unknown>;
|
|
247
|
-
blocked: boolean;
|
|
248
|
-
customer_stage: string;
|
|
249
245
|
customer_stage_explanation: string | null;
|
|
250
246
|
type?: string | undefined;
|
|
247
|
+
thumbnail?: string | undefined;
|
|
248
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
249
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
250
|
+
blocked?: boolean | undefined;
|
|
251
|
+
customer_stage?: string | undefined;
|
|
251
252
|
}, {
|
|
252
253
|
id: number;
|
|
253
254
|
name: string | null;
|
|
254
255
|
email: string | null;
|
|
255
256
|
phone_number: string | null;
|
|
256
|
-
thumbnail: string;
|
|
257
257
|
identifier: string | null;
|
|
258
|
-
additional_attributes: Record<string, unknown>;
|
|
259
|
-
custom_attributes: Record<string, unknown>;
|
|
260
|
-
blocked: boolean;
|
|
261
|
-
customer_stage: string;
|
|
262
258
|
customer_stage_explanation: string | null;
|
|
263
259
|
type?: string | undefined;
|
|
260
|
+
thumbnail?: string | undefined;
|
|
261
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
262
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
263
|
+
blocked?: boolean | undefined;
|
|
264
|
+
customer_stage?: string | undefined;
|
|
264
265
|
}>;
|
|
265
266
|
export declare const WebhookMessageSchema: z.ZodObject<{
|
|
266
267
|
id: z.ZodNumber;
|
|
@@ -323,45 +324,48 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
323
324
|
name: z.ZodNullable<z.ZodString>;
|
|
324
325
|
email: z.ZodNullable<z.ZodString>;
|
|
325
326
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
326
|
-
thumbnail: z.ZodString;
|
|
327
327
|
identifier: z.ZodNullable<z.ZodString>;
|
|
328
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
329
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
330
|
-
blocked: z.ZodBoolean;
|
|
331
|
-
customer_stage: z.ZodString;
|
|
332
328
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
333
329
|
type: z.ZodOptional<z.ZodString>;
|
|
330
|
+
} & {
|
|
331
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
332
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
333
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
334
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
335
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
334
336
|
}, "strip", z.ZodTypeAny, {
|
|
335
337
|
id: number;
|
|
336
338
|
name: string | null;
|
|
337
339
|
email: string | null;
|
|
338
340
|
phone_number: string | null;
|
|
339
|
-
thumbnail: string;
|
|
340
341
|
identifier: string | null;
|
|
341
|
-
additional_attributes: Record<string, unknown>;
|
|
342
|
-
custom_attributes: Record<string, unknown>;
|
|
343
|
-
blocked: boolean;
|
|
344
|
-
customer_stage: string;
|
|
345
342
|
customer_stage_explanation: string | null;
|
|
346
343
|
type?: string | undefined;
|
|
344
|
+
thumbnail?: string | undefined;
|
|
345
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
346
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
347
|
+
blocked?: boolean | undefined;
|
|
348
|
+
customer_stage?: string | undefined;
|
|
347
349
|
}, {
|
|
348
350
|
id: number;
|
|
349
351
|
name: string | null;
|
|
350
352
|
email: string | null;
|
|
351
353
|
phone_number: string | null;
|
|
352
|
-
thumbnail: string;
|
|
353
354
|
identifier: string | null;
|
|
354
|
-
additional_attributes: Record<string, unknown>;
|
|
355
|
-
custom_attributes: Record<string, unknown>;
|
|
356
|
-
blocked: boolean;
|
|
357
|
-
customer_stage: string;
|
|
358
355
|
customer_stage_explanation: string | null;
|
|
359
356
|
type?: string | undefined;
|
|
357
|
+
thumbnail?: string | undefined;
|
|
358
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
359
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
360
|
+
blocked?: boolean | undefined;
|
|
361
|
+
customer_stage?: string | undefined;
|
|
360
362
|
}>;
|
|
361
363
|
}, "strip", z.ZodTypeAny, {
|
|
362
364
|
id: number;
|
|
363
365
|
status: string;
|
|
364
366
|
account_id: number;
|
|
367
|
+
created_at: number;
|
|
368
|
+
updated_at: string;
|
|
365
369
|
content: string | null;
|
|
366
370
|
message_type: number;
|
|
367
371
|
private: boolean;
|
|
@@ -371,26 +375,24 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
371
375
|
} & {
|
|
372
376
|
[k: string]: unknown;
|
|
373
377
|
};
|
|
374
|
-
created_at: number;
|
|
375
378
|
conversation_id: number;
|
|
376
379
|
sender: {
|
|
377
380
|
id: number;
|
|
378
381
|
name: string | null;
|
|
379
382
|
email: string | null;
|
|
380
383
|
phone_number: string | null;
|
|
381
|
-
thumbnail: string;
|
|
382
384
|
identifier: string | null;
|
|
383
|
-
additional_attributes: Record<string, unknown>;
|
|
384
|
-
custom_attributes: Record<string, unknown>;
|
|
385
|
-
blocked: boolean;
|
|
386
|
-
customer_stage: string;
|
|
387
385
|
customer_stage_explanation: string | null;
|
|
388
386
|
type?: string | undefined;
|
|
387
|
+
thumbnail?: string | undefined;
|
|
388
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
389
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
390
|
+
blocked?: boolean | undefined;
|
|
391
|
+
customer_stage?: string | undefined;
|
|
389
392
|
};
|
|
390
393
|
additional_attributes: Record<string, unknown>;
|
|
391
394
|
inbox_id: number;
|
|
392
395
|
source_id: string | null;
|
|
393
|
-
updated_at: string;
|
|
394
396
|
sender_type: "Contact" | "User";
|
|
395
397
|
sender_id: number;
|
|
396
398
|
external_source_ids: Record<string, unknown>;
|
|
@@ -412,6 +414,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
412
414
|
id: number;
|
|
413
415
|
status: string;
|
|
414
416
|
account_id: number;
|
|
417
|
+
created_at: number;
|
|
418
|
+
updated_at: string;
|
|
415
419
|
content: string | null;
|
|
416
420
|
message_type: number;
|
|
417
421
|
private: boolean;
|
|
@@ -421,26 +425,24 @@ export declare const WebhookMessageSchema: z.ZodObject<{
|
|
|
421
425
|
} & {
|
|
422
426
|
[k: string]: unknown;
|
|
423
427
|
};
|
|
424
|
-
created_at: number;
|
|
425
428
|
conversation_id: number;
|
|
426
429
|
sender: {
|
|
427
430
|
id: number;
|
|
428
431
|
name: string | null;
|
|
429
432
|
email: string | null;
|
|
430
433
|
phone_number: string | null;
|
|
431
|
-
thumbnail: string;
|
|
432
434
|
identifier: string | null;
|
|
433
|
-
additional_attributes: Record<string, unknown>;
|
|
434
|
-
custom_attributes: Record<string, unknown>;
|
|
435
|
-
blocked: boolean;
|
|
436
|
-
customer_stage: string;
|
|
437
435
|
customer_stage_explanation: string | null;
|
|
438
436
|
type?: string | undefined;
|
|
437
|
+
thumbnail?: string | undefined;
|
|
438
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
439
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
440
|
+
blocked?: boolean | undefined;
|
|
441
|
+
customer_stage?: string | undefined;
|
|
439
442
|
};
|
|
440
443
|
additional_attributes: Record<string, unknown>;
|
|
441
444
|
inbox_id: number;
|
|
442
445
|
source_id: string | null;
|
|
443
|
-
updated_at: string;
|
|
444
446
|
sender_type: "Contact" | "User";
|
|
445
447
|
sender_id: number;
|
|
446
448
|
external_source_ids: Record<string, unknown>;
|
|
@@ -663,19 +665,19 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
663
665
|
}, "strip", z.ZodTypeAny, {
|
|
664
666
|
id: number;
|
|
665
667
|
created_at: string;
|
|
668
|
+
updated_at: string;
|
|
666
669
|
contact_id: number;
|
|
667
670
|
inbox_id: number;
|
|
668
671
|
source_id: string | null;
|
|
669
|
-
updated_at: string;
|
|
670
672
|
hmac_verified: boolean;
|
|
671
673
|
pubsub_token: string;
|
|
672
674
|
}, {
|
|
673
675
|
id: number;
|
|
674
676
|
created_at: string;
|
|
677
|
+
updated_at: string;
|
|
675
678
|
contact_id: number;
|
|
676
679
|
inbox_id: number;
|
|
677
680
|
source_id: string | null;
|
|
678
|
-
updated_at: string;
|
|
679
681
|
hmac_verified: boolean;
|
|
680
682
|
pubsub_token: string;
|
|
681
683
|
}>;
|
|
@@ -742,45 +744,48 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
742
744
|
name: z.ZodNullable<z.ZodString>;
|
|
743
745
|
email: z.ZodNullable<z.ZodString>;
|
|
744
746
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
745
|
-
thumbnail: z.ZodString;
|
|
746
747
|
identifier: z.ZodNullable<z.ZodString>;
|
|
747
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
748
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
749
|
-
blocked: z.ZodBoolean;
|
|
750
|
-
customer_stage: z.ZodString;
|
|
751
748
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
752
749
|
type: z.ZodOptional<z.ZodString>;
|
|
750
|
+
} & {
|
|
751
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
752
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
753
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
754
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
753
756
|
}, "strip", z.ZodTypeAny, {
|
|
754
757
|
id: number;
|
|
755
758
|
name: string | null;
|
|
756
759
|
email: string | null;
|
|
757
760
|
phone_number: string | null;
|
|
758
|
-
thumbnail: string;
|
|
759
761
|
identifier: string | null;
|
|
760
|
-
additional_attributes: Record<string, unknown>;
|
|
761
|
-
custom_attributes: Record<string, unknown>;
|
|
762
|
-
blocked: boolean;
|
|
763
|
-
customer_stage: string;
|
|
764
762
|
customer_stage_explanation: string | null;
|
|
765
763
|
type?: string | undefined;
|
|
764
|
+
thumbnail?: string | undefined;
|
|
765
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
766
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
767
|
+
blocked?: boolean | undefined;
|
|
768
|
+
customer_stage?: string | undefined;
|
|
766
769
|
}, {
|
|
767
770
|
id: number;
|
|
768
771
|
name: string | null;
|
|
769
772
|
email: string | null;
|
|
770
773
|
phone_number: string | null;
|
|
771
|
-
thumbnail: string;
|
|
772
774
|
identifier: string | null;
|
|
773
|
-
additional_attributes: Record<string, unknown>;
|
|
774
|
-
custom_attributes: Record<string, unknown>;
|
|
775
|
-
blocked: boolean;
|
|
776
|
-
customer_stage: string;
|
|
777
775
|
customer_stage_explanation: string | null;
|
|
778
776
|
type?: string | undefined;
|
|
777
|
+
thumbnail?: string | undefined;
|
|
778
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
779
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
780
|
+
blocked?: boolean | undefined;
|
|
781
|
+
customer_stage?: string | undefined;
|
|
779
782
|
}>;
|
|
780
783
|
}, "strip", z.ZodTypeAny, {
|
|
781
784
|
id: number;
|
|
782
785
|
status: string;
|
|
783
786
|
account_id: number;
|
|
787
|
+
created_at: number;
|
|
788
|
+
updated_at: string;
|
|
784
789
|
content: string | null;
|
|
785
790
|
message_type: number;
|
|
786
791
|
private: boolean;
|
|
@@ -790,26 +795,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
790
795
|
} & {
|
|
791
796
|
[k: string]: unknown;
|
|
792
797
|
};
|
|
793
|
-
created_at: number;
|
|
794
798
|
conversation_id: number;
|
|
795
799
|
sender: {
|
|
796
800
|
id: number;
|
|
797
801
|
name: string | null;
|
|
798
802
|
email: string | null;
|
|
799
803
|
phone_number: string | null;
|
|
800
|
-
thumbnail: string;
|
|
801
804
|
identifier: string | null;
|
|
802
|
-
additional_attributes: Record<string, unknown>;
|
|
803
|
-
custom_attributes: Record<string, unknown>;
|
|
804
|
-
blocked: boolean;
|
|
805
|
-
customer_stage: string;
|
|
806
805
|
customer_stage_explanation: string | null;
|
|
807
806
|
type?: string | undefined;
|
|
807
|
+
thumbnail?: string | undefined;
|
|
808
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
809
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
810
|
+
blocked?: boolean | undefined;
|
|
811
|
+
customer_stage?: string | undefined;
|
|
808
812
|
};
|
|
809
813
|
additional_attributes: Record<string, unknown>;
|
|
810
814
|
inbox_id: number;
|
|
811
815
|
source_id: string | null;
|
|
812
|
-
updated_at: string;
|
|
813
816
|
sender_type: "Contact" | "User";
|
|
814
817
|
sender_id: number;
|
|
815
818
|
external_source_ids: Record<string, unknown>;
|
|
@@ -831,6 +834,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
831
834
|
id: number;
|
|
832
835
|
status: string;
|
|
833
836
|
account_id: number;
|
|
837
|
+
created_at: number;
|
|
838
|
+
updated_at: string;
|
|
834
839
|
content: string | null;
|
|
835
840
|
message_type: number;
|
|
836
841
|
private: boolean;
|
|
@@ -840,26 +845,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
840
845
|
} & {
|
|
841
846
|
[k: string]: unknown;
|
|
842
847
|
};
|
|
843
|
-
created_at: number;
|
|
844
848
|
conversation_id: number;
|
|
845
849
|
sender: {
|
|
846
850
|
id: number;
|
|
847
851
|
name: string | null;
|
|
848
852
|
email: string | null;
|
|
849
853
|
phone_number: string | null;
|
|
850
|
-
thumbnail: string;
|
|
851
854
|
identifier: string | null;
|
|
852
|
-
additional_attributes: Record<string, unknown>;
|
|
853
|
-
custom_attributes: Record<string, unknown>;
|
|
854
|
-
blocked: boolean;
|
|
855
|
-
customer_stage: string;
|
|
856
855
|
customer_stage_explanation: string | null;
|
|
857
856
|
type?: string | undefined;
|
|
857
|
+
thumbnail?: string | undefined;
|
|
858
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
859
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
860
|
+
blocked?: boolean | undefined;
|
|
861
|
+
customer_stage?: string | undefined;
|
|
858
862
|
};
|
|
859
863
|
additional_attributes: Record<string, unknown>;
|
|
860
864
|
inbox_id: number;
|
|
861
865
|
source_id: string | null;
|
|
862
|
-
updated_at: string;
|
|
863
866
|
sender_type: "Contact" | "User";
|
|
864
867
|
sender_id: number;
|
|
865
868
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1001,6 +1004,30 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1001
1004
|
id: number;
|
|
1002
1005
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1003
1006
|
created_at: number;
|
|
1007
|
+
updated_at: number;
|
|
1008
|
+
meta: {
|
|
1009
|
+
sender: {
|
|
1010
|
+
id: number;
|
|
1011
|
+
name: string | null;
|
|
1012
|
+
email: string | null;
|
|
1013
|
+
phone_number: string | null;
|
|
1014
|
+
thumbnail: string;
|
|
1015
|
+
identifier: string | null;
|
|
1016
|
+
additional_attributes: Record<string, unknown>;
|
|
1017
|
+
custom_attributes: Record<string, unknown>;
|
|
1018
|
+
blocked: boolean;
|
|
1019
|
+
customer_stage: string;
|
|
1020
|
+
customer_stage_explanation: string | null;
|
|
1021
|
+
type?: string | undefined;
|
|
1022
|
+
};
|
|
1023
|
+
hmac_verified: boolean;
|
|
1024
|
+
assignee: {
|
|
1025
|
+
id: number;
|
|
1026
|
+
name: string;
|
|
1027
|
+
email: string;
|
|
1028
|
+
} | null;
|
|
1029
|
+
team?: unknown;
|
|
1030
|
+
};
|
|
1004
1031
|
priority: string | null;
|
|
1005
1032
|
additional_attributes: {
|
|
1006
1033
|
browser?: {
|
|
@@ -1020,16 +1047,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1020
1047
|
};
|
|
1021
1048
|
custom_attributes: Record<string, unknown>;
|
|
1022
1049
|
inbox_id: number;
|
|
1023
|
-
updated_at: number;
|
|
1024
1050
|
channel: string;
|
|
1025
1051
|
can_reply: boolean;
|
|
1026
1052
|
contact_inbox: {
|
|
1027
1053
|
id: number;
|
|
1028
1054
|
created_at: string;
|
|
1055
|
+
updated_at: string;
|
|
1029
1056
|
contact_id: number;
|
|
1030
1057
|
inbox_id: number;
|
|
1031
1058
|
source_id: string | null;
|
|
1032
|
-
updated_at: string;
|
|
1033
1059
|
hmac_verified: boolean;
|
|
1034
1060
|
pubsub_token: string;
|
|
1035
1061
|
};
|
|
@@ -1037,6 +1063,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1037
1063
|
id: number;
|
|
1038
1064
|
status: string;
|
|
1039
1065
|
account_id: number;
|
|
1066
|
+
created_at: number;
|
|
1067
|
+
updated_at: string;
|
|
1040
1068
|
content: string | null;
|
|
1041
1069
|
message_type: number;
|
|
1042
1070
|
private: boolean;
|
|
@@ -1046,26 +1074,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1046
1074
|
} & {
|
|
1047
1075
|
[k: string]: unknown;
|
|
1048
1076
|
};
|
|
1049
|
-
created_at: number;
|
|
1050
1077
|
conversation_id: number;
|
|
1051
1078
|
sender: {
|
|
1052
1079
|
id: number;
|
|
1053
1080
|
name: string | null;
|
|
1054
1081
|
email: string | null;
|
|
1055
1082
|
phone_number: string | null;
|
|
1056
|
-
thumbnail: string;
|
|
1057
1083
|
identifier: string | null;
|
|
1058
|
-
additional_attributes: Record<string, unknown>;
|
|
1059
|
-
custom_attributes: Record<string, unknown>;
|
|
1060
|
-
blocked: boolean;
|
|
1061
|
-
customer_stage: string;
|
|
1062
1084
|
customer_stage_explanation: string | null;
|
|
1063
1085
|
type?: string | undefined;
|
|
1086
|
+
thumbnail?: string | undefined;
|
|
1087
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1088
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1089
|
+
blocked?: boolean | undefined;
|
|
1090
|
+
customer_stage?: string | undefined;
|
|
1064
1091
|
};
|
|
1065
1092
|
additional_attributes: Record<string, unknown>;
|
|
1066
1093
|
inbox_id: number;
|
|
1067
1094
|
source_id: string | null;
|
|
1068
|
-
updated_at: string;
|
|
1069
1095
|
sender_type: "Contact" | "User";
|
|
1070
1096
|
sender_id: number;
|
|
1071
1097
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1084,6 +1110,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1084
1110
|
assignee_id: number | null;
|
|
1085
1111
|
};
|
|
1086
1112
|
}[];
|
|
1113
|
+
labels: string[];
|
|
1114
|
+
snoozed_until: number | null;
|
|
1115
|
+
unread_count: number;
|
|
1116
|
+
first_reply_created_at: string | number | null;
|
|
1117
|
+
waiting_since: number | null;
|
|
1118
|
+
ai_disabled: boolean;
|
|
1119
|
+
reenable_ai_at: number | null;
|
|
1120
|
+
ai_summary: string | null;
|
|
1121
|
+
conversation_type: string;
|
|
1122
|
+
agent_last_seen_at: number;
|
|
1123
|
+
contact_last_seen_at: number;
|
|
1124
|
+
last_activity_at: number;
|
|
1125
|
+
timestamp: number;
|
|
1126
|
+
}, {
|
|
1127
|
+
id: number;
|
|
1128
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1129
|
+
created_at: number;
|
|
1130
|
+
updated_at: number;
|
|
1087
1131
|
meta: {
|
|
1088
1132
|
sender: {
|
|
1089
1133
|
id: number;
|
|
@@ -1107,23 +1151,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1107
1151
|
} | null;
|
|
1108
1152
|
team?: unknown;
|
|
1109
1153
|
};
|
|
1110
|
-
labels: string[];
|
|
1111
|
-
snoozed_until: number | null;
|
|
1112
|
-
unread_count: number;
|
|
1113
|
-
first_reply_created_at: string | number | null;
|
|
1114
|
-
waiting_since: number | null;
|
|
1115
|
-
ai_disabled: boolean;
|
|
1116
|
-
reenable_ai_at: number | null;
|
|
1117
|
-
ai_summary: string | null;
|
|
1118
|
-
conversation_type: string;
|
|
1119
|
-
agent_last_seen_at: number;
|
|
1120
|
-
contact_last_seen_at: number;
|
|
1121
|
-
last_activity_at: number;
|
|
1122
|
-
timestamp: number;
|
|
1123
|
-
}, {
|
|
1124
|
-
id: number;
|
|
1125
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1126
|
-
created_at: number;
|
|
1127
1154
|
priority: string | null;
|
|
1128
1155
|
additional_attributes: {
|
|
1129
1156
|
browser?: {
|
|
@@ -1143,16 +1170,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1143
1170
|
};
|
|
1144
1171
|
custom_attributes: Record<string, unknown>;
|
|
1145
1172
|
inbox_id: number;
|
|
1146
|
-
updated_at: number;
|
|
1147
1173
|
channel: string;
|
|
1148
1174
|
can_reply: boolean;
|
|
1149
1175
|
contact_inbox: {
|
|
1150
1176
|
id: number;
|
|
1151
1177
|
created_at: string;
|
|
1178
|
+
updated_at: string;
|
|
1152
1179
|
contact_id: number;
|
|
1153
1180
|
inbox_id: number;
|
|
1154
1181
|
source_id: string | null;
|
|
1155
|
-
updated_at: string;
|
|
1156
1182
|
hmac_verified: boolean;
|
|
1157
1183
|
pubsub_token: string;
|
|
1158
1184
|
};
|
|
@@ -1160,6 +1186,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1160
1186
|
id: number;
|
|
1161
1187
|
status: string;
|
|
1162
1188
|
account_id: number;
|
|
1189
|
+
created_at: number;
|
|
1190
|
+
updated_at: string;
|
|
1163
1191
|
content: string | null;
|
|
1164
1192
|
message_type: number;
|
|
1165
1193
|
private: boolean;
|
|
@@ -1169,26 +1197,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1169
1197
|
} & {
|
|
1170
1198
|
[k: string]: unknown;
|
|
1171
1199
|
};
|
|
1172
|
-
created_at: number;
|
|
1173
1200
|
conversation_id: number;
|
|
1174
1201
|
sender: {
|
|
1175
1202
|
id: number;
|
|
1176
1203
|
name: string | null;
|
|
1177
1204
|
email: string | null;
|
|
1178
1205
|
phone_number: string | null;
|
|
1179
|
-
thumbnail: string;
|
|
1180
1206
|
identifier: string | null;
|
|
1181
|
-
additional_attributes: Record<string, unknown>;
|
|
1182
|
-
custom_attributes: Record<string, unknown>;
|
|
1183
|
-
blocked: boolean;
|
|
1184
|
-
customer_stage: string;
|
|
1185
1207
|
customer_stage_explanation: string | null;
|
|
1186
1208
|
type?: string | undefined;
|
|
1209
|
+
thumbnail?: string | undefined;
|
|
1210
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1211
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1212
|
+
blocked?: boolean | undefined;
|
|
1213
|
+
customer_stage?: string | undefined;
|
|
1187
1214
|
};
|
|
1188
1215
|
additional_attributes: Record<string, unknown>;
|
|
1189
1216
|
inbox_id: number;
|
|
1190
1217
|
source_id: string | null;
|
|
1191
|
-
updated_at: string;
|
|
1192
1218
|
sender_type: "Contact" | "User";
|
|
1193
1219
|
sender_id: number;
|
|
1194
1220
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1207,29 +1233,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
|
|
|
1207
1233
|
assignee_id: number | null;
|
|
1208
1234
|
};
|
|
1209
1235
|
}[];
|
|
1210
|
-
meta: {
|
|
1211
|
-
sender: {
|
|
1212
|
-
id: number;
|
|
1213
|
-
name: string | null;
|
|
1214
|
-
email: string | null;
|
|
1215
|
-
phone_number: string | null;
|
|
1216
|
-
thumbnail: string;
|
|
1217
|
-
identifier: string | null;
|
|
1218
|
-
additional_attributes: Record<string, unknown>;
|
|
1219
|
-
custom_attributes: Record<string, unknown>;
|
|
1220
|
-
blocked: boolean;
|
|
1221
|
-
customer_stage: string;
|
|
1222
|
-
customer_stage_explanation: string | null;
|
|
1223
|
-
type?: string | undefined;
|
|
1224
|
-
};
|
|
1225
|
-
hmac_verified: boolean;
|
|
1226
|
-
assignee: {
|
|
1227
|
-
id: number;
|
|
1228
|
-
name: string;
|
|
1229
|
-
email: string;
|
|
1230
|
-
} | null;
|
|
1231
|
-
team?: unknown;
|
|
1232
|
-
};
|
|
1233
1236
|
labels: string[];
|
|
1234
1237
|
snoozed_until: number | null;
|
|
1235
1238
|
unread_count: number;
|
|
@@ -1368,19 +1371,19 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1368
1371
|
}, "strip", z.ZodTypeAny, {
|
|
1369
1372
|
id: number;
|
|
1370
1373
|
created_at: string;
|
|
1374
|
+
updated_at: string;
|
|
1371
1375
|
contact_id: number;
|
|
1372
1376
|
inbox_id: number;
|
|
1373
1377
|
source_id: string | null;
|
|
1374
|
-
updated_at: string;
|
|
1375
1378
|
hmac_verified: boolean;
|
|
1376
1379
|
pubsub_token: string;
|
|
1377
1380
|
}, {
|
|
1378
1381
|
id: number;
|
|
1379
1382
|
created_at: string;
|
|
1383
|
+
updated_at: string;
|
|
1380
1384
|
contact_id: number;
|
|
1381
1385
|
inbox_id: number;
|
|
1382
1386
|
source_id: string | null;
|
|
1383
|
-
updated_at: string;
|
|
1384
1387
|
hmac_verified: boolean;
|
|
1385
1388
|
pubsub_token: string;
|
|
1386
1389
|
}>;
|
|
@@ -1447,45 +1450,48 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1447
1450
|
name: z.ZodNullable<z.ZodString>;
|
|
1448
1451
|
email: z.ZodNullable<z.ZodString>;
|
|
1449
1452
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
1450
|
-
thumbnail: z.ZodString;
|
|
1451
1453
|
identifier: z.ZodNullable<z.ZodString>;
|
|
1452
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1453
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1454
|
-
blocked: z.ZodBoolean;
|
|
1455
|
-
customer_stage: z.ZodString;
|
|
1456
1454
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
1457
1455
|
type: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
} & {
|
|
1457
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1459
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1460
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
1461
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
1458
1462
|
}, "strip", z.ZodTypeAny, {
|
|
1459
1463
|
id: number;
|
|
1460
1464
|
name: string | null;
|
|
1461
1465
|
email: string | null;
|
|
1462
1466
|
phone_number: string | null;
|
|
1463
|
-
thumbnail: string;
|
|
1464
1467
|
identifier: string | null;
|
|
1465
|
-
additional_attributes: Record<string, unknown>;
|
|
1466
|
-
custom_attributes: Record<string, unknown>;
|
|
1467
|
-
blocked: boolean;
|
|
1468
|
-
customer_stage: string;
|
|
1469
1468
|
customer_stage_explanation: string | null;
|
|
1470
1469
|
type?: string | undefined;
|
|
1470
|
+
thumbnail?: string | undefined;
|
|
1471
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1472
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1473
|
+
blocked?: boolean | undefined;
|
|
1474
|
+
customer_stage?: string | undefined;
|
|
1471
1475
|
}, {
|
|
1472
1476
|
id: number;
|
|
1473
1477
|
name: string | null;
|
|
1474
1478
|
email: string | null;
|
|
1475
1479
|
phone_number: string | null;
|
|
1476
|
-
thumbnail: string;
|
|
1477
1480
|
identifier: string | null;
|
|
1478
|
-
additional_attributes: Record<string, unknown>;
|
|
1479
|
-
custom_attributes: Record<string, unknown>;
|
|
1480
|
-
blocked: boolean;
|
|
1481
|
-
customer_stage: string;
|
|
1482
1481
|
customer_stage_explanation: string | null;
|
|
1483
1482
|
type?: string | undefined;
|
|
1483
|
+
thumbnail?: string | undefined;
|
|
1484
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1485
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1486
|
+
blocked?: boolean | undefined;
|
|
1487
|
+
customer_stage?: string | undefined;
|
|
1484
1488
|
}>;
|
|
1485
1489
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1490
|
id: number;
|
|
1487
1491
|
status: string;
|
|
1488
1492
|
account_id: number;
|
|
1493
|
+
created_at: number;
|
|
1494
|
+
updated_at: string;
|
|
1489
1495
|
content: string | null;
|
|
1490
1496
|
message_type: number;
|
|
1491
1497
|
private: boolean;
|
|
@@ -1495,26 +1501,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1495
1501
|
} & {
|
|
1496
1502
|
[k: string]: unknown;
|
|
1497
1503
|
};
|
|
1498
|
-
created_at: number;
|
|
1499
1504
|
conversation_id: number;
|
|
1500
1505
|
sender: {
|
|
1501
1506
|
id: number;
|
|
1502
1507
|
name: string | null;
|
|
1503
1508
|
email: string | null;
|
|
1504
1509
|
phone_number: string | null;
|
|
1505
|
-
thumbnail: string;
|
|
1506
1510
|
identifier: string | null;
|
|
1507
|
-
additional_attributes: Record<string, unknown>;
|
|
1508
|
-
custom_attributes: Record<string, unknown>;
|
|
1509
|
-
blocked: boolean;
|
|
1510
|
-
customer_stage: string;
|
|
1511
1511
|
customer_stage_explanation: string | null;
|
|
1512
1512
|
type?: string | undefined;
|
|
1513
|
+
thumbnail?: string | undefined;
|
|
1514
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1515
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1516
|
+
blocked?: boolean | undefined;
|
|
1517
|
+
customer_stage?: string | undefined;
|
|
1513
1518
|
};
|
|
1514
1519
|
additional_attributes: Record<string, unknown>;
|
|
1515
1520
|
inbox_id: number;
|
|
1516
1521
|
source_id: string | null;
|
|
1517
|
-
updated_at: string;
|
|
1518
1522
|
sender_type: "Contact" | "User";
|
|
1519
1523
|
sender_id: number;
|
|
1520
1524
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1536,6 +1540,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1536
1540
|
id: number;
|
|
1537
1541
|
status: string;
|
|
1538
1542
|
account_id: number;
|
|
1543
|
+
created_at: number;
|
|
1544
|
+
updated_at: string;
|
|
1539
1545
|
content: string | null;
|
|
1540
1546
|
message_type: number;
|
|
1541
1547
|
private: boolean;
|
|
@@ -1545,26 +1551,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1545
1551
|
} & {
|
|
1546
1552
|
[k: string]: unknown;
|
|
1547
1553
|
};
|
|
1548
|
-
created_at: number;
|
|
1549
1554
|
conversation_id: number;
|
|
1550
1555
|
sender: {
|
|
1551
1556
|
id: number;
|
|
1552
1557
|
name: string | null;
|
|
1553
1558
|
email: string | null;
|
|
1554
1559
|
phone_number: string | null;
|
|
1555
|
-
thumbnail: string;
|
|
1556
1560
|
identifier: string | null;
|
|
1557
|
-
additional_attributes: Record<string, unknown>;
|
|
1558
|
-
custom_attributes: Record<string, unknown>;
|
|
1559
|
-
blocked: boolean;
|
|
1560
|
-
customer_stage: string;
|
|
1561
1561
|
customer_stage_explanation: string | null;
|
|
1562
1562
|
type?: string | undefined;
|
|
1563
|
+
thumbnail?: string | undefined;
|
|
1564
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1565
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1566
|
+
blocked?: boolean | undefined;
|
|
1567
|
+
customer_stage?: string | undefined;
|
|
1563
1568
|
};
|
|
1564
1569
|
additional_attributes: Record<string, unknown>;
|
|
1565
1570
|
inbox_id: number;
|
|
1566
1571
|
source_id: string | null;
|
|
1567
|
-
updated_at: string;
|
|
1568
1572
|
sender_type: "Contact" | "User";
|
|
1569
1573
|
sender_id: number;
|
|
1570
1574
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1706,6 +1710,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1706
1710
|
id: number;
|
|
1707
1711
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1708
1712
|
created_at: number;
|
|
1713
|
+
updated_at: number;
|
|
1714
|
+
meta: {
|
|
1715
|
+
sender: {
|
|
1716
|
+
id: number;
|
|
1717
|
+
name: string | null;
|
|
1718
|
+
email: string | null;
|
|
1719
|
+
phone_number: string | null;
|
|
1720
|
+
thumbnail: string;
|
|
1721
|
+
identifier: string | null;
|
|
1722
|
+
additional_attributes: Record<string, unknown>;
|
|
1723
|
+
custom_attributes: Record<string, unknown>;
|
|
1724
|
+
blocked: boolean;
|
|
1725
|
+
customer_stage: string;
|
|
1726
|
+
customer_stage_explanation: string | null;
|
|
1727
|
+
type?: string | undefined;
|
|
1728
|
+
};
|
|
1729
|
+
hmac_verified: boolean;
|
|
1730
|
+
assignee: {
|
|
1731
|
+
id: number;
|
|
1732
|
+
name: string;
|
|
1733
|
+
email: string;
|
|
1734
|
+
} | null;
|
|
1735
|
+
team?: unknown;
|
|
1736
|
+
};
|
|
1709
1737
|
priority: string | null;
|
|
1710
1738
|
additional_attributes: {
|
|
1711
1739
|
browser?: {
|
|
@@ -1725,16 +1753,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1725
1753
|
};
|
|
1726
1754
|
custom_attributes: Record<string, unknown>;
|
|
1727
1755
|
inbox_id: number;
|
|
1728
|
-
updated_at: number;
|
|
1729
1756
|
channel: string;
|
|
1730
1757
|
can_reply: boolean;
|
|
1731
1758
|
contact_inbox: {
|
|
1732
1759
|
id: number;
|
|
1733
1760
|
created_at: string;
|
|
1761
|
+
updated_at: string;
|
|
1734
1762
|
contact_id: number;
|
|
1735
1763
|
inbox_id: number;
|
|
1736
1764
|
source_id: string | null;
|
|
1737
|
-
updated_at: string;
|
|
1738
1765
|
hmac_verified: boolean;
|
|
1739
1766
|
pubsub_token: string;
|
|
1740
1767
|
};
|
|
@@ -1742,6 +1769,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1742
1769
|
id: number;
|
|
1743
1770
|
status: string;
|
|
1744
1771
|
account_id: number;
|
|
1772
|
+
created_at: number;
|
|
1773
|
+
updated_at: string;
|
|
1745
1774
|
content: string | null;
|
|
1746
1775
|
message_type: number;
|
|
1747
1776
|
private: boolean;
|
|
@@ -1751,26 +1780,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1751
1780
|
} & {
|
|
1752
1781
|
[k: string]: unknown;
|
|
1753
1782
|
};
|
|
1754
|
-
created_at: number;
|
|
1755
1783
|
conversation_id: number;
|
|
1756
1784
|
sender: {
|
|
1757
1785
|
id: number;
|
|
1758
1786
|
name: string | null;
|
|
1759
1787
|
email: string | null;
|
|
1760
1788
|
phone_number: string | null;
|
|
1761
|
-
thumbnail: string;
|
|
1762
1789
|
identifier: string | null;
|
|
1763
|
-
additional_attributes: Record<string, unknown>;
|
|
1764
|
-
custom_attributes: Record<string, unknown>;
|
|
1765
|
-
blocked: boolean;
|
|
1766
|
-
customer_stage: string;
|
|
1767
1790
|
customer_stage_explanation: string | null;
|
|
1768
1791
|
type?: string | undefined;
|
|
1792
|
+
thumbnail?: string | undefined;
|
|
1793
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1794
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1795
|
+
blocked?: boolean | undefined;
|
|
1796
|
+
customer_stage?: string | undefined;
|
|
1769
1797
|
};
|
|
1770
1798
|
additional_attributes: Record<string, unknown>;
|
|
1771
1799
|
inbox_id: number;
|
|
1772
1800
|
source_id: string | null;
|
|
1773
|
-
updated_at: string;
|
|
1774
1801
|
sender_type: "Contact" | "User";
|
|
1775
1802
|
sender_id: number;
|
|
1776
1803
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1789,6 +1816,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1789
1816
|
assignee_id: number | null;
|
|
1790
1817
|
};
|
|
1791
1818
|
}[];
|
|
1819
|
+
labels: string[];
|
|
1820
|
+
snoozed_until: number | null;
|
|
1821
|
+
unread_count: number;
|
|
1822
|
+
first_reply_created_at: string | number | null;
|
|
1823
|
+
waiting_since: number | null;
|
|
1824
|
+
ai_disabled: boolean;
|
|
1825
|
+
reenable_ai_at: number | null;
|
|
1826
|
+
ai_summary: string | null;
|
|
1827
|
+
conversation_type: string;
|
|
1828
|
+
agent_last_seen_at: number;
|
|
1829
|
+
contact_last_seen_at: number;
|
|
1830
|
+
last_activity_at: number;
|
|
1831
|
+
timestamp: number;
|
|
1832
|
+
}, {
|
|
1833
|
+
id: number;
|
|
1834
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1835
|
+
created_at: number;
|
|
1836
|
+
updated_at: number;
|
|
1792
1837
|
meta: {
|
|
1793
1838
|
sender: {
|
|
1794
1839
|
id: number;
|
|
@@ -1812,23 +1857,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1812
1857
|
} | null;
|
|
1813
1858
|
team?: unknown;
|
|
1814
1859
|
};
|
|
1815
|
-
labels: string[];
|
|
1816
|
-
snoozed_until: number | null;
|
|
1817
|
-
unread_count: number;
|
|
1818
|
-
first_reply_created_at: string | number | null;
|
|
1819
|
-
waiting_since: number | null;
|
|
1820
|
-
ai_disabled: boolean;
|
|
1821
|
-
reenable_ai_at: number | null;
|
|
1822
|
-
ai_summary: string | null;
|
|
1823
|
-
conversation_type: string;
|
|
1824
|
-
agent_last_seen_at: number;
|
|
1825
|
-
contact_last_seen_at: number;
|
|
1826
|
-
last_activity_at: number;
|
|
1827
|
-
timestamp: number;
|
|
1828
|
-
}, {
|
|
1829
|
-
id: number;
|
|
1830
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
1831
|
-
created_at: number;
|
|
1832
1860
|
priority: string | null;
|
|
1833
1861
|
additional_attributes: {
|
|
1834
1862
|
browser?: {
|
|
@@ -1848,16 +1876,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1848
1876
|
};
|
|
1849
1877
|
custom_attributes: Record<string, unknown>;
|
|
1850
1878
|
inbox_id: number;
|
|
1851
|
-
updated_at: number;
|
|
1852
1879
|
channel: string;
|
|
1853
1880
|
can_reply: boolean;
|
|
1854
1881
|
contact_inbox: {
|
|
1855
1882
|
id: number;
|
|
1856
1883
|
created_at: string;
|
|
1884
|
+
updated_at: string;
|
|
1857
1885
|
contact_id: number;
|
|
1858
1886
|
inbox_id: number;
|
|
1859
1887
|
source_id: string | null;
|
|
1860
|
-
updated_at: string;
|
|
1861
1888
|
hmac_verified: boolean;
|
|
1862
1889
|
pubsub_token: string;
|
|
1863
1890
|
};
|
|
@@ -1865,6 +1892,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1865
1892
|
id: number;
|
|
1866
1893
|
status: string;
|
|
1867
1894
|
account_id: number;
|
|
1895
|
+
created_at: number;
|
|
1896
|
+
updated_at: string;
|
|
1868
1897
|
content: string | null;
|
|
1869
1898
|
message_type: number;
|
|
1870
1899
|
private: boolean;
|
|
@@ -1874,26 +1903,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1874
1903
|
} & {
|
|
1875
1904
|
[k: string]: unknown;
|
|
1876
1905
|
};
|
|
1877
|
-
created_at: number;
|
|
1878
1906
|
conversation_id: number;
|
|
1879
1907
|
sender: {
|
|
1880
1908
|
id: number;
|
|
1881
1909
|
name: string | null;
|
|
1882
1910
|
email: string | null;
|
|
1883
1911
|
phone_number: string | null;
|
|
1884
|
-
thumbnail: string;
|
|
1885
1912
|
identifier: string | null;
|
|
1886
|
-
additional_attributes: Record<string, unknown>;
|
|
1887
|
-
custom_attributes: Record<string, unknown>;
|
|
1888
|
-
blocked: boolean;
|
|
1889
|
-
customer_stage: string;
|
|
1890
1913
|
customer_stage_explanation: string | null;
|
|
1891
1914
|
type?: string | undefined;
|
|
1915
|
+
thumbnail?: string | undefined;
|
|
1916
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
1917
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
1918
|
+
blocked?: boolean | undefined;
|
|
1919
|
+
customer_stage?: string | undefined;
|
|
1892
1920
|
};
|
|
1893
1921
|
additional_attributes: Record<string, unknown>;
|
|
1894
1922
|
inbox_id: number;
|
|
1895
1923
|
source_id: string | null;
|
|
1896
|
-
updated_at: string;
|
|
1897
1924
|
sender_type: "Contact" | "User";
|
|
1898
1925
|
sender_id: number;
|
|
1899
1926
|
external_source_ids: Record<string, unknown>;
|
|
@@ -1912,29 +1939,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
1912
1939
|
assignee_id: number | null;
|
|
1913
1940
|
};
|
|
1914
1941
|
}[];
|
|
1915
|
-
meta: {
|
|
1916
|
-
sender: {
|
|
1917
|
-
id: number;
|
|
1918
|
-
name: string | null;
|
|
1919
|
-
email: string | null;
|
|
1920
|
-
phone_number: string | null;
|
|
1921
|
-
thumbnail: string;
|
|
1922
|
-
identifier: string | null;
|
|
1923
|
-
additional_attributes: Record<string, unknown>;
|
|
1924
|
-
custom_attributes: Record<string, unknown>;
|
|
1925
|
-
blocked: boolean;
|
|
1926
|
-
customer_stage: string;
|
|
1927
|
-
customer_stage_explanation: string | null;
|
|
1928
|
-
type?: string | undefined;
|
|
1929
|
-
};
|
|
1930
|
-
hmac_verified: boolean;
|
|
1931
|
-
assignee: {
|
|
1932
|
-
id: number;
|
|
1933
|
-
name: string;
|
|
1934
|
-
email: string;
|
|
1935
|
-
} | null;
|
|
1936
|
-
team?: unknown;
|
|
1937
|
-
};
|
|
1938
1942
|
labels: string[];
|
|
1939
1943
|
snoozed_until: number | null;
|
|
1940
1944
|
unread_count: number;
|
|
@@ -2030,6 +2034,7 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2030
2034
|
}, "strip", z.ZodTypeAny, {
|
|
2031
2035
|
id: number;
|
|
2032
2036
|
status: string;
|
|
2037
|
+
created_at: string;
|
|
2033
2038
|
content: string | null;
|
|
2034
2039
|
message_type: "incoming" | "outgoing";
|
|
2035
2040
|
private: boolean;
|
|
@@ -2039,7 +2044,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2039
2044
|
} & {
|
|
2040
2045
|
[k: string]: unknown;
|
|
2041
2046
|
};
|
|
2042
|
-
created_at: string;
|
|
2043
2047
|
sender: {
|
|
2044
2048
|
id: number;
|
|
2045
2049
|
name: string | null;
|
|
@@ -2068,6 +2072,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2068
2072
|
id: number;
|
|
2069
2073
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2070
2074
|
created_at: number;
|
|
2075
|
+
updated_at: number;
|
|
2076
|
+
meta: {
|
|
2077
|
+
sender: {
|
|
2078
|
+
id: number;
|
|
2079
|
+
name: string | null;
|
|
2080
|
+
email: string | null;
|
|
2081
|
+
phone_number: string | null;
|
|
2082
|
+
thumbnail: string;
|
|
2083
|
+
identifier: string | null;
|
|
2084
|
+
additional_attributes: Record<string, unknown>;
|
|
2085
|
+
custom_attributes: Record<string, unknown>;
|
|
2086
|
+
blocked: boolean;
|
|
2087
|
+
customer_stage: string;
|
|
2088
|
+
customer_stage_explanation: string | null;
|
|
2089
|
+
type?: string | undefined;
|
|
2090
|
+
};
|
|
2091
|
+
hmac_verified: boolean;
|
|
2092
|
+
assignee: {
|
|
2093
|
+
id: number;
|
|
2094
|
+
name: string;
|
|
2095
|
+
email: string;
|
|
2096
|
+
} | null;
|
|
2097
|
+
team?: unknown;
|
|
2098
|
+
};
|
|
2071
2099
|
priority: string | null;
|
|
2072
2100
|
additional_attributes: {
|
|
2073
2101
|
browser?: {
|
|
@@ -2087,16 +2115,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2087
2115
|
};
|
|
2088
2116
|
custom_attributes: Record<string, unknown>;
|
|
2089
2117
|
inbox_id: number;
|
|
2090
|
-
updated_at: number;
|
|
2091
2118
|
channel: string;
|
|
2092
2119
|
can_reply: boolean;
|
|
2093
2120
|
contact_inbox: {
|
|
2094
2121
|
id: number;
|
|
2095
2122
|
created_at: string;
|
|
2123
|
+
updated_at: string;
|
|
2096
2124
|
contact_id: number;
|
|
2097
2125
|
inbox_id: number;
|
|
2098
2126
|
source_id: string | null;
|
|
2099
|
-
updated_at: string;
|
|
2100
2127
|
hmac_verified: boolean;
|
|
2101
2128
|
pubsub_token: string;
|
|
2102
2129
|
};
|
|
@@ -2104,6 +2131,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2104
2131
|
id: number;
|
|
2105
2132
|
status: string;
|
|
2106
2133
|
account_id: number;
|
|
2134
|
+
created_at: number;
|
|
2135
|
+
updated_at: string;
|
|
2107
2136
|
content: string | null;
|
|
2108
2137
|
message_type: number;
|
|
2109
2138
|
private: boolean;
|
|
@@ -2113,26 +2142,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2113
2142
|
} & {
|
|
2114
2143
|
[k: string]: unknown;
|
|
2115
2144
|
};
|
|
2116
|
-
created_at: number;
|
|
2117
2145
|
conversation_id: number;
|
|
2118
2146
|
sender: {
|
|
2119
2147
|
id: number;
|
|
2120
2148
|
name: string | null;
|
|
2121
2149
|
email: string | null;
|
|
2122
2150
|
phone_number: string | null;
|
|
2123
|
-
thumbnail: string;
|
|
2124
2151
|
identifier: string | null;
|
|
2125
|
-
additional_attributes: Record<string, unknown>;
|
|
2126
|
-
custom_attributes: Record<string, unknown>;
|
|
2127
|
-
blocked: boolean;
|
|
2128
|
-
customer_stage: string;
|
|
2129
2152
|
customer_stage_explanation: string | null;
|
|
2130
2153
|
type?: string | undefined;
|
|
2154
|
+
thumbnail?: string | undefined;
|
|
2155
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2156
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2157
|
+
blocked?: boolean | undefined;
|
|
2158
|
+
customer_stage?: string | undefined;
|
|
2131
2159
|
};
|
|
2132
2160
|
additional_attributes: Record<string, unknown>;
|
|
2133
2161
|
inbox_id: number;
|
|
2134
2162
|
source_id: string | null;
|
|
2135
|
-
updated_at: string;
|
|
2136
2163
|
sender_type: "Contact" | "User";
|
|
2137
2164
|
sender_id: number;
|
|
2138
2165
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2151,29 +2178,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2151
2178
|
assignee_id: number | null;
|
|
2152
2179
|
};
|
|
2153
2180
|
}[];
|
|
2154
|
-
meta: {
|
|
2155
|
-
sender: {
|
|
2156
|
-
id: number;
|
|
2157
|
-
name: string | null;
|
|
2158
|
-
email: string | null;
|
|
2159
|
-
phone_number: string | null;
|
|
2160
|
-
thumbnail: string;
|
|
2161
|
-
identifier: string | null;
|
|
2162
|
-
additional_attributes: Record<string, unknown>;
|
|
2163
|
-
custom_attributes: Record<string, unknown>;
|
|
2164
|
-
blocked: boolean;
|
|
2165
|
-
customer_stage: string;
|
|
2166
|
-
customer_stage_explanation: string | null;
|
|
2167
|
-
type?: string | undefined;
|
|
2168
|
-
};
|
|
2169
|
-
hmac_verified: boolean;
|
|
2170
|
-
assignee: {
|
|
2171
|
-
id: number;
|
|
2172
|
-
name: string;
|
|
2173
|
-
email: string;
|
|
2174
|
-
} | null;
|
|
2175
|
-
team?: unknown;
|
|
2176
|
-
};
|
|
2177
2181
|
labels: string[];
|
|
2178
2182
|
snoozed_until: number | null;
|
|
2179
2183
|
unread_count: number;
|
|
@@ -2196,6 +2200,7 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2196
2200
|
}, {
|
|
2197
2201
|
id: number;
|
|
2198
2202
|
status: string;
|
|
2203
|
+
created_at: string;
|
|
2199
2204
|
content: string | null;
|
|
2200
2205
|
message_type: "incoming" | "outgoing";
|
|
2201
2206
|
private: boolean;
|
|
@@ -2205,7 +2210,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2205
2210
|
} & {
|
|
2206
2211
|
[k: string]: unknown;
|
|
2207
2212
|
};
|
|
2208
|
-
created_at: string;
|
|
2209
2213
|
sender: {
|
|
2210
2214
|
id: number;
|
|
2211
2215
|
name: string | null;
|
|
@@ -2234,6 +2238,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2234
2238
|
id: number;
|
|
2235
2239
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2236
2240
|
created_at: number;
|
|
2241
|
+
updated_at: number;
|
|
2242
|
+
meta: {
|
|
2243
|
+
sender: {
|
|
2244
|
+
id: number;
|
|
2245
|
+
name: string | null;
|
|
2246
|
+
email: string | null;
|
|
2247
|
+
phone_number: string | null;
|
|
2248
|
+
thumbnail: string;
|
|
2249
|
+
identifier: string | null;
|
|
2250
|
+
additional_attributes: Record<string, unknown>;
|
|
2251
|
+
custom_attributes: Record<string, unknown>;
|
|
2252
|
+
blocked: boolean;
|
|
2253
|
+
customer_stage: string;
|
|
2254
|
+
customer_stage_explanation: string | null;
|
|
2255
|
+
type?: string | undefined;
|
|
2256
|
+
};
|
|
2257
|
+
hmac_verified: boolean;
|
|
2258
|
+
assignee: {
|
|
2259
|
+
id: number;
|
|
2260
|
+
name: string;
|
|
2261
|
+
email: string;
|
|
2262
|
+
} | null;
|
|
2263
|
+
team?: unknown;
|
|
2264
|
+
};
|
|
2237
2265
|
priority: string | null;
|
|
2238
2266
|
additional_attributes: {
|
|
2239
2267
|
browser?: {
|
|
@@ -2253,16 +2281,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2253
2281
|
};
|
|
2254
2282
|
custom_attributes: Record<string, unknown>;
|
|
2255
2283
|
inbox_id: number;
|
|
2256
|
-
updated_at: number;
|
|
2257
2284
|
channel: string;
|
|
2258
2285
|
can_reply: boolean;
|
|
2259
2286
|
contact_inbox: {
|
|
2260
2287
|
id: number;
|
|
2261
2288
|
created_at: string;
|
|
2289
|
+
updated_at: string;
|
|
2262
2290
|
contact_id: number;
|
|
2263
2291
|
inbox_id: number;
|
|
2264
2292
|
source_id: string | null;
|
|
2265
|
-
updated_at: string;
|
|
2266
2293
|
hmac_verified: boolean;
|
|
2267
2294
|
pubsub_token: string;
|
|
2268
2295
|
};
|
|
@@ -2270,6 +2297,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2270
2297
|
id: number;
|
|
2271
2298
|
status: string;
|
|
2272
2299
|
account_id: number;
|
|
2300
|
+
created_at: number;
|
|
2301
|
+
updated_at: string;
|
|
2273
2302
|
content: string | null;
|
|
2274
2303
|
message_type: number;
|
|
2275
2304
|
private: boolean;
|
|
@@ -2279,26 +2308,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2279
2308
|
} & {
|
|
2280
2309
|
[k: string]: unknown;
|
|
2281
2310
|
};
|
|
2282
|
-
created_at: number;
|
|
2283
2311
|
conversation_id: number;
|
|
2284
2312
|
sender: {
|
|
2285
2313
|
id: number;
|
|
2286
2314
|
name: string | null;
|
|
2287
2315
|
email: string | null;
|
|
2288
2316
|
phone_number: string | null;
|
|
2289
|
-
thumbnail: string;
|
|
2290
2317
|
identifier: string | null;
|
|
2291
|
-
additional_attributes: Record<string, unknown>;
|
|
2292
|
-
custom_attributes: Record<string, unknown>;
|
|
2293
|
-
blocked: boolean;
|
|
2294
|
-
customer_stage: string;
|
|
2295
2318
|
customer_stage_explanation: string | null;
|
|
2296
2319
|
type?: string | undefined;
|
|
2320
|
+
thumbnail?: string | undefined;
|
|
2321
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2322
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2323
|
+
blocked?: boolean | undefined;
|
|
2324
|
+
customer_stage?: string | undefined;
|
|
2297
2325
|
};
|
|
2298
2326
|
additional_attributes: Record<string, unknown>;
|
|
2299
2327
|
inbox_id: number;
|
|
2300
2328
|
source_id: string | null;
|
|
2301
|
-
updated_at: string;
|
|
2302
2329
|
sender_type: "Contact" | "User";
|
|
2303
2330
|
sender_id: number;
|
|
2304
2331
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2317,29 +2344,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
|
|
|
2317
2344
|
assignee_id: number | null;
|
|
2318
2345
|
};
|
|
2319
2346
|
}[];
|
|
2320
|
-
meta: {
|
|
2321
|
-
sender: {
|
|
2322
|
-
id: number;
|
|
2323
|
-
name: string | null;
|
|
2324
|
-
email: string | null;
|
|
2325
|
-
phone_number: string | null;
|
|
2326
|
-
thumbnail: string;
|
|
2327
|
-
identifier: string | null;
|
|
2328
|
-
additional_attributes: Record<string, unknown>;
|
|
2329
|
-
custom_attributes: Record<string, unknown>;
|
|
2330
|
-
blocked: boolean;
|
|
2331
|
-
customer_stage: string;
|
|
2332
|
-
customer_stage_explanation: string | null;
|
|
2333
|
-
type?: string | undefined;
|
|
2334
|
-
};
|
|
2335
|
-
hmac_verified: boolean;
|
|
2336
|
-
assignee: {
|
|
2337
|
-
id: number;
|
|
2338
|
-
name: string;
|
|
2339
|
-
email: string;
|
|
2340
|
-
} | null;
|
|
2341
|
-
team?: unknown;
|
|
2342
|
-
};
|
|
2343
2347
|
labels: string[];
|
|
2344
2348
|
snoozed_until: number | null;
|
|
2345
2349
|
unread_count: number;
|
|
@@ -2484,19 +2488,19 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2484
2488
|
}, "strip", z.ZodTypeAny, {
|
|
2485
2489
|
id: number;
|
|
2486
2490
|
created_at: string;
|
|
2491
|
+
updated_at: string;
|
|
2487
2492
|
contact_id: number;
|
|
2488
2493
|
inbox_id: number;
|
|
2489
2494
|
source_id: string | null;
|
|
2490
|
-
updated_at: string;
|
|
2491
2495
|
hmac_verified: boolean;
|
|
2492
2496
|
pubsub_token: string;
|
|
2493
2497
|
}, {
|
|
2494
2498
|
id: number;
|
|
2495
2499
|
created_at: string;
|
|
2500
|
+
updated_at: string;
|
|
2496
2501
|
contact_id: number;
|
|
2497
2502
|
inbox_id: number;
|
|
2498
2503
|
source_id: string | null;
|
|
2499
|
-
updated_at: string;
|
|
2500
2504
|
hmac_verified: boolean;
|
|
2501
2505
|
pubsub_token: string;
|
|
2502
2506
|
}>;
|
|
@@ -2563,45 +2567,48 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2563
2567
|
name: z.ZodNullable<z.ZodString>;
|
|
2564
2568
|
email: z.ZodNullable<z.ZodString>;
|
|
2565
2569
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
2566
|
-
thumbnail: z.ZodString;
|
|
2567
2570
|
identifier: z.ZodNullable<z.ZodString>;
|
|
2568
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2569
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2570
|
-
blocked: z.ZodBoolean;
|
|
2571
|
-
customer_stage: z.ZodString;
|
|
2572
2571
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
2573
2572
|
type: z.ZodOptional<z.ZodString>;
|
|
2573
|
+
} & {
|
|
2574
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
2575
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2576
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2577
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
2578
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
2574
2579
|
}, "strip", z.ZodTypeAny, {
|
|
2575
2580
|
id: number;
|
|
2576
2581
|
name: string | null;
|
|
2577
2582
|
email: string | null;
|
|
2578
2583
|
phone_number: string | null;
|
|
2579
|
-
thumbnail: string;
|
|
2580
2584
|
identifier: string | null;
|
|
2581
|
-
additional_attributes: Record<string, unknown>;
|
|
2582
|
-
custom_attributes: Record<string, unknown>;
|
|
2583
|
-
blocked: boolean;
|
|
2584
|
-
customer_stage: string;
|
|
2585
2585
|
customer_stage_explanation: string | null;
|
|
2586
2586
|
type?: string | undefined;
|
|
2587
|
+
thumbnail?: string | undefined;
|
|
2588
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2589
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2590
|
+
blocked?: boolean | undefined;
|
|
2591
|
+
customer_stage?: string | undefined;
|
|
2587
2592
|
}, {
|
|
2588
2593
|
id: number;
|
|
2589
2594
|
name: string | null;
|
|
2590
2595
|
email: string | null;
|
|
2591
2596
|
phone_number: string | null;
|
|
2592
|
-
thumbnail: string;
|
|
2593
2597
|
identifier: string | null;
|
|
2594
|
-
additional_attributes: Record<string, unknown>;
|
|
2595
|
-
custom_attributes: Record<string, unknown>;
|
|
2596
|
-
blocked: boolean;
|
|
2597
|
-
customer_stage: string;
|
|
2598
2598
|
customer_stage_explanation: string | null;
|
|
2599
2599
|
type?: string | undefined;
|
|
2600
|
+
thumbnail?: string | undefined;
|
|
2601
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2602
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2603
|
+
blocked?: boolean | undefined;
|
|
2604
|
+
customer_stage?: string | undefined;
|
|
2600
2605
|
}>;
|
|
2601
2606
|
}, "strip", z.ZodTypeAny, {
|
|
2602
2607
|
id: number;
|
|
2603
2608
|
status: string;
|
|
2604
2609
|
account_id: number;
|
|
2610
|
+
created_at: number;
|
|
2611
|
+
updated_at: string;
|
|
2605
2612
|
content: string | null;
|
|
2606
2613
|
message_type: number;
|
|
2607
2614
|
private: boolean;
|
|
@@ -2611,26 +2618,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2611
2618
|
} & {
|
|
2612
2619
|
[k: string]: unknown;
|
|
2613
2620
|
};
|
|
2614
|
-
created_at: number;
|
|
2615
2621
|
conversation_id: number;
|
|
2616
2622
|
sender: {
|
|
2617
2623
|
id: number;
|
|
2618
2624
|
name: string | null;
|
|
2619
2625
|
email: string | null;
|
|
2620
2626
|
phone_number: string | null;
|
|
2621
|
-
thumbnail: string;
|
|
2622
2627
|
identifier: string | null;
|
|
2623
|
-
additional_attributes: Record<string, unknown>;
|
|
2624
|
-
custom_attributes: Record<string, unknown>;
|
|
2625
|
-
blocked: boolean;
|
|
2626
|
-
customer_stage: string;
|
|
2627
2628
|
customer_stage_explanation: string | null;
|
|
2628
2629
|
type?: string | undefined;
|
|
2630
|
+
thumbnail?: string | undefined;
|
|
2631
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2632
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2633
|
+
blocked?: boolean | undefined;
|
|
2634
|
+
customer_stage?: string | undefined;
|
|
2629
2635
|
};
|
|
2630
2636
|
additional_attributes: Record<string, unknown>;
|
|
2631
2637
|
inbox_id: number;
|
|
2632
2638
|
source_id: string | null;
|
|
2633
|
-
updated_at: string;
|
|
2634
2639
|
sender_type: "Contact" | "User";
|
|
2635
2640
|
sender_id: number;
|
|
2636
2641
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2652,6 +2657,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2652
2657
|
id: number;
|
|
2653
2658
|
status: string;
|
|
2654
2659
|
account_id: number;
|
|
2660
|
+
created_at: number;
|
|
2661
|
+
updated_at: string;
|
|
2655
2662
|
content: string | null;
|
|
2656
2663
|
message_type: number;
|
|
2657
2664
|
private: boolean;
|
|
@@ -2661,26 +2668,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2661
2668
|
} & {
|
|
2662
2669
|
[k: string]: unknown;
|
|
2663
2670
|
};
|
|
2664
|
-
created_at: number;
|
|
2665
2671
|
conversation_id: number;
|
|
2666
2672
|
sender: {
|
|
2667
2673
|
id: number;
|
|
2668
2674
|
name: string | null;
|
|
2669
2675
|
email: string | null;
|
|
2670
2676
|
phone_number: string | null;
|
|
2671
|
-
thumbnail: string;
|
|
2672
2677
|
identifier: string | null;
|
|
2673
|
-
additional_attributes: Record<string, unknown>;
|
|
2674
|
-
custom_attributes: Record<string, unknown>;
|
|
2675
|
-
blocked: boolean;
|
|
2676
|
-
customer_stage: string;
|
|
2677
2678
|
customer_stage_explanation: string | null;
|
|
2678
2679
|
type?: string | undefined;
|
|
2680
|
+
thumbnail?: string | undefined;
|
|
2681
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2682
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2683
|
+
blocked?: boolean | undefined;
|
|
2684
|
+
customer_stage?: string | undefined;
|
|
2679
2685
|
};
|
|
2680
2686
|
additional_attributes: Record<string, unknown>;
|
|
2681
2687
|
inbox_id: number;
|
|
2682
2688
|
source_id: string | null;
|
|
2683
|
-
updated_at: string;
|
|
2684
2689
|
sender_type: "Contact" | "User";
|
|
2685
2690
|
sender_id: number;
|
|
2686
2691
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2822,35 +2827,58 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2822
2827
|
id: number;
|
|
2823
2828
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2824
2829
|
created_at: number;
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2830
|
+
updated_at: number;
|
|
2831
|
+
meta: {
|
|
2832
|
+
sender: {
|
|
2833
|
+
id: number;
|
|
2834
|
+
name: string | null;
|
|
2835
|
+
email: string | null;
|
|
2836
|
+
phone_number: string | null;
|
|
2837
|
+
thumbnail: string;
|
|
2838
|
+
identifier: string | null;
|
|
2839
|
+
additional_attributes: Record<string, unknown>;
|
|
2840
|
+
custom_attributes: Record<string, unknown>;
|
|
2841
|
+
blocked: boolean;
|
|
2842
|
+
customer_stage: string;
|
|
2843
|
+
customer_stage_explanation: string | null;
|
|
2844
|
+
type?: string | undefined;
|
|
2845
|
+
};
|
|
2846
|
+
hmac_verified: boolean;
|
|
2847
|
+
assignee: {
|
|
2848
|
+
id: number;
|
|
2849
|
+
name: string;
|
|
2850
|
+
email: string;
|
|
2851
|
+
} | null;
|
|
2852
|
+
team?: unknown;
|
|
2853
|
+
};
|
|
2854
|
+
priority: string | null;
|
|
2855
|
+
additional_attributes: {
|
|
2856
|
+
browser?: {
|
|
2857
|
+
device_name: string;
|
|
2858
|
+
browser_name: string;
|
|
2859
|
+
platform_name: string;
|
|
2860
|
+
browser_version: string;
|
|
2861
|
+
platform_version: string;
|
|
2862
|
+
} | undefined;
|
|
2863
|
+
referer?: string | null | undefined;
|
|
2864
|
+
initiated_at?: {
|
|
2865
|
+
timestamp: string;
|
|
2866
|
+
} | undefined;
|
|
2867
|
+
browser_language?: string | undefined;
|
|
2839
2868
|
} & {
|
|
2840
2869
|
[k: string]: unknown;
|
|
2841
2870
|
};
|
|
2842
2871
|
custom_attributes: Record<string, unknown>;
|
|
2843
2872
|
inbox_id: number;
|
|
2844
|
-
updated_at: number;
|
|
2845
2873
|
channel: string;
|
|
2846
2874
|
can_reply: boolean;
|
|
2847
2875
|
contact_inbox: {
|
|
2848
2876
|
id: number;
|
|
2849
2877
|
created_at: string;
|
|
2878
|
+
updated_at: string;
|
|
2850
2879
|
contact_id: number;
|
|
2851
2880
|
inbox_id: number;
|
|
2852
2881
|
source_id: string | null;
|
|
2853
|
-
updated_at: string;
|
|
2854
2882
|
hmac_verified: boolean;
|
|
2855
2883
|
pubsub_token: string;
|
|
2856
2884
|
};
|
|
@@ -2858,6 +2886,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2858
2886
|
id: number;
|
|
2859
2887
|
status: string;
|
|
2860
2888
|
account_id: number;
|
|
2889
|
+
created_at: number;
|
|
2890
|
+
updated_at: string;
|
|
2861
2891
|
content: string | null;
|
|
2862
2892
|
message_type: number;
|
|
2863
2893
|
private: boolean;
|
|
@@ -2867,26 +2897,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2867
2897
|
} & {
|
|
2868
2898
|
[k: string]: unknown;
|
|
2869
2899
|
};
|
|
2870
|
-
created_at: number;
|
|
2871
2900
|
conversation_id: number;
|
|
2872
2901
|
sender: {
|
|
2873
2902
|
id: number;
|
|
2874
2903
|
name: string | null;
|
|
2875
2904
|
email: string | null;
|
|
2876
2905
|
phone_number: string | null;
|
|
2877
|
-
thumbnail: string;
|
|
2878
2906
|
identifier: string | null;
|
|
2879
|
-
additional_attributes: Record<string, unknown>;
|
|
2880
|
-
custom_attributes: Record<string, unknown>;
|
|
2881
|
-
blocked: boolean;
|
|
2882
|
-
customer_stage: string;
|
|
2883
2907
|
customer_stage_explanation: string | null;
|
|
2884
2908
|
type?: string | undefined;
|
|
2909
|
+
thumbnail?: string | undefined;
|
|
2910
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
2911
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
2912
|
+
blocked?: boolean | undefined;
|
|
2913
|
+
customer_stage?: string | undefined;
|
|
2885
2914
|
};
|
|
2886
2915
|
additional_attributes: Record<string, unknown>;
|
|
2887
2916
|
inbox_id: number;
|
|
2888
2917
|
source_id: string | null;
|
|
2889
|
-
updated_at: string;
|
|
2890
2918
|
sender_type: "Contact" | "User";
|
|
2891
2919
|
sender_id: number;
|
|
2892
2920
|
external_source_ids: Record<string, unknown>;
|
|
@@ -2905,6 +2933,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2905
2933
|
assignee_id: number | null;
|
|
2906
2934
|
};
|
|
2907
2935
|
}[];
|
|
2936
|
+
labels: string[];
|
|
2937
|
+
snoozed_until: number | null;
|
|
2938
|
+
unread_count: number;
|
|
2939
|
+
first_reply_created_at: string | number | null;
|
|
2940
|
+
waiting_since: number | null;
|
|
2941
|
+
ai_disabled: boolean;
|
|
2942
|
+
reenable_ai_at: number | null;
|
|
2943
|
+
ai_summary: string | null;
|
|
2944
|
+
conversation_type: string;
|
|
2945
|
+
agent_last_seen_at: number;
|
|
2946
|
+
contact_last_seen_at: number;
|
|
2947
|
+
last_activity_at: number;
|
|
2948
|
+
timestamp: number;
|
|
2949
|
+
}, {
|
|
2950
|
+
id: number;
|
|
2951
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2952
|
+
created_at: number;
|
|
2953
|
+
updated_at: number;
|
|
2908
2954
|
meta: {
|
|
2909
2955
|
sender: {
|
|
2910
2956
|
id: number;
|
|
@@ -2928,23 +2974,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2928
2974
|
} | null;
|
|
2929
2975
|
team?: unknown;
|
|
2930
2976
|
};
|
|
2931
|
-
labels: string[];
|
|
2932
|
-
snoozed_until: number | null;
|
|
2933
|
-
unread_count: number;
|
|
2934
|
-
first_reply_created_at: string | number | null;
|
|
2935
|
-
waiting_since: number | null;
|
|
2936
|
-
ai_disabled: boolean;
|
|
2937
|
-
reenable_ai_at: number | null;
|
|
2938
|
-
ai_summary: string | null;
|
|
2939
|
-
conversation_type: string;
|
|
2940
|
-
agent_last_seen_at: number;
|
|
2941
|
-
contact_last_seen_at: number;
|
|
2942
|
-
last_activity_at: number;
|
|
2943
|
-
timestamp: number;
|
|
2944
|
-
}, {
|
|
2945
|
-
id: number;
|
|
2946
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
2947
|
-
created_at: number;
|
|
2948
2977
|
priority: string | null;
|
|
2949
2978
|
additional_attributes: {
|
|
2950
2979
|
browser?: {
|
|
@@ -2964,16 +2993,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2964
2993
|
};
|
|
2965
2994
|
custom_attributes: Record<string, unknown>;
|
|
2966
2995
|
inbox_id: number;
|
|
2967
|
-
updated_at: number;
|
|
2968
2996
|
channel: string;
|
|
2969
2997
|
can_reply: boolean;
|
|
2970
2998
|
contact_inbox: {
|
|
2971
2999
|
id: number;
|
|
2972
3000
|
created_at: string;
|
|
3001
|
+
updated_at: string;
|
|
2973
3002
|
contact_id: number;
|
|
2974
3003
|
inbox_id: number;
|
|
2975
3004
|
source_id: string | null;
|
|
2976
|
-
updated_at: string;
|
|
2977
3005
|
hmac_verified: boolean;
|
|
2978
3006
|
pubsub_token: string;
|
|
2979
3007
|
};
|
|
@@ -2981,6 +3009,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2981
3009
|
id: number;
|
|
2982
3010
|
status: string;
|
|
2983
3011
|
account_id: number;
|
|
3012
|
+
created_at: number;
|
|
3013
|
+
updated_at: string;
|
|
2984
3014
|
content: string | null;
|
|
2985
3015
|
message_type: number;
|
|
2986
3016
|
private: boolean;
|
|
@@ -2990,26 +3020,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
2990
3020
|
} & {
|
|
2991
3021
|
[k: string]: unknown;
|
|
2992
3022
|
};
|
|
2993
|
-
created_at: number;
|
|
2994
3023
|
conversation_id: number;
|
|
2995
3024
|
sender: {
|
|
2996
3025
|
id: number;
|
|
2997
3026
|
name: string | null;
|
|
2998
3027
|
email: string | null;
|
|
2999
3028
|
phone_number: string | null;
|
|
3000
|
-
thumbnail: string;
|
|
3001
3029
|
identifier: string | null;
|
|
3002
|
-
additional_attributes: Record<string, unknown>;
|
|
3003
|
-
custom_attributes: Record<string, unknown>;
|
|
3004
|
-
blocked: boolean;
|
|
3005
|
-
customer_stage: string;
|
|
3006
3030
|
customer_stage_explanation: string | null;
|
|
3007
3031
|
type?: string | undefined;
|
|
3032
|
+
thumbnail?: string | undefined;
|
|
3033
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3034
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3035
|
+
blocked?: boolean | undefined;
|
|
3036
|
+
customer_stage?: string | undefined;
|
|
3008
3037
|
};
|
|
3009
3038
|
additional_attributes: Record<string, unknown>;
|
|
3010
3039
|
inbox_id: number;
|
|
3011
3040
|
source_id: string | null;
|
|
3012
|
-
updated_at: string;
|
|
3013
3041
|
sender_type: "Contact" | "User";
|
|
3014
3042
|
sender_id: number;
|
|
3015
3043
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3028,29 +3056,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3028
3056
|
assignee_id: number | null;
|
|
3029
3057
|
};
|
|
3030
3058
|
}[];
|
|
3031
|
-
meta: {
|
|
3032
|
-
sender: {
|
|
3033
|
-
id: number;
|
|
3034
|
-
name: string | null;
|
|
3035
|
-
email: string | null;
|
|
3036
|
-
phone_number: string | null;
|
|
3037
|
-
thumbnail: string;
|
|
3038
|
-
identifier: string | null;
|
|
3039
|
-
additional_attributes: Record<string, unknown>;
|
|
3040
|
-
custom_attributes: Record<string, unknown>;
|
|
3041
|
-
blocked: boolean;
|
|
3042
|
-
customer_stage: string;
|
|
3043
|
-
customer_stage_explanation: string | null;
|
|
3044
|
-
type?: string | undefined;
|
|
3045
|
-
};
|
|
3046
|
-
hmac_verified: boolean;
|
|
3047
|
-
assignee: {
|
|
3048
|
-
id: number;
|
|
3049
|
-
name: string;
|
|
3050
|
-
email: string;
|
|
3051
|
-
} | null;
|
|
3052
|
-
team?: unknown;
|
|
3053
|
-
};
|
|
3054
3059
|
labels: string[];
|
|
3055
3060
|
snoozed_until: number | null;
|
|
3056
3061
|
unread_count: number;
|
|
@@ -3146,6 +3151,7 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3146
3151
|
}, "strip", z.ZodTypeAny, {
|
|
3147
3152
|
id: number;
|
|
3148
3153
|
status: string;
|
|
3154
|
+
created_at: string;
|
|
3149
3155
|
content: string | null;
|
|
3150
3156
|
message_type: "incoming" | "outgoing";
|
|
3151
3157
|
private: boolean;
|
|
@@ -3155,7 +3161,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3155
3161
|
} & {
|
|
3156
3162
|
[k: string]: unknown;
|
|
3157
3163
|
};
|
|
3158
|
-
created_at: string;
|
|
3159
3164
|
sender: {
|
|
3160
3165
|
id: number;
|
|
3161
3166
|
name: string | null;
|
|
@@ -3184,6 +3189,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3184
3189
|
id: number;
|
|
3185
3190
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3186
3191
|
created_at: number;
|
|
3192
|
+
updated_at: number;
|
|
3193
|
+
meta: {
|
|
3194
|
+
sender: {
|
|
3195
|
+
id: number;
|
|
3196
|
+
name: string | null;
|
|
3197
|
+
email: string | null;
|
|
3198
|
+
phone_number: string | null;
|
|
3199
|
+
thumbnail: string;
|
|
3200
|
+
identifier: string | null;
|
|
3201
|
+
additional_attributes: Record<string, unknown>;
|
|
3202
|
+
custom_attributes: Record<string, unknown>;
|
|
3203
|
+
blocked: boolean;
|
|
3204
|
+
customer_stage: string;
|
|
3205
|
+
customer_stage_explanation: string | null;
|
|
3206
|
+
type?: string | undefined;
|
|
3207
|
+
};
|
|
3208
|
+
hmac_verified: boolean;
|
|
3209
|
+
assignee: {
|
|
3210
|
+
id: number;
|
|
3211
|
+
name: string;
|
|
3212
|
+
email: string;
|
|
3213
|
+
} | null;
|
|
3214
|
+
team?: unknown;
|
|
3215
|
+
};
|
|
3187
3216
|
priority: string | null;
|
|
3188
3217
|
additional_attributes: {
|
|
3189
3218
|
browser?: {
|
|
@@ -3203,16 +3232,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3203
3232
|
};
|
|
3204
3233
|
custom_attributes: Record<string, unknown>;
|
|
3205
3234
|
inbox_id: number;
|
|
3206
|
-
updated_at: number;
|
|
3207
3235
|
channel: string;
|
|
3208
3236
|
can_reply: boolean;
|
|
3209
3237
|
contact_inbox: {
|
|
3210
3238
|
id: number;
|
|
3211
3239
|
created_at: string;
|
|
3240
|
+
updated_at: string;
|
|
3212
3241
|
contact_id: number;
|
|
3213
3242
|
inbox_id: number;
|
|
3214
3243
|
source_id: string | null;
|
|
3215
|
-
updated_at: string;
|
|
3216
3244
|
hmac_verified: boolean;
|
|
3217
3245
|
pubsub_token: string;
|
|
3218
3246
|
};
|
|
@@ -3220,6 +3248,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3220
3248
|
id: number;
|
|
3221
3249
|
status: string;
|
|
3222
3250
|
account_id: number;
|
|
3251
|
+
created_at: number;
|
|
3252
|
+
updated_at: string;
|
|
3223
3253
|
content: string | null;
|
|
3224
3254
|
message_type: number;
|
|
3225
3255
|
private: boolean;
|
|
@@ -3229,26 +3259,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3229
3259
|
} & {
|
|
3230
3260
|
[k: string]: unknown;
|
|
3231
3261
|
};
|
|
3232
|
-
created_at: number;
|
|
3233
3262
|
conversation_id: number;
|
|
3234
3263
|
sender: {
|
|
3235
3264
|
id: number;
|
|
3236
3265
|
name: string | null;
|
|
3237
3266
|
email: string | null;
|
|
3238
3267
|
phone_number: string | null;
|
|
3239
|
-
thumbnail: string;
|
|
3240
3268
|
identifier: string | null;
|
|
3241
|
-
additional_attributes: Record<string, unknown>;
|
|
3242
|
-
custom_attributes: Record<string, unknown>;
|
|
3243
|
-
blocked: boolean;
|
|
3244
|
-
customer_stage: string;
|
|
3245
3269
|
customer_stage_explanation: string | null;
|
|
3246
3270
|
type?: string | undefined;
|
|
3271
|
+
thumbnail?: string | undefined;
|
|
3272
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3273
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3274
|
+
blocked?: boolean | undefined;
|
|
3275
|
+
customer_stage?: string | undefined;
|
|
3247
3276
|
};
|
|
3248
3277
|
additional_attributes: Record<string, unknown>;
|
|
3249
3278
|
inbox_id: number;
|
|
3250
3279
|
source_id: string | null;
|
|
3251
|
-
updated_at: string;
|
|
3252
3280
|
sender_type: "Contact" | "User";
|
|
3253
3281
|
sender_id: number;
|
|
3254
3282
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3267,29 +3295,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3267
3295
|
assignee_id: number | null;
|
|
3268
3296
|
};
|
|
3269
3297
|
}[];
|
|
3270
|
-
meta: {
|
|
3271
|
-
sender: {
|
|
3272
|
-
id: number;
|
|
3273
|
-
name: string | null;
|
|
3274
|
-
email: string | null;
|
|
3275
|
-
phone_number: string | null;
|
|
3276
|
-
thumbnail: string;
|
|
3277
|
-
identifier: string | null;
|
|
3278
|
-
additional_attributes: Record<string, unknown>;
|
|
3279
|
-
custom_attributes: Record<string, unknown>;
|
|
3280
|
-
blocked: boolean;
|
|
3281
|
-
customer_stage: string;
|
|
3282
|
-
customer_stage_explanation: string | null;
|
|
3283
|
-
type?: string | undefined;
|
|
3284
|
-
};
|
|
3285
|
-
hmac_verified: boolean;
|
|
3286
|
-
assignee: {
|
|
3287
|
-
id: number;
|
|
3288
|
-
name: string;
|
|
3289
|
-
email: string;
|
|
3290
|
-
} | null;
|
|
3291
|
-
team?: unknown;
|
|
3292
|
-
};
|
|
3293
3298
|
labels: string[];
|
|
3294
3299
|
snoozed_until: number | null;
|
|
3295
3300
|
unread_count: number;
|
|
@@ -3312,6 +3317,7 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3312
3317
|
}, {
|
|
3313
3318
|
id: number;
|
|
3314
3319
|
status: string;
|
|
3320
|
+
created_at: string;
|
|
3315
3321
|
content: string | null;
|
|
3316
3322
|
message_type: "incoming" | "outgoing";
|
|
3317
3323
|
private: boolean;
|
|
@@ -3321,7 +3327,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3321
3327
|
} & {
|
|
3322
3328
|
[k: string]: unknown;
|
|
3323
3329
|
};
|
|
3324
|
-
created_at: string;
|
|
3325
3330
|
sender: {
|
|
3326
3331
|
id: number;
|
|
3327
3332
|
name: string | null;
|
|
@@ -3350,6 +3355,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3350
3355
|
id: number;
|
|
3351
3356
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3352
3357
|
created_at: number;
|
|
3358
|
+
updated_at: number;
|
|
3359
|
+
meta: {
|
|
3360
|
+
sender: {
|
|
3361
|
+
id: number;
|
|
3362
|
+
name: string | null;
|
|
3363
|
+
email: string | null;
|
|
3364
|
+
phone_number: string | null;
|
|
3365
|
+
thumbnail: string;
|
|
3366
|
+
identifier: string | null;
|
|
3367
|
+
additional_attributes: Record<string, unknown>;
|
|
3368
|
+
custom_attributes: Record<string, unknown>;
|
|
3369
|
+
blocked: boolean;
|
|
3370
|
+
customer_stage: string;
|
|
3371
|
+
customer_stage_explanation: string | null;
|
|
3372
|
+
type?: string | undefined;
|
|
3373
|
+
};
|
|
3374
|
+
hmac_verified: boolean;
|
|
3375
|
+
assignee: {
|
|
3376
|
+
id: number;
|
|
3377
|
+
name: string;
|
|
3378
|
+
email: string;
|
|
3379
|
+
} | null;
|
|
3380
|
+
team?: unknown;
|
|
3381
|
+
};
|
|
3353
3382
|
priority: string | null;
|
|
3354
3383
|
additional_attributes: {
|
|
3355
3384
|
browser?: {
|
|
@@ -3369,16 +3398,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3369
3398
|
};
|
|
3370
3399
|
custom_attributes: Record<string, unknown>;
|
|
3371
3400
|
inbox_id: number;
|
|
3372
|
-
updated_at: number;
|
|
3373
3401
|
channel: string;
|
|
3374
3402
|
can_reply: boolean;
|
|
3375
3403
|
contact_inbox: {
|
|
3376
3404
|
id: number;
|
|
3377
3405
|
created_at: string;
|
|
3406
|
+
updated_at: string;
|
|
3378
3407
|
contact_id: number;
|
|
3379
3408
|
inbox_id: number;
|
|
3380
3409
|
source_id: string | null;
|
|
3381
|
-
updated_at: string;
|
|
3382
3410
|
hmac_verified: boolean;
|
|
3383
3411
|
pubsub_token: string;
|
|
3384
3412
|
};
|
|
@@ -3386,6 +3414,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3386
3414
|
id: number;
|
|
3387
3415
|
status: string;
|
|
3388
3416
|
account_id: number;
|
|
3417
|
+
created_at: number;
|
|
3418
|
+
updated_at: string;
|
|
3389
3419
|
content: string | null;
|
|
3390
3420
|
message_type: number;
|
|
3391
3421
|
private: boolean;
|
|
@@ -3395,26 +3425,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3395
3425
|
} & {
|
|
3396
3426
|
[k: string]: unknown;
|
|
3397
3427
|
};
|
|
3398
|
-
created_at: number;
|
|
3399
3428
|
conversation_id: number;
|
|
3400
3429
|
sender: {
|
|
3401
3430
|
id: number;
|
|
3402
3431
|
name: string | null;
|
|
3403
3432
|
email: string | null;
|
|
3404
3433
|
phone_number: string | null;
|
|
3405
|
-
thumbnail: string;
|
|
3406
3434
|
identifier: string | null;
|
|
3407
|
-
additional_attributes: Record<string, unknown>;
|
|
3408
|
-
custom_attributes: Record<string, unknown>;
|
|
3409
|
-
blocked: boolean;
|
|
3410
|
-
customer_stage: string;
|
|
3411
3435
|
customer_stage_explanation: string | null;
|
|
3412
3436
|
type?: string | undefined;
|
|
3437
|
+
thumbnail?: string | undefined;
|
|
3438
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3439
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3440
|
+
blocked?: boolean | undefined;
|
|
3441
|
+
customer_stage?: string | undefined;
|
|
3413
3442
|
};
|
|
3414
3443
|
additional_attributes: Record<string, unknown>;
|
|
3415
3444
|
inbox_id: number;
|
|
3416
3445
|
source_id: string | null;
|
|
3417
|
-
updated_at: string;
|
|
3418
3446
|
sender_type: "Contact" | "User";
|
|
3419
3447
|
sender_id: number;
|
|
3420
3448
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3433,29 +3461,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
|
|
|
3433
3461
|
assignee_id: number | null;
|
|
3434
3462
|
};
|
|
3435
3463
|
}[];
|
|
3436
|
-
meta: {
|
|
3437
|
-
sender: {
|
|
3438
|
-
id: number;
|
|
3439
|
-
name: string | null;
|
|
3440
|
-
email: string | null;
|
|
3441
|
-
phone_number: string | null;
|
|
3442
|
-
thumbnail: string;
|
|
3443
|
-
identifier: string | null;
|
|
3444
|
-
additional_attributes: Record<string, unknown>;
|
|
3445
|
-
custom_attributes: Record<string, unknown>;
|
|
3446
|
-
blocked: boolean;
|
|
3447
|
-
customer_stage: string;
|
|
3448
|
-
customer_stage_explanation: string | null;
|
|
3449
|
-
type?: string | undefined;
|
|
3450
|
-
};
|
|
3451
|
-
hmac_verified: boolean;
|
|
3452
|
-
assignee: {
|
|
3453
|
-
id: number;
|
|
3454
|
-
name: string;
|
|
3455
|
-
email: string;
|
|
3456
|
-
} | null;
|
|
3457
|
-
team?: unknown;
|
|
3458
|
-
};
|
|
3459
3464
|
labels: string[];
|
|
3460
3465
|
snoozed_until: number | null;
|
|
3461
3466
|
unread_count: number;
|
|
@@ -3600,19 +3605,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3600
3605
|
}, "strip", z.ZodTypeAny, {
|
|
3601
3606
|
id: number;
|
|
3602
3607
|
created_at: string;
|
|
3608
|
+
updated_at: string;
|
|
3603
3609
|
contact_id: number;
|
|
3604
3610
|
inbox_id: number;
|
|
3605
3611
|
source_id: string | null;
|
|
3606
|
-
updated_at: string;
|
|
3607
3612
|
hmac_verified: boolean;
|
|
3608
3613
|
pubsub_token: string;
|
|
3609
3614
|
}, {
|
|
3610
3615
|
id: number;
|
|
3611
3616
|
created_at: string;
|
|
3617
|
+
updated_at: string;
|
|
3612
3618
|
contact_id: number;
|
|
3613
3619
|
inbox_id: number;
|
|
3614
3620
|
source_id: string | null;
|
|
3615
|
-
updated_at: string;
|
|
3616
3621
|
hmac_verified: boolean;
|
|
3617
3622
|
pubsub_token: string;
|
|
3618
3623
|
}>;
|
|
@@ -3679,45 +3684,48 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3679
3684
|
name: z.ZodNullable<z.ZodString>;
|
|
3680
3685
|
email: z.ZodNullable<z.ZodString>;
|
|
3681
3686
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
3682
|
-
thumbnail: z.ZodString;
|
|
3683
3687
|
identifier: z.ZodNullable<z.ZodString>;
|
|
3684
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3685
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3686
|
-
blocked: z.ZodBoolean;
|
|
3687
|
-
customer_stage: z.ZodString;
|
|
3688
3688
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
3689
3689
|
type: z.ZodOptional<z.ZodString>;
|
|
3690
|
+
} & {
|
|
3691
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
3692
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3693
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3694
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
3695
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
3690
3696
|
}, "strip", z.ZodTypeAny, {
|
|
3691
3697
|
id: number;
|
|
3692
3698
|
name: string | null;
|
|
3693
3699
|
email: string | null;
|
|
3694
3700
|
phone_number: string | null;
|
|
3695
|
-
thumbnail: string;
|
|
3696
3701
|
identifier: string | null;
|
|
3697
|
-
additional_attributes: Record<string, unknown>;
|
|
3698
|
-
custom_attributes: Record<string, unknown>;
|
|
3699
|
-
blocked: boolean;
|
|
3700
|
-
customer_stage: string;
|
|
3701
3702
|
customer_stage_explanation: string | null;
|
|
3702
3703
|
type?: string | undefined;
|
|
3704
|
+
thumbnail?: string | undefined;
|
|
3705
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3706
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3707
|
+
blocked?: boolean | undefined;
|
|
3708
|
+
customer_stage?: string | undefined;
|
|
3703
3709
|
}, {
|
|
3704
3710
|
id: number;
|
|
3705
3711
|
name: string | null;
|
|
3706
3712
|
email: string | null;
|
|
3707
3713
|
phone_number: string | null;
|
|
3708
|
-
thumbnail: string;
|
|
3709
3714
|
identifier: string | null;
|
|
3710
|
-
additional_attributes: Record<string, unknown>;
|
|
3711
|
-
custom_attributes: Record<string, unknown>;
|
|
3712
|
-
blocked: boolean;
|
|
3713
|
-
customer_stage: string;
|
|
3714
3715
|
customer_stage_explanation: string | null;
|
|
3715
3716
|
type?: string | undefined;
|
|
3717
|
+
thumbnail?: string | undefined;
|
|
3718
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3719
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3720
|
+
blocked?: boolean | undefined;
|
|
3721
|
+
customer_stage?: string | undefined;
|
|
3716
3722
|
}>;
|
|
3717
3723
|
}, "strip", z.ZodTypeAny, {
|
|
3718
3724
|
id: number;
|
|
3719
3725
|
status: string;
|
|
3720
3726
|
account_id: number;
|
|
3727
|
+
created_at: number;
|
|
3728
|
+
updated_at: string;
|
|
3721
3729
|
content: string | null;
|
|
3722
3730
|
message_type: number;
|
|
3723
3731
|
private: boolean;
|
|
@@ -3727,26 +3735,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3727
3735
|
} & {
|
|
3728
3736
|
[k: string]: unknown;
|
|
3729
3737
|
};
|
|
3730
|
-
created_at: number;
|
|
3731
3738
|
conversation_id: number;
|
|
3732
3739
|
sender: {
|
|
3733
3740
|
id: number;
|
|
3734
3741
|
name: string | null;
|
|
3735
3742
|
email: string | null;
|
|
3736
3743
|
phone_number: string | null;
|
|
3737
|
-
thumbnail: string;
|
|
3738
3744
|
identifier: string | null;
|
|
3739
|
-
additional_attributes: Record<string, unknown>;
|
|
3740
|
-
custom_attributes: Record<string, unknown>;
|
|
3741
|
-
blocked: boolean;
|
|
3742
|
-
customer_stage: string;
|
|
3743
3745
|
customer_stage_explanation: string | null;
|
|
3744
3746
|
type?: string | undefined;
|
|
3747
|
+
thumbnail?: string | undefined;
|
|
3748
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3749
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3750
|
+
blocked?: boolean | undefined;
|
|
3751
|
+
customer_stage?: string | undefined;
|
|
3745
3752
|
};
|
|
3746
3753
|
additional_attributes: Record<string, unknown>;
|
|
3747
3754
|
inbox_id: number;
|
|
3748
3755
|
source_id: string | null;
|
|
3749
|
-
updated_at: string;
|
|
3750
3756
|
sender_type: "Contact" | "User";
|
|
3751
3757
|
sender_id: number;
|
|
3752
3758
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3768,6 +3774,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3768
3774
|
id: number;
|
|
3769
3775
|
status: string;
|
|
3770
3776
|
account_id: number;
|
|
3777
|
+
created_at: number;
|
|
3778
|
+
updated_at: string;
|
|
3771
3779
|
content: string | null;
|
|
3772
3780
|
message_type: number;
|
|
3773
3781
|
private: boolean;
|
|
@@ -3777,26 +3785,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3777
3785
|
} & {
|
|
3778
3786
|
[k: string]: unknown;
|
|
3779
3787
|
};
|
|
3780
|
-
created_at: number;
|
|
3781
3788
|
conversation_id: number;
|
|
3782
3789
|
sender: {
|
|
3783
3790
|
id: number;
|
|
3784
3791
|
name: string | null;
|
|
3785
3792
|
email: string | null;
|
|
3786
3793
|
phone_number: string | null;
|
|
3787
|
-
thumbnail: string;
|
|
3788
3794
|
identifier: string | null;
|
|
3789
|
-
additional_attributes: Record<string, unknown>;
|
|
3790
|
-
custom_attributes: Record<string, unknown>;
|
|
3791
|
-
blocked: boolean;
|
|
3792
|
-
customer_stage: string;
|
|
3793
3795
|
customer_stage_explanation: string | null;
|
|
3794
3796
|
type?: string | undefined;
|
|
3797
|
+
thumbnail?: string | undefined;
|
|
3798
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
3799
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
3800
|
+
blocked?: boolean | undefined;
|
|
3801
|
+
customer_stage?: string | undefined;
|
|
3795
3802
|
};
|
|
3796
3803
|
additional_attributes: Record<string, unknown>;
|
|
3797
3804
|
inbox_id: number;
|
|
3798
3805
|
source_id: string | null;
|
|
3799
|
-
updated_at: string;
|
|
3800
3806
|
sender_type: "Contact" | "User";
|
|
3801
3807
|
sender_id: number;
|
|
3802
3808
|
external_source_ids: Record<string, unknown>;
|
|
@@ -3938,6 +3944,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3938
3944
|
id: number;
|
|
3939
3945
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
3940
3946
|
created_at: number;
|
|
3947
|
+
updated_at: number;
|
|
3948
|
+
meta: {
|
|
3949
|
+
sender: {
|
|
3950
|
+
id: number;
|
|
3951
|
+
name: string | null;
|
|
3952
|
+
email: string | null;
|
|
3953
|
+
phone_number: string | null;
|
|
3954
|
+
thumbnail: string;
|
|
3955
|
+
identifier: string | null;
|
|
3956
|
+
additional_attributes: Record<string, unknown>;
|
|
3957
|
+
custom_attributes: Record<string, unknown>;
|
|
3958
|
+
blocked: boolean;
|
|
3959
|
+
customer_stage: string;
|
|
3960
|
+
customer_stage_explanation: string | null;
|
|
3961
|
+
type?: string | undefined;
|
|
3962
|
+
};
|
|
3963
|
+
hmac_verified: boolean;
|
|
3964
|
+
assignee: {
|
|
3965
|
+
id: number;
|
|
3966
|
+
name: string;
|
|
3967
|
+
email: string;
|
|
3968
|
+
} | null;
|
|
3969
|
+
team?: unknown;
|
|
3970
|
+
};
|
|
3941
3971
|
priority: string | null;
|
|
3942
3972
|
additional_attributes: {
|
|
3943
3973
|
browser?: {
|
|
@@ -3957,16 +3987,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3957
3987
|
};
|
|
3958
3988
|
custom_attributes: Record<string, unknown>;
|
|
3959
3989
|
inbox_id: number;
|
|
3960
|
-
updated_at: number;
|
|
3961
3990
|
channel: string;
|
|
3962
3991
|
can_reply: boolean;
|
|
3963
3992
|
contact_inbox: {
|
|
3964
3993
|
id: number;
|
|
3965
3994
|
created_at: string;
|
|
3995
|
+
updated_at: string;
|
|
3966
3996
|
contact_id: number;
|
|
3967
3997
|
inbox_id: number;
|
|
3968
3998
|
source_id: string | null;
|
|
3969
|
-
updated_at: string;
|
|
3970
3999
|
hmac_verified: boolean;
|
|
3971
4000
|
pubsub_token: string;
|
|
3972
4001
|
};
|
|
@@ -3974,6 +4003,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3974
4003
|
id: number;
|
|
3975
4004
|
status: string;
|
|
3976
4005
|
account_id: number;
|
|
4006
|
+
created_at: number;
|
|
4007
|
+
updated_at: string;
|
|
3977
4008
|
content: string | null;
|
|
3978
4009
|
message_type: number;
|
|
3979
4010
|
private: boolean;
|
|
@@ -3983,26 +4014,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
3983
4014
|
} & {
|
|
3984
4015
|
[k: string]: unknown;
|
|
3985
4016
|
};
|
|
3986
|
-
created_at: number;
|
|
3987
4017
|
conversation_id: number;
|
|
3988
4018
|
sender: {
|
|
3989
4019
|
id: number;
|
|
3990
4020
|
name: string | null;
|
|
3991
4021
|
email: string | null;
|
|
3992
4022
|
phone_number: string | null;
|
|
3993
|
-
thumbnail: string;
|
|
3994
4023
|
identifier: string | null;
|
|
3995
|
-
additional_attributes: Record<string, unknown>;
|
|
3996
|
-
custom_attributes: Record<string, unknown>;
|
|
3997
|
-
blocked: boolean;
|
|
3998
|
-
customer_stage: string;
|
|
3999
4024
|
customer_stage_explanation: string | null;
|
|
4000
4025
|
type?: string | undefined;
|
|
4026
|
+
thumbnail?: string | undefined;
|
|
4027
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4028
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4029
|
+
blocked?: boolean | undefined;
|
|
4030
|
+
customer_stage?: string | undefined;
|
|
4001
4031
|
};
|
|
4002
4032
|
additional_attributes: Record<string, unknown>;
|
|
4003
4033
|
inbox_id: number;
|
|
4004
4034
|
source_id: string | null;
|
|
4005
|
-
updated_at: string;
|
|
4006
4035
|
sender_type: "Contact" | "User";
|
|
4007
4036
|
sender_id: number;
|
|
4008
4037
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4021,6 +4050,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4021
4050
|
assignee_id: number | null;
|
|
4022
4051
|
};
|
|
4023
4052
|
}[];
|
|
4053
|
+
labels: string[];
|
|
4054
|
+
snoozed_until: number | null;
|
|
4055
|
+
unread_count: number;
|
|
4056
|
+
first_reply_created_at: string | number | null;
|
|
4057
|
+
waiting_since: number | null;
|
|
4058
|
+
ai_disabled: boolean;
|
|
4059
|
+
reenable_ai_at: number | null;
|
|
4060
|
+
ai_summary: string | null;
|
|
4061
|
+
conversation_type: string;
|
|
4062
|
+
agent_last_seen_at: number;
|
|
4063
|
+
contact_last_seen_at: number;
|
|
4064
|
+
last_activity_at: number;
|
|
4065
|
+
timestamp: number;
|
|
4066
|
+
}, {
|
|
4067
|
+
id: number;
|
|
4068
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4069
|
+
created_at: number;
|
|
4070
|
+
updated_at: number;
|
|
4024
4071
|
meta: {
|
|
4025
4072
|
sender: {
|
|
4026
4073
|
id: number;
|
|
@@ -4044,23 +4091,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4044
4091
|
} | null;
|
|
4045
4092
|
team?: unknown;
|
|
4046
4093
|
};
|
|
4047
|
-
labels: string[];
|
|
4048
|
-
snoozed_until: number | null;
|
|
4049
|
-
unread_count: number;
|
|
4050
|
-
first_reply_created_at: string | number | null;
|
|
4051
|
-
waiting_since: number | null;
|
|
4052
|
-
ai_disabled: boolean;
|
|
4053
|
-
reenable_ai_at: number | null;
|
|
4054
|
-
ai_summary: string | null;
|
|
4055
|
-
conversation_type: string;
|
|
4056
|
-
agent_last_seen_at: number;
|
|
4057
|
-
contact_last_seen_at: number;
|
|
4058
|
-
last_activity_at: number;
|
|
4059
|
-
timestamp: number;
|
|
4060
|
-
}, {
|
|
4061
|
-
id: number;
|
|
4062
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4063
|
-
created_at: number;
|
|
4064
4094
|
priority: string | null;
|
|
4065
4095
|
additional_attributes: {
|
|
4066
4096
|
browser?: {
|
|
@@ -4080,16 +4110,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4080
4110
|
};
|
|
4081
4111
|
custom_attributes: Record<string, unknown>;
|
|
4082
4112
|
inbox_id: number;
|
|
4083
|
-
updated_at: number;
|
|
4084
4113
|
channel: string;
|
|
4085
4114
|
can_reply: boolean;
|
|
4086
4115
|
contact_inbox: {
|
|
4087
4116
|
id: number;
|
|
4088
4117
|
created_at: string;
|
|
4118
|
+
updated_at: string;
|
|
4089
4119
|
contact_id: number;
|
|
4090
4120
|
inbox_id: number;
|
|
4091
4121
|
source_id: string | null;
|
|
4092
|
-
updated_at: string;
|
|
4093
4122
|
hmac_verified: boolean;
|
|
4094
4123
|
pubsub_token: string;
|
|
4095
4124
|
};
|
|
@@ -4097,6 +4126,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4097
4126
|
id: number;
|
|
4098
4127
|
status: string;
|
|
4099
4128
|
account_id: number;
|
|
4129
|
+
created_at: number;
|
|
4130
|
+
updated_at: string;
|
|
4100
4131
|
content: string | null;
|
|
4101
4132
|
message_type: number;
|
|
4102
4133
|
private: boolean;
|
|
@@ -4106,26 +4137,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4106
4137
|
} & {
|
|
4107
4138
|
[k: string]: unknown;
|
|
4108
4139
|
};
|
|
4109
|
-
created_at: number;
|
|
4110
4140
|
conversation_id: number;
|
|
4111
4141
|
sender: {
|
|
4112
4142
|
id: number;
|
|
4113
4143
|
name: string | null;
|
|
4114
4144
|
email: string | null;
|
|
4115
4145
|
phone_number: string | null;
|
|
4116
|
-
thumbnail: string;
|
|
4117
4146
|
identifier: string | null;
|
|
4118
|
-
additional_attributes: Record<string, unknown>;
|
|
4119
|
-
custom_attributes: Record<string, unknown>;
|
|
4120
|
-
blocked: boolean;
|
|
4121
|
-
customer_stage: string;
|
|
4122
4147
|
customer_stage_explanation: string | null;
|
|
4123
4148
|
type?: string | undefined;
|
|
4149
|
+
thumbnail?: string | undefined;
|
|
4150
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4151
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4152
|
+
blocked?: boolean | undefined;
|
|
4153
|
+
customer_stage?: string | undefined;
|
|
4124
4154
|
};
|
|
4125
4155
|
additional_attributes: Record<string, unknown>;
|
|
4126
4156
|
inbox_id: number;
|
|
4127
4157
|
source_id: string | null;
|
|
4128
|
-
updated_at: string;
|
|
4129
4158
|
sender_type: "Contact" | "User";
|
|
4130
4159
|
sender_id: number;
|
|
4131
4160
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4144,29 +4173,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4144
4173
|
assignee_id: number | null;
|
|
4145
4174
|
};
|
|
4146
4175
|
}[];
|
|
4147
|
-
meta: {
|
|
4148
|
-
sender: {
|
|
4149
|
-
id: number;
|
|
4150
|
-
name: string | null;
|
|
4151
|
-
email: string | null;
|
|
4152
|
-
phone_number: string | null;
|
|
4153
|
-
thumbnail: string;
|
|
4154
|
-
identifier: string | null;
|
|
4155
|
-
additional_attributes: Record<string, unknown>;
|
|
4156
|
-
custom_attributes: Record<string, unknown>;
|
|
4157
|
-
blocked: boolean;
|
|
4158
|
-
customer_stage: string;
|
|
4159
|
-
customer_stage_explanation: string | null;
|
|
4160
|
-
type?: string | undefined;
|
|
4161
|
-
};
|
|
4162
|
-
hmac_verified: boolean;
|
|
4163
|
-
assignee: {
|
|
4164
|
-
id: number;
|
|
4165
|
-
name: string;
|
|
4166
|
-
email: string;
|
|
4167
|
-
} | null;
|
|
4168
|
-
team?: unknown;
|
|
4169
|
-
};
|
|
4170
4176
|
labels: string[];
|
|
4171
4177
|
snoozed_until: number | null;
|
|
4172
4178
|
unread_count: number;
|
|
@@ -4262,6 +4268,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4262
4268
|
}, "strip", z.ZodTypeAny, {
|
|
4263
4269
|
id: number;
|
|
4264
4270
|
status: string;
|
|
4271
|
+
created_at: string;
|
|
4265
4272
|
content: string | null;
|
|
4266
4273
|
message_type: "incoming" | "outgoing";
|
|
4267
4274
|
private: boolean;
|
|
@@ -4271,7 +4278,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4271
4278
|
} & {
|
|
4272
4279
|
[k: string]: unknown;
|
|
4273
4280
|
};
|
|
4274
|
-
created_at: string;
|
|
4275
4281
|
sender: {
|
|
4276
4282
|
id: number;
|
|
4277
4283
|
name: string | null;
|
|
@@ -4300,6 +4306,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4300
4306
|
id: number;
|
|
4301
4307
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4302
4308
|
created_at: number;
|
|
4309
|
+
updated_at: number;
|
|
4310
|
+
meta: {
|
|
4311
|
+
sender: {
|
|
4312
|
+
id: number;
|
|
4313
|
+
name: string | null;
|
|
4314
|
+
email: string | null;
|
|
4315
|
+
phone_number: string | null;
|
|
4316
|
+
thumbnail: string;
|
|
4317
|
+
identifier: string | null;
|
|
4318
|
+
additional_attributes: Record<string, unknown>;
|
|
4319
|
+
custom_attributes: Record<string, unknown>;
|
|
4320
|
+
blocked: boolean;
|
|
4321
|
+
customer_stage: string;
|
|
4322
|
+
customer_stage_explanation: string | null;
|
|
4323
|
+
type?: string | undefined;
|
|
4324
|
+
};
|
|
4325
|
+
hmac_verified: boolean;
|
|
4326
|
+
assignee: {
|
|
4327
|
+
id: number;
|
|
4328
|
+
name: string;
|
|
4329
|
+
email: string;
|
|
4330
|
+
} | null;
|
|
4331
|
+
team?: unknown;
|
|
4332
|
+
};
|
|
4303
4333
|
priority: string | null;
|
|
4304
4334
|
additional_attributes: {
|
|
4305
4335
|
browser?: {
|
|
@@ -4319,16 +4349,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4319
4349
|
};
|
|
4320
4350
|
custom_attributes: Record<string, unknown>;
|
|
4321
4351
|
inbox_id: number;
|
|
4322
|
-
updated_at: number;
|
|
4323
4352
|
channel: string;
|
|
4324
4353
|
can_reply: boolean;
|
|
4325
4354
|
contact_inbox: {
|
|
4326
4355
|
id: number;
|
|
4327
4356
|
created_at: string;
|
|
4357
|
+
updated_at: string;
|
|
4328
4358
|
contact_id: number;
|
|
4329
4359
|
inbox_id: number;
|
|
4330
4360
|
source_id: string | null;
|
|
4331
|
-
updated_at: string;
|
|
4332
4361
|
hmac_verified: boolean;
|
|
4333
4362
|
pubsub_token: string;
|
|
4334
4363
|
};
|
|
@@ -4336,6 +4365,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4336
4365
|
id: number;
|
|
4337
4366
|
status: string;
|
|
4338
4367
|
account_id: number;
|
|
4368
|
+
created_at: number;
|
|
4369
|
+
updated_at: string;
|
|
4339
4370
|
content: string | null;
|
|
4340
4371
|
message_type: number;
|
|
4341
4372
|
private: boolean;
|
|
@@ -4345,26 +4376,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4345
4376
|
} & {
|
|
4346
4377
|
[k: string]: unknown;
|
|
4347
4378
|
};
|
|
4348
|
-
created_at: number;
|
|
4349
4379
|
conversation_id: number;
|
|
4350
4380
|
sender: {
|
|
4351
4381
|
id: number;
|
|
4352
4382
|
name: string | null;
|
|
4353
4383
|
email: string | null;
|
|
4354
4384
|
phone_number: string | null;
|
|
4355
|
-
thumbnail: string;
|
|
4356
4385
|
identifier: string | null;
|
|
4357
|
-
additional_attributes: Record<string, unknown>;
|
|
4358
|
-
custom_attributes: Record<string, unknown>;
|
|
4359
|
-
blocked: boolean;
|
|
4360
|
-
customer_stage: string;
|
|
4361
4386
|
customer_stage_explanation: string | null;
|
|
4362
4387
|
type?: string | undefined;
|
|
4388
|
+
thumbnail?: string | undefined;
|
|
4389
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4390
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4391
|
+
blocked?: boolean | undefined;
|
|
4392
|
+
customer_stage?: string | undefined;
|
|
4363
4393
|
};
|
|
4364
4394
|
additional_attributes: Record<string, unknown>;
|
|
4365
4395
|
inbox_id: number;
|
|
4366
4396
|
source_id: string | null;
|
|
4367
|
-
updated_at: string;
|
|
4368
4397
|
sender_type: "Contact" | "User";
|
|
4369
4398
|
sender_id: number;
|
|
4370
4399
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4383,29 +4412,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4383
4412
|
assignee_id: number | null;
|
|
4384
4413
|
};
|
|
4385
4414
|
}[];
|
|
4386
|
-
meta: {
|
|
4387
|
-
sender: {
|
|
4388
|
-
id: number;
|
|
4389
|
-
name: string | null;
|
|
4390
|
-
email: string | null;
|
|
4391
|
-
phone_number: string | null;
|
|
4392
|
-
thumbnail: string;
|
|
4393
|
-
identifier: string | null;
|
|
4394
|
-
additional_attributes: Record<string, unknown>;
|
|
4395
|
-
custom_attributes: Record<string, unknown>;
|
|
4396
|
-
blocked: boolean;
|
|
4397
|
-
customer_stage: string;
|
|
4398
|
-
customer_stage_explanation: string | null;
|
|
4399
|
-
type?: string | undefined;
|
|
4400
|
-
};
|
|
4401
|
-
hmac_verified: boolean;
|
|
4402
|
-
assignee: {
|
|
4403
|
-
id: number;
|
|
4404
|
-
name: string;
|
|
4405
|
-
email: string;
|
|
4406
|
-
} | null;
|
|
4407
|
-
team?: unknown;
|
|
4408
|
-
};
|
|
4409
4415
|
labels: string[];
|
|
4410
4416
|
snoozed_until: number | null;
|
|
4411
4417
|
unread_count: number;
|
|
@@ -4428,6 +4434,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4428
4434
|
}, {
|
|
4429
4435
|
id: number;
|
|
4430
4436
|
status: string;
|
|
4437
|
+
created_at: string;
|
|
4431
4438
|
content: string | null;
|
|
4432
4439
|
message_type: "incoming" | "outgoing";
|
|
4433
4440
|
private: boolean;
|
|
@@ -4437,7 +4444,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4437
4444
|
} & {
|
|
4438
4445
|
[k: string]: unknown;
|
|
4439
4446
|
};
|
|
4440
|
-
created_at: string;
|
|
4441
4447
|
sender: {
|
|
4442
4448
|
id: number;
|
|
4443
4449
|
name: string | null;
|
|
@@ -4466,6 +4472,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4466
4472
|
id: number;
|
|
4467
4473
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
4468
4474
|
created_at: number;
|
|
4475
|
+
updated_at: number;
|
|
4476
|
+
meta: {
|
|
4477
|
+
sender: {
|
|
4478
|
+
id: number;
|
|
4479
|
+
name: string | null;
|
|
4480
|
+
email: string | null;
|
|
4481
|
+
phone_number: string | null;
|
|
4482
|
+
thumbnail: string;
|
|
4483
|
+
identifier: string | null;
|
|
4484
|
+
additional_attributes: Record<string, unknown>;
|
|
4485
|
+
custom_attributes: Record<string, unknown>;
|
|
4486
|
+
blocked: boolean;
|
|
4487
|
+
customer_stage: string;
|
|
4488
|
+
customer_stage_explanation: string | null;
|
|
4489
|
+
type?: string | undefined;
|
|
4490
|
+
};
|
|
4491
|
+
hmac_verified: boolean;
|
|
4492
|
+
assignee: {
|
|
4493
|
+
id: number;
|
|
4494
|
+
name: string;
|
|
4495
|
+
email: string;
|
|
4496
|
+
} | null;
|
|
4497
|
+
team?: unknown;
|
|
4498
|
+
};
|
|
4469
4499
|
priority: string | null;
|
|
4470
4500
|
additional_attributes: {
|
|
4471
4501
|
browser?: {
|
|
@@ -4485,16 +4515,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4485
4515
|
};
|
|
4486
4516
|
custom_attributes: Record<string, unknown>;
|
|
4487
4517
|
inbox_id: number;
|
|
4488
|
-
updated_at: number;
|
|
4489
4518
|
channel: string;
|
|
4490
4519
|
can_reply: boolean;
|
|
4491
4520
|
contact_inbox: {
|
|
4492
4521
|
id: number;
|
|
4493
4522
|
created_at: string;
|
|
4523
|
+
updated_at: string;
|
|
4494
4524
|
contact_id: number;
|
|
4495
4525
|
inbox_id: number;
|
|
4496
4526
|
source_id: string | null;
|
|
4497
|
-
updated_at: string;
|
|
4498
4527
|
hmac_verified: boolean;
|
|
4499
4528
|
pubsub_token: string;
|
|
4500
4529
|
};
|
|
@@ -4502,6 +4531,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4502
4531
|
id: number;
|
|
4503
4532
|
status: string;
|
|
4504
4533
|
account_id: number;
|
|
4534
|
+
created_at: number;
|
|
4535
|
+
updated_at: string;
|
|
4505
4536
|
content: string | null;
|
|
4506
4537
|
message_type: number;
|
|
4507
4538
|
private: boolean;
|
|
@@ -4511,26 +4542,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4511
4542
|
} & {
|
|
4512
4543
|
[k: string]: unknown;
|
|
4513
4544
|
};
|
|
4514
|
-
created_at: number;
|
|
4515
4545
|
conversation_id: number;
|
|
4516
4546
|
sender: {
|
|
4517
4547
|
id: number;
|
|
4518
4548
|
name: string | null;
|
|
4519
4549
|
email: string | null;
|
|
4520
4550
|
phone_number: string | null;
|
|
4521
|
-
thumbnail: string;
|
|
4522
4551
|
identifier: string | null;
|
|
4523
|
-
additional_attributes: Record<string, unknown>;
|
|
4524
|
-
custom_attributes: Record<string, unknown>;
|
|
4525
|
-
blocked: boolean;
|
|
4526
|
-
customer_stage: string;
|
|
4527
4552
|
customer_stage_explanation: string | null;
|
|
4528
4553
|
type?: string | undefined;
|
|
4554
|
+
thumbnail?: string | undefined;
|
|
4555
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4556
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4557
|
+
blocked?: boolean | undefined;
|
|
4558
|
+
customer_stage?: string | undefined;
|
|
4529
4559
|
};
|
|
4530
4560
|
additional_attributes: Record<string, unknown>;
|
|
4531
4561
|
inbox_id: number;
|
|
4532
4562
|
source_id: string | null;
|
|
4533
|
-
updated_at: string;
|
|
4534
4563
|
sender_type: "Contact" | "User";
|
|
4535
4564
|
sender_id: number;
|
|
4536
4565
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4549,29 +4578,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4549
4578
|
assignee_id: number | null;
|
|
4550
4579
|
};
|
|
4551
4580
|
}[];
|
|
4552
|
-
meta: {
|
|
4553
|
-
sender: {
|
|
4554
|
-
id: number;
|
|
4555
|
-
name: string | null;
|
|
4556
|
-
email: string | null;
|
|
4557
|
-
phone_number: string | null;
|
|
4558
|
-
thumbnail: string;
|
|
4559
|
-
identifier: string | null;
|
|
4560
|
-
additional_attributes: Record<string, unknown>;
|
|
4561
|
-
custom_attributes: Record<string, unknown>;
|
|
4562
|
-
blocked: boolean;
|
|
4563
|
-
customer_stage: string;
|
|
4564
|
-
customer_stage_explanation: string | null;
|
|
4565
|
-
type?: string | undefined;
|
|
4566
|
-
};
|
|
4567
|
-
hmac_verified: boolean;
|
|
4568
|
-
assignee: {
|
|
4569
|
-
id: number;
|
|
4570
|
-
name: string;
|
|
4571
|
-
email: string;
|
|
4572
|
-
} | null;
|
|
4573
|
-
team?: unknown;
|
|
4574
|
-
};
|
|
4575
4581
|
labels: string[];
|
|
4576
4582
|
snoozed_until: number | null;
|
|
4577
4583
|
unread_count: number;
|
|
@@ -4715,19 +4721,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4715
4721
|
}, "strip", z.ZodTypeAny, {
|
|
4716
4722
|
id: number;
|
|
4717
4723
|
created_at: string;
|
|
4724
|
+
updated_at: string;
|
|
4718
4725
|
contact_id: number;
|
|
4719
4726
|
inbox_id: number;
|
|
4720
4727
|
source_id: string | null;
|
|
4721
|
-
updated_at: string;
|
|
4722
4728
|
hmac_verified: boolean;
|
|
4723
4729
|
pubsub_token: string;
|
|
4724
4730
|
}, {
|
|
4725
4731
|
id: number;
|
|
4726
4732
|
created_at: string;
|
|
4733
|
+
updated_at: string;
|
|
4727
4734
|
contact_id: number;
|
|
4728
4735
|
inbox_id: number;
|
|
4729
4736
|
source_id: string | null;
|
|
4730
|
-
updated_at: string;
|
|
4731
4737
|
hmac_verified: boolean;
|
|
4732
4738
|
pubsub_token: string;
|
|
4733
4739
|
}>;
|
|
@@ -4794,45 +4800,48 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4794
4800
|
name: z.ZodNullable<z.ZodString>;
|
|
4795
4801
|
email: z.ZodNullable<z.ZodString>;
|
|
4796
4802
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
4797
|
-
thumbnail: z.ZodString;
|
|
4798
4803
|
identifier: z.ZodNullable<z.ZodString>;
|
|
4799
|
-
additional_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4800
|
-
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4801
|
-
blocked: z.ZodBoolean;
|
|
4802
|
-
customer_stage: z.ZodString;
|
|
4803
4804
|
customer_stage_explanation: z.ZodNullable<z.ZodString>;
|
|
4804
4805
|
type: z.ZodOptional<z.ZodString>;
|
|
4806
|
+
} & {
|
|
4807
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
4808
|
+
additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4809
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4810
|
+
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
4811
|
+
customer_stage: z.ZodOptional<z.ZodString>;
|
|
4805
4812
|
}, "strip", z.ZodTypeAny, {
|
|
4806
4813
|
id: number;
|
|
4807
4814
|
name: string | null;
|
|
4808
4815
|
email: string | null;
|
|
4809
4816
|
phone_number: string | null;
|
|
4810
|
-
thumbnail: string;
|
|
4811
4817
|
identifier: string | null;
|
|
4812
|
-
additional_attributes: Record<string, unknown>;
|
|
4813
|
-
custom_attributes: Record<string, unknown>;
|
|
4814
|
-
blocked: boolean;
|
|
4815
|
-
customer_stage: string;
|
|
4816
4818
|
customer_stage_explanation: string | null;
|
|
4817
4819
|
type?: string | undefined;
|
|
4820
|
+
thumbnail?: string | undefined;
|
|
4821
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4822
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4823
|
+
blocked?: boolean | undefined;
|
|
4824
|
+
customer_stage?: string | undefined;
|
|
4818
4825
|
}, {
|
|
4819
4826
|
id: number;
|
|
4820
4827
|
name: string | null;
|
|
4821
4828
|
email: string | null;
|
|
4822
4829
|
phone_number: string | null;
|
|
4823
|
-
thumbnail: string;
|
|
4824
4830
|
identifier: string | null;
|
|
4825
|
-
additional_attributes: Record<string, unknown>;
|
|
4826
|
-
custom_attributes: Record<string, unknown>;
|
|
4827
|
-
blocked: boolean;
|
|
4828
|
-
customer_stage: string;
|
|
4829
4831
|
customer_stage_explanation: string | null;
|
|
4830
4832
|
type?: string | undefined;
|
|
4833
|
+
thumbnail?: string | undefined;
|
|
4834
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4835
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4836
|
+
blocked?: boolean | undefined;
|
|
4837
|
+
customer_stage?: string | undefined;
|
|
4831
4838
|
}>;
|
|
4832
4839
|
}, "strip", z.ZodTypeAny, {
|
|
4833
4840
|
id: number;
|
|
4834
4841
|
status: string;
|
|
4835
4842
|
account_id: number;
|
|
4843
|
+
created_at: number;
|
|
4844
|
+
updated_at: string;
|
|
4836
4845
|
content: string | null;
|
|
4837
4846
|
message_type: number;
|
|
4838
4847
|
private: boolean;
|
|
@@ -4842,26 +4851,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4842
4851
|
} & {
|
|
4843
4852
|
[k: string]: unknown;
|
|
4844
4853
|
};
|
|
4845
|
-
created_at: number;
|
|
4846
4854
|
conversation_id: number;
|
|
4847
4855
|
sender: {
|
|
4848
4856
|
id: number;
|
|
4849
4857
|
name: string | null;
|
|
4850
4858
|
email: string | null;
|
|
4851
4859
|
phone_number: string | null;
|
|
4852
|
-
thumbnail: string;
|
|
4853
4860
|
identifier: string | null;
|
|
4854
|
-
additional_attributes: Record<string, unknown>;
|
|
4855
|
-
custom_attributes: Record<string, unknown>;
|
|
4856
|
-
blocked: boolean;
|
|
4857
|
-
customer_stage: string;
|
|
4858
4861
|
customer_stage_explanation: string | null;
|
|
4859
4862
|
type?: string | undefined;
|
|
4863
|
+
thumbnail?: string | undefined;
|
|
4864
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4865
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4866
|
+
blocked?: boolean | undefined;
|
|
4867
|
+
customer_stage?: string | undefined;
|
|
4860
4868
|
};
|
|
4861
4869
|
additional_attributes: Record<string, unknown>;
|
|
4862
4870
|
inbox_id: number;
|
|
4863
4871
|
source_id: string | null;
|
|
4864
|
-
updated_at: string;
|
|
4865
4872
|
sender_type: "Contact" | "User";
|
|
4866
4873
|
sender_id: number;
|
|
4867
4874
|
external_source_ids: Record<string, unknown>;
|
|
@@ -4883,6 +4890,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4883
4890
|
id: number;
|
|
4884
4891
|
status: string;
|
|
4885
4892
|
account_id: number;
|
|
4893
|
+
created_at: number;
|
|
4894
|
+
updated_at: string;
|
|
4886
4895
|
content: string | null;
|
|
4887
4896
|
message_type: number;
|
|
4888
4897
|
private: boolean;
|
|
@@ -4892,26 +4901,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
4892
4901
|
} & {
|
|
4893
4902
|
[k: string]: unknown;
|
|
4894
4903
|
};
|
|
4895
|
-
created_at: number;
|
|
4896
4904
|
conversation_id: number;
|
|
4897
4905
|
sender: {
|
|
4898
4906
|
id: number;
|
|
4899
4907
|
name: string | null;
|
|
4900
4908
|
email: string | null;
|
|
4901
4909
|
phone_number: string | null;
|
|
4902
|
-
thumbnail: string;
|
|
4903
4910
|
identifier: string | null;
|
|
4904
|
-
additional_attributes: Record<string, unknown>;
|
|
4905
|
-
custom_attributes: Record<string, unknown>;
|
|
4906
|
-
blocked: boolean;
|
|
4907
|
-
customer_stage: string;
|
|
4908
4911
|
customer_stage_explanation: string | null;
|
|
4909
4912
|
type?: string | undefined;
|
|
4913
|
+
thumbnail?: string | undefined;
|
|
4914
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
4915
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
4916
|
+
blocked?: boolean | undefined;
|
|
4917
|
+
customer_stage?: string | undefined;
|
|
4910
4918
|
};
|
|
4911
4919
|
additional_attributes: Record<string, unknown>;
|
|
4912
4920
|
inbox_id: number;
|
|
4913
4921
|
source_id: string | null;
|
|
4914
|
-
updated_at: string;
|
|
4915
4922
|
sender_type: "Contact" | "User";
|
|
4916
4923
|
sender_id: number;
|
|
4917
4924
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5053,6 +5060,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5053
5060
|
id: number;
|
|
5054
5061
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5055
5062
|
created_at: number;
|
|
5063
|
+
updated_at: number;
|
|
5064
|
+
meta: {
|
|
5065
|
+
sender: {
|
|
5066
|
+
id: number;
|
|
5067
|
+
name: string | null;
|
|
5068
|
+
email: string | null;
|
|
5069
|
+
phone_number: string | null;
|
|
5070
|
+
thumbnail: string;
|
|
5071
|
+
identifier: string | null;
|
|
5072
|
+
additional_attributes: Record<string, unknown>;
|
|
5073
|
+
custom_attributes: Record<string, unknown>;
|
|
5074
|
+
blocked: boolean;
|
|
5075
|
+
customer_stage: string;
|
|
5076
|
+
customer_stage_explanation: string | null;
|
|
5077
|
+
type?: string | undefined;
|
|
5078
|
+
};
|
|
5079
|
+
hmac_verified: boolean;
|
|
5080
|
+
assignee: {
|
|
5081
|
+
id: number;
|
|
5082
|
+
name: string;
|
|
5083
|
+
email: string;
|
|
5084
|
+
} | null;
|
|
5085
|
+
team?: unknown;
|
|
5086
|
+
};
|
|
5056
5087
|
priority: string | null;
|
|
5057
5088
|
additional_attributes: {
|
|
5058
5089
|
browser?: {
|
|
@@ -5072,16 +5103,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5072
5103
|
};
|
|
5073
5104
|
custom_attributes: Record<string, unknown>;
|
|
5074
5105
|
inbox_id: number;
|
|
5075
|
-
updated_at: number;
|
|
5076
5106
|
channel: string;
|
|
5077
5107
|
can_reply: boolean;
|
|
5078
5108
|
contact_inbox: {
|
|
5079
5109
|
id: number;
|
|
5080
5110
|
created_at: string;
|
|
5111
|
+
updated_at: string;
|
|
5081
5112
|
contact_id: number;
|
|
5082
5113
|
inbox_id: number;
|
|
5083
5114
|
source_id: string | null;
|
|
5084
|
-
updated_at: string;
|
|
5085
5115
|
hmac_verified: boolean;
|
|
5086
5116
|
pubsub_token: string;
|
|
5087
5117
|
};
|
|
@@ -5089,6 +5119,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5089
5119
|
id: number;
|
|
5090
5120
|
status: string;
|
|
5091
5121
|
account_id: number;
|
|
5122
|
+
created_at: number;
|
|
5123
|
+
updated_at: string;
|
|
5092
5124
|
content: string | null;
|
|
5093
5125
|
message_type: number;
|
|
5094
5126
|
private: boolean;
|
|
@@ -5098,26 +5130,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5098
5130
|
} & {
|
|
5099
5131
|
[k: string]: unknown;
|
|
5100
5132
|
};
|
|
5101
|
-
created_at: number;
|
|
5102
5133
|
conversation_id: number;
|
|
5103
5134
|
sender: {
|
|
5104
5135
|
id: number;
|
|
5105
5136
|
name: string | null;
|
|
5106
5137
|
email: string | null;
|
|
5107
5138
|
phone_number: string | null;
|
|
5108
|
-
thumbnail: string;
|
|
5109
5139
|
identifier: string | null;
|
|
5110
|
-
additional_attributes: Record<string, unknown>;
|
|
5111
|
-
custom_attributes: Record<string, unknown>;
|
|
5112
|
-
blocked: boolean;
|
|
5113
|
-
customer_stage: string;
|
|
5114
5140
|
customer_stage_explanation: string | null;
|
|
5115
5141
|
type?: string | undefined;
|
|
5142
|
+
thumbnail?: string | undefined;
|
|
5143
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
5144
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
5145
|
+
blocked?: boolean | undefined;
|
|
5146
|
+
customer_stage?: string | undefined;
|
|
5116
5147
|
};
|
|
5117
5148
|
additional_attributes: Record<string, unknown>;
|
|
5118
5149
|
inbox_id: number;
|
|
5119
5150
|
source_id: string | null;
|
|
5120
|
-
updated_at: string;
|
|
5121
5151
|
sender_type: "Contact" | "User";
|
|
5122
5152
|
sender_id: number;
|
|
5123
5153
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5136,6 +5166,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5136
5166
|
assignee_id: number | null;
|
|
5137
5167
|
};
|
|
5138
5168
|
}[];
|
|
5169
|
+
labels: string[];
|
|
5170
|
+
snoozed_until: number | null;
|
|
5171
|
+
unread_count: number;
|
|
5172
|
+
first_reply_created_at: string | number | null;
|
|
5173
|
+
waiting_since: number | null;
|
|
5174
|
+
ai_disabled: boolean;
|
|
5175
|
+
reenable_ai_at: number | null;
|
|
5176
|
+
ai_summary: string | null;
|
|
5177
|
+
conversation_type: string;
|
|
5178
|
+
agent_last_seen_at: number;
|
|
5179
|
+
contact_last_seen_at: number;
|
|
5180
|
+
last_activity_at: number;
|
|
5181
|
+
timestamp: number;
|
|
5182
|
+
}, {
|
|
5183
|
+
id: number;
|
|
5184
|
+
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5185
|
+
created_at: number;
|
|
5186
|
+
updated_at: number;
|
|
5139
5187
|
meta: {
|
|
5140
5188
|
sender: {
|
|
5141
5189
|
id: number;
|
|
@@ -5159,23 +5207,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5159
5207
|
} | null;
|
|
5160
5208
|
team?: unknown;
|
|
5161
5209
|
};
|
|
5162
|
-
labels: string[];
|
|
5163
|
-
snoozed_until: number | null;
|
|
5164
|
-
unread_count: number;
|
|
5165
|
-
first_reply_created_at: string | number | null;
|
|
5166
|
-
waiting_since: number | null;
|
|
5167
|
-
ai_disabled: boolean;
|
|
5168
|
-
reenable_ai_at: number | null;
|
|
5169
|
-
ai_summary: string | null;
|
|
5170
|
-
conversation_type: string;
|
|
5171
|
-
agent_last_seen_at: number;
|
|
5172
|
-
contact_last_seen_at: number;
|
|
5173
|
-
last_activity_at: number;
|
|
5174
|
-
timestamp: number;
|
|
5175
|
-
}, {
|
|
5176
|
-
id: number;
|
|
5177
|
-
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5178
|
-
created_at: number;
|
|
5179
5210
|
priority: string | null;
|
|
5180
5211
|
additional_attributes: {
|
|
5181
5212
|
browser?: {
|
|
@@ -5195,16 +5226,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5195
5226
|
};
|
|
5196
5227
|
custom_attributes: Record<string, unknown>;
|
|
5197
5228
|
inbox_id: number;
|
|
5198
|
-
updated_at: number;
|
|
5199
5229
|
channel: string;
|
|
5200
5230
|
can_reply: boolean;
|
|
5201
5231
|
contact_inbox: {
|
|
5202
5232
|
id: number;
|
|
5203
5233
|
created_at: string;
|
|
5234
|
+
updated_at: string;
|
|
5204
5235
|
contact_id: number;
|
|
5205
5236
|
inbox_id: number;
|
|
5206
5237
|
source_id: string | null;
|
|
5207
|
-
updated_at: string;
|
|
5208
5238
|
hmac_verified: boolean;
|
|
5209
5239
|
pubsub_token: string;
|
|
5210
5240
|
};
|
|
@@ -5212,6 +5242,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5212
5242
|
id: number;
|
|
5213
5243
|
status: string;
|
|
5214
5244
|
account_id: number;
|
|
5245
|
+
created_at: number;
|
|
5246
|
+
updated_at: string;
|
|
5215
5247
|
content: string | null;
|
|
5216
5248
|
message_type: number;
|
|
5217
5249
|
private: boolean;
|
|
@@ -5221,26 +5253,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5221
5253
|
} & {
|
|
5222
5254
|
[k: string]: unknown;
|
|
5223
5255
|
};
|
|
5224
|
-
created_at: number;
|
|
5225
5256
|
conversation_id: number;
|
|
5226
5257
|
sender: {
|
|
5227
5258
|
id: number;
|
|
5228
5259
|
name: string | null;
|
|
5229
5260
|
email: string | null;
|
|
5230
5261
|
phone_number: string | null;
|
|
5231
|
-
thumbnail: string;
|
|
5232
5262
|
identifier: string | null;
|
|
5233
|
-
additional_attributes: Record<string, unknown>;
|
|
5234
|
-
custom_attributes: Record<string, unknown>;
|
|
5235
|
-
blocked: boolean;
|
|
5236
|
-
customer_stage: string;
|
|
5237
5263
|
customer_stage_explanation: string | null;
|
|
5238
5264
|
type?: string | undefined;
|
|
5265
|
+
thumbnail?: string | undefined;
|
|
5266
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
5267
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
5268
|
+
blocked?: boolean | undefined;
|
|
5269
|
+
customer_stage?: string | undefined;
|
|
5239
5270
|
};
|
|
5240
5271
|
additional_attributes: Record<string, unknown>;
|
|
5241
5272
|
inbox_id: number;
|
|
5242
5273
|
source_id: string | null;
|
|
5243
|
-
updated_at: string;
|
|
5244
5274
|
sender_type: "Contact" | "User";
|
|
5245
5275
|
sender_id: number;
|
|
5246
5276
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5259,29 +5289,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5259
5289
|
assignee_id: number | null;
|
|
5260
5290
|
};
|
|
5261
5291
|
}[];
|
|
5262
|
-
meta: {
|
|
5263
|
-
sender: {
|
|
5264
|
-
id: number;
|
|
5265
|
-
name: string | null;
|
|
5266
|
-
email: string | null;
|
|
5267
|
-
phone_number: string | null;
|
|
5268
|
-
thumbnail: string;
|
|
5269
|
-
identifier: string | null;
|
|
5270
|
-
additional_attributes: Record<string, unknown>;
|
|
5271
|
-
custom_attributes: Record<string, unknown>;
|
|
5272
|
-
blocked: boolean;
|
|
5273
|
-
customer_stage: string;
|
|
5274
|
-
customer_stage_explanation: string | null;
|
|
5275
|
-
type?: string | undefined;
|
|
5276
|
-
};
|
|
5277
|
-
hmac_verified: boolean;
|
|
5278
|
-
assignee: {
|
|
5279
|
-
id: number;
|
|
5280
|
-
name: string;
|
|
5281
|
-
email: string;
|
|
5282
|
-
} | null;
|
|
5283
|
-
team?: unknown;
|
|
5284
|
-
};
|
|
5285
5292
|
labels: string[];
|
|
5286
5293
|
snoozed_until: number | null;
|
|
5287
5294
|
unread_count: number;
|
|
@@ -5377,6 +5384,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5377
5384
|
}, "strip", z.ZodTypeAny, {
|
|
5378
5385
|
id: number;
|
|
5379
5386
|
status: string;
|
|
5387
|
+
created_at: string;
|
|
5380
5388
|
content: string | null;
|
|
5381
5389
|
message_type: "incoming" | "outgoing";
|
|
5382
5390
|
private: boolean;
|
|
@@ -5386,7 +5394,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5386
5394
|
} & {
|
|
5387
5395
|
[k: string]: unknown;
|
|
5388
5396
|
};
|
|
5389
|
-
created_at: string;
|
|
5390
5397
|
sender: {
|
|
5391
5398
|
id: number;
|
|
5392
5399
|
name: string | null;
|
|
@@ -5415,6 +5422,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5415
5422
|
id: number;
|
|
5416
5423
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5417
5424
|
created_at: number;
|
|
5425
|
+
updated_at: number;
|
|
5426
|
+
meta: {
|
|
5427
|
+
sender: {
|
|
5428
|
+
id: number;
|
|
5429
|
+
name: string | null;
|
|
5430
|
+
email: string | null;
|
|
5431
|
+
phone_number: string | null;
|
|
5432
|
+
thumbnail: string;
|
|
5433
|
+
identifier: string | null;
|
|
5434
|
+
additional_attributes: Record<string, unknown>;
|
|
5435
|
+
custom_attributes: Record<string, unknown>;
|
|
5436
|
+
blocked: boolean;
|
|
5437
|
+
customer_stage: string;
|
|
5438
|
+
customer_stage_explanation: string | null;
|
|
5439
|
+
type?: string | undefined;
|
|
5440
|
+
};
|
|
5441
|
+
hmac_verified: boolean;
|
|
5442
|
+
assignee: {
|
|
5443
|
+
id: number;
|
|
5444
|
+
name: string;
|
|
5445
|
+
email: string;
|
|
5446
|
+
} | null;
|
|
5447
|
+
team?: unknown;
|
|
5448
|
+
};
|
|
5418
5449
|
priority: string | null;
|
|
5419
5450
|
additional_attributes: {
|
|
5420
5451
|
browser?: {
|
|
@@ -5434,16 +5465,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5434
5465
|
};
|
|
5435
5466
|
custom_attributes: Record<string, unknown>;
|
|
5436
5467
|
inbox_id: number;
|
|
5437
|
-
updated_at: number;
|
|
5438
5468
|
channel: string;
|
|
5439
5469
|
can_reply: boolean;
|
|
5440
5470
|
contact_inbox: {
|
|
5441
5471
|
id: number;
|
|
5442
5472
|
created_at: string;
|
|
5473
|
+
updated_at: string;
|
|
5443
5474
|
contact_id: number;
|
|
5444
5475
|
inbox_id: number;
|
|
5445
5476
|
source_id: string | null;
|
|
5446
|
-
updated_at: string;
|
|
5447
5477
|
hmac_verified: boolean;
|
|
5448
5478
|
pubsub_token: string;
|
|
5449
5479
|
};
|
|
@@ -5451,6 +5481,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5451
5481
|
id: number;
|
|
5452
5482
|
status: string;
|
|
5453
5483
|
account_id: number;
|
|
5484
|
+
created_at: number;
|
|
5485
|
+
updated_at: string;
|
|
5454
5486
|
content: string | null;
|
|
5455
5487
|
message_type: number;
|
|
5456
5488
|
private: boolean;
|
|
@@ -5460,26 +5492,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5460
5492
|
} & {
|
|
5461
5493
|
[k: string]: unknown;
|
|
5462
5494
|
};
|
|
5463
|
-
created_at: number;
|
|
5464
5495
|
conversation_id: number;
|
|
5465
5496
|
sender: {
|
|
5466
5497
|
id: number;
|
|
5467
5498
|
name: string | null;
|
|
5468
5499
|
email: string | null;
|
|
5469
5500
|
phone_number: string | null;
|
|
5470
|
-
thumbnail: string;
|
|
5471
5501
|
identifier: string | null;
|
|
5472
|
-
additional_attributes: Record<string, unknown>;
|
|
5473
|
-
custom_attributes: Record<string, unknown>;
|
|
5474
|
-
blocked: boolean;
|
|
5475
|
-
customer_stage: string;
|
|
5476
5502
|
customer_stage_explanation: string | null;
|
|
5477
5503
|
type?: string | undefined;
|
|
5504
|
+
thumbnail?: string | undefined;
|
|
5505
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
5506
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
5507
|
+
blocked?: boolean | undefined;
|
|
5508
|
+
customer_stage?: string | undefined;
|
|
5478
5509
|
};
|
|
5479
5510
|
additional_attributes: Record<string, unknown>;
|
|
5480
5511
|
inbox_id: number;
|
|
5481
5512
|
source_id: string | null;
|
|
5482
|
-
updated_at: string;
|
|
5483
5513
|
sender_type: "Contact" | "User";
|
|
5484
5514
|
sender_id: number;
|
|
5485
5515
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5498,29 +5528,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5498
5528
|
assignee_id: number | null;
|
|
5499
5529
|
};
|
|
5500
5530
|
}[];
|
|
5501
|
-
meta: {
|
|
5502
|
-
sender: {
|
|
5503
|
-
id: number;
|
|
5504
|
-
name: string | null;
|
|
5505
|
-
email: string | null;
|
|
5506
|
-
phone_number: string | null;
|
|
5507
|
-
thumbnail: string;
|
|
5508
|
-
identifier: string | null;
|
|
5509
|
-
additional_attributes: Record<string, unknown>;
|
|
5510
|
-
custom_attributes: Record<string, unknown>;
|
|
5511
|
-
blocked: boolean;
|
|
5512
|
-
customer_stage: string;
|
|
5513
|
-
customer_stage_explanation: string | null;
|
|
5514
|
-
type?: string | undefined;
|
|
5515
|
-
};
|
|
5516
|
-
hmac_verified: boolean;
|
|
5517
|
-
assignee: {
|
|
5518
|
-
id: number;
|
|
5519
|
-
name: string;
|
|
5520
|
-
email: string;
|
|
5521
|
-
} | null;
|
|
5522
|
-
team?: unknown;
|
|
5523
|
-
};
|
|
5524
5531
|
labels: string[];
|
|
5525
5532
|
snoozed_until: number | null;
|
|
5526
5533
|
unread_count: number;
|
|
@@ -5543,6 +5550,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5543
5550
|
}, {
|
|
5544
5551
|
id: number;
|
|
5545
5552
|
status: string;
|
|
5553
|
+
created_at: string;
|
|
5546
5554
|
content: string | null;
|
|
5547
5555
|
message_type: "incoming" | "outgoing";
|
|
5548
5556
|
private: boolean;
|
|
@@ -5552,7 +5560,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5552
5560
|
} & {
|
|
5553
5561
|
[k: string]: unknown;
|
|
5554
5562
|
};
|
|
5555
|
-
created_at: string;
|
|
5556
5563
|
sender: {
|
|
5557
5564
|
id: number;
|
|
5558
5565
|
name: string | null;
|
|
@@ -5581,6 +5588,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5581
5588
|
id: number;
|
|
5582
5589
|
status: "open" | "resolved" | "pending" | "snoozed";
|
|
5583
5590
|
created_at: number;
|
|
5591
|
+
updated_at: number;
|
|
5592
|
+
meta: {
|
|
5593
|
+
sender: {
|
|
5594
|
+
id: number;
|
|
5595
|
+
name: string | null;
|
|
5596
|
+
email: string | null;
|
|
5597
|
+
phone_number: string | null;
|
|
5598
|
+
thumbnail: string;
|
|
5599
|
+
identifier: string | null;
|
|
5600
|
+
additional_attributes: Record<string, unknown>;
|
|
5601
|
+
custom_attributes: Record<string, unknown>;
|
|
5602
|
+
blocked: boolean;
|
|
5603
|
+
customer_stage: string;
|
|
5604
|
+
customer_stage_explanation: string | null;
|
|
5605
|
+
type?: string | undefined;
|
|
5606
|
+
};
|
|
5607
|
+
hmac_verified: boolean;
|
|
5608
|
+
assignee: {
|
|
5609
|
+
id: number;
|
|
5610
|
+
name: string;
|
|
5611
|
+
email: string;
|
|
5612
|
+
} | null;
|
|
5613
|
+
team?: unknown;
|
|
5614
|
+
};
|
|
5584
5615
|
priority: string | null;
|
|
5585
5616
|
additional_attributes: {
|
|
5586
5617
|
browser?: {
|
|
@@ -5600,16 +5631,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5600
5631
|
};
|
|
5601
5632
|
custom_attributes: Record<string, unknown>;
|
|
5602
5633
|
inbox_id: number;
|
|
5603
|
-
updated_at: number;
|
|
5604
5634
|
channel: string;
|
|
5605
5635
|
can_reply: boolean;
|
|
5606
5636
|
contact_inbox: {
|
|
5607
5637
|
id: number;
|
|
5608
5638
|
created_at: string;
|
|
5639
|
+
updated_at: string;
|
|
5609
5640
|
contact_id: number;
|
|
5610
5641
|
inbox_id: number;
|
|
5611
5642
|
source_id: string | null;
|
|
5612
|
-
updated_at: string;
|
|
5613
5643
|
hmac_verified: boolean;
|
|
5614
5644
|
pubsub_token: string;
|
|
5615
5645
|
};
|
|
@@ -5617,6 +5647,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5617
5647
|
id: number;
|
|
5618
5648
|
status: string;
|
|
5619
5649
|
account_id: number;
|
|
5650
|
+
created_at: number;
|
|
5651
|
+
updated_at: string;
|
|
5620
5652
|
content: string | null;
|
|
5621
5653
|
message_type: number;
|
|
5622
5654
|
private: boolean;
|
|
@@ -5626,26 +5658,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5626
5658
|
} & {
|
|
5627
5659
|
[k: string]: unknown;
|
|
5628
5660
|
};
|
|
5629
|
-
created_at: number;
|
|
5630
5661
|
conversation_id: number;
|
|
5631
5662
|
sender: {
|
|
5632
5663
|
id: number;
|
|
5633
5664
|
name: string | null;
|
|
5634
5665
|
email: string | null;
|
|
5635
5666
|
phone_number: string | null;
|
|
5636
|
-
thumbnail: string;
|
|
5637
5667
|
identifier: string | null;
|
|
5638
|
-
additional_attributes: Record<string, unknown>;
|
|
5639
|
-
custom_attributes: Record<string, unknown>;
|
|
5640
|
-
blocked: boolean;
|
|
5641
|
-
customer_stage: string;
|
|
5642
5668
|
customer_stage_explanation: string | null;
|
|
5643
5669
|
type?: string | undefined;
|
|
5670
|
+
thumbnail?: string | undefined;
|
|
5671
|
+
additional_attributes?: Record<string, unknown> | undefined;
|
|
5672
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
5673
|
+
blocked?: boolean | undefined;
|
|
5674
|
+
customer_stage?: string | undefined;
|
|
5644
5675
|
};
|
|
5645
5676
|
additional_attributes: Record<string, unknown>;
|
|
5646
5677
|
inbox_id: number;
|
|
5647
5678
|
source_id: string | null;
|
|
5648
|
-
updated_at: string;
|
|
5649
5679
|
sender_type: "Contact" | "User";
|
|
5650
5680
|
sender_id: number;
|
|
5651
5681
|
external_source_ids: Record<string, unknown>;
|
|
@@ -5664,29 +5694,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
|
|
|
5664
5694
|
assignee_id: number | null;
|
|
5665
5695
|
};
|
|
5666
5696
|
}[];
|
|
5667
|
-
meta: {
|
|
5668
|
-
sender: {
|
|
5669
|
-
id: number;
|
|
5670
|
-
name: string | null;
|
|
5671
|
-
email: string | null;
|
|
5672
|
-
phone_number: string | null;
|
|
5673
|
-
thumbnail: string;
|
|
5674
|
-
identifier: string | null;
|
|
5675
|
-
additional_attributes: Record<string, unknown>;
|
|
5676
|
-
custom_attributes: Record<string, unknown>;
|
|
5677
|
-
blocked: boolean;
|
|
5678
|
-
customer_stage: string;
|
|
5679
|
-
customer_stage_explanation: string | null;
|
|
5680
|
-
type?: string | undefined;
|
|
5681
|
-
};
|
|
5682
|
-
hmac_verified: boolean;
|
|
5683
|
-
assignee: {
|
|
5684
|
-
id: number;
|
|
5685
|
-
name: string;
|
|
5686
|
-
email: string;
|
|
5687
|
-
} | null;
|
|
5688
|
-
team?: unknown;
|
|
5689
|
-
};
|
|
5690
5697
|
labels: string[];
|
|
5691
5698
|
snoozed_until: number | null;
|
|
5692
5699
|
unread_count: number;
|