@hexclave/shared 1.0.37 → 1.0.39
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/ai/unified-prompts/reminders.js +3 -2
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/config/schema.d.ts +37 -37
- package/dist/esm/ai/unified-prompts/reminders.js +3 -2
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/config/schema.d.ts +37 -37
- package/dist/esm/interface/admin-metrics.d.ts +25 -25
- package/dist/esm/interface/conversations.d.ts +9 -9
- package/dist/esm/interface/crud/current-user.d.ts +13 -13
- package/dist/esm/interface/crud/email-outbox.d.ts +204 -204
- package/dist/esm/interface/crud/products.d.ts +5 -5
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/interface/crud/users.d.ts +20 -20
- package/dist/esm/interface/plan-usage.d.ts +2 -2
- package/dist/esm/interface/webhooks.d.ts +4 -4
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +1 -1
- package/dist/interface/admin-metrics.d.ts +25 -25
- package/dist/interface/conversations.d.ts +9 -9
- package/dist/interface/crud/current-user.d.ts +13 -13
- package/dist/interface/crud/email-outbox.d.ts +204 -204
- package/dist/interface/crud/products.d.ts +5 -5
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +28 -28
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/interface/crud/users.d.ts +20 -20
- package/dist/interface/plan-usage.d.ts +2 -2
- package/dist/interface/webhooks.d.ts +4 -4
- package/dist/known-errors.d.ts +2 -2
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +3 -2
- package/dist/esm/local-emulator.d.ts +0 -6
- package/dist/esm/local-emulator.d.ts.map +0 -1
- package/dist/esm/local-emulator.js +0 -7
- package/dist/esm/local-emulator.js.map +0 -1
- package/dist/local-emulator.d.ts +0 -6
- package/dist/local-emulator.d.ts.map +0 -1
- package/dist/local-emulator.js +0 -10
- package/dist/local-emulator.js.map +0 -1
- package/src/local-emulator.ts +0 -5
|
@@ -150,17 +150,17 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
-
error: number;
|
|
154
153
|
date: string;
|
|
155
154
|
ok: number;
|
|
155
|
+
error: number;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
status: string;
|
|
161
160
|
id: string;
|
|
162
|
-
|
|
161
|
+
status: string;
|
|
163
162
|
subject: string;
|
|
163
|
+
created_at_millis: number;
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
166
166
|
error: number;
|
|
@@ -292,16 +292,16 @@ declare const MetricsAnalyticsOverviewSchema: yup.ObjectSchema<{
|
|
|
292
292
|
activity: number;
|
|
293
293
|
}[];
|
|
294
294
|
top_browsers: {
|
|
295
|
-
name: string;
|
|
296
295
|
visitors: number;
|
|
296
|
+
name: string;
|
|
297
297
|
}[];
|
|
298
298
|
top_operating_systems: {
|
|
299
|
-
name: string;
|
|
300
299
|
visitors: number;
|
|
300
|
+
name: string;
|
|
301
301
|
}[];
|
|
302
302
|
top_devices: {
|
|
303
|
-
name: string;
|
|
304
303
|
visitors: number;
|
|
304
|
+
name: string;
|
|
305
305
|
}[];
|
|
306
306
|
conversion_rate: number | undefined;
|
|
307
307
|
deltas: {} | undefined;
|
|
@@ -392,30 +392,30 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
392
392
|
kind: "team_user_hour_of_week" | "session_replay_clicks";
|
|
393
393
|
cells: {
|
|
394
394
|
value: number;
|
|
395
|
-
hour: number;
|
|
396
395
|
weekday: number;
|
|
396
|
+
hour: number;
|
|
397
397
|
}[];
|
|
398
398
|
sampling: number;
|
|
399
399
|
routes: {
|
|
400
400
|
path: string;
|
|
401
|
-
users: number;
|
|
402
401
|
clicks: number;
|
|
402
|
+
users: number;
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
-
primary_email: string | null;
|
|
407
|
-
display_name: string | null;
|
|
408
406
|
id: string;
|
|
407
|
+
display_name: string | null;
|
|
408
|
+
primary_email: string | null;
|
|
409
409
|
profile_image_url: string | null;
|
|
410
410
|
clicks: number;
|
|
411
411
|
replays: number;
|
|
412
412
|
last_event_at_millis: number;
|
|
413
413
|
}[];
|
|
414
414
|
replays: {
|
|
415
|
-
user_id: string | null;
|
|
416
415
|
id: string;
|
|
417
416
|
clicks: number;
|
|
418
417
|
last_event_at_millis: number;
|
|
418
|
+
user_id: string | null;
|
|
419
419
|
route_path: string | null;
|
|
420
420
|
viewport_width: number | null;
|
|
421
421
|
viewport_height: number | null;
|
|
@@ -443,9 +443,9 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
443
443
|
elements: never[];
|
|
444
444
|
}, "">;
|
|
445
445
|
declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
|
|
446
|
-
primary_email: string | null;
|
|
447
|
-
display_name: string | null;
|
|
448
446
|
id: string;
|
|
447
|
+
display_name: string | null;
|
|
448
|
+
primary_email: string | null;
|
|
449
449
|
profile_image_url: string | null;
|
|
450
450
|
signed_up_at_millis: number;
|
|
451
451
|
last_active_at_millis: number | null;
|
|
@@ -471,25 +471,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
471
471
|
}[];
|
|
472
472
|
users_by_country: Record<string, number>;
|
|
473
473
|
active_users_by_country: Record<string, {
|
|
474
|
-
primary_email: string | null;
|
|
475
|
-
display_name: string | null;
|
|
476
474
|
id: string;
|
|
475
|
+
display_name: string | null;
|
|
476
|
+
primary_email: string | null;
|
|
477
477
|
profile_image_url: string | null;
|
|
478
478
|
signed_up_at_millis: number;
|
|
479
479
|
last_active_at_millis: number | null;
|
|
480
480
|
}[]>;
|
|
481
481
|
recently_registered: {
|
|
482
|
-
primary_email: string | null;
|
|
483
|
-
display_name: string | null;
|
|
484
482
|
id: string;
|
|
483
|
+
display_name: string | null;
|
|
484
|
+
primary_email: string | null;
|
|
485
485
|
profile_image_url: string | null;
|
|
486
486
|
signed_up_at_millis: number;
|
|
487
487
|
last_active_at_millis: number | null;
|
|
488
488
|
}[];
|
|
489
489
|
recently_active: {
|
|
490
|
-
primary_email: string | null;
|
|
491
|
-
display_name: string | null;
|
|
492
490
|
id: string;
|
|
491
|
+
display_name: string | null;
|
|
492
|
+
primary_email: string | null;
|
|
493
493
|
profile_image_url: string | null;
|
|
494
494
|
signed_up_at_millis: number;
|
|
495
495
|
last_active_at_millis: number | null;
|
|
@@ -563,17 +563,17 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
563
563
|
emails_by_status: Record<string, number>;
|
|
564
564
|
total_emails: number;
|
|
565
565
|
daily_emails_by_status: {
|
|
566
|
-
error: number;
|
|
567
566
|
date: string;
|
|
568
567
|
ok: number;
|
|
568
|
+
error: number;
|
|
569
569
|
in_progress: number;
|
|
570
570
|
}[];
|
|
571
571
|
emails_sent: number;
|
|
572
572
|
recent_emails: {
|
|
573
|
-
status: string;
|
|
574
573
|
id: string;
|
|
575
|
-
|
|
574
|
+
status: string;
|
|
576
575
|
subject: string;
|
|
576
|
+
created_at_millis: number;
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
579
579
|
error: number;
|
|
@@ -652,16 +652,16 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
652
652
|
activity: number;
|
|
653
653
|
}[];
|
|
654
654
|
top_browsers: {
|
|
655
|
-
name: string;
|
|
656
655
|
visitors: number;
|
|
656
|
+
name: string;
|
|
657
657
|
}[];
|
|
658
658
|
top_operating_systems: {
|
|
659
|
-
name: string;
|
|
660
659
|
visitors: number;
|
|
660
|
+
name: string;
|
|
661
661
|
}[];
|
|
662
662
|
top_devices: {
|
|
663
|
-
name: string;
|
|
664
663
|
visitors: number;
|
|
664
|
+
name: string;
|
|
665
665
|
}[];
|
|
666
666
|
};
|
|
667
667
|
}, yup.AnyObject, {
|
|
@@ -56,9 +56,9 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
|
|
|
56
56
|
preview: string | null;
|
|
57
57
|
lastActivityAt: string;
|
|
58
58
|
metadata: {
|
|
59
|
-
tags: string[];
|
|
60
59
|
assignedToUserId: string | null;
|
|
61
60
|
assignedToDisplayName: string | null;
|
|
61
|
+
tags: string[];
|
|
62
62
|
firstResponseDueAt: string | null;
|
|
63
63
|
firstResponseAt: string | null;
|
|
64
64
|
nextResponseDueAt: string | null;
|
|
@@ -139,8 +139,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
sender: {
|
|
141
141
|
type: "user" | "agent" | "system";
|
|
142
|
-
displayName: string | null;
|
|
143
142
|
id: string | null;
|
|
143
|
+
displayName: string | null;
|
|
144
144
|
primaryEmail: string | null;
|
|
145
145
|
};
|
|
146
146
|
}, yup$1.AnyObject, {
|
|
@@ -174,8 +174,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
174
174
|
closedAt?: string | null | undefined;
|
|
175
175
|
recordMetadata?: {} | null | undefined;
|
|
176
176
|
status: "open" | "pending" | "closed";
|
|
177
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
178
177
|
subject: string;
|
|
178
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
179
179
|
conversationId: string;
|
|
180
180
|
userId: string | null;
|
|
181
181
|
teamId: string | null;
|
|
@@ -187,9 +187,9 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
187
187
|
preview: string | null;
|
|
188
188
|
lastActivityAt: string;
|
|
189
189
|
metadata: {
|
|
190
|
-
tags: string[];
|
|
191
190
|
assignedToUserId: string | null;
|
|
192
191
|
assignedToDisplayName: string | null;
|
|
192
|
+
tags: string[];
|
|
193
193
|
firstResponseDueAt: string | null;
|
|
194
194
|
firstResponseAt: string | null;
|
|
195
195
|
nextResponseDueAt: string | null;
|
|
@@ -212,8 +212,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
212
212
|
closedAt?: string | null | undefined;
|
|
213
213
|
recordMetadata?: {} | null | undefined;
|
|
214
214
|
status: "open" | "pending" | "closed";
|
|
215
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
216
215
|
subject: string;
|
|
216
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
217
217
|
conversationId: string;
|
|
218
218
|
userId: string | null;
|
|
219
219
|
teamId: string | null;
|
|
@@ -225,9 +225,9 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
225
225
|
preview: string | null;
|
|
226
226
|
lastActivityAt: string;
|
|
227
227
|
metadata: {
|
|
228
|
-
tags: string[];
|
|
229
228
|
assignedToUserId: string | null;
|
|
230
229
|
assignedToDisplayName: string | null;
|
|
230
|
+
tags: string[];
|
|
231
231
|
firstResponseDueAt: string | null;
|
|
232
232
|
firstResponseAt: string | null;
|
|
233
233
|
nextResponseDueAt: string | null;
|
|
@@ -236,10 +236,10 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
-
status: "open" | "pending" | "closed";
|
|
240
239
|
id: string;
|
|
241
|
-
|
|
240
|
+
status: "open" | "pending" | "closed";
|
|
242
241
|
subject: string;
|
|
242
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
243
243
|
conversationId: string;
|
|
244
244
|
userId: string | null;
|
|
245
245
|
teamId: string | null;
|
|
@@ -251,8 +251,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
253
|
type: "user" | "agent" | "system";
|
|
254
|
-
displayName: string | null;
|
|
255
254
|
id: string | null;
|
|
255
|
+
displayName: string | null;
|
|
256
256
|
primaryEmail: string | null;
|
|
257
257
|
};
|
|
258
258
|
}[];
|
|
@@ -4,21 +4,21 @@ import * as yup$1 from "yup";
|
|
|
4
4
|
//#region src/interface/crud/current-user.d.ts
|
|
5
5
|
declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
6
6
|
clientReadSchema: yup$1.ObjectSchema<{
|
|
7
|
+
id: string;
|
|
8
|
+
display_name: string | null;
|
|
9
|
+
primary_email: string | null;
|
|
10
|
+
profile_image_url: string | null;
|
|
11
|
+
signed_up_at_millis: number;
|
|
7
12
|
restricted_reason: {
|
|
8
13
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
9
14
|
} | null;
|
|
10
|
-
|
|
15
|
+
client_metadata: {} | null;
|
|
16
|
+
client_read_only_metadata: {} | null;
|
|
11
17
|
selected_team_id: string | null;
|
|
12
18
|
is_anonymous: boolean;
|
|
13
19
|
is_restricted: boolean;
|
|
14
20
|
requires_totp_mfa: boolean;
|
|
15
|
-
display_name: string | null;
|
|
16
|
-
client_metadata: {} | null;
|
|
17
|
-
client_read_only_metadata: {} | null;
|
|
18
|
-
id: string;
|
|
19
21
|
primary_email_verified: boolean;
|
|
20
|
-
profile_image_url: string | null;
|
|
21
|
-
signed_up_at_millis: number;
|
|
22
22
|
has_password: boolean;
|
|
23
23
|
otp_auth_enabled: boolean;
|
|
24
24
|
passkey_auth_enabled: boolean;
|
|
@@ -34,8 +34,8 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
34
34
|
selected_team: {
|
|
35
35
|
client_metadata?: {} | null | undefined;
|
|
36
36
|
client_read_only_metadata?: {} | null | undefined;
|
|
37
|
-
display_name: string;
|
|
38
37
|
id: string;
|
|
38
|
+
display_name: string;
|
|
39
39
|
profile_image_url: string | null;
|
|
40
40
|
} | null;
|
|
41
41
|
}, yup$1.AnyObject, {
|
|
@@ -90,10 +90,10 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
90
90
|
client_metadata?: {} | null | undefined;
|
|
91
91
|
client_read_only_metadata?: {} | null | undefined;
|
|
92
92
|
server_metadata?: {} | null | undefined;
|
|
93
|
-
display_name: string;
|
|
94
93
|
id: string;
|
|
95
|
-
profile_image_url: string | null;
|
|
96
94
|
created_at_millis: number;
|
|
95
|
+
display_name: string;
|
|
96
|
+
profile_image_url: string | null;
|
|
97
97
|
} | null;
|
|
98
98
|
selected_team_id: string | null;
|
|
99
99
|
profile_image_url: string | null;
|
|
@@ -172,11 +172,11 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
172
172
|
requires_totp_mfa: undefined;
|
|
173
173
|
}, "">;
|
|
174
174
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
175
|
-
primary_email: string | null | undefined;
|
|
176
|
-
selected_team_id: string | null | undefined;
|
|
177
175
|
display_name: string | null | undefined;
|
|
178
|
-
|
|
176
|
+
primary_email: string | null | undefined;
|
|
179
177
|
profile_image_url: string | null | undefined;
|
|
178
|
+
client_metadata: {} | null | undefined;
|
|
179
|
+
selected_team_id: string | null | undefined;
|
|
180
180
|
otp_auth_enabled: boolean | undefined;
|
|
181
181
|
passkey_auth_enabled: boolean | undefined;
|
|
182
182
|
totp_secret_base64: string | null | undefined;
|