@_henriquewilson/gabirubi-domain 1.3.9 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/intercom/hook.d.mts +2726 -454
- package/dist/model/intercom/hook.d.ts +2726 -454
- package/dist/model/intercom/hook.js +9 -1
- package/dist/model/intercom/hook.js.map +1 -1
- package/dist/model/intercom/hook.mjs +14 -1
- package/dist/model/intercom/hook.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3717,40 +3717,6 @@ declare const NotificationEventDataSchema: z.ZodObject<{
|
|
|
3717
3717
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
3718
3718
|
metadata?: Record<string, unknown> | undefined;
|
|
3719
3719
|
}>]>;
|
|
3720
|
-
tag: z.ZodOptional<z.ZodObject<{
|
|
3721
|
-
applied_at: z.ZodNumber;
|
|
3722
|
-
applied_by: z.ZodObject<{
|
|
3723
|
-
id: z.ZodString;
|
|
3724
|
-
type: z.ZodLiteral<"admin">;
|
|
3725
|
-
}, "strip", z.ZodTypeAny, {
|
|
3726
|
-
type: "admin";
|
|
3727
|
-
id: string;
|
|
3728
|
-
}, {
|
|
3729
|
-
type: "admin";
|
|
3730
|
-
id: string;
|
|
3731
|
-
}>;
|
|
3732
|
-
id: z.ZodString;
|
|
3733
|
-
name: z.ZodString;
|
|
3734
|
-
type: z.ZodLiteral<"tag">;
|
|
3735
|
-
}, "strip", z.ZodTypeAny, {
|
|
3736
|
-
type: "tag";
|
|
3737
|
-
id: string;
|
|
3738
|
-
name: string;
|
|
3739
|
-
applied_at: number;
|
|
3740
|
-
applied_by: {
|
|
3741
|
-
type: "admin";
|
|
3742
|
-
id: string;
|
|
3743
|
-
};
|
|
3744
|
-
}, {
|
|
3745
|
-
type: "tag";
|
|
3746
|
-
id: string;
|
|
3747
|
-
name: string;
|
|
3748
|
-
applied_at: number;
|
|
3749
|
-
applied_by: {
|
|
3750
|
-
type: "admin";
|
|
3751
|
-
id: string;
|
|
3752
|
-
};
|
|
3753
|
-
}>>;
|
|
3754
3720
|
type: z.ZodLiteral<"notification_event_data">;
|
|
3755
3721
|
}, "strip", z.ZodTypeAny, {
|
|
3756
3722
|
type: "notification_event_data";
|
|
@@ -3779,16 +3745,6 @@ declare const NotificationEventDataSchema: z.ZodObject<{
|
|
|
3779
3745
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
3780
3746
|
metadata?: Record<string, unknown> | undefined;
|
|
3781
3747
|
};
|
|
3782
|
-
tag?: {
|
|
3783
|
-
type: "tag";
|
|
3784
|
-
id: string;
|
|
3785
|
-
name: string;
|
|
3786
|
-
applied_at: number;
|
|
3787
|
-
applied_by: {
|
|
3788
|
-
type: "admin";
|
|
3789
|
-
id: string;
|
|
3790
|
-
};
|
|
3791
|
-
} | undefined;
|
|
3792
3748
|
}, {
|
|
3793
3749
|
type: "notification_event_data";
|
|
3794
3750
|
item: {
|
|
@@ -3816,18 +3772,8 @@ declare const NotificationEventDataSchema: z.ZodObject<{
|
|
|
3816
3772
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
3817
3773
|
metadata?: Record<string, unknown> | undefined;
|
|
3818
3774
|
};
|
|
3819
|
-
tag?: {
|
|
3820
|
-
type: "tag";
|
|
3821
|
-
id: string;
|
|
3822
|
-
name: string;
|
|
3823
|
-
applied_at: number;
|
|
3824
|
-
applied_by: {
|
|
3825
|
-
type: "admin";
|
|
3826
|
-
id: string;
|
|
3827
|
-
};
|
|
3828
|
-
} | undefined;
|
|
3829
3775
|
}>;
|
|
3830
|
-
declare const
|
|
3776
|
+
declare const NotificationContactTagDataSchema: z.ZodObject<{
|
|
3831
3777
|
item: z.ZodObject<{
|
|
3832
3778
|
android_app_name: z.ZodNullable<z.ZodString>;
|
|
3833
3779
|
android_app_version: z.ZodNullable<z.ZodString>;
|
|
@@ -4194,6 +4140,40 @@ declare const NotificationContactDataSchema: z.ZodObject<{
|
|
|
4194
4140
|
utm_term: string | null;
|
|
4195
4141
|
workspace_id: string;
|
|
4196
4142
|
}>;
|
|
4143
|
+
tag: z.ZodOptional<z.ZodObject<{
|
|
4144
|
+
applied_at: z.ZodNumber;
|
|
4145
|
+
applied_by: z.ZodObject<{
|
|
4146
|
+
id: z.ZodString;
|
|
4147
|
+
type: z.ZodLiteral<"admin">;
|
|
4148
|
+
}, "strip", z.ZodTypeAny, {
|
|
4149
|
+
type: "admin";
|
|
4150
|
+
id: string;
|
|
4151
|
+
}, {
|
|
4152
|
+
type: "admin";
|
|
4153
|
+
id: string;
|
|
4154
|
+
}>;
|
|
4155
|
+
id: z.ZodString;
|
|
4156
|
+
name: z.ZodString;
|
|
4157
|
+
type: z.ZodLiteral<"tag">;
|
|
4158
|
+
}, "strip", z.ZodTypeAny, {
|
|
4159
|
+
type: "tag";
|
|
4160
|
+
id: string;
|
|
4161
|
+
name: string;
|
|
4162
|
+
applied_at: number;
|
|
4163
|
+
applied_by: {
|
|
4164
|
+
type: "admin";
|
|
4165
|
+
id: string;
|
|
4166
|
+
};
|
|
4167
|
+
}, {
|
|
4168
|
+
type: "tag";
|
|
4169
|
+
id: string;
|
|
4170
|
+
name: string;
|
|
4171
|
+
applied_at: number;
|
|
4172
|
+
applied_by: {
|
|
4173
|
+
type: "admin";
|
|
4174
|
+
id: string;
|
|
4175
|
+
};
|
|
4176
|
+
}>>;
|
|
4197
4177
|
type: z.ZodLiteral<"notification_event_data">;
|
|
4198
4178
|
}, "strip", z.ZodTypeAny, {
|
|
4199
4179
|
type: "notification_event_data";
|
|
@@ -4293,6 +4273,16 @@ declare const NotificationContactDataSchema: z.ZodObject<{
|
|
|
4293
4273
|
utm_term: string | null;
|
|
4294
4274
|
workspace_id: string;
|
|
4295
4275
|
};
|
|
4276
|
+
tag?: {
|
|
4277
|
+
type: "tag";
|
|
4278
|
+
id: string;
|
|
4279
|
+
name: string;
|
|
4280
|
+
applied_at: number;
|
|
4281
|
+
applied_by: {
|
|
4282
|
+
type: "admin";
|
|
4283
|
+
id: string;
|
|
4284
|
+
};
|
|
4285
|
+
} | undefined;
|
|
4296
4286
|
}, {
|
|
4297
4287
|
type: "notification_event_data";
|
|
4298
4288
|
item: {
|
|
@@ -4391,103 +4381,678 @@ declare const NotificationContactDataSchema: z.ZodObject<{
|
|
|
4391
4381
|
utm_term: string | null;
|
|
4392
4382
|
workspace_id: string;
|
|
4393
4383
|
};
|
|
4384
|
+
tag?: {
|
|
4385
|
+
type: "tag";
|
|
4386
|
+
id: string;
|
|
4387
|
+
name: string;
|
|
4388
|
+
applied_at: number;
|
|
4389
|
+
applied_by: {
|
|
4390
|
+
type: "admin";
|
|
4391
|
+
id: string;
|
|
4392
|
+
};
|
|
4393
|
+
} | undefined;
|
|
4394
4394
|
}>;
|
|
4395
|
-
declare const
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
contacts: z.ZodArray<z.ZodObject<{
|
|
4414
|
-
external_id: z.ZodString;
|
|
4415
|
-
id: z.ZodString;
|
|
4416
|
-
type: z.ZodLiteral<"contact">;
|
|
4395
|
+
declare const NotificationContactDataSchema: z.ZodObject<{
|
|
4396
|
+
item: z.ZodObject<{
|
|
4397
|
+
android_app_name: z.ZodNullable<z.ZodString>;
|
|
4398
|
+
android_app_version: z.ZodNullable<z.ZodString>;
|
|
4399
|
+
android_device: z.ZodNullable<z.ZodString>;
|
|
4400
|
+
android_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
4401
|
+
android_os_version: z.ZodNullable<z.ZodString>;
|
|
4402
|
+
android_sdk_version: z.ZodNullable<z.ZodString>;
|
|
4403
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
4404
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
4405
|
+
browser_language: z.ZodNullable<z.ZodString>;
|
|
4406
|
+
browser_version: z.ZodNullable<z.ZodString>;
|
|
4407
|
+
companies: z.ZodObject<{
|
|
4408
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4409
|
+
has_more: z.ZodBoolean;
|
|
4410
|
+
total_count: z.ZodNumber;
|
|
4411
|
+
type: z.ZodLiteral<"list">;
|
|
4412
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4417
4413
|
}, "strip", z.ZodTypeAny, {
|
|
4418
|
-
type: "
|
|
4419
|
-
|
|
4420
|
-
|
|
4414
|
+
type: "list";
|
|
4415
|
+
total_count: number;
|
|
4416
|
+
data: unknown[];
|
|
4417
|
+
has_more: boolean;
|
|
4418
|
+
url?: string | undefined;
|
|
4421
4419
|
}, {
|
|
4422
|
-
type: "
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
id: string;
|
|
4454
|
-
name: string;
|
|
4455
|
-
email: string;
|
|
4456
|
-
}, {
|
|
4457
|
-
type: "bot" | "user" | "lead" | "admin";
|
|
4458
|
-
id: string;
|
|
4459
|
-
name: string;
|
|
4460
|
-
email: string;
|
|
4461
|
-
}>;
|
|
4462
|
-
body: z.ZodNullable<z.ZodString>;
|
|
4463
|
-
created_at: z.ZodNumber;
|
|
4464
|
-
external_id: z.ZodNullable<z.ZodString>;
|
|
4465
|
-
id: z.ZodString;
|
|
4466
|
-
notified_at: z.ZodNumber;
|
|
4467
|
-
part_type: z.ZodString;
|
|
4468
|
-
redacted: z.ZodBoolean;
|
|
4469
|
-
type: z.ZodLiteral<"conversation_part">;
|
|
4470
|
-
updated_at: z.ZodNumber;
|
|
4420
|
+
type: "list";
|
|
4421
|
+
total_count: number;
|
|
4422
|
+
data: unknown[];
|
|
4423
|
+
has_more: boolean;
|
|
4424
|
+
url?: string | undefined;
|
|
4425
|
+
}>;
|
|
4426
|
+
created_at: z.ZodString;
|
|
4427
|
+
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4428
|
+
email: z.ZodString;
|
|
4429
|
+
external_id: z.ZodString;
|
|
4430
|
+
has_hard_bounced: z.ZodBoolean;
|
|
4431
|
+
id: z.ZodString;
|
|
4432
|
+
ios_app_name: z.ZodNullable<z.ZodString>;
|
|
4433
|
+
ios_app_version: z.ZodNullable<z.ZodString>;
|
|
4434
|
+
ios_device: z.ZodNullable<z.ZodString>;
|
|
4435
|
+
ios_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
4436
|
+
ios_os_version: z.ZodNullable<z.ZodString>;
|
|
4437
|
+
ios_sdk_version: z.ZodNullable<z.ZodString>;
|
|
4438
|
+
language_override: z.ZodNullable<z.ZodString>;
|
|
4439
|
+
last_contacted_at: z.ZodNullable<z.ZodString>;
|
|
4440
|
+
last_email_clicked_at: z.ZodNullable<z.ZodString>;
|
|
4441
|
+
last_email_opened_at: z.ZodNullable<z.ZodString>;
|
|
4442
|
+
last_replied_at: z.ZodNullable<z.ZodString>;
|
|
4443
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
4444
|
+
location: z.ZodObject<{
|
|
4445
|
+
city: z.ZodNullable<z.ZodString>;
|
|
4446
|
+
continent_code: z.ZodNullable<z.ZodString>;
|
|
4447
|
+
country: z.ZodNullable<z.ZodString>;
|
|
4448
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
4449
|
+
region: z.ZodNullable<z.ZodString>;
|
|
4450
|
+
type: z.ZodLiteral<"location">;
|
|
4471
4451
|
}, "strip", z.ZodTypeAny, {
|
|
4472
|
-
type: "
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4452
|
+
type: "location";
|
|
4453
|
+
city: string | null;
|
|
4454
|
+
continent_code: string | null;
|
|
4455
|
+
country: string | null;
|
|
4456
|
+
country_code: string | null;
|
|
4457
|
+
region: string | null;
|
|
4458
|
+
}, {
|
|
4459
|
+
type: "location";
|
|
4460
|
+
city: string | null;
|
|
4461
|
+
continent_code: string | null;
|
|
4462
|
+
country: string | null;
|
|
4463
|
+
country_code: string | null;
|
|
4464
|
+
region: string | null;
|
|
4465
|
+
}>;
|
|
4466
|
+
marked_email_as_spam: z.ZodBoolean;
|
|
4467
|
+
name: z.ZodString;
|
|
4468
|
+
notes: z.ZodObject<{
|
|
4469
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4470
|
+
has_more: z.ZodBoolean;
|
|
4471
|
+
total_count: z.ZodNumber;
|
|
4472
|
+
type: z.ZodLiteral<"list">;
|
|
4473
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4474
|
+
}, "strip", z.ZodTypeAny, {
|
|
4475
|
+
type: "list";
|
|
4476
|
+
total_count: number;
|
|
4477
|
+
data: unknown[];
|
|
4478
|
+
has_more: boolean;
|
|
4479
|
+
url?: string | undefined;
|
|
4480
|
+
}, {
|
|
4481
|
+
type: "list";
|
|
4482
|
+
total_count: number;
|
|
4483
|
+
data: unknown[];
|
|
4484
|
+
has_more: boolean;
|
|
4485
|
+
url?: string | undefined;
|
|
4486
|
+
}>;
|
|
4487
|
+
opted_in_subscription_types: z.ZodObject<{
|
|
4488
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4489
|
+
has_more: z.ZodBoolean;
|
|
4490
|
+
total_count: z.ZodNumber;
|
|
4491
|
+
type: z.ZodLiteral<"list">;
|
|
4492
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4493
|
+
}, "strip", z.ZodTypeAny, {
|
|
4494
|
+
type: "list";
|
|
4495
|
+
total_count: number;
|
|
4496
|
+
data: unknown[];
|
|
4497
|
+
has_more: boolean;
|
|
4498
|
+
url?: string | undefined;
|
|
4499
|
+
}, {
|
|
4500
|
+
type: "list";
|
|
4501
|
+
total_count: number;
|
|
4502
|
+
data: unknown[];
|
|
4503
|
+
has_more: boolean;
|
|
4504
|
+
url?: string | undefined;
|
|
4505
|
+
}>;
|
|
4506
|
+
opted_out_subscription_types: z.ZodObject<{
|
|
4507
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4508
|
+
has_more: z.ZodBoolean;
|
|
4509
|
+
total_count: z.ZodNumber;
|
|
4510
|
+
type: z.ZodLiteral<"list">;
|
|
4511
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4512
|
+
}, "strip", z.ZodTypeAny, {
|
|
4513
|
+
type: "list";
|
|
4514
|
+
total_count: number;
|
|
4515
|
+
data: unknown[];
|
|
4516
|
+
has_more: boolean;
|
|
4517
|
+
url?: string | undefined;
|
|
4518
|
+
}, {
|
|
4519
|
+
type: "list";
|
|
4520
|
+
total_count: number;
|
|
4521
|
+
data: unknown[];
|
|
4522
|
+
has_more: boolean;
|
|
4523
|
+
url?: string | undefined;
|
|
4524
|
+
}>;
|
|
4525
|
+
os: z.ZodNullable<z.ZodString>;
|
|
4526
|
+
owner_id: z.ZodNullable<z.ZodString>;
|
|
4527
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4528
|
+
referrer: z.ZodNullable<z.ZodString>;
|
|
4529
|
+
role: z.ZodEnum<["lead", "user"]>;
|
|
4530
|
+
signed_up_at: z.ZodNullable<z.ZodString>;
|
|
4531
|
+
sms_consent: z.ZodBoolean;
|
|
4532
|
+
social_profiles: z.ZodObject<{
|
|
4533
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4534
|
+
type: z.ZodLiteral<"list">;
|
|
4535
|
+
}, "strip", z.ZodTypeAny, {
|
|
4536
|
+
type: "list";
|
|
4537
|
+
data: unknown[];
|
|
4538
|
+
}, {
|
|
4539
|
+
type: "list";
|
|
4540
|
+
data: unknown[];
|
|
4541
|
+
}>;
|
|
4542
|
+
tags: z.ZodObject<{
|
|
4543
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
4544
|
+
has_more: z.ZodBoolean;
|
|
4545
|
+
total_count: z.ZodNumber;
|
|
4546
|
+
type: z.ZodLiteral<"list">;
|
|
4547
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4548
|
+
}, "strip", z.ZodTypeAny, {
|
|
4549
|
+
type: "list";
|
|
4550
|
+
total_count: number;
|
|
4551
|
+
data: unknown[];
|
|
4552
|
+
has_more: boolean;
|
|
4553
|
+
url?: string | undefined;
|
|
4554
|
+
}, {
|
|
4555
|
+
type: "list";
|
|
4556
|
+
total_count: number;
|
|
4557
|
+
data: unknown[];
|
|
4558
|
+
has_more: boolean;
|
|
4559
|
+
url?: string | undefined;
|
|
4560
|
+
}>;
|
|
4561
|
+
type: z.ZodLiteral<"contact">;
|
|
4562
|
+
unsubscribed_from_emails: z.ZodBoolean;
|
|
4563
|
+
unsubscribed_from_sms: z.ZodBoolean;
|
|
4564
|
+
updated_at: z.ZodString;
|
|
4565
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
4566
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
4567
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
4568
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
4569
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
4570
|
+
workspace_id: z.ZodString;
|
|
4571
|
+
}, "strip", z.ZodTypeAny, {
|
|
4572
|
+
type: "contact";
|
|
4573
|
+
id: string;
|
|
4574
|
+
name: string;
|
|
4575
|
+
email: string;
|
|
4576
|
+
external_id: string;
|
|
4577
|
+
created_at: string;
|
|
4578
|
+
updated_at: string;
|
|
4579
|
+
tags: {
|
|
4580
|
+
type: "list";
|
|
4581
|
+
total_count: number;
|
|
4582
|
+
data: unknown[];
|
|
4583
|
+
has_more: boolean;
|
|
4584
|
+
url?: string | undefined;
|
|
4585
|
+
};
|
|
4586
|
+
custom_attributes: Record<string, unknown>;
|
|
4587
|
+
location: {
|
|
4588
|
+
type: "location";
|
|
4589
|
+
city: string | null;
|
|
4590
|
+
continent_code: string | null;
|
|
4591
|
+
country: string | null;
|
|
4592
|
+
country_code: string | null;
|
|
4593
|
+
region: string | null;
|
|
4594
|
+
};
|
|
4595
|
+
android_app_name: string | null;
|
|
4596
|
+
android_app_version: string | null;
|
|
4597
|
+
android_device: string | null;
|
|
4598
|
+
android_last_seen_at: string | null;
|
|
4599
|
+
android_os_version: string | null;
|
|
4600
|
+
android_sdk_version: string | null;
|
|
4601
|
+
avatar: string | null;
|
|
4602
|
+
browser: string | null;
|
|
4603
|
+
browser_language: string | null;
|
|
4604
|
+
browser_version: string | null;
|
|
4605
|
+
companies: {
|
|
4606
|
+
type: "list";
|
|
4607
|
+
total_count: number;
|
|
4608
|
+
data: unknown[];
|
|
4609
|
+
has_more: boolean;
|
|
4610
|
+
url?: string | undefined;
|
|
4611
|
+
};
|
|
4612
|
+
has_hard_bounced: boolean;
|
|
4613
|
+
ios_app_name: string | null;
|
|
4614
|
+
ios_app_version: string | null;
|
|
4615
|
+
ios_device: string | null;
|
|
4616
|
+
ios_last_seen_at: string | null;
|
|
4617
|
+
ios_os_version: string | null;
|
|
4618
|
+
ios_sdk_version: string | null;
|
|
4619
|
+
language_override: string | null;
|
|
4620
|
+
last_contacted_at: string | null;
|
|
4621
|
+
last_email_clicked_at: string | null;
|
|
4622
|
+
last_email_opened_at: string | null;
|
|
4623
|
+
last_replied_at: string | null;
|
|
4624
|
+
last_seen_at: string | null;
|
|
4625
|
+
marked_email_as_spam: boolean;
|
|
4626
|
+
notes: {
|
|
4627
|
+
type: "list";
|
|
4628
|
+
total_count: number;
|
|
4629
|
+
data: unknown[];
|
|
4630
|
+
has_more: boolean;
|
|
4631
|
+
url?: string | undefined;
|
|
4632
|
+
};
|
|
4633
|
+
opted_in_subscription_types: {
|
|
4634
|
+
type: "list";
|
|
4635
|
+
total_count: number;
|
|
4636
|
+
data: unknown[];
|
|
4637
|
+
has_more: boolean;
|
|
4638
|
+
url?: string | undefined;
|
|
4639
|
+
};
|
|
4640
|
+
opted_out_subscription_types: {
|
|
4641
|
+
type: "list";
|
|
4642
|
+
total_count: number;
|
|
4643
|
+
data: unknown[];
|
|
4644
|
+
has_more: boolean;
|
|
4645
|
+
url?: string | undefined;
|
|
4646
|
+
};
|
|
4647
|
+
os: string | null;
|
|
4648
|
+
owner_id: string | null;
|
|
4649
|
+
phone: string | null;
|
|
4650
|
+
referrer: string | null;
|
|
4651
|
+
role: "user" | "lead";
|
|
4652
|
+
signed_up_at: string | null;
|
|
4653
|
+
sms_consent: boolean;
|
|
4654
|
+
social_profiles: {
|
|
4655
|
+
type: "list";
|
|
4656
|
+
data: unknown[];
|
|
4657
|
+
};
|
|
4658
|
+
unsubscribed_from_emails: boolean;
|
|
4659
|
+
unsubscribed_from_sms: boolean;
|
|
4660
|
+
utm_campaign: string | null;
|
|
4661
|
+
utm_content: string | null;
|
|
4662
|
+
utm_medium: string | null;
|
|
4663
|
+
utm_source: string | null;
|
|
4664
|
+
utm_term: string | null;
|
|
4665
|
+
workspace_id: string;
|
|
4666
|
+
}, {
|
|
4667
|
+
type: "contact";
|
|
4668
|
+
id: string;
|
|
4669
|
+
name: string;
|
|
4670
|
+
email: string;
|
|
4671
|
+
external_id: string;
|
|
4672
|
+
created_at: string;
|
|
4673
|
+
updated_at: string;
|
|
4674
|
+
tags: {
|
|
4675
|
+
type: "list";
|
|
4676
|
+
total_count: number;
|
|
4677
|
+
data: unknown[];
|
|
4678
|
+
has_more: boolean;
|
|
4679
|
+
url?: string | undefined;
|
|
4680
|
+
};
|
|
4681
|
+
custom_attributes: Record<string, unknown>;
|
|
4682
|
+
location: {
|
|
4683
|
+
type: "location";
|
|
4684
|
+
city: string | null;
|
|
4685
|
+
continent_code: string | null;
|
|
4686
|
+
country: string | null;
|
|
4687
|
+
country_code: string | null;
|
|
4688
|
+
region: string | null;
|
|
4689
|
+
};
|
|
4690
|
+
android_app_name: string | null;
|
|
4691
|
+
android_app_version: string | null;
|
|
4692
|
+
android_device: string | null;
|
|
4693
|
+
android_last_seen_at: string | null;
|
|
4694
|
+
android_os_version: string | null;
|
|
4695
|
+
android_sdk_version: string | null;
|
|
4696
|
+
avatar: string | null;
|
|
4697
|
+
browser: string | null;
|
|
4698
|
+
browser_language: string | null;
|
|
4699
|
+
browser_version: string | null;
|
|
4700
|
+
companies: {
|
|
4701
|
+
type: "list";
|
|
4702
|
+
total_count: number;
|
|
4703
|
+
data: unknown[];
|
|
4704
|
+
has_more: boolean;
|
|
4705
|
+
url?: string | undefined;
|
|
4706
|
+
};
|
|
4707
|
+
has_hard_bounced: boolean;
|
|
4708
|
+
ios_app_name: string | null;
|
|
4709
|
+
ios_app_version: string | null;
|
|
4710
|
+
ios_device: string | null;
|
|
4711
|
+
ios_last_seen_at: string | null;
|
|
4712
|
+
ios_os_version: string | null;
|
|
4713
|
+
ios_sdk_version: string | null;
|
|
4714
|
+
language_override: string | null;
|
|
4715
|
+
last_contacted_at: string | null;
|
|
4716
|
+
last_email_clicked_at: string | null;
|
|
4717
|
+
last_email_opened_at: string | null;
|
|
4718
|
+
last_replied_at: string | null;
|
|
4719
|
+
last_seen_at: string | null;
|
|
4720
|
+
marked_email_as_spam: boolean;
|
|
4721
|
+
notes: {
|
|
4722
|
+
type: "list";
|
|
4723
|
+
total_count: number;
|
|
4724
|
+
data: unknown[];
|
|
4725
|
+
has_more: boolean;
|
|
4726
|
+
url?: string | undefined;
|
|
4727
|
+
};
|
|
4728
|
+
opted_in_subscription_types: {
|
|
4729
|
+
type: "list";
|
|
4730
|
+
total_count: number;
|
|
4731
|
+
data: unknown[];
|
|
4732
|
+
has_more: boolean;
|
|
4733
|
+
url?: string | undefined;
|
|
4734
|
+
};
|
|
4735
|
+
opted_out_subscription_types: {
|
|
4736
|
+
type: "list";
|
|
4737
|
+
total_count: number;
|
|
4738
|
+
data: unknown[];
|
|
4739
|
+
has_more: boolean;
|
|
4740
|
+
url?: string | undefined;
|
|
4741
|
+
};
|
|
4742
|
+
os: string | null;
|
|
4743
|
+
owner_id: string | null;
|
|
4744
|
+
phone: string | null;
|
|
4745
|
+
referrer: string | null;
|
|
4746
|
+
role: "user" | "lead";
|
|
4747
|
+
signed_up_at: string | null;
|
|
4748
|
+
sms_consent: boolean;
|
|
4749
|
+
social_profiles: {
|
|
4750
|
+
type: "list";
|
|
4751
|
+
data: unknown[];
|
|
4752
|
+
};
|
|
4753
|
+
unsubscribed_from_emails: boolean;
|
|
4754
|
+
unsubscribed_from_sms: boolean;
|
|
4755
|
+
utm_campaign: string | null;
|
|
4756
|
+
utm_content: string | null;
|
|
4757
|
+
utm_medium: string | null;
|
|
4758
|
+
utm_source: string | null;
|
|
4759
|
+
utm_term: string | null;
|
|
4760
|
+
workspace_id: string;
|
|
4761
|
+
}>;
|
|
4762
|
+
type: z.ZodLiteral<"notification_event_data">;
|
|
4763
|
+
}, "strip", z.ZodTypeAny, {
|
|
4764
|
+
type: "notification_event_data";
|
|
4765
|
+
item: {
|
|
4766
|
+
type: "contact";
|
|
4767
|
+
id: string;
|
|
4768
|
+
name: string;
|
|
4769
|
+
email: string;
|
|
4770
|
+
external_id: string;
|
|
4771
|
+
created_at: string;
|
|
4772
|
+
updated_at: string;
|
|
4773
|
+
tags: {
|
|
4774
|
+
type: "list";
|
|
4775
|
+
total_count: number;
|
|
4776
|
+
data: unknown[];
|
|
4777
|
+
has_more: boolean;
|
|
4778
|
+
url?: string | undefined;
|
|
4779
|
+
};
|
|
4780
|
+
custom_attributes: Record<string, unknown>;
|
|
4781
|
+
location: {
|
|
4782
|
+
type: "location";
|
|
4783
|
+
city: string | null;
|
|
4784
|
+
continent_code: string | null;
|
|
4785
|
+
country: string | null;
|
|
4786
|
+
country_code: string | null;
|
|
4787
|
+
region: string | null;
|
|
4788
|
+
};
|
|
4789
|
+
android_app_name: string | null;
|
|
4790
|
+
android_app_version: string | null;
|
|
4791
|
+
android_device: string | null;
|
|
4792
|
+
android_last_seen_at: string | null;
|
|
4793
|
+
android_os_version: string | null;
|
|
4794
|
+
android_sdk_version: string | null;
|
|
4795
|
+
avatar: string | null;
|
|
4796
|
+
browser: string | null;
|
|
4797
|
+
browser_language: string | null;
|
|
4798
|
+
browser_version: string | null;
|
|
4799
|
+
companies: {
|
|
4800
|
+
type: "list";
|
|
4801
|
+
total_count: number;
|
|
4802
|
+
data: unknown[];
|
|
4803
|
+
has_more: boolean;
|
|
4804
|
+
url?: string | undefined;
|
|
4805
|
+
};
|
|
4806
|
+
has_hard_bounced: boolean;
|
|
4807
|
+
ios_app_name: string | null;
|
|
4808
|
+
ios_app_version: string | null;
|
|
4809
|
+
ios_device: string | null;
|
|
4810
|
+
ios_last_seen_at: string | null;
|
|
4811
|
+
ios_os_version: string | null;
|
|
4812
|
+
ios_sdk_version: string | null;
|
|
4813
|
+
language_override: string | null;
|
|
4814
|
+
last_contacted_at: string | null;
|
|
4815
|
+
last_email_clicked_at: string | null;
|
|
4816
|
+
last_email_opened_at: string | null;
|
|
4817
|
+
last_replied_at: string | null;
|
|
4818
|
+
last_seen_at: string | null;
|
|
4819
|
+
marked_email_as_spam: boolean;
|
|
4820
|
+
notes: {
|
|
4821
|
+
type: "list";
|
|
4822
|
+
total_count: number;
|
|
4823
|
+
data: unknown[];
|
|
4824
|
+
has_more: boolean;
|
|
4825
|
+
url?: string | undefined;
|
|
4826
|
+
};
|
|
4827
|
+
opted_in_subscription_types: {
|
|
4828
|
+
type: "list";
|
|
4829
|
+
total_count: number;
|
|
4830
|
+
data: unknown[];
|
|
4831
|
+
has_more: boolean;
|
|
4832
|
+
url?: string | undefined;
|
|
4833
|
+
};
|
|
4834
|
+
opted_out_subscription_types: {
|
|
4835
|
+
type: "list";
|
|
4836
|
+
total_count: number;
|
|
4837
|
+
data: unknown[];
|
|
4838
|
+
has_more: boolean;
|
|
4839
|
+
url?: string | undefined;
|
|
4840
|
+
};
|
|
4841
|
+
os: string | null;
|
|
4842
|
+
owner_id: string | null;
|
|
4843
|
+
phone: string | null;
|
|
4844
|
+
referrer: string | null;
|
|
4845
|
+
role: "user" | "lead";
|
|
4846
|
+
signed_up_at: string | null;
|
|
4847
|
+
sms_consent: boolean;
|
|
4848
|
+
social_profiles: {
|
|
4849
|
+
type: "list";
|
|
4850
|
+
data: unknown[];
|
|
4851
|
+
};
|
|
4852
|
+
unsubscribed_from_emails: boolean;
|
|
4853
|
+
unsubscribed_from_sms: boolean;
|
|
4854
|
+
utm_campaign: string | null;
|
|
4855
|
+
utm_content: string | null;
|
|
4856
|
+
utm_medium: string | null;
|
|
4857
|
+
utm_source: string | null;
|
|
4858
|
+
utm_term: string | null;
|
|
4859
|
+
workspace_id: string;
|
|
4860
|
+
};
|
|
4861
|
+
}, {
|
|
4862
|
+
type: "notification_event_data";
|
|
4863
|
+
item: {
|
|
4864
|
+
type: "contact";
|
|
4865
|
+
id: string;
|
|
4866
|
+
name: string;
|
|
4867
|
+
email: string;
|
|
4868
|
+
external_id: string;
|
|
4869
|
+
created_at: string;
|
|
4870
|
+
updated_at: string;
|
|
4871
|
+
tags: {
|
|
4872
|
+
type: "list";
|
|
4873
|
+
total_count: number;
|
|
4874
|
+
data: unknown[];
|
|
4875
|
+
has_more: boolean;
|
|
4876
|
+
url?: string | undefined;
|
|
4877
|
+
};
|
|
4878
|
+
custom_attributes: Record<string, unknown>;
|
|
4879
|
+
location: {
|
|
4880
|
+
type: "location";
|
|
4881
|
+
city: string | null;
|
|
4882
|
+
continent_code: string | null;
|
|
4883
|
+
country: string | null;
|
|
4884
|
+
country_code: string | null;
|
|
4885
|
+
region: string | null;
|
|
4886
|
+
};
|
|
4887
|
+
android_app_name: string | null;
|
|
4888
|
+
android_app_version: string | null;
|
|
4889
|
+
android_device: string | null;
|
|
4890
|
+
android_last_seen_at: string | null;
|
|
4891
|
+
android_os_version: string | null;
|
|
4892
|
+
android_sdk_version: string | null;
|
|
4893
|
+
avatar: string | null;
|
|
4894
|
+
browser: string | null;
|
|
4895
|
+
browser_language: string | null;
|
|
4896
|
+
browser_version: string | null;
|
|
4897
|
+
companies: {
|
|
4898
|
+
type: "list";
|
|
4899
|
+
total_count: number;
|
|
4900
|
+
data: unknown[];
|
|
4901
|
+
has_more: boolean;
|
|
4902
|
+
url?: string | undefined;
|
|
4903
|
+
};
|
|
4904
|
+
has_hard_bounced: boolean;
|
|
4905
|
+
ios_app_name: string | null;
|
|
4906
|
+
ios_app_version: string | null;
|
|
4907
|
+
ios_device: string | null;
|
|
4908
|
+
ios_last_seen_at: string | null;
|
|
4909
|
+
ios_os_version: string | null;
|
|
4910
|
+
ios_sdk_version: string | null;
|
|
4911
|
+
language_override: string | null;
|
|
4912
|
+
last_contacted_at: string | null;
|
|
4913
|
+
last_email_clicked_at: string | null;
|
|
4914
|
+
last_email_opened_at: string | null;
|
|
4915
|
+
last_replied_at: string | null;
|
|
4916
|
+
last_seen_at: string | null;
|
|
4917
|
+
marked_email_as_spam: boolean;
|
|
4918
|
+
notes: {
|
|
4919
|
+
type: "list";
|
|
4920
|
+
total_count: number;
|
|
4921
|
+
data: unknown[];
|
|
4922
|
+
has_more: boolean;
|
|
4923
|
+
url?: string | undefined;
|
|
4924
|
+
};
|
|
4925
|
+
opted_in_subscription_types: {
|
|
4926
|
+
type: "list";
|
|
4927
|
+
total_count: number;
|
|
4928
|
+
data: unknown[];
|
|
4929
|
+
has_more: boolean;
|
|
4930
|
+
url?: string | undefined;
|
|
4931
|
+
};
|
|
4932
|
+
opted_out_subscription_types: {
|
|
4933
|
+
type: "list";
|
|
4934
|
+
total_count: number;
|
|
4935
|
+
data: unknown[];
|
|
4936
|
+
has_more: boolean;
|
|
4937
|
+
url?: string | undefined;
|
|
4938
|
+
};
|
|
4939
|
+
os: string | null;
|
|
4940
|
+
owner_id: string | null;
|
|
4941
|
+
phone: string | null;
|
|
4942
|
+
referrer: string | null;
|
|
4943
|
+
role: "user" | "lead";
|
|
4944
|
+
signed_up_at: string | null;
|
|
4945
|
+
sms_consent: boolean;
|
|
4946
|
+
social_profiles: {
|
|
4947
|
+
type: "list";
|
|
4948
|
+
data: unknown[];
|
|
4949
|
+
};
|
|
4950
|
+
unsubscribed_from_emails: boolean;
|
|
4951
|
+
unsubscribed_from_sms: boolean;
|
|
4952
|
+
utm_campaign: string | null;
|
|
4953
|
+
utm_content: string | null;
|
|
4954
|
+
utm_medium: string | null;
|
|
4955
|
+
utm_source: string | null;
|
|
4956
|
+
utm_term: string | null;
|
|
4957
|
+
workspace_id: string;
|
|
4958
|
+
};
|
|
4959
|
+
}>;
|
|
4960
|
+
declare const ConversationContactSchema: z.ZodObject<{
|
|
4961
|
+
external_id: z.ZodString;
|
|
4962
|
+
id: z.ZodString;
|
|
4963
|
+
type: z.ZodLiteral<"contact">;
|
|
4964
|
+
}, "strip", z.ZodTypeAny, {
|
|
4965
|
+
type: "contact";
|
|
4966
|
+
id: string;
|
|
4967
|
+
external_id: string;
|
|
4968
|
+
}, {
|
|
4969
|
+
type: "contact";
|
|
4970
|
+
id: string;
|
|
4971
|
+
external_id: string;
|
|
4972
|
+
}>;
|
|
4973
|
+
declare const ConversationSchema: z.ZodObject<{
|
|
4974
|
+
admin_assignee_id: z.ZodNullable<z.ZodNumber>;
|
|
4975
|
+
ai_agent: z.ZodNullable<z.ZodUnknown>;
|
|
4976
|
+
ai_agent_participated: z.ZodBoolean;
|
|
4977
|
+
contacts: z.ZodObject<{
|
|
4978
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
4979
|
+
external_id: z.ZodString;
|
|
4980
|
+
id: z.ZodString;
|
|
4981
|
+
type: z.ZodLiteral<"contact">;
|
|
4982
|
+
}, "strip", z.ZodTypeAny, {
|
|
4983
|
+
type: "contact";
|
|
4984
|
+
id: string;
|
|
4985
|
+
external_id: string;
|
|
4986
|
+
}, {
|
|
4987
|
+
type: "contact";
|
|
4988
|
+
id: string;
|
|
4989
|
+
external_id: string;
|
|
4990
|
+
}>, "many">;
|
|
4991
|
+
type: z.ZodLiteral<"contact.list">;
|
|
4992
|
+
}, "strip", z.ZodTypeAny, {
|
|
4993
|
+
type: "contact.list";
|
|
4994
|
+
contacts: {
|
|
4995
|
+
type: "contact";
|
|
4996
|
+
id: string;
|
|
4997
|
+
external_id: string;
|
|
4998
|
+
}[];
|
|
4999
|
+
}, {
|
|
5000
|
+
type: "contact.list";
|
|
5001
|
+
contacts: {
|
|
5002
|
+
type: "contact";
|
|
5003
|
+
id: string;
|
|
5004
|
+
external_id: string;
|
|
5005
|
+
}[];
|
|
5006
|
+
}>;
|
|
5007
|
+
conversation_parts: z.ZodObject<{
|
|
5008
|
+
conversation_parts: z.ZodArray<z.ZodObject<{
|
|
5009
|
+
assigned_to: z.ZodNull;
|
|
5010
|
+
attachments: z.ZodArray<z.ZodUnknown, "many">;
|
|
5011
|
+
author: z.ZodObject<{
|
|
5012
|
+
email: z.ZodString;
|
|
5013
|
+
id: z.ZodString;
|
|
5014
|
+
name: z.ZodString;
|
|
5015
|
+
type: z.ZodEnum<["bot", "user", "lead", "admin"]>;
|
|
5016
|
+
}, "strip", z.ZodTypeAny, {
|
|
5017
|
+
type: "bot" | "user" | "lead" | "admin";
|
|
5018
|
+
id: string;
|
|
5019
|
+
name: string;
|
|
5020
|
+
email: string;
|
|
5021
|
+
}, {
|
|
5022
|
+
type: "bot" | "user" | "lead" | "admin";
|
|
5023
|
+
id: string;
|
|
5024
|
+
name: string;
|
|
5025
|
+
email: string;
|
|
5026
|
+
}>;
|
|
5027
|
+
body: z.ZodNullable<z.ZodString>;
|
|
5028
|
+
created_at: z.ZodNumber;
|
|
5029
|
+
external_id: z.ZodNullable<z.ZodString>;
|
|
5030
|
+
id: z.ZodString;
|
|
5031
|
+
notified_at: z.ZodNumber;
|
|
5032
|
+
part_type: z.ZodString;
|
|
5033
|
+
redacted: z.ZodBoolean;
|
|
5034
|
+
type: z.ZodLiteral<"conversation_part">;
|
|
5035
|
+
updated_at: z.ZodNumber;
|
|
5036
|
+
}, "strip", z.ZodTypeAny, {
|
|
5037
|
+
type: "conversation_part";
|
|
5038
|
+
id: string;
|
|
5039
|
+
external_id: string | null;
|
|
5040
|
+
created_at: number;
|
|
5041
|
+
body: string | null;
|
|
5042
|
+
author: {
|
|
5043
|
+
type: "bot" | "user" | "lead" | "admin";
|
|
5044
|
+
id: string;
|
|
5045
|
+
name: string;
|
|
5046
|
+
email: string;
|
|
5047
|
+
};
|
|
5048
|
+
attachments: unknown[];
|
|
5049
|
+
redacted: boolean;
|
|
5050
|
+
part_type: string;
|
|
5051
|
+
updated_at: number;
|
|
5052
|
+
notified_at: number;
|
|
5053
|
+
assigned_to: null;
|
|
5054
|
+
}, {
|
|
5055
|
+
type: "conversation_part";
|
|
4491
5056
|
id: string;
|
|
4492
5057
|
external_id: string | null;
|
|
4493
5058
|
created_at: number;
|
|
@@ -6108,132 +6673,642 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
6108
6673
|
type: "event";
|
|
6109
6674
|
id: string;
|
|
6110
6675
|
email: string;
|
|
6111
|
-
created_at: number;
|
|
6112
|
-
event_name: "invoice_paid";
|
|
6113
|
-
intercom_user_id: string;
|
|
6114
|
-
user_id: string;
|
|
6115
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
6116
|
-
metadata?: Record<string, unknown> | undefined;
|
|
6676
|
+
created_at: number;
|
|
6677
|
+
event_name: "invoice_paid";
|
|
6678
|
+
intercom_user_id: string;
|
|
6679
|
+
user_id: string;
|
|
6680
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6681
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6682
|
+
}, {
|
|
6683
|
+
type: "event";
|
|
6684
|
+
id: string;
|
|
6685
|
+
email: string;
|
|
6686
|
+
created_at: number;
|
|
6687
|
+
event_name: "invoice_paid";
|
|
6688
|
+
intercom_user_id: string;
|
|
6689
|
+
user_id: string;
|
|
6690
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6691
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6692
|
+
}>]>;
|
|
6693
|
+
type: z.ZodLiteral<"notification_event_data">;
|
|
6694
|
+
}, "strip", z.ZodTypeAny, {
|
|
6695
|
+
type: "notification_event_data";
|
|
6696
|
+
item: {
|
|
6697
|
+
type: "event";
|
|
6698
|
+
id: string;
|
|
6699
|
+
email: string;
|
|
6700
|
+
created_at: number;
|
|
6701
|
+
event_name: "view_activity";
|
|
6702
|
+
intercom_user_id: string;
|
|
6703
|
+
user_id: string;
|
|
6704
|
+
metadata: {
|
|
6705
|
+
title: string;
|
|
6706
|
+
moduleId: string;
|
|
6707
|
+
activityId?: string | undefined;
|
|
6708
|
+
};
|
|
6709
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6710
|
+
} | {
|
|
6711
|
+
type: "event";
|
|
6712
|
+
id: string;
|
|
6713
|
+
email: string;
|
|
6714
|
+
created_at: number;
|
|
6715
|
+
event_name: "invoice_paid";
|
|
6716
|
+
intercom_user_id: string;
|
|
6717
|
+
user_id: string;
|
|
6718
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6719
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6720
|
+
};
|
|
6721
|
+
}, {
|
|
6722
|
+
type: "notification_event_data";
|
|
6723
|
+
item: {
|
|
6724
|
+
type: "event";
|
|
6725
|
+
id: string;
|
|
6726
|
+
email: string;
|
|
6727
|
+
created_at: number;
|
|
6728
|
+
event_name: "view_activity";
|
|
6729
|
+
intercom_user_id: string;
|
|
6730
|
+
user_id: string;
|
|
6731
|
+
metadata: {
|
|
6732
|
+
title: string;
|
|
6733
|
+
moduleId: string;
|
|
6734
|
+
activityId?: string | undefined;
|
|
6735
|
+
};
|
|
6736
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6737
|
+
} | {
|
|
6738
|
+
type: "event";
|
|
6739
|
+
id: string;
|
|
6740
|
+
email: string;
|
|
6741
|
+
created_at: number;
|
|
6742
|
+
event_name: "invoice_paid";
|
|
6743
|
+
intercom_user_id: string;
|
|
6744
|
+
user_id: string;
|
|
6745
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
6746
|
+
metadata?: Record<string, unknown> | undefined;
|
|
6747
|
+
};
|
|
6748
|
+
}>, z.ZodObject<{
|
|
6749
|
+
item: z.ZodObject<{
|
|
6750
|
+
android_app_name: z.ZodNullable<z.ZodString>;
|
|
6751
|
+
android_app_version: z.ZodNullable<z.ZodString>;
|
|
6752
|
+
android_device: z.ZodNullable<z.ZodString>;
|
|
6753
|
+
android_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
6754
|
+
android_os_version: z.ZodNullable<z.ZodString>;
|
|
6755
|
+
android_sdk_version: z.ZodNullable<z.ZodString>;
|
|
6756
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
6757
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
6758
|
+
browser_language: z.ZodNullable<z.ZodString>;
|
|
6759
|
+
browser_version: z.ZodNullable<z.ZodString>;
|
|
6760
|
+
companies: z.ZodObject<{
|
|
6761
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6762
|
+
has_more: z.ZodBoolean;
|
|
6763
|
+
total_count: z.ZodNumber;
|
|
6764
|
+
type: z.ZodLiteral<"list">;
|
|
6765
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6766
|
+
}, "strip", z.ZodTypeAny, {
|
|
6767
|
+
type: "list";
|
|
6768
|
+
total_count: number;
|
|
6769
|
+
data: unknown[];
|
|
6770
|
+
has_more: boolean;
|
|
6771
|
+
url?: string | undefined;
|
|
6772
|
+
}, {
|
|
6773
|
+
type: "list";
|
|
6774
|
+
total_count: number;
|
|
6775
|
+
data: unknown[];
|
|
6776
|
+
has_more: boolean;
|
|
6777
|
+
url?: string | undefined;
|
|
6778
|
+
}>;
|
|
6779
|
+
created_at: z.ZodString;
|
|
6780
|
+
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6781
|
+
email: z.ZodString;
|
|
6782
|
+
external_id: z.ZodString;
|
|
6783
|
+
has_hard_bounced: z.ZodBoolean;
|
|
6784
|
+
id: z.ZodString;
|
|
6785
|
+
ios_app_name: z.ZodNullable<z.ZodString>;
|
|
6786
|
+
ios_app_version: z.ZodNullable<z.ZodString>;
|
|
6787
|
+
ios_device: z.ZodNullable<z.ZodString>;
|
|
6788
|
+
ios_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
6789
|
+
ios_os_version: z.ZodNullable<z.ZodString>;
|
|
6790
|
+
ios_sdk_version: z.ZodNullable<z.ZodString>;
|
|
6791
|
+
language_override: z.ZodNullable<z.ZodString>;
|
|
6792
|
+
last_contacted_at: z.ZodNullable<z.ZodString>;
|
|
6793
|
+
last_email_clicked_at: z.ZodNullable<z.ZodString>;
|
|
6794
|
+
last_email_opened_at: z.ZodNullable<z.ZodString>;
|
|
6795
|
+
last_replied_at: z.ZodNullable<z.ZodString>;
|
|
6796
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
6797
|
+
location: z.ZodObject<{
|
|
6798
|
+
city: z.ZodNullable<z.ZodString>;
|
|
6799
|
+
continent_code: z.ZodNullable<z.ZodString>;
|
|
6800
|
+
country: z.ZodNullable<z.ZodString>;
|
|
6801
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
6802
|
+
region: z.ZodNullable<z.ZodString>;
|
|
6803
|
+
type: z.ZodLiteral<"location">;
|
|
6804
|
+
}, "strip", z.ZodTypeAny, {
|
|
6805
|
+
type: "location";
|
|
6806
|
+
city: string | null;
|
|
6807
|
+
continent_code: string | null;
|
|
6808
|
+
country: string | null;
|
|
6809
|
+
country_code: string | null;
|
|
6810
|
+
region: string | null;
|
|
6811
|
+
}, {
|
|
6812
|
+
type: "location";
|
|
6813
|
+
city: string | null;
|
|
6814
|
+
continent_code: string | null;
|
|
6815
|
+
country: string | null;
|
|
6816
|
+
country_code: string | null;
|
|
6817
|
+
region: string | null;
|
|
6818
|
+
}>;
|
|
6819
|
+
marked_email_as_spam: z.ZodBoolean;
|
|
6820
|
+
name: z.ZodString;
|
|
6821
|
+
notes: z.ZodObject<{
|
|
6822
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6823
|
+
has_more: z.ZodBoolean;
|
|
6824
|
+
total_count: z.ZodNumber;
|
|
6825
|
+
type: z.ZodLiteral<"list">;
|
|
6826
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6827
|
+
}, "strip", z.ZodTypeAny, {
|
|
6828
|
+
type: "list";
|
|
6829
|
+
total_count: number;
|
|
6830
|
+
data: unknown[];
|
|
6831
|
+
has_more: boolean;
|
|
6832
|
+
url?: string | undefined;
|
|
6833
|
+
}, {
|
|
6834
|
+
type: "list";
|
|
6835
|
+
total_count: number;
|
|
6836
|
+
data: unknown[];
|
|
6837
|
+
has_more: boolean;
|
|
6838
|
+
url?: string | undefined;
|
|
6839
|
+
}>;
|
|
6840
|
+
opted_in_subscription_types: z.ZodObject<{
|
|
6841
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6842
|
+
has_more: z.ZodBoolean;
|
|
6843
|
+
total_count: z.ZodNumber;
|
|
6844
|
+
type: z.ZodLiteral<"list">;
|
|
6845
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6846
|
+
}, "strip", z.ZodTypeAny, {
|
|
6847
|
+
type: "list";
|
|
6848
|
+
total_count: number;
|
|
6849
|
+
data: unknown[];
|
|
6850
|
+
has_more: boolean;
|
|
6851
|
+
url?: string | undefined;
|
|
6852
|
+
}, {
|
|
6853
|
+
type: "list";
|
|
6854
|
+
total_count: number;
|
|
6855
|
+
data: unknown[];
|
|
6856
|
+
has_more: boolean;
|
|
6857
|
+
url?: string | undefined;
|
|
6858
|
+
}>;
|
|
6859
|
+
opted_out_subscription_types: z.ZodObject<{
|
|
6860
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6861
|
+
has_more: z.ZodBoolean;
|
|
6862
|
+
total_count: z.ZodNumber;
|
|
6863
|
+
type: z.ZodLiteral<"list">;
|
|
6864
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6865
|
+
}, "strip", z.ZodTypeAny, {
|
|
6866
|
+
type: "list";
|
|
6867
|
+
total_count: number;
|
|
6868
|
+
data: unknown[];
|
|
6869
|
+
has_more: boolean;
|
|
6870
|
+
url?: string | undefined;
|
|
6871
|
+
}, {
|
|
6872
|
+
type: "list";
|
|
6873
|
+
total_count: number;
|
|
6874
|
+
data: unknown[];
|
|
6875
|
+
has_more: boolean;
|
|
6876
|
+
url?: string | undefined;
|
|
6877
|
+
}>;
|
|
6878
|
+
os: z.ZodNullable<z.ZodString>;
|
|
6879
|
+
owner_id: z.ZodNullable<z.ZodString>;
|
|
6880
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
6881
|
+
referrer: z.ZodNullable<z.ZodString>;
|
|
6882
|
+
role: z.ZodEnum<["lead", "user"]>;
|
|
6883
|
+
signed_up_at: z.ZodNullable<z.ZodString>;
|
|
6884
|
+
sms_consent: z.ZodBoolean;
|
|
6885
|
+
social_profiles: z.ZodObject<{
|
|
6886
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6887
|
+
type: z.ZodLiteral<"list">;
|
|
6888
|
+
}, "strip", z.ZodTypeAny, {
|
|
6889
|
+
type: "list";
|
|
6890
|
+
data: unknown[];
|
|
6891
|
+
}, {
|
|
6892
|
+
type: "list";
|
|
6893
|
+
data: unknown[];
|
|
6894
|
+
}>;
|
|
6895
|
+
tags: z.ZodObject<{
|
|
6896
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
6897
|
+
has_more: z.ZodBoolean;
|
|
6898
|
+
total_count: z.ZodNumber;
|
|
6899
|
+
type: z.ZodLiteral<"list">;
|
|
6900
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6901
|
+
}, "strip", z.ZodTypeAny, {
|
|
6902
|
+
type: "list";
|
|
6903
|
+
total_count: number;
|
|
6904
|
+
data: unknown[];
|
|
6905
|
+
has_more: boolean;
|
|
6906
|
+
url?: string | undefined;
|
|
6907
|
+
}, {
|
|
6908
|
+
type: "list";
|
|
6909
|
+
total_count: number;
|
|
6910
|
+
data: unknown[];
|
|
6911
|
+
has_more: boolean;
|
|
6912
|
+
url?: string | undefined;
|
|
6913
|
+
}>;
|
|
6914
|
+
type: z.ZodLiteral<"contact">;
|
|
6915
|
+
unsubscribed_from_emails: z.ZodBoolean;
|
|
6916
|
+
unsubscribed_from_sms: z.ZodBoolean;
|
|
6917
|
+
updated_at: z.ZodString;
|
|
6918
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
6919
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
6920
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
6921
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
6922
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
6923
|
+
workspace_id: z.ZodString;
|
|
6924
|
+
}, "strip", z.ZodTypeAny, {
|
|
6925
|
+
type: "contact";
|
|
6926
|
+
id: string;
|
|
6927
|
+
name: string;
|
|
6928
|
+
email: string;
|
|
6929
|
+
external_id: string;
|
|
6930
|
+
created_at: string;
|
|
6931
|
+
updated_at: string;
|
|
6932
|
+
tags: {
|
|
6933
|
+
type: "list";
|
|
6934
|
+
total_count: number;
|
|
6935
|
+
data: unknown[];
|
|
6936
|
+
has_more: boolean;
|
|
6937
|
+
url?: string | undefined;
|
|
6938
|
+
};
|
|
6939
|
+
custom_attributes: Record<string, unknown>;
|
|
6940
|
+
location: {
|
|
6941
|
+
type: "location";
|
|
6942
|
+
city: string | null;
|
|
6943
|
+
continent_code: string | null;
|
|
6944
|
+
country: string | null;
|
|
6945
|
+
country_code: string | null;
|
|
6946
|
+
region: string | null;
|
|
6947
|
+
};
|
|
6948
|
+
android_app_name: string | null;
|
|
6949
|
+
android_app_version: string | null;
|
|
6950
|
+
android_device: string | null;
|
|
6951
|
+
android_last_seen_at: string | null;
|
|
6952
|
+
android_os_version: string | null;
|
|
6953
|
+
android_sdk_version: string | null;
|
|
6954
|
+
avatar: string | null;
|
|
6955
|
+
browser: string | null;
|
|
6956
|
+
browser_language: string | null;
|
|
6957
|
+
browser_version: string | null;
|
|
6958
|
+
companies: {
|
|
6959
|
+
type: "list";
|
|
6960
|
+
total_count: number;
|
|
6961
|
+
data: unknown[];
|
|
6962
|
+
has_more: boolean;
|
|
6963
|
+
url?: string | undefined;
|
|
6964
|
+
};
|
|
6965
|
+
has_hard_bounced: boolean;
|
|
6966
|
+
ios_app_name: string | null;
|
|
6967
|
+
ios_app_version: string | null;
|
|
6968
|
+
ios_device: string | null;
|
|
6969
|
+
ios_last_seen_at: string | null;
|
|
6970
|
+
ios_os_version: string | null;
|
|
6971
|
+
ios_sdk_version: string | null;
|
|
6972
|
+
language_override: string | null;
|
|
6973
|
+
last_contacted_at: string | null;
|
|
6974
|
+
last_email_clicked_at: string | null;
|
|
6975
|
+
last_email_opened_at: string | null;
|
|
6976
|
+
last_replied_at: string | null;
|
|
6977
|
+
last_seen_at: string | null;
|
|
6978
|
+
marked_email_as_spam: boolean;
|
|
6979
|
+
notes: {
|
|
6980
|
+
type: "list";
|
|
6981
|
+
total_count: number;
|
|
6982
|
+
data: unknown[];
|
|
6983
|
+
has_more: boolean;
|
|
6984
|
+
url?: string | undefined;
|
|
6985
|
+
};
|
|
6986
|
+
opted_in_subscription_types: {
|
|
6987
|
+
type: "list";
|
|
6988
|
+
total_count: number;
|
|
6989
|
+
data: unknown[];
|
|
6990
|
+
has_more: boolean;
|
|
6991
|
+
url?: string | undefined;
|
|
6992
|
+
};
|
|
6993
|
+
opted_out_subscription_types: {
|
|
6994
|
+
type: "list";
|
|
6995
|
+
total_count: number;
|
|
6996
|
+
data: unknown[];
|
|
6997
|
+
has_more: boolean;
|
|
6998
|
+
url?: string | undefined;
|
|
6999
|
+
};
|
|
7000
|
+
os: string | null;
|
|
7001
|
+
owner_id: string | null;
|
|
7002
|
+
phone: string | null;
|
|
7003
|
+
referrer: string | null;
|
|
7004
|
+
role: "user" | "lead";
|
|
7005
|
+
signed_up_at: string | null;
|
|
7006
|
+
sms_consent: boolean;
|
|
7007
|
+
social_profiles: {
|
|
7008
|
+
type: "list";
|
|
7009
|
+
data: unknown[];
|
|
7010
|
+
};
|
|
7011
|
+
unsubscribed_from_emails: boolean;
|
|
7012
|
+
unsubscribed_from_sms: boolean;
|
|
7013
|
+
utm_campaign: string | null;
|
|
7014
|
+
utm_content: string | null;
|
|
7015
|
+
utm_medium: string | null;
|
|
7016
|
+
utm_source: string | null;
|
|
7017
|
+
utm_term: string | null;
|
|
7018
|
+
workspace_id: string;
|
|
6117
7019
|
}, {
|
|
6118
|
-
type: "
|
|
7020
|
+
type: "contact";
|
|
6119
7021
|
id: string;
|
|
7022
|
+
name: string;
|
|
6120
7023
|
email: string;
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
}
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
7024
|
+
external_id: string;
|
|
7025
|
+
created_at: string;
|
|
7026
|
+
updated_at: string;
|
|
7027
|
+
tags: {
|
|
7028
|
+
type: "list";
|
|
7029
|
+
total_count: number;
|
|
7030
|
+
data: unknown[];
|
|
7031
|
+
has_more: boolean;
|
|
7032
|
+
url?: string | undefined;
|
|
7033
|
+
};
|
|
7034
|
+
custom_attributes: Record<string, unknown>;
|
|
7035
|
+
location: {
|
|
7036
|
+
type: "location";
|
|
7037
|
+
city: string | null;
|
|
7038
|
+
continent_code: string | null;
|
|
7039
|
+
country: string | null;
|
|
7040
|
+
country_code: string | null;
|
|
7041
|
+
region: string | null;
|
|
7042
|
+
};
|
|
7043
|
+
android_app_name: string | null;
|
|
7044
|
+
android_app_version: string | null;
|
|
7045
|
+
android_device: string | null;
|
|
7046
|
+
android_last_seen_at: string | null;
|
|
7047
|
+
android_os_version: string | null;
|
|
7048
|
+
android_sdk_version: string | null;
|
|
7049
|
+
avatar: string | null;
|
|
7050
|
+
browser: string | null;
|
|
7051
|
+
browser_language: string | null;
|
|
7052
|
+
browser_version: string | null;
|
|
7053
|
+
companies: {
|
|
7054
|
+
type: "list";
|
|
7055
|
+
total_count: number;
|
|
7056
|
+
data: unknown[];
|
|
7057
|
+
has_more: boolean;
|
|
7058
|
+
url?: string | undefined;
|
|
7059
|
+
};
|
|
7060
|
+
has_hard_bounced: boolean;
|
|
7061
|
+
ios_app_name: string | null;
|
|
7062
|
+
ios_app_version: string | null;
|
|
7063
|
+
ios_device: string | null;
|
|
7064
|
+
ios_last_seen_at: string | null;
|
|
7065
|
+
ios_os_version: string | null;
|
|
7066
|
+
ios_sdk_version: string | null;
|
|
7067
|
+
language_override: string | null;
|
|
7068
|
+
last_contacted_at: string | null;
|
|
7069
|
+
last_email_clicked_at: string | null;
|
|
7070
|
+
last_email_opened_at: string | null;
|
|
7071
|
+
last_replied_at: string | null;
|
|
7072
|
+
last_seen_at: string | null;
|
|
7073
|
+
marked_email_as_spam: boolean;
|
|
7074
|
+
notes: {
|
|
7075
|
+
type: "list";
|
|
7076
|
+
total_count: number;
|
|
7077
|
+
data: unknown[];
|
|
7078
|
+
has_more: boolean;
|
|
7079
|
+
url?: string | undefined;
|
|
7080
|
+
};
|
|
7081
|
+
opted_in_subscription_types: {
|
|
7082
|
+
type: "list";
|
|
7083
|
+
total_count: number;
|
|
7084
|
+
data: unknown[];
|
|
7085
|
+
has_more: boolean;
|
|
7086
|
+
url?: string | undefined;
|
|
7087
|
+
};
|
|
7088
|
+
opted_out_subscription_types: {
|
|
7089
|
+
type: "list";
|
|
7090
|
+
total_count: number;
|
|
7091
|
+
data: unknown[];
|
|
7092
|
+
has_more: boolean;
|
|
7093
|
+
url?: string | undefined;
|
|
7094
|
+
};
|
|
7095
|
+
os: string | null;
|
|
7096
|
+
owner_id: string | null;
|
|
7097
|
+
phone: string | null;
|
|
7098
|
+
referrer: string | null;
|
|
7099
|
+
role: "user" | "lead";
|
|
7100
|
+
signed_up_at: string | null;
|
|
7101
|
+
sms_consent: boolean;
|
|
7102
|
+
social_profiles: {
|
|
7103
|
+
type: "list";
|
|
7104
|
+
data: unknown[];
|
|
7105
|
+
};
|
|
7106
|
+
unsubscribed_from_emails: boolean;
|
|
7107
|
+
unsubscribed_from_sms: boolean;
|
|
7108
|
+
utm_campaign: string | null;
|
|
7109
|
+
utm_content: string | null;
|
|
7110
|
+
utm_medium: string | null;
|
|
7111
|
+
utm_source: string | null;
|
|
7112
|
+
utm_term: string | null;
|
|
7113
|
+
workspace_id: string;
|
|
7114
|
+
}>;
|
|
7115
|
+
type: z.ZodLiteral<"notification_event_data">;
|
|
7116
|
+
}, "strip", z.ZodTypeAny, {
|
|
7117
|
+
type: "notification_event_data";
|
|
7118
|
+
item: {
|
|
7119
|
+
type: "contact";
|
|
6145
7120
|
id: string;
|
|
6146
7121
|
name: string;
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
7122
|
+
email: string;
|
|
7123
|
+
external_id: string;
|
|
7124
|
+
created_at: string;
|
|
7125
|
+
updated_at: string;
|
|
7126
|
+
tags: {
|
|
7127
|
+
type: "list";
|
|
7128
|
+
total_count: number;
|
|
7129
|
+
data: unknown[];
|
|
7130
|
+
has_more: boolean;
|
|
7131
|
+
url?: string | undefined;
|
|
7132
|
+
};
|
|
7133
|
+
custom_attributes: Record<string, unknown>;
|
|
7134
|
+
location: {
|
|
7135
|
+
type: "location";
|
|
7136
|
+
city: string | null;
|
|
7137
|
+
continent_code: string | null;
|
|
7138
|
+
country: string | null;
|
|
7139
|
+
country_code: string | null;
|
|
7140
|
+
region: string | null;
|
|
7141
|
+
};
|
|
7142
|
+
android_app_name: string | null;
|
|
7143
|
+
android_app_version: string | null;
|
|
7144
|
+
android_device: string | null;
|
|
7145
|
+
android_last_seen_at: string | null;
|
|
7146
|
+
android_os_version: string | null;
|
|
7147
|
+
android_sdk_version: string | null;
|
|
7148
|
+
avatar: string | null;
|
|
7149
|
+
browser: string | null;
|
|
7150
|
+
browser_language: string | null;
|
|
7151
|
+
browser_version: string | null;
|
|
7152
|
+
companies: {
|
|
7153
|
+
type: "list";
|
|
7154
|
+
total_count: number;
|
|
7155
|
+
data: unknown[];
|
|
7156
|
+
has_more: boolean;
|
|
7157
|
+
url?: string | undefined;
|
|
6151
7158
|
};
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
7159
|
+
has_hard_bounced: boolean;
|
|
7160
|
+
ios_app_name: string | null;
|
|
7161
|
+
ios_app_version: string | null;
|
|
7162
|
+
ios_device: string | null;
|
|
7163
|
+
ios_last_seen_at: string | null;
|
|
7164
|
+
ios_os_version: string | null;
|
|
7165
|
+
ios_sdk_version: string | null;
|
|
7166
|
+
language_override: string | null;
|
|
7167
|
+
last_contacted_at: string | null;
|
|
7168
|
+
last_email_clicked_at: string | null;
|
|
7169
|
+
last_email_opened_at: string | null;
|
|
7170
|
+
last_replied_at: string | null;
|
|
7171
|
+
last_seen_at: string | null;
|
|
7172
|
+
marked_email_as_spam: boolean;
|
|
7173
|
+
notes: {
|
|
7174
|
+
type: "list";
|
|
7175
|
+
total_count: number;
|
|
7176
|
+
data: unknown[];
|
|
7177
|
+
has_more: boolean;
|
|
7178
|
+
url?: string | undefined;
|
|
6160
7179
|
};
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
id: string;
|
|
6168
|
-
email: string;
|
|
6169
|
-
created_at: number;
|
|
6170
|
-
event_name: "view_activity";
|
|
6171
|
-
intercom_user_id: string;
|
|
6172
|
-
user_id: string;
|
|
6173
|
-
metadata: {
|
|
6174
|
-
title: string;
|
|
6175
|
-
moduleId: string;
|
|
6176
|
-
activityId?: string | undefined;
|
|
7180
|
+
opted_in_subscription_types: {
|
|
7181
|
+
type: "list";
|
|
7182
|
+
total_count: number;
|
|
7183
|
+
data: unknown[];
|
|
7184
|
+
has_more: boolean;
|
|
7185
|
+
url?: string | undefined;
|
|
6177
7186
|
};
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
event_name: "invoice_paid";
|
|
6185
|
-
intercom_user_id: string;
|
|
6186
|
-
user_id: string;
|
|
6187
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
6188
|
-
metadata?: Record<string, unknown> | undefined;
|
|
6189
|
-
};
|
|
6190
|
-
tag?: {
|
|
6191
|
-
type: "tag";
|
|
6192
|
-
id: string;
|
|
6193
|
-
name: string;
|
|
6194
|
-
applied_at: number;
|
|
6195
|
-
applied_by: {
|
|
6196
|
-
type: "admin";
|
|
6197
|
-
id: string;
|
|
7187
|
+
opted_out_subscription_types: {
|
|
7188
|
+
type: "list";
|
|
7189
|
+
total_count: number;
|
|
7190
|
+
data: unknown[];
|
|
7191
|
+
has_more: boolean;
|
|
7192
|
+
url?: string | undefined;
|
|
6198
7193
|
};
|
|
6199
|
-
|
|
7194
|
+
os: string | null;
|
|
7195
|
+
owner_id: string | null;
|
|
7196
|
+
phone: string | null;
|
|
7197
|
+
referrer: string | null;
|
|
7198
|
+
role: "user" | "lead";
|
|
7199
|
+
signed_up_at: string | null;
|
|
7200
|
+
sms_consent: boolean;
|
|
7201
|
+
social_profiles: {
|
|
7202
|
+
type: "list";
|
|
7203
|
+
data: unknown[];
|
|
7204
|
+
};
|
|
7205
|
+
unsubscribed_from_emails: boolean;
|
|
7206
|
+
unsubscribed_from_sms: boolean;
|
|
7207
|
+
utm_campaign: string | null;
|
|
7208
|
+
utm_content: string | null;
|
|
7209
|
+
utm_medium: string | null;
|
|
7210
|
+
utm_source: string | null;
|
|
7211
|
+
utm_term: string | null;
|
|
7212
|
+
workspace_id: string;
|
|
7213
|
+
};
|
|
6200
7214
|
}, {
|
|
6201
7215
|
type: "notification_event_data";
|
|
6202
7216
|
item: {
|
|
6203
|
-
type: "
|
|
7217
|
+
type: "contact";
|
|
6204
7218
|
id: string;
|
|
7219
|
+
name: string;
|
|
6205
7220
|
email: string;
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
7221
|
+
external_id: string;
|
|
7222
|
+
created_at: string;
|
|
7223
|
+
updated_at: string;
|
|
7224
|
+
tags: {
|
|
7225
|
+
type: "list";
|
|
7226
|
+
total_count: number;
|
|
7227
|
+
data: unknown[];
|
|
7228
|
+
has_more: boolean;
|
|
7229
|
+
url?: string | undefined;
|
|
6214
7230
|
};
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
user_id: string;
|
|
6224
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
6225
|
-
metadata?: Record<string, unknown> | undefined;
|
|
6226
|
-
};
|
|
6227
|
-
tag?: {
|
|
6228
|
-
type: "tag";
|
|
6229
|
-
id: string;
|
|
6230
|
-
name: string;
|
|
6231
|
-
applied_at: number;
|
|
6232
|
-
applied_by: {
|
|
6233
|
-
type: "admin";
|
|
6234
|
-
id: string;
|
|
7231
|
+
custom_attributes: Record<string, unknown>;
|
|
7232
|
+
location: {
|
|
7233
|
+
type: "location";
|
|
7234
|
+
city: string | null;
|
|
7235
|
+
continent_code: string | null;
|
|
7236
|
+
country: string | null;
|
|
7237
|
+
country_code: string | null;
|
|
7238
|
+
region: string | null;
|
|
6235
7239
|
};
|
|
6236
|
-
|
|
7240
|
+
android_app_name: string | null;
|
|
7241
|
+
android_app_version: string | null;
|
|
7242
|
+
android_device: string | null;
|
|
7243
|
+
android_last_seen_at: string | null;
|
|
7244
|
+
android_os_version: string | null;
|
|
7245
|
+
android_sdk_version: string | null;
|
|
7246
|
+
avatar: string | null;
|
|
7247
|
+
browser: string | null;
|
|
7248
|
+
browser_language: string | null;
|
|
7249
|
+
browser_version: string | null;
|
|
7250
|
+
companies: {
|
|
7251
|
+
type: "list";
|
|
7252
|
+
total_count: number;
|
|
7253
|
+
data: unknown[];
|
|
7254
|
+
has_more: boolean;
|
|
7255
|
+
url?: string | undefined;
|
|
7256
|
+
};
|
|
7257
|
+
has_hard_bounced: boolean;
|
|
7258
|
+
ios_app_name: string | null;
|
|
7259
|
+
ios_app_version: string | null;
|
|
7260
|
+
ios_device: string | null;
|
|
7261
|
+
ios_last_seen_at: string | null;
|
|
7262
|
+
ios_os_version: string | null;
|
|
7263
|
+
ios_sdk_version: string | null;
|
|
7264
|
+
language_override: string | null;
|
|
7265
|
+
last_contacted_at: string | null;
|
|
7266
|
+
last_email_clicked_at: string | null;
|
|
7267
|
+
last_email_opened_at: string | null;
|
|
7268
|
+
last_replied_at: string | null;
|
|
7269
|
+
last_seen_at: string | null;
|
|
7270
|
+
marked_email_as_spam: boolean;
|
|
7271
|
+
notes: {
|
|
7272
|
+
type: "list";
|
|
7273
|
+
total_count: number;
|
|
7274
|
+
data: unknown[];
|
|
7275
|
+
has_more: boolean;
|
|
7276
|
+
url?: string | undefined;
|
|
7277
|
+
};
|
|
7278
|
+
opted_in_subscription_types: {
|
|
7279
|
+
type: "list";
|
|
7280
|
+
total_count: number;
|
|
7281
|
+
data: unknown[];
|
|
7282
|
+
has_more: boolean;
|
|
7283
|
+
url?: string | undefined;
|
|
7284
|
+
};
|
|
7285
|
+
opted_out_subscription_types: {
|
|
7286
|
+
type: "list";
|
|
7287
|
+
total_count: number;
|
|
7288
|
+
data: unknown[];
|
|
7289
|
+
has_more: boolean;
|
|
7290
|
+
url?: string | undefined;
|
|
7291
|
+
};
|
|
7292
|
+
os: string | null;
|
|
7293
|
+
owner_id: string | null;
|
|
7294
|
+
phone: string | null;
|
|
7295
|
+
referrer: string | null;
|
|
7296
|
+
role: "user" | "lead";
|
|
7297
|
+
signed_up_at: string | null;
|
|
7298
|
+
sms_consent: boolean;
|
|
7299
|
+
social_profiles: {
|
|
7300
|
+
type: "list";
|
|
7301
|
+
data: unknown[];
|
|
7302
|
+
};
|
|
7303
|
+
unsubscribed_from_emails: boolean;
|
|
7304
|
+
unsubscribed_from_sms: boolean;
|
|
7305
|
+
utm_campaign: string | null;
|
|
7306
|
+
utm_content: string | null;
|
|
7307
|
+
utm_medium: string | null;
|
|
7308
|
+
utm_source: string | null;
|
|
7309
|
+
utm_term: string | null;
|
|
7310
|
+
workspace_id: string;
|
|
7311
|
+
};
|
|
6237
7312
|
}>, z.ZodObject<{
|
|
6238
7313
|
item: z.ZodObject<{
|
|
6239
7314
|
android_app_name: z.ZodNullable<z.ZodString>;
|
|
@@ -6592,15 +7667,49 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
6592
7667
|
type: "list";
|
|
6593
7668
|
data: unknown[];
|
|
6594
7669
|
};
|
|
6595
|
-
unsubscribed_from_emails: boolean;
|
|
6596
|
-
unsubscribed_from_sms: boolean;
|
|
6597
|
-
utm_campaign: string | null;
|
|
6598
|
-
utm_content: string | null;
|
|
6599
|
-
utm_medium: string | null;
|
|
6600
|
-
utm_source: string | null;
|
|
6601
|
-
utm_term: string | null;
|
|
6602
|
-
workspace_id: string;
|
|
6603
|
-
}>;
|
|
7670
|
+
unsubscribed_from_emails: boolean;
|
|
7671
|
+
unsubscribed_from_sms: boolean;
|
|
7672
|
+
utm_campaign: string | null;
|
|
7673
|
+
utm_content: string | null;
|
|
7674
|
+
utm_medium: string | null;
|
|
7675
|
+
utm_source: string | null;
|
|
7676
|
+
utm_term: string | null;
|
|
7677
|
+
workspace_id: string;
|
|
7678
|
+
}>;
|
|
7679
|
+
tag: z.ZodOptional<z.ZodObject<{
|
|
7680
|
+
applied_at: z.ZodNumber;
|
|
7681
|
+
applied_by: z.ZodObject<{
|
|
7682
|
+
id: z.ZodString;
|
|
7683
|
+
type: z.ZodLiteral<"admin">;
|
|
7684
|
+
}, "strip", z.ZodTypeAny, {
|
|
7685
|
+
type: "admin";
|
|
7686
|
+
id: string;
|
|
7687
|
+
}, {
|
|
7688
|
+
type: "admin";
|
|
7689
|
+
id: string;
|
|
7690
|
+
}>;
|
|
7691
|
+
id: z.ZodString;
|
|
7692
|
+
name: z.ZodString;
|
|
7693
|
+
type: z.ZodLiteral<"tag">;
|
|
7694
|
+
}, "strip", z.ZodTypeAny, {
|
|
7695
|
+
type: "tag";
|
|
7696
|
+
id: string;
|
|
7697
|
+
name: string;
|
|
7698
|
+
applied_at: number;
|
|
7699
|
+
applied_by: {
|
|
7700
|
+
type: "admin";
|
|
7701
|
+
id: string;
|
|
7702
|
+
};
|
|
7703
|
+
}, {
|
|
7704
|
+
type: "tag";
|
|
7705
|
+
id: string;
|
|
7706
|
+
name: string;
|
|
7707
|
+
applied_at: number;
|
|
7708
|
+
applied_by: {
|
|
7709
|
+
type: "admin";
|
|
7710
|
+
id: string;
|
|
7711
|
+
};
|
|
7712
|
+
}>>;
|
|
6604
7713
|
type: z.ZodLiteral<"notification_event_data">;
|
|
6605
7714
|
}, "strip", z.ZodTypeAny, {
|
|
6606
7715
|
type: "notification_event_data";
|
|
@@ -6700,6 +7809,16 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
6700
7809
|
utm_term: string | null;
|
|
6701
7810
|
workspace_id: string;
|
|
6702
7811
|
};
|
|
7812
|
+
tag?: {
|
|
7813
|
+
type: "tag";
|
|
7814
|
+
id: string;
|
|
7815
|
+
name: string;
|
|
7816
|
+
applied_at: number;
|
|
7817
|
+
applied_by: {
|
|
7818
|
+
type: "admin";
|
|
7819
|
+
id: string;
|
|
7820
|
+
};
|
|
7821
|
+
} | undefined;
|
|
6703
7822
|
}, {
|
|
6704
7823
|
type: "notification_event_data";
|
|
6705
7824
|
item: {
|
|
@@ -6798,6 +7917,16 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
6798
7917
|
utm_term: string | null;
|
|
6799
7918
|
workspace_id: string;
|
|
6800
7919
|
};
|
|
7920
|
+
tag?: {
|
|
7921
|
+
type: "tag";
|
|
7922
|
+
id: string;
|
|
7923
|
+
name: string;
|
|
7924
|
+
applied_at: number;
|
|
7925
|
+
applied_by: {
|
|
7926
|
+
type: "admin";
|
|
7927
|
+
id: string;
|
|
7928
|
+
};
|
|
7929
|
+
} | undefined;
|
|
6801
7930
|
}>, z.ZodObject<{
|
|
6802
7931
|
item: z.ZodObject<{
|
|
6803
7932
|
admin_assignee_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7754,7 +8883,7 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
7754
8883
|
id: z.ZodString;
|
|
7755
8884
|
links: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7756
8885
|
self: z.ZodNullable<z.ZodUnknown>;
|
|
7757
|
-
topic: z.ZodEnum<["event.created", "conversation.user.created", "conversation.user.replied", "contact.lead.added_email"]>;
|
|
8886
|
+
topic: z.ZodEnum<["event.created", "conversation.user.created", "conversation.user.replied", "contact.lead.added_email", "conversation_part.tag.created", "contact.lead.tag.created", "contact.lead.tag.deleted"]>;
|
|
7758
8887
|
type: z.ZodLiteral<"notification_event">;
|
|
7759
8888
|
}, "strip", z.ZodTypeAny, {
|
|
7760
8889
|
type: "notification_event";
|
|
@@ -7787,6 +8916,104 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
7787
8916
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
7788
8917
|
metadata?: Record<string, unknown> | undefined;
|
|
7789
8918
|
};
|
|
8919
|
+
} | {
|
|
8920
|
+
type: "notification_event_data";
|
|
8921
|
+
item: {
|
|
8922
|
+
type: "contact";
|
|
8923
|
+
id: string;
|
|
8924
|
+
name: string;
|
|
8925
|
+
email: string;
|
|
8926
|
+
external_id: string;
|
|
8927
|
+
created_at: string;
|
|
8928
|
+
updated_at: string;
|
|
8929
|
+
tags: {
|
|
8930
|
+
type: "list";
|
|
8931
|
+
total_count: number;
|
|
8932
|
+
data: unknown[];
|
|
8933
|
+
has_more: boolean;
|
|
8934
|
+
url?: string | undefined;
|
|
8935
|
+
};
|
|
8936
|
+
custom_attributes: Record<string, unknown>;
|
|
8937
|
+
location: {
|
|
8938
|
+
type: "location";
|
|
8939
|
+
city: string | null;
|
|
8940
|
+
continent_code: string | null;
|
|
8941
|
+
country: string | null;
|
|
8942
|
+
country_code: string | null;
|
|
8943
|
+
region: string | null;
|
|
8944
|
+
};
|
|
8945
|
+
android_app_name: string | null;
|
|
8946
|
+
android_app_version: string | null;
|
|
8947
|
+
android_device: string | null;
|
|
8948
|
+
android_last_seen_at: string | null;
|
|
8949
|
+
android_os_version: string | null;
|
|
8950
|
+
android_sdk_version: string | null;
|
|
8951
|
+
avatar: string | null;
|
|
8952
|
+
browser: string | null;
|
|
8953
|
+
browser_language: string | null;
|
|
8954
|
+
browser_version: string | null;
|
|
8955
|
+
companies: {
|
|
8956
|
+
type: "list";
|
|
8957
|
+
total_count: number;
|
|
8958
|
+
data: unknown[];
|
|
8959
|
+
has_more: boolean;
|
|
8960
|
+
url?: string | undefined;
|
|
8961
|
+
};
|
|
8962
|
+
has_hard_bounced: boolean;
|
|
8963
|
+
ios_app_name: string | null;
|
|
8964
|
+
ios_app_version: string | null;
|
|
8965
|
+
ios_device: string | null;
|
|
8966
|
+
ios_last_seen_at: string | null;
|
|
8967
|
+
ios_os_version: string | null;
|
|
8968
|
+
ios_sdk_version: string | null;
|
|
8969
|
+
language_override: string | null;
|
|
8970
|
+
last_contacted_at: string | null;
|
|
8971
|
+
last_email_clicked_at: string | null;
|
|
8972
|
+
last_email_opened_at: string | null;
|
|
8973
|
+
last_replied_at: string | null;
|
|
8974
|
+
last_seen_at: string | null;
|
|
8975
|
+
marked_email_as_spam: boolean;
|
|
8976
|
+
notes: {
|
|
8977
|
+
type: "list";
|
|
8978
|
+
total_count: number;
|
|
8979
|
+
data: unknown[];
|
|
8980
|
+
has_more: boolean;
|
|
8981
|
+
url?: string | undefined;
|
|
8982
|
+
};
|
|
8983
|
+
opted_in_subscription_types: {
|
|
8984
|
+
type: "list";
|
|
8985
|
+
total_count: number;
|
|
8986
|
+
data: unknown[];
|
|
8987
|
+
has_more: boolean;
|
|
8988
|
+
url?: string | undefined;
|
|
8989
|
+
};
|
|
8990
|
+
opted_out_subscription_types: {
|
|
8991
|
+
type: "list";
|
|
8992
|
+
total_count: number;
|
|
8993
|
+
data: unknown[];
|
|
8994
|
+
has_more: boolean;
|
|
8995
|
+
url?: string | undefined;
|
|
8996
|
+
};
|
|
8997
|
+
os: string | null;
|
|
8998
|
+
owner_id: string | null;
|
|
8999
|
+
phone: string | null;
|
|
9000
|
+
referrer: string | null;
|
|
9001
|
+
role: "user" | "lead";
|
|
9002
|
+
signed_up_at: string | null;
|
|
9003
|
+
sms_consent: boolean;
|
|
9004
|
+
social_profiles: {
|
|
9005
|
+
type: "list";
|
|
9006
|
+
data: unknown[];
|
|
9007
|
+
};
|
|
9008
|
+
unsubscribed_from_emails: boolean;
|
|
9009
|
+
unsubscribed_from_sms: boolean;
|
|
9010
|
+
utm_campaign: string | null;
|
|
9011
|
+
utm_content: string | null;
|
|
9012
|
+
utm_medium: string | null;
|
|
9013
|
+
utm_source: string | null;
|
|
9014
|
+
utm_term: string | null;
|
|
9015
|
+
workspace_id: string;
|
|
9016
|
+
};
|
|
7790
9017
|
tag?: {
|
|
7791
9018
|
type: "tag";
|
|
7792
9019
|
id: string;
|
|
@@ -8034,7 +9261,7 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
8034
9261
|
delivery_status: "pending" | "retry";
|
|
8035
9262
|
first_sent_at: number;
|
|
8036
9263
|
links: Record<string, unknown>;
|
|
8037
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
9264
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
8038
9265
|
self?: unknown;
|
|
8039
9266
|
}, {
|
|
8040
9267
|
type: "notification_event";
|
|
@@ -8067,6 +9294,104 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
8067
9294
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
8068
9295
|
metadata?: Record<string, unknown> | undefined;
|
|
8069
9296
|
};
|
|
9297
|
+
} | {
|
|
9298
|
+
type: "notification_event_data";
|
|
9299
|
+
item: {
|
|
9300
|
+
type: "contact";
|
|
9301
|
+
id: string;
|
|
9302
|
+
name: string;
|
|
9303
|
+
email: string;
|
|
9304
|
+
external_id: string;
|
|
9305
|
+
created_at: string;
|
|
9306
|
+
updated_at: string;
|
|
9307
|
+
tags: {
|
|
9308
|
+
type: "list";
|
|
9309
|
+
total_count: number;
|
|
9310
|
+
data: unknown[];
|
|
9311
|
+
has_more: boolean;
|
|
9312
|
+
url?: string | undefined;
|
|
9313
|
+
};
|
|
9314
|
+
custom_attributes: Record<string, unknown>;
|
|
9315
|
+
location: {
|
|
9316
|
+
type: "location";
|
|
9317
|
+
city: string | null;
|
|
9318
|
+
continent_code: string | null;
|
|
9319
|
+
country: string | null;
|
|
9320
|
+
country_code: string | null;
|
|
9321
|
+
region: string | null;
|
|
9322
|
+
};
|
|
9323
|
+
android_app_name: string | null;
|
|
9324
|
+
android_app_version: string | null;
|
|
9325
|
+
android_device: string | null;
|
|
9326
|
+
android_last_seen_at: string | null;
|
|
9327
|
+
android_os_version: string | null;
|
|
9328
|
+
android_sdk_version: string | null;
|
|
9329
|
+
avatar: string | null;
|
|
9330
|
+
browser: string | null;
|
|
9331
|
+
browser_language: string | null;
|
|
9332
|
+
browser_version: string | null;
|
|
9333
|
+
companies: {
|
|
9334
|
+
type: "list";
|
|
9335
|
+
total_count: number;
|
|
9336
|
+
data: unknown[];
|
|
9337
|
+
has_more: boolean;
|
|
9338
|
+
url?: string | undefined;
|
|
9339
|
+
};
|
|
9340
|
+
has_hard_bounced: boolean;
|
|
9341
|
+
ios_app_name: string | null;
|
|
9342
|
+
ios_app_version: string | null;
|
|
9343
|
+
ios_device: string | null;
|
|
9344
|
+
ios_last_seen_at: string | null;
|
|
9345
|
+
ios_os_version: string | null;
|
|
9346
|
+
ios_sdk_version: string | null;
|
|
9347
|
+
language_override: string | null;
|
|
9348
|
+
last_contacted_at: string | null;
|
|
9349
|
+
last_email_clicked_at: string | null;
|
|
9350
|
+
last_email_opened_at: string | null;
|
|
9351
|
+
last_replied_at: string | null;
|
|
9352
|
+
last_seen_at: string | null;
|
|
9353
|
+
marked_email_as_spam: boolean;
|
|
9354
|
+
notes: {
|
|
9355
|
+
type: "list";
|
|
9356
|
+
total_count: number;
|
|
9357
|
+
data: unknown[];
|
|
9358
|
+
has_more: boolean;
|
|
9359
|
+
url?: string | undefined;
|
|
9360
|
+
};
|
|
9361
|
+
opted_in_subscription_types: {
|
|
9362
|
+
type: "list";
|
|
9363
|
+
total_count: number;
|
|
9364
|
+
data: unknown[];
|
|
9365
|
+
has_more: boolean;
|
|
9366
|
+
url?: string | undefined;
|
|
9367
|
+
};
|
|
9368
|
+
opted_out_subscription_types: {
|
|
9369
|
+
type: "list";
|
|
9370
|
+
total_count: number;
|
|
9371
|
+
data: unknown[];
|
|
9372
|
+
has_more: boolean;
|
|
9373
|
+
url?: string | undefined;
|
|
9374
|
+
};
|
|
9375
|
+
os: string | null;
|
|
9376
|
+
owner_id: string | null;
|
|
9377
|
+
phone: string | null;
|
|
9378
|
+
referrer: string | null;
|
|
9379
|
+
role: "user" | "lead";
|
|
9380
|
+
signed_up_at: string | null;
|
|
9381
|
+
sms_consent: boolean;
|
|
9382
|
+
social_profiles: {
|
|
9383
|
+
type: "list";
|
|
9384
|
+
data: unknown[];
|
|
9385
|
+
};
|
|
9386
|
+
unsubscribed_from_emails: boolean;
|
|
9387
|
+
unsubscribed_from_sms: boolean;
|
|
9388
|
+
utm_campaign: string | null;
|
|
9389
|
+
utm_content: string | null;
|
|
9390
|
+
utm_medium: string | null;
|
|
9391
|
+
utm_source: string | null;
|
|
9392
|
+
utm_term: string | null;
|
|
9393
|
+
workspace_id: string;
|
|
9394
|
+
};
|
|
8070
9395
|
tag?: {
|
|
8071
9396
|
type: "tag";
|
|
8072
9397
|
id: string;
|
|
@@ -8314,7 +9639,7 @@ declare const NotificationBodySchema: z.ZodObject<{
|
|
|
8314
9639
|
delivery_status: "pending" | "retry";
|
|
8315
9640
|
first_sent_at: number;
|
|
8316
9641
|
links: Record<string, unknown>;
|
|
8317
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
9642
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
8318
9643
|
self?: unknown;
|
|
8319
9644
|
}>;
|
|
8320
9645
|
declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -8336,190 +9661,700 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8336
9661
|
type: z.ZodLiteral<"event">;
|
|
8337
9662
|
user_id: z.ZodString;
|
|
8338
9663
|
}, {
|
|
8339
|
-
event_name: z.ZodLiteral<"view_activity">;
|
|
8340
|
-
metadata: z.ZodObject<{
|
|
8341
|
-
activityId: z.ZodOptional<z.ZodString>;
|
|
8342
|
-
moduleId: z.ZodString;
|
|
8343
|
-
title: z.ZodString;
|
|
9664
|
+
event_name: z.ZodLiteral<"view_activity">;
|
|
9665
|
+
metadata: z.ZodObject<{
|
|
9666
|
+
activityId: z.ZodOptional<z.ZodString>;
|
|
9667
|
+
moduleId: z.ZodString;
|
|
9668
|
+
title: z.ZodString;
|
|
9669
|
+
}, "strip", z.ZodTypeAny, {
|
|
9670
|
+
title: string;
|
|
9671
|
+
moduleId: string;
|
|
9672
|
+
activityId?: string | undefined;
|
|
9673
|
+
}, {
|
|
9674
|
+
title: string;
|
|
9675
|
+
moduleId: string;
|
|
9676
|
+
activityId?: string | undefined;
|
|
9677
|
+
}>;
|
|
9678
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9679
|
+
type: "event";
|
|
9680
|
+
id: string;
|
|
9681
|
+
email: string;
|
|
9682
|
+
created_at: number;
|
|
9683
|
+
event_name: "view_activity";
|
|
9684
|
+
intercom_user_id: string;
|
|
9685
|
+
user_id: string;
|
|
9686
|
+
metadata: {
|
|
9687
|
+
title: string;
|
|
9688
|
+
moduleId: string;
|
|
9689
|
+
activityId?: string | undefined;
|
|
9690
|
+
};
|
|
9691
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9692
|
+
}, {
|
|
9693
|
+
type: "event";
|
|
9694
|
+
id: string;
|
|
9695
|
+
email: string;
|
|
9696
|
+
created_at: number;
|
|
9697
|
+
event_name: "view_activity";
|
|
9698
|
+
intercom_user_id: string;
|
|
9699
|
+
user_id: string;
|
|
9700
|
+
metadata: {
|
|
9701
|
+
title: string;
|
|
9702
|
+
moduleId: string;
|
|
9703
|
+
activityId?: string | undefined;
|
|
9704
|
+
};
|
|
9705
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9706
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
9707
|
+
created_at: z.ZodNumber;
|
|
9708
|
+
email: z.ZodString;
|
|
9709
|
+
event_name: z.ZodString;
|
|
9710
|
+
ext_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9711
|
+
id: z.ZodString;
|
|
9712
|
+
intercom_user_id: z.ZodString;
|
|
9713
|
+
type: z.ZodLiteral<"event">;
|
|
9714
|
+
user_id: z.ZodString;
|
|
9715
|
+
}, {
|
|
9716
|
+
event_name: z.ZodLiteral<"invoice_paid">;
|
|
9717
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9718
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9719
|
+
type: "event";
|
|
9720
|
+
id: string;
|
|
9721
|
+
email: string;
|
|
9722
|
+
created_at: number;
|
|
9723
|
+
event_name: "invoice_paid";
|
|
9724
|
+
intercom_user_id: string;
|
|
9725
|
+
user_id: string;
|
|
9726
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9727
|
+
metadata?: Record<string, unknown> | undefined;
|
|
9728
|
+
}, {
|
|
9729
|
+
type: "event";
|
|
9730
|
+
id: string;
|
|
9731
|
+
email: string;
|
|
9732
|
+
created_at: number;
|
|
9733
|
+
event_name: "invoice_paid";
|
|
9734
|
+
intercom_user_id: string;
|
|
9735
|
+
user_id: string;
|
|
9736
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9737
|
+
metadata?: Record<string, unknown> | undefined;
|
|
9738
|
+
}>]>;
|
|
9739
|
+
type: z.ZodLiteral<"notification_event_data">;
|
|
9740
|
+
}, "strip", z.ZodTypeAny, {
|
|
9741
|
+
type: "notification_event_data";
|
|
9742
|
+
item: {
|
|
9743
|
+
type: "event";
|
|
9744
|
+
id: string;
|
|
9745
|
+
email: string;
|
|
9746
|
+
created_at: number;
|
|
9747
|
+
event_name: "view_activity";
|
|
9748
|
+
intercom_user_id: string;
|
|
9749
|
+
user_id: string;
|
|
9750
|
+
metadata: {
|
|
9751
|
+
title: string;
|
|
9752
|
+
moduleId: string;
|
|
9753
|
+
activityId?: string | undefined;
|
|
9754
|
+
};
|
|
9755
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9756
|
+
} | {
|
|
9757
|
+
type: "event";
|
|
9758
|
+
id: string;
|
|
9759
|
+
email: string;
|
|
9760
|
+
created_at: number;
|
|
9761
|
+
event_name: "invoice_paid";
|
|
9762
|
+
intercom_user_id: string;
|
|
9763
|
+
user_id: string;
|
|
9764
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9765
|
+
metadata?: Record<string, unknown> | undefined;
|
|
9766
|
+
};
|
|
9767
|
+
}, {
|
|
9768
|
+
type: "notification_event_data";
|
|
9769
|
+
item: {
|
|
9770
|
+
type: "event";
|
|
9771
|
+
id: string;
|
|
9772
|
+
email: string;
|
|
9773
|
+
created_at: number;
|
|
9774
|
+
event_name: "view_activity";
|
|
9775
|
+
intercom_user_id: string;
|
|
9776
|
+
user_id: string;
|
|
9777
|
+
metadata: {
|
|
9778
|
+
title: string;
|
|
9779
|
+
moduleId: string;
|
|
9780
|
+
activityId?: string | undefined;
|
|
9781
|
+
};
|
|
9782
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9783
|
+
} | {
|
|
9784
|
+
type: "event";
|
|
9785
|
+
id: string;
|
|
9786
|
+
email: string;
|
|
9787
|
+
created_at: number;
|
|
9788
|
+
event_name: "invoice_paid";
|
|
9789
|
+
intercom_user_id: string;
|
|
9790
|
+
user_id: string;
|
|
9791
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
9792
|
+
metadata?: Record<string, unknown> | undefined;
|
|
9793
|
+
};
|
|
9794
|
+
}>, z.ZodObject<{
|
|
9795
|
+
item: z.ZodObject<{
|
|
9796
|
+
android_app_name: z.ZodNullable<z.ZodString>;
|
|
9797
|
+
android_app_version: z.ZodNullable<z.ZodString>;
|
|
9798
|
+
android_device: z.ZodNullable<z.ZodString>;
|
|
9799
|
+
android_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
9800
|
+
android_os_version: z.ZodNullable<z.ZodString>;
|
|
9801
|
+
android_sdk_version: z.ZodNullable<z.ZodString>;
|
|
9802
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
9803
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
9804
|
+
browser_language: z.ZodNullable<z.ZodString>;
|
|
9805
|
+
browser_version: z.ZodNullable<z.ZodString>;
|
|
9806
|
+
companies: z.ZodObject<{
|
|
9807
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9808
|
+
has_more: z.ZodBoolean;
|
|
9809
|
+
total_count: z.ZodNumber;
|
|
9810
|
+
type: z.ZodLiteral<"list">;
|
|
9811
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9812
|
+
}, "strip", z.ZodTypeAny, {
|
|
9813
|
+
type: "list";
|
|
9814
|
+
total_count: number;
|
|
9815
|
+
data: unknown[];
|
|
9816
|
+
has_more: boolean;
|
|
9817
|
+
url?: string | undefined;
|
|
9818
|
+
}, {
|
|
9819
|
+
type: "list";
|
|
9820
|
+
total_count: number;
|
|
9821
|
+
data: unknown[];
|
|
9822
|
+
has_more: boolean;
|
|
9823
|
+
url?: string | undefined;
|
|
9824
|
+
}>;
|
|
9825
|
+
created_at: z.ZodString;
|
|
9826
|
+
custom_attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9827
|
+
email: z.ZodString;
|
|
9828
|
+
external_id: z.ZodString;
|
|
9829
|
+
has_hard_bounced: z.ZodBoolean;
|
|
9830
|
+
id: z.ZodString;
|
|
9831
|
+
ios_app_name: z.ZodNullable<z.ZodString>;
|
|
9832
|
+
ios_app_version: z.ZodNullable<z.ZodString>;
|
|
9833
|
+
ios_device: z.ZodNullable<z.ZodString>;
|
|
9834
|
+
ios_last_seen_at: z.ZodNullable<z.ZodString>;
|
|
9835
|
+
ios_os_version: z.ZodNullable<z.ZodString>;
|
|
9836
|
+
ios_sdk_version: z.ZodNullable<z.ZodString>;
|
|
9837
|
+
language_override: z.ZodNullable<z.ZodString>;
|
|
9838
|
+
last_contacted_at: z.ZodNullable<z.ZodString>;
|
|
9839
|
+
last_email_clicked_at: z.ZodNullable<z.ZodString>;
|
|
9840
|
+
last_email_opened_at: z.ZodNullable<z.ZodString>;
|
|
9841
|
+
last_replied_at: z.ZodNullable<z.ZodString>;
|
|
9842
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
9843
|
+
location: z.ZodObject<{
|
|
9844
|
+
city: z.ZodNullable<z.ZodString>;
|
|
9845
|
+
continent_code: z.ZodNullable<z.ZodString>;
|
|
9846
|
+
country: z.ZodNullable<z.ZodString>;
|
|
9847
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
9848
|
+
region: z.ZodNullable<z.ZodString>;
|
|
9849
|
+
type: z.ZodLiteral<"location">;
|
|
9850
|
+
}, "strip", z.ZodTypeAny, {
|
|
9851
|
+
type: "location";
|
|
9852
|
+
city: string | null;
|
|
9853
|
+
continent_code: string | null;
|
|
9854
|
+
country: string | null;
|
|
9855
|
+
country_code: string | null;
|
|
9856
|
+
region: string | null;
|
|
9857
|
+
}, {
|
|
9858
|
+
type: "location";
|
|
9859
|
+
city: string | null;
|
|
9860
|
+
continent_code: string | null;
|
|
9861
|
+
country: string | null;
|
|
9862
|
+
country_code: string | null;
|
|
9863
|
+
region: string | null;
|
|
9864
|
+
}>;
|
|
9865
|
+
marked_email_as_spam: z.ZodBoolean;
|
|
9866
|
+
name: z.ZodString;
|
|
9867
|
+
notes: z.ZodObject<{
|
|
9868
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9869
|
+
has_more: z.ZodBoolean;
|
|
9870
|
+
total_count: z.ZodNumber;
|
|
9871
|
+
type: z.ZodLiteral<"list">;
|
|
9872
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9873
|
+
}, "strip", z.ZodTypeAny, {
|
|
9874
|
+
type: "list";
|
|
9875
|
+
total_count: number;
|
|
9876
|
+
data: unknown[];
|
|
9877
|
+
has_more: boolean;
|
|
9878
|
+
url?: string | undefined;
|
|
9879
|
+
}, {
|
|
9880
|
+
type: "list";
|
|
9881
|
+
total_count: number;
|
|
9882
|
+
data: unknown[];
|
|
9883
|
+
has_more: boolean;
|
|
9884
|
+
url?: string | undefined;
|
|
9885
|
+
}>;
|
|
9886
|
+
opted_in_subscription_types: z.ZodObject<{
|
|
9887
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9888
|
+
has_more: z.ZodBoolean;
|
|
9889
|
+
total_count: z.ZodNumber;
|
|
9890
|
+
type: z.ZodLiteral<"list">;
|
|
9891
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9892
|
+
}, "strip", z.ZodTypeAny, {
|
|
9893
|
+
type: "list";
|
|
9894
|
+
total_count: number;
|
|
9895
|
+
data: unknown[];
|
|
9896
|
+
has_more: boolean;
|
|
9897
|
+
url?: string | undefined;
|
|
9898
|
+
}, {
|
|
9899
|
+
type: "list";
|
|
9900
|
+
total_count: number;
|
|
9901
|
+
data: unknown[];
|
|
9902
|
+
has_more: boolean;
|
|
9903
|
+
url?: string | undefined;
|
|
9904
|
+
}>;
|
|
9905
|
+
opted_out_subscription_types: z.ZodObject<{
|
|
9906
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9907
|
+
has_more: z.ZodBoolean;
|
|
9908
|
+
total_count: z.ZodNumber;
|
|
9909
|
+
type: z.ZodLiteral<"list">;
|
|
9910
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9911
|
+
}, "strip", z.ZodTypeAny, {
|
|
9912
|
+
type: "list";
|
|
9913
|
+
total_count: number;
|
|
9914
|
+
data: unknown[];
|
|
9915
|
+
has_more: boolean;
|
|
9916
|
+
url?: string | undefined;
|
|
9917
|
+
}, {
|
|
9918
|
+
type: "list";
|
|
9919
|
+
total_count: number;
|
|
9920
|
+
data: unknown[];
|
|
9921
|
+
has_more: boolean;
|
|
9922
|
+
url?: string | undefined;
|
|
9923
|
+
}>;
|
|
9924
|
+
os: z.ZodNullable<z.ZodString>;
|
|
9925
|
+
owner_id: z.ZodNullable<z.ZodString>;
|
|
9926
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
9927
|
+
referrer: z.ZodNullable<z.ZodString>;
|
|
9928
|
+
role: z.ZodEnum<["lead", "user"]>;
|
|
9929
|
+
signed_up_at: z.ZodNullable<z.ZodString>;
|
|
9930
|
+
sms_consent: z.ZodBoolean;
|
|
9931
|
+
social_profiles: z.ZodObject<{
|
|
9932
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9933
|
+
type: z.ZodLiteral<"list">;
|
|
9934
|
+
}, "strip", z.ZodTypeAny, {
|
|
9935
|
+
type: "list";
|
|
9936
|
+
data: unknown[];
|
|
9937
|
+
}, {
|
|
9938
|
+
type: "list";
|
|
9939
|
+
data: unknown[];
|
|
9940
|
+
}>;
|
|
9941
|
+
tags: z.ZodObject<{
|
|
9942
|
+
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
9943
|
+
has_more: z.ZodBoolean;
|
|
9944
|
+
total_count: z.ZodNumber;
|
|
9945
|
+
type: z.ZodLiteral<"list">;
|
|
9946
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8344
9947
|
}, "strip", z.ZodTypeAny, {
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
9948
|
+
type: "list";
|
|
9949
|
+
total_count: number;
|
|
9950
|
+
data: unknown[];
|
|
9951
|
+
has_more: boolean;
|
|
9952
|
+
url?: string | undefined;
|
|
8348
9953
|
}, {
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
9954
|
+
type: "list";
|
|
9955
|
+
total_count: number;
|
|
9956
|
+
data: unknown[];
|
|
9957
|
+
has_more: boolean;
|
|
9958
|
+
url?: string | undefined;
|
|
8352
9959
|
}>;
|
|
8353
|
-
|
|
8354
|
-
|
|
9960
|
+
type: z.ZodLiteral<"contact">;
|
|
9961
|
+
unsubscribed_from_emails: z.ZodBoolean;
|
|
9962
|
+
unsubscribed_from_sms: z.ZodBoolean;
|
|
9963
|
+
updated_at: z.ZodString;
|
|
9964
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
9965
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
9966
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
9967
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
9968
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
9969
|
+
workspace_id: z.ZodString;
|
|
9970
|
+
}, "strip", z.ZodTypeAny, {
|
|
9971
|
+
type: "contact";
|
|
8355
9972
|
id: string;
|
|
9973
|
+
name: string;
|
|
8356
9974
|
email: string;
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
9975
|
+
external_id: string;
|
|
9976
|
+
created_at: string;
|
|
9977
|
+
updated_at: string;
|
|
9978
|
+
tags: {
|
|
9979
|
+
type: "list";
|
|
9980
|
+
total_count: number;
|
|
9981
|
+
data: unknown[];
|
|
9982
|
+
has_more: boolean;
|
|
9983
|
+
url?: string | undefined;
|
|
8365
9984
|
};
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
user_id: string;
|
|
8375
|
-
metadata: {
|
|
8376
|
-
title: string;
|
|
8377
|
-
moduleId: string;
|
|
8378
|
-
activityId?: string | undefined;
|
|
9985
|
+
custom_attributes: Record<string, unknown>;
|
|
9986
|
+
location: {
|
|
9987
|
+
type: "location";
|
|
9988
|
+
city: string | null;
|
|
9989
|
+
continent_code: string | null;
|
|
9990
|
+
country: string | null;
|
|
9991
|
+
country_code: string | null;
|
|
9992
|
+
region: string | null;
|
|
8379
9993
|
};
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
9994
|
+
android_app_name: string | null;
|
|
9995
|
+
android_app_version: string | null;
|
|
9996
|
+
android_device: string | null;
|
|
9997
|
+
android_last_seen_at: string | null;
|
|
9998
|
+
android_os_version: string | null;
|
|
9999
|
+
android_sdk_version: string | null;
|
|
10000
|
+
avatar: string | null;
|
|
10001
|
+
browser: string | null;
|
|
10002
|
+
browser_language: string | null;
|
|
10003
|
+
browser_version: string | null;
|
|
10004
|
+
companies: {
|
|
10005
|
+
type: "list";
|
|
10006
|
+
total_count: number;
|
|
10007
|
+
data: unknown[];
|
|
10008
|
+
has_more: boolean;
|
|
10009
|
+
url?: string | undefined;
|
|
10010
|
+
};
|
|
10011
|
+
has_hard_bounced: boolean;
|
|
10012
|
+
ios_app_name: string | null;
|
|
10013
|
+
ios_app_version: string | null;
|
|
10014
|
+
ios_device: string | null;
|
|
10015
|
+
ios_last_seen_at: string | null;
|
|
10016
|
+
ios_os_version: string | null;
|
|
10017
|
+
ios_sdk_version: string | null;
|
|
10018
|
+
language_override: string | null;
|
|
10019
|
+
last_contacted_at: string | null;
|
|
10020
|
+
last_email_clicked_at: string | null;
|
|
10021
|
+
last_email_opened_at: string | null;
|
|
10022
|
+
last_replied_at: string | null;
|
|
10023
|
+
last_seen_at: string | null;
|
|
10024
|
+
marked_email_as_spam: boolean;
|
|
10025
|
+
notes: {
|
|
10026
|
+
type: "list";
|
|
10027
|
+
total_count: number;
|
|
10028
|
+
data: unknown[];
|
|
10029
|
+
has_more: boolean;
|
|
10030
|
+
url?: string | undefined;
|
|
10031
|
+
};
|
|
10032
|
+
opted_in_subscription_types: {
|
|
10033
|
+
type: "list";
|
|
10034
|
+
total_count: number;
|
|
10035
|
+
data: unknown[];
|
|
10036
|
+
has_more: boolean;
|
|
10037
|
+
url?: string | undefined;
|
|
10038
|
+
};
|
|
10039
|
+
opted_out_subscription_types: {
|
|
10040
|
+
type: "list";
|
|
10041
|
+
total_count: number;
|
|
10042
|
+
data: unknown[];
|
|
10043
|
+
has_more: boolean;
|
|
10044
|
+
url?: string | undefined;
|
|
10045
|
+
};
|
|
10046
|
+
os: string | null;
|
|
10047
|
+
owner_id: string | null;
|
|
10048
|
+
phone: string | null;
|
|
10049
|
+
referrer: string | null;
|
|
10050
|
+
role: "user" | "lead";
|
|
10051
|
+
signed_up_at: string | null;
|
|
10052
|
+
sms_consent: boolean;
|
|
10053
|
+
social_profiles: {
|
|
10054
|
+
type: "list";
|
|
10055
|
+
data: unknown[];
|
|
10056
|
+
};
|
|
10057
|
+
unsubscribed_from_emails: boolean;
|
|
10058
|
+
unsubscribed_from_sms: boolean;
|
|
10059
|
+
utm_campaign: string | null;
|
|
10060
|
+
utm_content: string | null;
|
|
10061
|
+
utm_medium: string | null;
|
|
10062
|
+
utm_source: string | null;
|
|
10063
|
+
utm_term: string | null;
|
|
10064
|
+
workspace_id: string;
|
|
8403
10065
|
}, {
|
|
8404
|
-
type: "
|
|
8405
|
-
id: string;
|
|
8406
|
-
email: string;
|
|
8407
|
-
created_at: number;
|
|
8408
|
-
event_name: "invoice_paid";
|
|
8409
|
-
intercom_user_id: string;
|
|
8410
|
-
user_id: string;
|
|
8411
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
8412
|
-
metadata?: Record<string, unknown> | undefined;
|
|
8413
|
-
}>]>;
|
|
8414
|
-
tag: z.ZodOptional<z.ZodObject<{
|
|
8415
|
-
applied_at: z.ZodNumber;
|
|
8416
|
-
applied_by: z.ZodObject<{
|
|
8417
|
-
id: z.ZodString;
|
|
8418
|
-
type: z.ZodLiteral<"admin">;
|
|
8419
|
-
}, "strip", z.ZodTypeAny, {
|
|
8420
|
-
type: "admin";
|
|
8421
|
-
id: string;
|
|
8422
|
-
}, {
|
|
8423
|
-
type: "admin";
|
|
8424
|
-
id: string;
|
|
8425
|
-
}>;
|
|
8426
|
-
id: z.ZodString;
|
|
8427
|
-
name: z.ZodString;
|
|
8428
|
-
type: z.ZodLiteral<"tag">;
|
|
8429
|
-
}, "strip", z.ZodTypeAny, {
|
|
8430
|
-
type: "tag";
|
|
10066
|
+
type: "contact";
|
|
8431
10067
|
id: string;
|
|
8432
10068
|
name: string;
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
10069
|
+
email: string;
|
|
10070
|
+
external_id: string;
|
|
10071
|
+
created_at: string;
|
|
10072
|
+
updated_at: string;
|
|
10073
|
+
tags: {
|
|
10074
|
+
type: "list";
|
|
10075
|
+
total_count: number;
|
|
10076
|
+
data: unknown[];
|
|
10077
|
+
has_more: boolean;
|
|
10078
|
+
url?: string | undefined;
|
|
10079
|
+
};
|
|
10080
|
+
custom_attributes: Record<string, unknown>;
|
|
10081
|
+
location: {
|
|
10082
|
+
type: "location";
|
|
10083
|
+
city: string | null;
|
|
10084
|
+
continent_code: string | null;
|
|
10085
|
+
country: string | null;
|
|
10086
|
+
country_code: string | null;
|
|
10087
|
+
region: string | null;
|
|
10088
|
+
};
|
|
10089
|
+
android_app_name: string | null;
|
|
10090
|
+
android_app_version: string | null;
|
|
10091
|
+
android_device: string | null;
|
|
10092
|
+
android_last_seen_at: string | null;
|
|
10093
|
+
android_os_version: string | null;
|
|
10094
|
+
android_sdk_version: string | null;
|
|
10095
|
+
avatar: string | null;
|
|
10096
|
+
browser: string | null;
|
|
10097
|
+
browser_language: string | null;
|
|
10098
|
+
browser_version: string | null;
|
|
10099
|
+
companies: {
|
|
10100
|
+
type: "list";
|
|
10101
|
+
total_count: number;
|
|
10102
|
+
data: unknown[];
|
|
10103
|
+
has_more: boolean;
|
|
10104
|
+
url?: string | undefined;
|
|
10105
|
+
};
|
|
10106
|
+
has_hard_bounced: boolean;
|
|
10107
|
+
ios_app_name: string | null;
|
|
10108
|
+
ios_app_version: string | null;
|
|
10109
|
+
ios_device: string | null;
|
|
10110
|
+
ios_last_seen_at: string | null;
|
|
10111
|
+
ios_os_version: string | null;
|
|
10112
|
+
ios_sdk_version: string | null;
|
|
10113
|
+
language_override: string | null;
|
|
10114
|
+
last_contacted_at: string | null;
|
|
10115
|
+
last_email_clicked_at: string | null;
|
|
10116
|
+
last_email_opened_at: string | null;
|
|
10117
|
+
last_replied_at: string | null;
|
|
10118
|
+
last_seen_at: string | null;
|
|
10119
|
+
marked_email_as_spam: boolean;
|
|
10120
|
+
notes: {
|
|
10121
|
+
type: "list";
|
|
10122
|
+
total_count: number;
|
|
10123
|
+
data: unknown[];
|
|
10124
|
+
has_more: boolean;
|
|
10125
|
+
url?: string | undefined;
|
|
8437
10126
|
};
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
type: "admin";
|
|
8445
|
-
id: string;
|
|
10127
|
+
opted_in_subscription_types: {
|
|
10128
|
+
type: "list";
|
|
10129
|
+
total_count: number;
|
|
10130
|
+
data: unknown[];
|
|
10131
|
+
has_more: boolean;
|
|
10132
|
+
url?: string | undefined;
|
|
8446
10133
|
};
|
|
8447
|
-
|
|
10134
|
+
opted_out_subscription_types: {
|
|
10135
|
+
type: "list";
|
|
10136
|
+
total_count: number;
|
|
10137
|
+
data: unknown[];
|
|
10138
|
+
has_more: boolean;
|
|
10139
|
+
url?: string | undefined;
|
|
10140
|
+
};
|
|
10141
|
+
os: string | null;
|
|
10142
|
+
owner_id: string | null;
|
|
10143
|
+
phone: string | null;
|
|
10144
|
+
referrer: string | null;
|
|
10145
|
+
role: "user" | "lead";
|
|
10146
|
+
signed_up_at: string | null;
|
|
10147
|
+
sms_consent: boolean;
|
|
10148
|
+
social_profiles: {
|
|
10149
|
+
type: "list";
|
|
10150
|
+
data: unknown[];
|
|
10151
|
+
};
|
|
10152
|
+
unsubscribed_from_emails: boolean;
|
|
10153
|
+
unsubscribed_from_sms: boolean;
|
|
10154
|
+
utm_campaign: string | null;
|
|
10155
|
+
utm_content: string | null;
|
|
10156
|
+
utm_medium: string | null;
|
|
10157
|
+
utm_source: string | null;
|
|
10158
|
+
utm_term: string | null;
|
|
10159
|
+
workspace_id: string;
|
|
10160
|
+
}>;
|
|
8448
10161
|
type: z.ZodLiteral<"notification_event_data">;
|
|
8449
10162
|
}, "strip", z.ZodTypeAny, {
|
|
8450
10163
|
type: "notification_event_data";
|
|
8451
10164
|
item: {
|
|
8452
|
-
type: "
|
|
10165
|
+
type: "contact";
|
|
8453
10166
|
id: string;
|
|
10167
|
+
name: string;
|
|
8454
10168
|
email: string;
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
10169
|
+
external_id: string;
|
|
10170
|
+
created_at: string;
|
|
10171
|
+
updated_at: string;
|
|
10172
|
+
tags: {
|
|
10173
|
+
type: "list";
|
|
10174
|
+
total_count: number;
|
|
10175
|
+
data: unknown[];
|
|
10176
|
+
has_more: boolean;
|
|
10177
|
+
url?: string | undefined;
|
|
8463
10178
|
};
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
user_id: string;
|
|
8473
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
8474
|
-
metadata?: Record<string, unknown> | undefined;
|
|
8475
|
-
};
|
|
8476
|
-
tag?: {
|
|
8477
|
-
type: "tag";
|
|
8478
|
-
id: string;
|
|
8479
|
-
name: string;
|
|
8480
|
-
applied_at: number;
|
|
8481
|
-
applied_by: {
|
|
8482
|
-
type: "admin";
|
|
8483
|
-
id: string;
|
|
10179
|
+
custom_attributes: Record<string, unknown>;
|
|
10180
|
+
location: {
|
|
10181
|
+
type: "location";
|
|
10182
|
+
city: string | null;
|
|
10183
|
+
continent_code: string | null;
|
|
10184
|
+
country: string | null;
|
|
10185
|
+
country_code: string | null;
|
|
10186
|
+
region: string | null;
|
|
8484
10187
|
};
|
|
8485
|
-
|
|
10188
|
+
android_app_name: string | null;
|
|
10189
|
+
android_app_version: string | null;
|
|
10190
|
+
android_device: string | null;
|
|
10191
|
+
android_last_seen_at: string | null;
|
|
10192
|
+
android_os_version: string | null;
|
|
10193
|
+
android_sdk_version: string | null;
|
|
10194
|
+
avatar: string | null;
|
|
10195
|
+
browser: string | null;
|
|
10196
|
+
browser_language: string | null;
|
|
10197
|
+
browser_version: string | null;
|
|
10198
|
+
companies: {
|
|
10199
|
+
type: "list";
|
|
10200
|
+
total_count: number;
|
|
10201
|
+
data: unknown[];
|
|
10202
|
+
has_more: boolean;
|
|
10203
|
+
url?: string | undefined;
|
|
10204
|
+
};
|
|
10205
|
+
has_hard_bounced: boolean;
|
|
10206
|
+
ios_app_name: string | null;
|
|
10207
|
+
ios_app_version: string | null;
|
|
10208
|
+
ios_device: string | null;
|
|
10209
|
+
ios_last_seen_at: string | null;
|
|
10210
|
+
ios_os_version: string | null;
|
|
10211
|
+
ios_sdk_version: string | null;
|
|
10212
|
+
language_override: string | null;
|
|
10213
|
+
last_contacted_at: string | null;
|
|
10214
|
+
last_email_clicked_at: string | null;
|
|
10215
|
+
last_email_opened_at: string | null;
|
|
10216
|
+
last_replied_at: string | null;
|
|
10217
|
+
last_seen_at: string | null;
|
|
10218
|
+
marked_email_as_spam: boolean;
|
|
10219
|
+
notes: {
|
|
10220
|
+
type: "list";
|
|
10221
|
+
total_count: number;
|
|
10222
|
+
data: unknown[];
|
|
10223
|
+
has_more: boolean;
|
|
10224
|
+
url?: string | undefined;
|
|
10225
|
+
};
|
|
10226
|
+
opted_in_subscription_types: {
|
|
10227
|
+
type: "list";
|
|
10228
|
+
total_count: number;
|
|
10229
|
+
data: unknown[];
|
|
10230
|
+
has_more: boolean;
|
|
10231
|
+
url?: string | undefined;
|
|
10232
|
+
};
|
|
10233
|
+
opted_out_subscription_types: {
|
|
10234
|
+
type: "list";
|
|
10235
|
+
total_count: number;
|
|
10236
|
+
data: unknown[];
|
|
10237
|
+
has_more: boolean;
|
|
10238
|
+
url?: string | undefined;
|
|
10239
|
+
};
|
|
10240
|
+
os: string | null;
|
|
10241
|
+
owner_id: string | null;
|
|
10242
|
+
phone: string | null;
|
|
10243
|
+
referrer: string | null;
|
|
10244
|
+
role: "user" | "lead";
|
|
10245
|
+
signed_up_at: string | null;
|
|
10246
|
+
sms_consent: boolean;
|
|
10247
|
+
social_profiles: {
|
|
10248
|
+
type: "list";
|
|
10249
|
+
data: unknown[];
|
|
10250
|
+
};
|
|
10251
|
+
unsubscribed_from_emails: boolean;
|
|
10252
|
+
unsubscribed_from_sms: boolean;
|
|
10253
|
+
utm_campaign: string | null;
|
|
10254
|
+
utm_content: string | null;
|
|
10255
|
+
utm_medium: string | null;
|
|
10256
|
+
utm_source: string | null;
|
|
10257
|
+
utm_term: string | null;
|
|
10258
|
+
workspace_id: string;
|
|
10259
|
+
};
|
|
8486
10260
|
}, {
|
|
8487
10261
|
type: "notification_event_data";
|
|
8488
10262
|
item: {
|
|
8489
|
-
type: "
|
|
10263
|
+
type: "contact";
|
|
8490
10264
|
id: string;
|
|
10265
|
+
name: string;
|
|
8491
10266
|
email: string;
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
10267
|
+
external_id: string;
|
|
10268
|
+
created_at: string;
|
|
10269
|
+
updated_at: string;
|
|
10270
|
+
tags: {
|
|
10271
|
+
type: "list";
|
|
10272
|
+
total_count: number;
|
|
10273
|
+
data: unknown[];
|
|
10274
|
+
has_more: boolean;
|
|
10275
|
+
url?: string | undefined;
|
|
10276
|
+
};
|
|
10277
|
+
custom_attributes: Record<string, unknown>;
|
|
10278
|
+
location: {
|
|
10279
|
+
type: "location";
|
|
10280
|
+
city: string | null;
|
|
10281
|
+
continent_code: string | null;
|
|
10282
|
+
country: string | null;
|
|
10283
|
+
country_code: string | null;
|
|
10284
|
+
region: string | null;
|
|
10285
|
+
};
|
|
10286
|
+
android_app_name: string | null;
|
|
10287
|
+
android_app_version: string | null;
|
|
10288
|
+
android_device: string | null;
|
|
10289
|
+
android_last_seen_at: string | null;
|
|
10290
|
+
android_os_version: string | null;
|
|
10291
|
+
android_sdk_version: string | null;
|
|
10292
|
+
avatar: string | null;
|
|
10293
|
+
browser: string | null;
|
|
10294
|
+
browser_language: string | null;
|
|
10295
|
+
browser_version: string | null;
|
|
10296
|
+
companies: {
|
|
10297
|
+
type: "list";
|
|
10298
|
+
total_count: number;
|
|
10299
|
+
data: unknown[];
|
|
10300
|
+
has_more: boolean;
|
|
10301
|
+
url?: string | undefined;
|
|
10302
|
+
};
|
|
10303
|
+
has_hard_bounced: boolean;
|
|
10304
|
+
ios_app_name: string | null;
|
|
10305
|
+
ios_app_version: string | null;
|
|
10306
|
+
ios_device: string | null;
|
|
10307
|
+
ios_last_seen_at: string | null;
|
|
10308
|
+
ios_os_version: string | null;
|
|
10309
|
+
ios_sdk_version: string | null;
|
|
10310
|
+
language_override: string | null;
|
|
10311
|
+
last_contacted_at: string | null;
|
|
10312
|
+
last_email_clicked_at: string | null;
|
|
10313
|
+
last_email_opened_at: string | null;
|
|
10314
|
+
last_replied_at: string | null;
|
|
10315
|
+
last_seen_at: string | null;
|
|
10316
|
+
marked_email_as_spam: boolean;
|
|
10317
|
+
notes: {
|
|
10318
|
+
type: "list";
|
|
10319
|
+
total_count: number;
|
|
10320
|
+
data: unknown[];
|
|
10321
|
+
has_more: boolean;
|
|
10322
|
+
url?: string | undefined;
|
|
10323
|
+
};
|
|
10324
|
+
opted_in_subscription_types: {
|
|
10325
|
+
type: "list";
|
|
10326
|
+
total_count: number;
|
|
10327
|
+
data: unknown[];
|
|
10328
|
+
has_more: boolean;
|
|
10329
|
+
url?: string | undefined;
|
|
10330
|
+
};
|
|
10331
|
+
opted_out_subscription_types: {
|
|
10332
|
+
type: "list";
|
|
10333
|
+
total_count: number;
|
|
10334
|
+
data: unknown[];
|
|
10335
|
+
has_more: boolean;
|
|
10336
|
+
url?: string | undefined;
|
|
10337
|
+
};
|
|
10338
|
+
os: string | null;
|
|
10339
|
+
owner_id: string | null;
|
|
10340
|
+
phone: string | null;
|
|
10341
|
+
referrer: string | null;
|
|
10342
|
+
role: "user" | "lead";
|
|
10343
|
+
signed_up_at: string | null;
|
|
10344
|
+
sms_consent: boolean;
|
|
10345
|
+
social_profiles: {
|
|
10346
|
+
type: "list";
|
|
10347
|
+
data: unknown[];
|
|
8500
10348
|
};
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
user_id: string;
|
|
8510
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
8511
|
-
metadata?: Record<string, unknown> | undefined;
|
|
10349
|
+
unsubscribed_from_emails: boolean;
|
|
10350
|
+
unsubscribed_from_sms: boolean;
|
|
10351
|
+
utm_campaign: string | null;
|
|
10352
|
+
utm_content: string | null;
|
|
10353
|
+
utm_medium: string | null;
|
|
10354
|
+
utm_source: string | null;
|
|
10355
|
+
utm_term: string | null;
|
|
10356
|
+
workspace_id: string;
|
|
8512
10357
|
};
|
|
8513
|
-
tag?: {
|
|
8514
|
-
type: "tag";
|
|
8515
|
-
id: string;
|
|
8516
|
-
name: string;
|
|
8517
|
-
applied_at: number;
|
|
8518
|
-
applied_by: {
|
|
8519
|
-
type: "admin";
|
|
8520
|
-
id: string;
|
|
8521
|
-
};
|
|
8522
|
-
} | undefined;
|
|
8523
10358
|
}>, z.ZodObject<{
|
|
8524
10359
|
item: z.ZodObject<{
|
|
8525
10360
|
android_app_name: z.ZodNullable<z.ZodString>;
|
|
@@ -8887,6 +10722,40 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8887
10722
|
utm_term: string | null;
|
|
8888
10723
|
workspace_id: string;
|
|
8889
10724
|
}>;
|
|
10725
|
+
tag: z.ZodOptional<z.ZodObject<{
|
|
10726
|
+
applied_at: z.ZodNumber;
|
|
10727
|
+
applied_by: z.ZodObject<{
|
|
10728
|
+
id: z.ZodString;
|
|
10729
|
+
type: z.ZodLiteral<"admin">;
|
|
10730
|
+
}, "strip", z.ZodTypeAny, {
|
|
10731
|
+
type: "admin";
|
|
10732
|
+
id: string;
|
|
10733
|
+
}, {
|
|
10734
|
+
type: "admin";
|
|
10735
|
+
id: string;
|
|
10736
|
+
}>;
|
|
10737
|
+
id: z.ZodString;
|
|
10738
|
+
name: z.ZodString;
|
|
10739
|
+
type: z.ZodLiteral<"tag">;
|
|
10740
|
+
}, "strip", z.ZodTypeAny, {
|
|
10741
|
+
type: "tag";
|
|
10742
|
+
id: string;
|
|
10743
|
+
name: string;
|
|
10744
|
+
applied_at: number;
|
|
10745
|
+
applied_by: {
|
|
10746
|
+
type: "admin";
|
|
10747
|
+
id: string;
|
|
10748
|
+
};
|
|
10749
|
+
}, {
|
|
10750
|
+
type: "tag";
|
|
10751
|
+
id: string;
|
|
10752
|
+
name: string;
|
|
10753
|
+
applied_at: number;
|
|
10754
|
+
applied_by: {
|
|
10755
|
+
type: "admin";
|
|
10756
|
+
id: string;
|
|
10757
|
+
};
|
|
10758
|
+
}>>;
|
|
8890
10759
|
type: z.ZodLiteral<"notification_event_data">;
|
|
8891
10760
|
}, "strip", z.ZodTypeAny, {
|
|
8892
10761
|
type: "notification_event_data";
|
|
@@ -8986,6 +10855,16 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8986
10855
|
utm_term: string | null;
|
|
8987
10856
|
workspace_id: string;
|
|
8988
10857
|
};
|
|
10858
|
+
tag?: {
|
|
10859
|
+
type: "tag";
|
|
10860
|
+
id: string;
|
|
10861
|
+
name: string;
|
|
10862
|
+
applied_at: number;
|
|
10863
|
+
applied_by: {
|
|
10864
|
+
type: "admin";
|
|
10865
|
+
id: string;
|
|
10866
|
+
};
|
|
10867
|
+
} | undefined;
|
|
8989
10868
|
}, {
|
|
8990
10869
|
type: "notification_event_data";
|
|
8991
10870
|
item: {
|
|
@@ -9084,6 +10963,16 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9084
10963
|
utm_term: string | null;
|
|
9085
10964
|
workspace_id: string;
|
|
9086
10965
|
};
|
|
10966
|
+
tag?: {
|
|
10967
|
+
type: "tag";
|
|
10968
|
+
id: string;
|
|
10969
|
+
name: string;
|
|
10970
|
+
applied_at: number;
|
|
10971
|
+
applied_by: {
|
|
10972
|
+
type: "admin";
|
|
10973
|
+
id: string;
|
|
10974
|
+
};
|
|
10975
|
+
} | undefined;
|
|
9087
10976
|
}>, z.ZodObject<{
|
|
9088
10977
|
item: z.ZodObject<{
|
|
9089
10978
|
admin_assignee_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -10040,7 +11929,7 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10040
11929
|
id: z.ZodString;
|
|
10041
11930
|
links: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10042
11931
|
self: z.ZodNullable<z.ZodUnknown>;
|
|
10043
|
-
topic: z.ZodEnum<["event.created", "conversation.user.created", "conversation.user.replied", "contact.lead.added_email"]>;
|
|
11932
|
+
topic: z.ZodEnum<["event.created", "conversation.user.created", "conversation.user.replied", "contact.lead.added_email", "conversation_part.tag.created", "contact.lead.tag.created", "contact.lead.tag.deleted"]>;
|
|
10044
11933
|
type: z.ZodLiteral<"notification_event">;
|
|
10045
11934
|
}, "strip", z.ZodTypeAny, {
|
|
10046
11935
|
type: "notification_event";
|
|
@@ -10073,6 +11962,104 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10073
11962
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
10074
11963
|
metadata?: Record<string, unknown> | undefined;
|
|
10075
11964
|
};
|
|
11965
|
+
} | {
|
|
11966
|
+
type: "notification_event_data";
|
|
11967
|
+
item: {
|
|
11968
|
+
type: "contact";
|
|
11969
|
+
id: string;
|
|
11970
|
+
name: string;
|
|
11971
|
+
email: string;
|
|
11972
|
+
external_id: string;
|
|
11973
|
+
created_at: string;
|
|
11974
|
+
updated_at: string;
|
|
11975
|
+
tags: {
|
|
11976
|
+
type: "list";
|
|
11977
|
+
total_count: number;
|
|
11978
|
+
data: unknown[];
|
|
11979
|
+
has_more: boolean;
|
|
11980
|
+
url?: string | undefined;
|
|
11981
|
+
};
|
|
11982
|
+
custom_attributes: Record<string, unknown>;
|
|
11983
|
+
location: {
|
|
11984
|
+
type: "location";
|
|
11985
|
+
city: string | null;
|
|
11986
|
+
continent_code: string | null;
|
|
11987
|
+
country: string | null;
|
|
11988
|
+
country_code: string | null;
|
|
11989
|
+
region: string | null;
|
|
11990
|
+
};
|
|
11991
|
+
android_app_name: string | null;
|
|
11992
|
+
android_app_version: string | null;
|
|
11993
|
+
android_device: string | null;
|
|
11994
|
+
android_last_seen_at: string | null;
|
|
11995
|
+
android_os_version: string | null;
|
|
11996
|
+
android_sdk_version: string | null;
|
|
11997
|
+
avatar: string | null;
|
|
11998
|
+
browser: string | null;
|
|
11999
|
+
browser_language: string | null;
|
|
12000
|
+
browser_version: string | null;
|
|
12001
|
+
companies: {
|
|
12002
|
+
type: "list";
|
|
12003
|
+
total_count: number;
|
|
12004
|
+
data: unknown[];
|
|
12005
|
+
has_more: boolean;
|
|
12006
|
+
url?: string | undefined;
|
|
12007
|
+
};
|
|
12008
|
+
has_hard_bounced: boolean;
|
|
12009
|
+
ios_app_name: string | null;
|
|
12010
|
+
ios_app_version: string | null;
|
|
12011
|
+
ios_device: string | null;
|
|
12012
|
+
ios_last_seen_at: string | null;
|
|
12013
|
+
ios_os_version: string | null;
|
|
12014
|
+
ios_sdk_version: string | null;
|
|
12015
|
+
language_override: string | null;
|
|
12016
|
+
last_contacted_at: string | null;
|
|
12017
|
+
last_email_clicked_at: string | null;
|
|
12018
|
+
last_email_opened_at: string | null;
|
|
12019
|
+
last_replied_at: string | null;
|
|
12020
|
+
last_seen_at: string | null;
|
|
12021
|
+
marked_email_as_spam: boolean;
|
|
12022
|
+
notes: {
|
|
12023
|
+
type: "list";
|
|
12024
|
+
total_count: number;
|
|
12025
|
+
data: unknown[];
|
|
12026
|
+
has_more: boolean;
|
|
12027
|
+
url?: string | undefined;
|
|
12028
|
+
};
|
|
12029
|
+
opted_in_subscription_types: {
|
|
12030
|
+
type: "list";
|
|
12031
|
+
total_count: number;
|
|
12032
|
+
data: unknown[];
|
|
12033
|
+
has_more: boolean;
|
|
12034
|
+
url?: string | undefined;
|
|
12035
|
+
};
|
|
12036
|
+
opted_out_subscription_types: {
|
|
12037
|
+
type: "list";
|
|
12038
|
+
total_count: number;
|
|
12039
|
+
data: unknown[];
|
|
12040
|
+
has_more: boolean;
|
|
12041
|
+
url?: string | undefined;
|
|
12042
|
+
};
|
|
12043
|
+
os: string | null;
|
|
12044
|
+
owner_id: string | null;
|
|
12045
|
+
phone: string | null;
|
|
12046
|
+
referrer: string | null;
|
|
12047
|
+
role: "user" | "lead";
|
|
12048
|
+
signed_up_at: string | null;
|
|
12049
|
+
sms_consent: boolean;
|
|
12050
|
+
social_profiles: {
|
|
12051
|
+
type: "list";
|
|
12052
|
+
data: unknown[];
|
|
12053
|
+
};
|
|
12054
|
+
unsubscribed_from_emails: boolean;
|
|
12055
|
+
unsubscribed_from_sms: boolean;
|
|
12056
|
+
utm_campaign: string | null;
|
|
12057
|
+
utm_content: string | null;
|
|
12058
|
+
utm_medium: string | null;
|
|
12059
|
+
utm_source: string | null;
|
|
12060
|
+
utm_term: string | null;
|
|
12061
|
+
workspace_id: string;
|
|
12062
|
+
};
|
|
10076
12063
|
tag?: {
|
|
10077
12064
|
type: "tag";
|
|
10078
12065
|
id: string;
|
|
@@ -10320,7 +12307,7 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10320
12307
|
delivery_status: "pending" | "retry";
|
|
10321
12308
|
first_sent_at: number;
|
|
10322
12309
|
links: Record<string, unknown>;
|
|
10323
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
12310
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
10324
12311
|
self?: unknown;
|
|
10325
12312
|
}, {
|
|
10326
12313
|
type: "notification_event";
|
|
@@ -10341,17 +12328,115 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10341
12328
|
moduleId: string;
|
|
10342
12329
|
activityId?: string | undefined;
|
|
10343
12330
|
};
|
|
10344
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
10345
|
-
} | {
|
|
10346
|
-
type: "event";
|
|
10347
|
-
id: string;
|
|
10348
|
-
email: string;
|
|
10349
|
-
created_at: number;
|
|
10350
|
-
event_name: "invoice_paid";
|
|
10351
|
-
intercom_user_id: string;
|
|
10352
|
-
user_id: string;
|
|
10353
|
-
ext_metadata?: Record<string, unknown> | undefined;
|
|
10354
|
-
metadata?: Record<string, unknown> | undefined;
|
|
12331
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
12332
|
+
} | {
|
|
12333
|
+
type: "event";
|
|
12334
|
+
id: string;
|
|
12335
|
+
email: string;
|
|
12336
|
+
created_at: number;
|
|
12337
|
+
event_name: "invoice_paid";
|
|
12338
|
+
intercom_user_id: string;
|
|
12339
|
+
user_id: string;
|
|
12340
|
+
ext_metadata?: Record<string, unknown> | undefined;
|
|
12341
|
+
metadata?: Record<string, unknown> | undefined;
|
|
12342
|
+
};
|
|
12343
|
+
} | {
|
|
12344
|
+
type: "notification_event_data";
|
|
12345
|
+
item: {
|
|
12346
|
+
type: "contact";
|
|
12347
|
+
id: string;
|
|
12348
|
+
name: string;
|
|
12349
|
+
email: string;
|
|
12350
|
+
external_id: string;
|
|
12351
|
+
created_at: string;
|
|
12352
|
+
updated_at: string;
|
|
12353
|
+
tags: {
|
|
12354
|
+
type: "list";
|
|
12355
|
+
total_count: number;
|
|
12356
|
+
data: unknown[];
|
|
12357
|
+
has_more: boolean;
|
|
12358
|
+
url?: string | undefined;
|
|
12359
|
+
};
|
|
12360
|
+
custom_attributes: Record<string, unknown>;
|
|
12361
|
+
location: {
|
|
12362
|
+
type: "location";
|
|
12363
|
+
city: string | null;
|
|
12364
|
+
continent_code: string | null;
|
|
12365
|
+
country: string | null;
|
|
12366
|
+
country_code: string | null;
|
|
12367
|
+
region: string | null;
|
|
12368
|
+
};
|
|
12369
|
+
android_app_name: string | null;
|
|
12370
|
+
android_app_version: string | null;
|
|
12371
|
+
android_device: string | null;
|
|
12372
|
+
android_last_seen_at: string | null;
|
|
12373
|
+
android_os_version: string | null;
|
|
12374
|
+
android_sdk_version: string | null;
|
|
12375
|
+
avatar: string | null;
|
|
12376
|
+
browser: string | null;
|
|
12377
|
+
browser_language: string | null;
|
|
12378
|
+
browser_version: string | null;
|
|
12379
|
+
companies: {
|
|
12380
|
+
type: "list";
|
|
12381
|
+
total_count: number;
|
|
12382
|
+
data: unknown[];
|
|
12383
|
+
has_more: boolean;
|
|
12384
|
+
url?: string | undefined;
|
|
12385
|
+
};
|
|
12386
|
+
has_hard_bounced: boolean;
|
|
12387
|
+
ios_app_name: string | null;
|
|
12388
|
+
ios_app_version: string | null;
|
|
12389
|
+
ios_device: string | null;
|
|
12390
|
+
ios_last_seen_at: string | null;
|
|
12391
|
+
ios_os_version: string | null;
|
|
12392
|
+
ios_sdk_version: string | null;
|
|
12393
|
+
language_override: string | null;
|
|
12394
|
+
last_contacted_at: string | null;
|
|
12395
|
+
last_email_clicked_at: string | null;
|
|
12396
|
+
last_email_opened_at: string | null;
|
|
12397
|
+
last_replied_at: string | null;
|
|
12398
|
+
last_seen_at: string | null;
|
|
12399
|
+
marked_email_as_spam: boolean;
|
|
12400
|
+
notes: {
|
|
12401
|
+
type: "list";
|
|
12402
|
+
total_count: number;
|
|
12403
|
+
data: unknown[];
|
|
12404
|
+
has_more: boolean;
|
|
12405
|
+
url?: string | undefined;
|
|
12406
|
+
};
|
|
12407
|
+
opted_in_subscription_types: {
|
|
12408
|
+
type: "list";
|
|
12409
|
+
total_count: number;
|
|
12410
|
+
data: unknown[];
|
|
12411
|
+
has_more: boolean;
|
|
12412
|
+
url?: string | undefined;
|
|
12413
|
+
};
|
|
12414
|
+
opted_out_subscription_types: {
|
|
12415
|
+
type: "list";
|
|
12416
|
+
total_count: number;
|
|
12417
|
+
data: unknown[];
|
|
12418
|
+
has_more: boolean;
|
|
12419
|
+
url?: string | undefined;
|
|
12420
|
+
};
|
|
12421
|
+
os: string | null;
|
|
12422
|
+
owner_id: string | null;
|
|
12423
|
+
phone: string | null;
|
|
12424
|
+
referrer: string | null;
|
|
12425
|
+
role: "user" | "lead";
|
|
12426
|
+
signed_up_at: string | null;
|
|
12427
|
+
sms_consent: boolean;
|
|
12428
|
+
social_profiles: {
|
|
12429
|
+
type: "list";
|
|
12430
|
+
data: unknown[];
|
|
12431
|
+
};
|
|
12432
|
+
unsubscribed_from_emails: boolean;
|
|
12433
|
+
unsubscribed_from_sms: boolean;
|
|
12434
|
+
utm_campaign: string | null;
|
|
12435
|
+
utm_content: string | null;
|
|
12436
|
+
utm_medium: string | null;
|
|
12437
|
+
utm_source: string | null;
|
|
12438
|
+
utm_term: string | null;
|
|
12439
|
+
workspace_id: string;
|
|
10355
12440
|
};
|
|
10356
12441
|
tag?: {
|
|
10357
12442
|
type: "tag";
|
|
@@ -10600,7 +12685,7 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10600
12685
|
delivery_status: "pending" | "retry";
|
|
10601
12686
|
first_sent_at: number;
|
|
10602
12687
|
links: Record<string, unknown>;
|
|
10603
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
12688
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
10604
12689
|
self?: unknown;
|
|
10605
12690
|
}>;
|
|
10606
12691
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -10635,6 +12720,104 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10635
12720
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
10636
12721
|
metadata?: Record<string, unknown> | undefined;
|
|
10637
12722
|
};
|
|
12723
|
+
} | {
|
|
12724
|
+
type: "notification_event_data";
|
|
12725
|
+
item: {
|
|
12726
|
+
type: "contact";
|
|
12727
|
+
id: string;
|
|
12728
|
+
name: string;
|
|
12729
|
+
email: string;
|
|
12730
|
+
external_id: string;
|
|
12731
|
+
created_at: string;
|
|
12732
|
+
updated_at: string;
|
|
12733
|
+
tags: {
|
|
12734
|
+
type: "list";
|
|
12735
|
+
total_count: number;
|
|
12736
|
+
data: unknown[];
|
|
12737
|
+
has_more: boolean;
|
|
12738
|
+
url?: string | undefined;
|
|
12739
|
+
};
|
|
12740
|
+
custom_attributes: Record<string, unknown>;
|
|
12741
|
+
location: {
|
|
12742
|
+
type: "location";
|
|
12743
|
+
city: string | null;
|
|
12744
|
+
continent_code: string | null;
|
|
12745
|
+
country: string | null;
|
|
12746
|
+
country_code: string | null;
|
|
12747
|
+
region: string | null;
|
|
12748
|
+
};
|
|
12749
|
+
android_app_name: string | null;
|
|
12750
|
+
android_app_version: string | null;
|
|
12751
|
+
android_device: string | null;
|
|
12752
|
+
android_last_seen_at: string | null;
|
|
12753
|
+
android_os_version: string | null;
|
|
12754
|
+
android_sdk_version: string | null;
|
|
12755
|
+
avatar: string | null;
|
|
12756
|
+
browser: string | null;
|
|
12757
|
+
browser_language: string | null;
|
|
12758
|
+
browser_version: string | null;
|
|
12759
|
+
companies: {
|
|
12760
|
+
type: "list";
|
|
12761
|
+
total_count: number;
|
|
12762
|
+
data: unknown[];
|
|
12763
|
+
has_more: boolean;
|
|
12764
|
+
url?: string | undefined;
|
|
12765
|
+
};
|
|
12766
|
+
has_hard_bounced: boolean;
|
|
12767
|
+
ios_app_name: string | null;
|
|
12768
|
+
ios_app_version: string | null;
|
|
12769
|
+
ios_device: string | null;
|
|
12770
|
+
ios_last_seen_at: string | null;
|
|
12771
|
+
ios_os_version: string | null;
|
|
12772
|
+
ios_sdk_version: string | null;
|
|
12773
|
+
language_override: string | null;
|
|
12774
|
+
last_contacted_at: string | null;
|
|
12775
|
+
last_email_clicked_at: string | null;
|
|
12776
|
+
last_email_opened_at: string | null;
|
|
12777
|
+
last_replied_at: string | null;
|
|
12778
|
+
last_seen_at: string | null;
|
|
12779
|
+
marked_email_as_spam: boolean;
|
|
12780
|
+
notes: {
|
|
12781
|
+
type: "list";
|
|
12782
|
+
total_count: number;
|
|
12783
|
+
data: unknown[];
|
|
12784
|
+
has_more: boolean;
|
|
12785
|
+
url?: string | undefined;
|
|
12786
|
+
};
|
|
12787
|
+
opted_in_subscription_types: {
|
|
12788
|
+
type: "list";
|
|
12789
|
+
total_count: number;
|
|
12790
|
+
data: unknown[];
|
|
12791
|
+
has_more: boolean;
|
|
12792
|
+
url?: string | undefined;
|
|
12793
|
+
};
|
|
12794
|
+
opted_out_subscription_types: {
|
|
12795
|
+
type: "list";
|
|
12796
|
+
total_count: number;
|
|
12797
|
+
data: unknown[];
|
|
12798
|
+
has_more: boolean;
|
|
12799
|
+
url?: string | undefined;
|
|
12800
|
+
};
|
|
12801
|
+
os: string | null;
|
|
12802
|
+
owner_id: string | null;
|
|
12803
|
+
phone: string | null;
|
|
12804
|
+
referrer: string | null;
|
|
12805
|
+
role: "user" | "lead";
|
|
12806
|
+
signed_up_at: string | null;
|
|
12807
|
+
sms_consent: boolean;
|
|
12808
|
+
social_profiles: {
|
|
12809
|
+
type: "list";
|
|
12810
|
+
data: unknown[];
|
|
12811
|
+
};
|
|
12812
|
+
unsubscribed_from_emails: boolean;
|
|
12813
|
+
unsubscribed_from_sms: boolean;
|
|
12814
|
+
utm_campaign: string | null;
|
|
12815
|
+
utm_content: string | null;
|
|
12816
|
+
utm_medium: string | null;
|
|
12817
|
+
utm_source: string | null;
|
|
12818
|
+
utm_term: string | null;
|
|
12819
|
+
workspace_id: string;
|
|
12820
|
+
};
|
|
10638
12821
|
tag?: {
|
|
10639
12822
|
type: "tag";
|
|
10640
12823
|
id: string;
|
|
@@ -10882,7 +13065,7 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10882
13065
|
delivery_status: "pending" | "retry";
|
|
10883
13066
|
first_sent_at: number;
|
|
10884
13067
|
links: Record<string, unknown>;
|
|
10885
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
13068
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
10886
13069
|
self?: unknown;
|
|
10887
13070
|
};
|
|
10888
13071
|
method: string;
|
|
@@ -10920,6 +13103,104 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10920
13103
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
10921
13104
|
metadata?: Record<string, unknown> | undefined;
|
|
10922
13105
|
};
|
|
13106
|
+
} | {
|
|
13107
|
+
type: "notification_event_data";
|
|
13108
|
+
item: {
|
|
13109
|
+
type: "contact";
|
|
13110
|
+
id: string;
|
|
13111
|
+
name: string;
|
|
13112
|
+
email: string;
|
|
13113
|
+
external_id: string;
|
|
13114
|
+
created_at: string;
|
|
13115
|
+
updated_at: string;
|
|
13116
|
+
tags: {
|
|
13117
|
+
type: "list";
|
|
13118
|
+
total_count: number;
|
|
13119
|
+
data: unknown[];
|
|
13120
|
+
has_more: boolean;
|
|
13121
|
+
url?: string | undefined;
|
|
13122
|
+
};
|
|
13123
|
+
custom_attributes: Record<string, unknown>;
|
|
13124
|
+
location: {
|
|
13125
|
+
type: "location";
|
|
13126
|
+
city: string | null;
|
|
13127
|
+
continent_code: string | null;
|
|
13128
|
+
country: string | null;
|
|
13129
|
+
country_code: string | null;
|
|
13130
|
+
region: string | null;
|
|
13131
|
+
};
|
|
13132
|
+
android_app_name: string | null;
|
|
13133
|
+
android_app_version: string | null;
|
|
13134
|
+
android_device: string | null;
|
|
13135
|
+
android_last_seen_at: string | null;
|
|
13136
|
+
android_os_version: string | null;
|
|
13137
|
+
android_sdk_version: string | null;
|
|
13138
|
+
avatar: string | null;
|
|
13139
|
+
browser: string | null;
|
|
13140
|
+
browser_language: string | null;
|
|
13141
|
+
browser_version: string | null;
|
|
13142
|
+
companies: {
|
|
13143
|
+
type: "list";
|
|
13144
|
+
total_count: number;
|
|
13145
|
+
data: unknown[];
|
|
13146
|
+
has_more: boolean;
|
|
13147
|
+
url?: string | undefined;
|
|
13148
|
+
};
|
|
13149
|
+
has_hard_bounced: boolean;
|
|
13150
|
+
ios_app_name: string | null;
|
|
13151
|
+
ios_app_version: string | null;
|
|
13152
|
+
ios_device: string | null;
|
|
13153
|
+
ios_last_seen_at: string | null;
|
|
13154
|
+
ios_os_version: string | null;
|
|
13155
|
+
ios_sdk_version: string | null;
|
|
13156
|
+
language_override: string | null;
|
|
13157
|
+
last_contacted_at: string | null;
|
|
13158
|
+
last_email_clicked_at: string | null;
|
|
13159
|
+
last_email_opened_at: string | null;
|
|
13160
|
+
last_replied_at: string | null;
|
|
13161
|
+
last_seen_at: string | null;
|
|
13162
|
+
marked_email_as_spam: boolean;
|
|
13163
|
+
notes: {
|
|
13164
|
+
type: "list";
|
|
13165
|
+
total_count: number;
|
|
13166
|
+
data: unknown[];
|
|
13167
|
+
has_more: boolean;
|
|
13168
|
+
url?: string | undefined;
|
|
13169
|
+
};
|
|
13170
|
+
opted_in_subscription_types: {
|
|
13171
|
+
type: "list";
|
|
13172
|
+
total_count: number;
|
|
13173
|
+
data: unknown[];
|
|
13174
|
+
has_more: boolean;
|
|
13175
|
+
url?: string | undefined;
|
|
13176
|
+
};
|
|
13177
|
+
opted_out_subscription_types: {
|
|
13178
|
+
type: "list";
|
|
13179
|
+
total_count: number;
|
|
13180
|
+
data: unknown[];
|
|
13181
|
+
has_more: boolean;
|
|
13182
|
+
url?: string | undefined;
|
|
13183
|
+
};
|
|
13184
|
+
os: string | null;
|
|
13185
|
+
owner_id: string | null;
|
|
13186
|
+
phone: string | null;
|
|
13187
|
+
referrer: string | null;
|
|
13188
|
+
role: "user" | "lead";
|
|
13189
|
+
signed_up_at: string | null;
|
|
13190
|
+
sms_consent: boolean;
|
|
13191
|
+
social_profiles: {
|
|
13192
|
+
type: "list";
|
|
13193
|
+
data: unknown[];
|
|
13194
|
+
};
|
|
13195
|
+
unsubscribed_from_emails: boolean;
|
|
13196
|
+
unsubscribed_from_sms: boolean;
|
|
13197
|
+
utm_campaign: string | null;
|
|
13198
|
+
utm_content: string | null;
|
|
13199
|
+
utm_medium: string | null;
|
|
13200
|
+
utm_source: string | null;
|
|
13201
|
+
utm_term: string | null;
|
|
13202
|
+
workspace_id: string;
|
|
13203
|
+
};
|
|
10923
13204
|
tag?: {
|
|
10924
13205
|
type: "tag";
|
|
10925
13206
|
id: string;
|
|
@@ -11167,7 +13448,7 @@ declare const NotificationLogEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
11167
13448
|
delivery_status: "pending" | "retry";
|
|
11168
13449
|
first_sent_at: number;
|
|
11169
13450
|
links: Record<string, unknown>;
|
|
11170
|
-
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email";
|
|
13451
|
+
topic: "event.created" | "conversation.user.created" | "conversation.user.replied" | "contact.lead.added_email" | "conversation_part.tag.created" | "contact.lead.tag.created" | "contact.lead.tag.deleted";
|
|
11171
13452
|
self?: unknown;
|
|
11172
13453
|
};
|
|
11173
13454
|
method: string;
|
|
@@ -11194,6 +13475,7 @@ type Contact = z.infer<typeof ContactSchema>;
|
|
|
11194
13475
|
type ConversationContact = z.infer<typeof ConversationContactSchema>;
|
|
11195
13476
|
type NotificationEventData = z.infer<typeof NotificationEventDataSchema>;
|
|
11196
13477
|
type NotificationContactData = z.infer<typeof NotificationContactDataSchema>;
|
|
13478
|
+
type NotificationContactTagData = z.infer<typeof NotificationContactTagDataSchema>;
|
|
11197
13479
|
type Conversation = z.infer<typeof ConversationSchema>;
|
|
11198
13480
|
type NotificationConversationData = z.infer<typeof NotificationConversationDataSchema>;
|
|
11199
13481
|
type NotificationBody = z.infer<typeof NotificationBodySchema>;
|
|
@@ -11257,16 +13539,6 @@ declare const isEventNotification: (data: NotificationEventData | NotificationCo
|
|
|
11257
13539
|
ext_metadata?: Record<string, unknown> | undefined;
|
|
11258
13540
|
metadata?: Record<string, unknown> | undefined;
|
|
11259
13541
|
};
|
|
11260
|
-
tag?: {
|
|
11261
|
-
type: "tag";
|
|
11262
|
-
id: string;
|
|
11263
|
-
name: string;
|
|
11264
|
-
applied_at: number;
|
|
11265
|
-
applied_by: {
|
|
11266
|
-
type: "admin";
|
|
11267
|
-
id: string;
|
|
11268
|
-
};
|
|
11269
|
-
} | undefined;
|
|
11270
13542
|
};
|
|
11271
13543
|
declare const isContactNotification: (data: NotificationEventData | NotificationContactData | NotificationConversationData) => data is {
|
|
11272
13544
|
type: "notification_event_data";
|
|
@@ -11505,4 +13777,4 @@ type HookBody = z.infer<typeof BodySchema>;
|
|
|
11505
13777
|
type ConversationPart = z.infer<typeof ConversationPartSchema>;
|
|
11506
13778
|
type ConversationItem = z.infer<typeof ConversationItemSchema>;
|
|
11507
13779
|
|
|
11508
|
-
export { BodySchema, Contact, ContactSchema, Conversation, ConversationContact, ConversationItem, ConversationItemSchema, ConversationPart, ConversationPartsSchema, ConversationSchema, EventItem, EventItemSchema, HookBody, InvoicePaidEvent, InvoicePaidEventSchema, LogEntry, Logs, LogsSchema, NotificationBody, NotificationBodySchema, NotificationContactData, NotificationContactDataSchema, NotificationConversationData, NotificationConversationDataSchema, NotificationEventData, NotificationEventDataSchema, NotificationLogEntrySchema, ViewActivityEvent, ViewActivityEventSchema, author2Schema, authorSchema, contactSchema, contactsSchema, createAtSchema, createdAtSchema, dataSchema, firstContactReplySchema, isContactNotification, isConversationNotification, isEventNotification, isInvoicePaidEvent, isViewActivityEvent, linkedObjectsSchema, linksSchema, paramsSchema, parseContact, parseConversation, parseLogEntry, parseLogs, parseViewActivityEvent, sourceSchema, statisticsSchema, tagsSchema, teammatesSchema, topicsSchema };
|
|
13780
|
+
export { BodySchema, Contact, ContactSchema, Conversation, ConversationContact, ConversationItem, ConversationItemSchema, ConversationPart, ConversationPartsSchema, ConversationSchema, EventItem, EventItemSchema, HookBody, InvoicePaidEvent, InvoicePaidEventSchema, LogEntry, Logs, LogsSchema, NotificationBody, NotificationBodySchema, NotificationContactData, NotificationContactDataSchema, NotificationContactTagData, NotificationConversationData, NotificationConversationDataSchema, NotificationEventData, NotificationEventDataSchema, NotificationLogEntrySchema, ViewActivityEvent, ViewActivityEventSchema, author2Schema, authorSchema, contactSchema, contactsSchema, createAtSchema, createdAtSchema, dataSchema, firstContactReplySchema, isContactNotification, isConversationNotification, isEventNotification, isInvoicePaidEvent, isViewActivityEvent, linkedObjectsSchema, linksSchema, paramsSchema, parseContact, parseConversation, parseLogEntry, parseLogs, parseViewActivityEvent, sourceSchema, statisticsSchema, tagsSchema, teammatesSchema, topicsSchema };
|