@hexclave/shared 1.0.39 → 1.0.41
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/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/config/schema.d.ts +210 -210
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/config/schema.d.ts +210 -210
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +19 -19
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +7 -7
- package/dist/esm/interface/crud/current-user.d.ts +12 -12
- package/dist/esm/interface/crud/email-outbox.d.ts +226 -226
- 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 +4 -4
- package/dist/esm/interface/crud/projects.d.ts +35 -35
- 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 +16 -16
- package/dist/esm/interface/plan-usage.d.ts +2 -2
- package/dist/esm/interface/server-interface.d.ts +1 -0
- package/dist/esm/interface/server-interface.d.ts.map +1 -1
- package/dist/esm/interface/server-interface.js +2 -1
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +12 -12
- package/dist/esm/sessions.d.ts +5 -5
- package/dist/esm/utils/promises.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +19 -19
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +7 -7
- package/dist/interface/crud/current-user.d.ts +12 -12
- package/dist/interface/crud/email-outbox.d.ts +226 -226
- 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 +4 -4
- package/dist/interface/crud/projects.d.ts +35 -35
- 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 +16 -16
- package/dist/interface/plan-usage.d.ts +2 -2
- package/dist/interface/server-interface.d.ts +1 -0
- package/dist/interface/server-interface.d.ts.map +1 -1
- package/dist/interface/server-interface.js +2 -1
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +2 -2
- package/dist/schema-fields.d.ts +12 -12
- package/dist/sessions.d.ts +5 -5
- package/dist/utils/promises.js +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +1 -0
- package/src/interface/server-interface.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from "../utils/results.js";
|
|
2
|
-
import { KnownErrors } from "../known-errors.js";
|
|
3
2
|
import { urlString } from "../utils/urls.js";
|
|
3
|
+
import { KnownErrors } from "../known-errors.js";
|
|
4
4
|
import { HexclaveServerInterface } from "./server-interface.js";
|
|
5
5
|
|
|
6
6
|
//#region src/interface/admin-interface.ts
|
|
@@ -150,17 +150,17 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
-
date: string;
|
|
154
153
|
ok: number;
|
|
155
154
|
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;
|
|
@@ -292,16 +292,16 @@ declare const MetricsAnalyticsOverviewSchema: yup.ObjectSchema<{
|
|
|
292
292
|
activity: number;
|
|
293
293
|
}[];
|
|
294
294
|
top_browsers: {
|
|
295
|
-
visitors: number;
|
|
296
295
|
name: string;
|
|
296
|
+
visitors: number;
|
|
297
297
|
}[];
|
|
298
298
|
top_operating_systems: {
|
|
299
|
-
visitors: number;
|
|
300
299
|
name: string;
|
|
300
|
+
visitors: number;
|
|
301
301
|
}[];
|
|
302
302
|
top_devices: {
|
|
303
|
-
visitors: number;
|
|
304
303
|
name: string;
|
|
304
|
+
visitors: number;
|
|
305
305
|
}[];
|
|
306
306
|
conversion_rate: number | undefined;
|
|
307
307
|
deltas: {} | undefined;
|
|
@@ -398,24 +398,24 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
398
398
|
sampling: number;
|
|
399
399
|
routes: {
|
|
400
400
|
path: string;
|
|
401
|
-
clicks: number;
|
|
402
401
|
users: number;
|
|
402
|
+
clicks: number;
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
+
primary_email: string | null;
|
|
406
407
|
id: string;
|
|
407
408
|
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;
|
|
415
416
|
id: string;
|
|
416
417
|
clicks: number;
|
|
417
418
|
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;
|
|
446
447
|
id: string;
|
|
447
448
|
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;
|
|
474
475
|
id: string;
|
|
475
476
|
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;
|
|
482
483
|
id: string;
|
|
483
484
|
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;
|
|
490
491
|
id: string;
|
|
491
492
|
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
|
-
date: string;
|
|
567
566
|
ok: number;
|
|
568
567
|
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;
|
|
@@ -652,16 +652,16 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
652
652
|
activity: number;
|
|
653
653
|
}[];
|
|
654
654
|
top_browsers: {
|
|
655
|
-
visitors: number;
|
|
656
655
|
name: string;
|
|
656
|
+
visitors: number;
|
|
657
657
|
}[];
|
|
658
658
|
top_operating_systems: {
|
|
659
|
-
visitors: number;
|
|
660
659
|
name: string;
|
|
660
|
+
visitors: number;
|
|
661
661
|
}[];
|
|
662
662
|
top_devices: {
|
|
663
|
-
visitors: number;
|
|
664
663
|
name: string;
|
|
664
|
+
visitors: number;
|
|
665
665
|
}[];
|
|
666
666
|
};
|
|
667
667
|
}, yup.AnyObject, {
|
|
@@ -3,8 +3,8 @@ import { filterUndefined, filterUndefinedOrNull } from "../utils/objects.js";
|
|
|
3
3
|
import { deindent } from "../utils/strings.js";
|
|
4
4
|
import { publishableClientKeyNotNecessarySentinel } from "../utils/oauth.js";
|
|
5
5
|
import { Result } from "../utils/results.js";
|
|
6
|
-
import { KnownError, KnownErrors } from "../known-errors.js";
|
|
7
6
|
import { urlString } from "../utils/urls.js";
|
|
7
|
+
import { KnownError, KnownErrors } from "../known-errors.js";
|
|
8
8
|
import { AccessToken, InternalSession } from "../sessions.js";
|
|
9
9
|
import { generateSecureRandomString } from "../utils/crypto.js";
|
|
10
10
|
import { globalVar } from "../utils/globals.js";
|
|
@@ -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[];
|
|
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;
|
|
@@ -174,7 +174,6 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
174
174
|
closedAt?: string | null | undefined;
|
|
175
175
|
recordMetadata?: {} | null | undefined;
|
|
176
176
|
status: "open" | "pending" | "closed";
|
|
177
|
-
subject: string;
|
|
178
177
|
priority: "low" | "normal" | "high" | "urgent";
|
|
179
178
|
conversationId: string;
|
|
180
179
|
userId: string | null;
|
|
@@ -182,14 +181,15 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
182
181
|
userDisplayName: string | null;
|
|
183
182
|
userPrimaryEmail: string | null;
|
|
184
183
|
userProfileImageUrl: string | null;
|
|
184
|
+
subject: string;
|
|
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;
|
|
@@ -212,7 +212,6 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
212
212
|
closedAt?: string | null | undefined;
|
|
213
213
|
recordMetadata?: {} | null | undefined;
|
|
214
214
|
status: "open" | "pending" | "closed";
|
|
215
|
-
subject: string;
|
|
216
215
|
priority: "low" | "normal" | "high" | "urgent";
|
|
217
216
|
conversationId: string;
|
|
218
217
|
userId: string | null;
|
|
@@ -220,14 +219,15 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
220
219
|
userDisplayName: string | null;
|
|
221
220
|
userPrimaryEmail: string | null;
|
|
222
221
|
userProfileImageUrl: string | null;
|
|
222
|
+
subject: string;
|
|
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
|
-
id: string;
|
|
240
239
|
status: "open" | "pending" | "closed";
|
|
241
|
-
|
|
240
|
+
id: string;
|
|
242
241
|
priority: "low" | "normal" | "high" | "urgent";
|
|
243
242
|
conversationId: string;
|
|
244
243
|
userId: string | null;
|
|
245
244
|
teamId: string | null;
|
|
245
|
+
subject: string;
|
|
246
246
|
source: "email" | "manual" | "chat" | "api";
|
|
247
247
|
metadata: {} | null;
|
|
248
248
|
createdAt: string;
|
|
@@ -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
|
-
id: string;
|
|
9
|
-
display_name: string | null;
|
|
10
|
-
primary_email: string | null;
|
|
11
|
-
profile_image_url: string | null;
|
|
12
|
-
signed_up_at_millis: number;
|
|
13
8
|
restricted_reason: {
|
|
14
9
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
15
10
|
} | null;
|
|
11
|
+
primary_email: string | null;
|
|
16
12
|
client_metadata: {} | null;
|
|
17
13
|
client_read_only_metadata: {} | null;
|
|
18
|
-
|
|
19
|
-
is_anonymous: boolean;
|
|
20
|
-
is_restricted: boolean;
|
|
21
|
-
requires_totp_mfa: boolean;
|
|
14
|
+
id: string;
|
|
22
15
|
primary_email_verified: boolean;
|
|
16
|
+
display_name: string | null;
|
|
17
|
+
profile_image_url: string | null;
|
|
18
|
+
selected_team_id: string | null;
|
|
19
|
+
signed_up_at_millis: number;
|
|
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,6 +30,7 @@ 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;
|
|
@@ -92,9 +92,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
92
92
|
client_read_only_metadata?: {} | null | undefined;
|
|
93
93
|
server_metadata?: {} | null | undefined;
|
|
94
94
|
id: string;
|
|
95
|
-
created_at_millis: number;
|
|
96
95
|
display_name: 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,10 +173,10 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
173
173
|
requires_totp_mfa: undefined;
|
|
174
174
|
}, "">;
|
|
175
175
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
176
|
-
display_name: string | null | undefined;
|
|
177
176
|
primary_email: string | null | undefined;
|
|
178
|
-
profile_image_url: string | null | undefined;
|
|
179
177
|
client_metadata: {} | null | undefined;
|
|
178
|
+
display_name: string | null | undefined;
|
|
179
|
+
profile_image_url: string | null | undefined;
|
|
180
180
|
selected_team_id: string | null | undefined;
|
|
181
181
|
otp_auth_enabled: boolean | undefined;
|
|
182
182
|
passkey_auth_enabled: boolean | undefined;
|