@hexclave/shared 1.0.27 → 1.0.29
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/config/schema.d.ts +35 -35
- package/dist/esm/config/schema.d.ts +35 -35
- package/dist/esm/interface/admin-metrics.d.ts +18 -18
- package/dist/esm/interface/conversations.d.ts +13 -13
- package/dist/esm/interface/crud/current-user.d.ts +12 -12
- package/dist/esm/interface/crud/email-outbox.d.ts +140 -140
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +14 -14
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +6 -6
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- 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/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/passkey.d.ts +1 -1
- package/dist/esm/utils/promises.d.ts +12 -1
- package/dist/esm/utils/promises.d.ts.map +1 -1
- package/dist/esm/utils/promises.js +57 -1
- package/dist/esm/utils/promises.js.map +1 -1
- package/dist/interface/admin-metrics.d.ts +18 -18
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/conversations.d.ts +13 -13
- package/dist/interface/crud/current-user.d.ts +12 -12
- package/dist/interface/crud/email-outbox.d.ts +140 -140
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +14 -14
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +6 -6
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- 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/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/passkey.d.ts +1 -1
- package/dist/utils/promises.d.ts +12 -1
- package/dist/utils/promises.d.ts.map +1 -1
- package/dist/utils/promises.js +57 -0
- package/dist/utils/promises.js.map +1 -1
- package/package.json +3 -7
- package/src/utils/passkey.tsx +1 -1
- package/src/utils/promises.tsx +65 -0
- package/dist/index-nCRuFJTF.d.ts +0 -153
- package/dist/index-nCRuFJTF.d.ts.map +0 -1
|
@@ -150,17 +150,17 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
+
date: string;
|
|
153
154
|
ok: number;
|
|
154
155
|
error: number;
|
|
155
|
-
date: string;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
id: string;
|
|
161
160
|
status: string;
|
|
162
|
-
|
|
161
|
+
id: string;
|
|
163
162
|
created_at_millis: number;
|
|
163
|
+
subject: string;
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
166
166
|
error: number;
|
|
@@ -397,23 +397,23 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
397
397
|
}[];
|
|
398
398
|
sampling: number;
|
|
399
399
|
routes: {
|
|
400
|
-
users: number;
|
|
401
400
|
path: string;
|
|
401
|
+
users: number;
|
|
402
402
|
clicks: number;
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
-
id: string;
|
|
407
|
-
primary_email: string | null;
|
|
408
406
|
display_name: string | null;
|
|
407
|
+
primary_email: string | null;
|
|
408
|
+
id: string;
|
|
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
|
-
id: string;
|
|
416
415
|
user_id: string | null;
|
|
416
|
+
id: string;
|
|
417
417
|
clicks: number;
|
|
418
418
|
last_event_at_millis: number;
|
|
419
419
|
route_path: string | 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
|
-
id: string;
|
|
447
|
-
primary_email: string | null;
|
|
448
446
|
display_name: string | null;
|
|
447
|
+
primary_email: string | null;
|
|
448
|
+
id: string;
|
|
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
|
-
id: string;
|
|
475
|
-
primary_email: string | null;
|
|
476
474
|
display_name: string | null;
|
|
475
|
+
primary_email: string | null;
|
|
476
|
+
id: string;
|
|
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
|
-
id: string;
|
|
483
|
-
primary_email: string | null;
|
|
484
482
|
display_name: string | null;
|
|
483
|
+
primary_email: string | null;
|
|
484
|
+
id: string;
|
|
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
|
-
id: string;
|
|
491
|
-
primary_email: string | null;
|
|
492
490
|
display_name: string | null;
|
|
491
|
+
primary_email: string | null;
|
|
492
|
+
id: string;
|
|
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
|
+
date: string;
|
|
566
567
|
ok: number;
|
|
567
568
|
error: number;
|
|
568
|
-
date: string;
|
|
569
569
|
in_progress: number;
|
|
570
570
|
}[];
|
|
571
571
|
emails_sent: number;
|
|
572
572
|
recent_emails: {
|
|
573
|
-
id: string;
|
|
574
573
|
status: string;
|
|
575
|
-
|
|
574
|
+
id: string;
|
|
576
575
|
created_at_millis: number;
|
|
576
|
+
subject: string;
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
579
579
|
error: number;
|
|
@@ -49,16 +49,16 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
|
|
|
49
49
|
userPrimaryEmail: string | null;
|
|
50
50
|
userProfileImageUrl: string | null;
|
|
51
51
|
subject: string;
|
|
52
|
-
status: "
|
|
52
|
+
status: "pending" | "open" | "closed";
|
|
53
53
|
priority: "low" | "normal" | "high" | "urgent";
|
|
54
54
|
source: "email" | "manual" | "chat" | "api";
|
|
55
55
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
56
56
|
preview: string | null;
|
|
57
57
|
lastActivityAt: string;
|
|
58
58
|
metadata: {
|
|
59
|
+
tags: string[];
|
|
59
60
|
assignedToUserId: string | null;
|
|
60
61
|
assignedToDisplayName: string | null;
|
|
61
|
-
tags: string[];
|
|
62
62
|
firstResponseDueAt: string | null;
|
|
63
63
|
firstResponseAt: string | null;
|
|
64
64
|
nextResponseDueAt: string | null;
|
|
@@ -129,7 +129,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
129
129
|
userId: string | null;
|
|
130
130
|
teamId: string | null;
|
|
131
131
|
subject: string;
|
|
132
|
-
status: "
|
|
132
|
+
status: "pending" | "open" | "closed";
|
|
133
133
|
priority: "low" | "normal" | "high" | "urgent";
|
|
134
134
|
source: "email" | "manual" | "chat" | "api";
|
|
135
135
|
messageType: "message" | "internal-note" | "status-change";
|
|
@@ -138,8 +138,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
138
138
|
metadata: {} | null;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
sender: {
|
|
141
|
-
id: string | null;
|
|
142
141
|
type: "user" | "agent" | "system";
|
|
142
|
+
id: string | null;
|
|
143
143
|
displayName: string | null;
|
|
144
144
|
primaryEmail: string | null;
|
|
145
145
|
};
|
|
@@ -173,7 +173,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
173
173
|
lastOutboundAt?: string | null | undefined;
|
|
174
174
|
closedAt?: string | null | undefined;
|
|
175
175
|
recordMetadata?: {} | null | undefined;
|
|
176
|
-
status: "
|
|
176
|
+
status: "pending" | "open" | "closed";
|
|
177
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
177
178
|
subject: string;
|
|
178
179
|
conversationId: string;
|
|
179
180
|
userId: string | null;
|
|
@@ -181,15 +182,14 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
181
182
|
userDisplayName: string | null;
|
|
182
183
|
userPrimaryEmail: string | null;
|
|
183
184
|
userProfileImageUrl: string | null;
|
|
184
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
185
185
|
source: "email" | "manual" | "chat" | "api";
|
|
186
186
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
187
187
|
preview: string | null;
|
|
188
188
|
lastActivityAt: string;
|
|
189
189
|
metadata: {
|
|
190
|
+
tags: string[];
|
|
190
191
|
assignedToUserId: string | null;
|
|
191
192
|
assignedToDisplayName: string | null;
|
|
192
|
-
tags: string[];
|
|
193
193
|
firstResponseDueAt: string | null;
|
|
194
194
|
firstResponseAt: string | null;
|
|
195
195
|
nextResponseDueAt: string | null;
|
|
@@ -211,7 +211,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
211
211
|
lastOutboundAt?: string | null | undefined;
|
|
212
212
|
closedAt?: string | null | undefined;
|
|
213
213
|
recordMetadata?: {} | null | undefined;
|
|
214
|
-
status: "
|
|
214
|
+
status: "pending" | "open" | "closed";
|
|
215
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
215
216
|
subject: string;
|
|
216
217
|
conversationId: string;
|
|
217
218
|
userId: string | null;
|
|
@@ -219,15 +220,14 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
219
220
|
userDisplayName: string | null;
|
|
220
221
|
userPrimaryEmail: string | null;
|
|
221
222
|
userProfileImageUrl: string | null;
|
|
222
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
223
223
|
source: "email" | "manual" | "chat" | "api";
|
|
224
224
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
225
225
|
preview: string | null;
|
|
226
226
|
lastActivityAt: string;
|
|
227
227
|
metadata: {
|
|
228
|
+
tags: string[];
|
|
228
229
|
assignedToUserId: string | null;
|
|
229
230
|
assignedToDisplayName: string | null;
|
|
230
|
-
tags: string[];
|
|
231
231
|
firstResponseDueAt: string | null;
|
|
232
232
|
firstResponseAt: string | null;
|
|
233
233
|
nextResponseDueAt: string | null;
|
|
@@ -236,13 +236,13 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
+
status: "pending" | "open" | "closed";
|
|
239
240
|
id: string;
|
|
240
|
-
|
|
241
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
241
242
|
subject: string;
|
|
242
243
|
conversationId: string;
|
|
243
244
|
userId: string | null;
|
|
244
245
|
teamId: string | null;
|
|
245
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
246
246
|
source: "email" | "manual" | "chat" | "api";
|
|
247
247
|
metadata: {} | null;
|
|
248
248
|
createdAt: string;
|
|
@@ -250,8 +250,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
250
250
|
body: string | null;
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
|
-
id: string | null;
|
|
254
253
|
type: "user" | "agent" | "system";
|
|
254
|
+
id: string | null;
|
|
255
255
|
displayName: string | null;
|
|
256
256
|
primaryEmail: string | null;
|
|
257
257
|
};
|
|
@@ -5,24 +5,23 @@ import { CrudTypeOf } from "../../crud";
|
|
|
5
5
|
//#region src/interface/crud/current-user.d.ts
|
|
6
6
|
declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
7
7
|
clientReadSchema: yup$1.ObjectSchema<{
|
|
8
|
-
|
|
8
|
+
display_name: string | null;
|
|
9
9
|
restricted_reason: {
|
|
10
10
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
11
11
|
} | null;
|
|
12
12
|
primary_email: string | null;
|
|
13
|
-
display_name: string | null;
|
|
14
13
|
client_metadata: {} | null;
|
|
15
14
|
client_read_only_metadata: {} | null;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
is_restricted: boolean;
|
|
19
|
-
requires_totp_mfa: boolean;
|
|
15
|
+
id: string;
|
|
16
|
+
primary_email_verified: boolean;
|
|
20
17
|
profile_image_url: string | null;
|
|
18
|
+
selected_team_id: string | null;
|
|
21
19
|
signed_up_at_millis: number;
|
|
22
|
-
primary_email_verified: boolean;
|
|
23
20
|
has_password: boolean;
|
|
24
21
|
otp_auth_enabled: boolean;
|
|
25
22
|
passkey_auth_enabled: boolean;
|
|
23
|
+
is_anonymous: boolean;
|
|
24
|
+
is_restricted: boolean;
|
|
26
25
|
restricted_by_admin: boolean;
|
|
27
26
|
restricted_by_admin_reason: string | null;
|
|
28
27
|
oauth_providers: {
|
|
@@ -31,12 +30,13 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
31
30
|
account_id: string;
|
|
32
31
|
}[];
|
|
33
32
|
auth_with_email: boolean;
|
|
33
|
+
requires_totp_mfa: boolean;
|
|
34
34
|
} & {
|
|
35
35
|
selected_team: {
|
|
36
36
|
client_metadata?: {} | null | undefined;
|
|
37
37
|
client_read_only_metadata?: {} | null | undefined;
|
|
38
|
-
id: string;
|
|
39
38
|
display_name: string;
|
|
39
|
+
id: string;
|
|
40
40
|
profile_image_url: string | null;
|
|
41
41
|
} | null;
|
|
42
42
|
}, yup$1.AnyObject, {
|
|
@@ -91,10 +91,10 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
91
91
|
client_metadata?: {} | null | undefined;
|
|
92
92
|
client_read_only_metadata?: {} | null | undefined;
|
|
93
93
|
server_metadata?: {} | null | undefined;
|
|
94
|
-
id: string;
|
|
95
94
|
display_name: string;
|
|
96
|
-
|
|
95
|
+
id: string;
|
|
97
96
|
profile_image_url: string | null;
|
|
97
|
+
created_at_millis: number;
|
|
98
98
|
} | null;
|
|
99
99
|
selected_team_id: string | null;
|
|
100
100
|
profile_image_url: string | null;
|
|
@@ -173,11 +173,11 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
173
173
|
requires_totp_mfa: undefined;
|
|
174
174
|
}, "">;
|
|
175
175
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
176
|
-
primary_email: string | null | undefined;
|
|
177
176
|
display_name: string | null | undefined;
|
|
177
|
+
primary_email: string | null | undefined;
|
|
178
178
|
client_metadata: {} | null | undefined;
|
|
179
|
-
selected_team_id: string | null | undefined;
|
|
180
179
|
profile_image_url: string | null | undefined;
|
|
180
|
+
selected_team_id: string | null | undefined;
|
|
181
181
|
otp_auth_enabled: boolean | undefined;
|
|
182
182
|
passkey_auth_enabled: boolean | undefined;
|
|
183
183
|
totp_secret_base64: string | null | undefined;
|