@hexclave/shared 1.0.26 → 1.0.28
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 +154 -154
- package/dist/esm/config/schema.d.ts +154 -154
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +3 -3
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +5 -5
- package/dist/esm/interface/crud/current-user.d.ts +7 -7
- package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +43 -43
- package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
- package/dist/esm/interface/crud/users.d.ts +10 -10
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/sessions.d.ts +1 -1
- package/dist/esm/utils/passkey.d.ts +1 -1
- package/dist/esm/utils/promises.js +1 -1
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +3 -3
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +5 -5
- package/dist/interface/crud/current-user.d.ts +7 -7
- package/dist/interface/crud/email-outbox.d.ts +184 -184
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +43 -43
- package/dist/interface/crud/team-member-profiles.d.ts +12 -12
- package/dist/interface/crud/users.d.ts +10 -10
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/sessions.d.ts +1 -1
- package/dist/utils/passkey.d.ts +1 -1
- package/dist/utils/promises.js +1 -1
- package/package.json +3 -7
- package/src/utils/passkey.tsx +1 -1
- package/dist/index-nCRuFJTF.d.ts +0 -153
- package/dist/index-nCRuFJTF.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from "../utils/results.js";
|
|
2
|
-
import { urlString } from "../utils/urls.js";
|
|
3
2
|
import { KnownErrors } from "../known-errors.js";
|
|
3
|
+
import { urlString } from "../utils/urls.js";
|
|
4
4
|
import { HexclaveServerInterface } from "./server-interface.js";
|
|
5
5
|
|
|
6
6
|
//#region src/interface/admin-interface.ts
|
|
@@ -159,8 +159,8 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
159
159
|
recent_emails: {
|
|
160
160
|
status: string;
|
|
161
161
|
id: string;
|
|
162
|
-
created_at_millis: number;
|
|
163
162
|
subject: string;
|
|
163
|
+
created_at_millis: number;
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
166
166
|
error: number;
|
|
@@ -369,7 +369,7 @@ declare const UserActivityResponseBodySchema: yup.ObjectSchema<{
|
|
|
369
369
|
data_points: undefined;
|
|
370
370
|
}, "">;
|
|
371
371
|
declare const AnalyticsClickmapKindSchema: yup.StringSchema<"team_user_hour_of_week" | "session_replay_clicks", yup.AnyObject, undefined, "">;
|
|
372
|
-
declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"
|
|
372
|
+
declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"tv" | "widescreen" | "desktop" | "laptop" | "tablet" | "mobile", yup.AnyObject, undefined, "">;
|
|
373
373
|
declare const AnalyticsClickmapTokenResponseBodySchema: yup.ObjectSchema<{
|
|
374
374
|
token: string;
|
|
375
375
|
origin: string;
|
|
@@ -572,8 +572,8 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
572
572
|
recent_emails: {
|
|
573
573
|
status: string;
|
|
574
574
|
id: string;
|
|
575
|
-
created_at_millis: number;
|
|
576
575
|
subject: string;
|
|
576
|
+
created_at_millis: number;
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
579
579
|
error: number;
|
|
@@ -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 { urlString } from "../utils/urls.js";
|
|
7
6
|
import { KnownError, KnownErrors } from "../known-errors.js";
|
|
7
|
+
import { urlString } from "../utils/urls.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";
|
|
@@ -185,8 +185,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
185
185
|
lastCustomerReplyAt: string | null;
|
|
186
186
|
lastAgentReplyAt: string | null;
|
|
187
187
|
};
|
|
188
|
-
subject: string;
|
|
189
188
|
priority: "low" | "normal" | "high" | "urgent";
|
|
189
|
+
subject: string;
|
|
190
190
|
conversationId: string;
|
|
191
191
|
userId: string | null;
|
|
192
192
|
teamId: string | null;
|
|
@@ -223,8 +223,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
223
223
|
lastCustomerReplyAt: string | null;
|
|
224
224
|
lastAgentReplyAt: string | null;
|
|
225
225
|
};
|
|
226
|
-
subject: string;
|
|
227
226
|
priority: "low" | "normal" | "high" | "urgent";
|
|
227
|
+
subject: string;
|
|
228
228
|
conversationId: string;
|
|
229
229
|
userId: string | null;
|
|
230
230
|
teamId: string | null;
|
|
@@ -237,12 +237,12 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
239
|
status: "pending" | "open" | "closed";
|
|
240
|
-
id: string;
|
|
241
240
|
body: string | null;
|
|
242
241
|
source: "email" | "manual" | "chat" | "api";
|
|
243
242
|
metadata: {} | null;
|
|
244
|
-
|
|
243
|
+
id: string;
|
|
245
244
|
priority: "low" | "normal" | "high" | "urgent";
|
|
245
|
+
subject: string;
|
|
246
246
|
conversationId: string;
|
|
247
247
|
userId: string | null;
|
|
248
248
|
teamId: string | null;
|
|
@@ -257,8 +257,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
257
257
|
};
|
|
258
258
|
}[];
|
|
259
259
|
entryPoints: {
|
|
260
|
-
id: string;
|
|
261
260
|
metadata: {} | null;
|
|
261
|
+
id: string;
|
|
262
262
|
createdAt: string;
|
|
263
263
|
updatedAt: string;
|
|
264
264
|
channelType: string;
|
|
@@ -9,16 +9,16 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
9
9
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
10
10
|
} | null;
|
|
11
11
|
primary_email: string | null;
|
|
12
|
-
selected_team_id: string | null;
|
|
13
|
-
is_anonymous: boolean;
|
|
14
|
-
is_restricted: boolean;
|
|
15
|
-
requires_totp_mfa: boolean;
|
|
16
12
|
display_name: string | null;
|
|
17
13
|
client_metadata: {} | null;
|
|
18
14
|
client_read_only_metadata: {} | null;
|
|
19
15
|
id: string;
|
|
20
|
-
|
|
16
|
+
selected_team_id: string | null;
|
|
17
|
+
is_anonymous: boolean;
|
|
18
|
+
is_restricted: boolean;
|
|
19
|
+
requires_totp_mfa: boolean;
|
|
21
20
|
profile_image_url: string | null;
|
|
21
|
+
primary_email_verified: boolean;
|
|
22
22
|
signed_up_at_millis: number;
|
|
23
23
|
has_password: boolean;
|
|
24
24
|
otp_auth_enabled: boolean;
|
|
@@ -93,8 +93,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
93
93
|
server_metadata?: {} | null | undefined;
|
|
94
94
|
display_name: string;
|
|
95
95
|
id: string;
|
|
96
|
-
profile_image_url: string | null;
|
|
97
96
|
created_at_millis: number;
|
|
97
|
+
profile_image_url: string | null;
|
|
98
98
|
} | null;
|
|
99
99
|
selected_team_id: string | null;
|
|
100
100
|
profile_image_url: string | null;
|
|
@@ -174,9 +174,9 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
174
174
|
}, "">;
|
|
175
175
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
176
176
|
primary_email: string | null | undefined;
|
|
177
|
-
selected_team_id: string | null | undefined;
|
|
178
177
|
display_name: string | null | undefined;
|
|
179
178
|
client_metadata: {} | null | undefined;
|
|
179
|
+
selected_team_id: string | null | undefined;
|
|
180
180
|
profile_image_url: string | null | undefined;
|
|
181
181
|
otp_auth_enabled: boolean | undefined;
|
|
182
182
|
passkey_auth_enabled: boolean | undefined;
|