@hexclave/shared 1.0.24 → 1.0.25
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 +1 -1
- package/dist/config/schema.d.ts +82 -82
- package/dist/config-authoring.d.ts +2 -2
- package/dist/config-authoring.d.ts.map +1 -1
- package/dist/config-authoring.js.map +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +1 -1
- package/dist/esm/config/schema.d.ts +82 -82
- package/dist/esm/config-authoring.d.ts +2 -2
- package/dist/esm/config-authoring.d.ts.map +1 -1
- package/dist/esm/config-authoring.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +4 -4
- package/dist/esm/interface/conversations.d.ts +6 -6
- package/dist/esm/interface/crud/current-user.d.ts +10 -10
- package/dist/esm/interface/crud/email-outbox.d.ts +152 -152
- package/dist/esm/interface/crud/products.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +86 -36
- package/dist/esm/interface/crud/projects.d.ts.map +1 -1
- package/dist/esm/interface/crud/projects.js +6 -0
- package/dist/esm/interface/crud/projects.js.map +1 -1
- package/dist/esm/interface/crud/team-member-profiles.d.ts +36 -36
- package/dist/esm/interface/crud/transactions.d.ts +9 -9
- package/dist/esm/interface/crud/users.d.ts +14 -14
- package/dist/esm/known-errors.d.ts +4 -4
- package/dist/esm/schema-fields.d.ts +4 -4
- package/dist/interface/admin-metrics.d.ts +4 -4
- package/dist/interface/conversations.d.ts +6 -6
- package/dist/interface/crud/current-user.d.ts +10 -10
- package/dist/interface/crud/email-outbox.d.ts +152 -152
- package/dist/interface/crud/products.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +86 -36
- package/dist/interface/crud/projects.d.ts.map +1 -1
- package/dist/interface/crud/projects.js +6 -0
- package/dist/interface/crud/projects.js.map +1 -1
- package/dist/interface/crud/team-member-profiles.d.ts +36 -36
- package/dist/interface/crud/transactions.d.ts +9 -9
- package/dist/interface/crud/users.d.ts +14 -14
- package/dist/known-errors.d.ts +4 -4
- package/dist/schema-fields.d.ts +4 -4
- package/package.json +1 -1
- package/src/config-authoring.ts +2 -2
- package/src/interface/crud/projects.ts +12 -0
|
@@ -163,20 +163,18 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
+
is_anonymous: boolean | undefined;
|
|
166
167
|
display_name: string | null | undefined;
|
|
167
168
|
client_metadata: {} | null | undefined;
|
|
168
169
|
client_read_only_metadata: {} | null | undefined;
|
|
169
170
|
server_metadata: {} | null | undefined;
|
|
170
|
-
is_anonymous: boolean | undefined;
|
|
171
171
|
primary_email: string | null | undefined;
|
|
172
|
-
|
|
172
|
+
password: string | null | undefined;
|
|
173
173
|
primary_email_verified: boolean | undefined;
|
|
174
174
|
primary_email_auth_enabled: boolean | undefined;
|
|
175
|
-
|
|
176
|
-
password: string | null | undefined;
|
|
177
|
-
password_hash: string | undefined;
|
|
175
|
+
profile_image_url: string | null | undefined;
|
|
178
176
|
otp_auth_enabled: boolean | undefined;
|
|
179
|
-
|
|
177
|
+
passkey_auth_enabled: boolean | undefined;
|
|
180
178
|
restricted_by_admin: boolean | undefined;
|
|
181
179
|
restricted_by_admin_reason: string | null | undefined;
|
|
182
180
|
restricted_by_admin_private_details: string | null | undefined;
|
|
@@ -187,10 +185,12 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
187
185
|
free_trial_abuse: number;
|
|
188
186
|
};
|
|
189
187
|
} | undefined;
|
|
188
|
+
password_hash: string | undefined;
|
|
189
|
+
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
191
191
|
oauth_providers: {
|
|
192
|
-
id: string;
|
|
193
192
|
email: string | null;
|
|
193
|
+
id: string;
|
|
194
194
|
account_id: string;
|
|
195
195
|
}[] | undefined;
|
|
196
196
|
is_anonymous: boolean | undefined;
|
|
@@ -369,20 +369,18 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
+
is_anonymous: boolean | undefined;
|
|
372
373
|
display_name: string | null | undefined;
|
|
373
374
|
client_metadata: {} | null | undefined;
|
|
374
375
|
client_read_only_metadata: {} | null | undefined;
|
|
375
376
|
server_metadata: {} | null | undefined;
|
|
376
|
-
is_anonymous: boolean | undefined;
|
|
377
377
|
primary_email: string | null | undefined;
|
|
378
|
-
|
|
378
|
+
password: string | null | undefined;
|
|
379
379
|
primary_email_verified: boolean | undefined;
|
|
380
380
|
primary_email_auth_enabled: boolean | undefined;
|
|
381
|
-
|
|
382
|
-
password: string | null | undefined;
|
|
383
|
-
password_hash: string | undefined;
|
|
381
|
+
profile_image_url: string | null | undefined;
|
|
384
382
|
otp_auth_enabled: boolean | undefined;
|
|
385
|
-
|
|
383
|
+
passkey_auth_enabled: boolean | undefined;
|
|
386
384
|
restricted_by_admin: boolean | undefined;
|
|
387
385
|
restricted_by_admin_reason: string | null | undefined;
|
|
388
386
|
restricted_by_admin_private_details: string | null | undefined;
|
|
@@ -393,10 +391,12 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
393
391
|
free_trial_abuse: number;
|
|
394
392
|
};
|
|
395
393
|
} | undefined;
|
|
394
|
+
password_hash: string | undefined;
|
|
395
|
+
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
397
397
|
oauth_providers: {
|
|
398
|
-
id: string;
|
|
399
398
|
email: string | null;
|
|
399
|
+
id: string;
|
|
400
400
|
account_id: string;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
is_anonymous: boolean | undefined;
|
|
@@ -369,7 +369,7 @@ declare const KnownErrors: {
|
|
|
369
369
|
PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
|
|
370
370
|
errorCode: "PERMISSION_NOT_FOUND";
|
|
371
371
|
};
|
|
372
|
-
PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "
|
|
372
|
+
PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "team" | "project", actualScope: "team" | "project" | null]> & {
|
|
373
373
|
errorCode: "WRONG_PERMISSION_SCOPE";
|
|
374
374
|
};
|
|
375
375
|
ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
|
|
@@ -512,7 +512,7 @@ declare const KnownErrors: {
|
|
|
512
512
|
ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
|
|
513
513
|
errorCode: "ITEM_NOT_FOUND";
|
|
514
514
|
};
|
|
515
|
-
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "
|
|
515
|
+
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
|
|
516
516
|
errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
517
517
|
};
|
|
518
518
|
CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
|
|
@@ -521,7 +521,7 @@ declare const KnownErrors: {
|
|
|
521
521
|
ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "server_only" | "item_exists" | null]> & {
|
|
522
522
|
errorCode: "PRODUCT_DOES_NOT_EXIST";
|
|
523
523
|
};
|
|
524
|
-
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "
|
|
524
|
+
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
|
|
525
525
|
errorCode: "PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
526
526
|
};
|
|
527
527
|
ProductAlreadyGranted: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_ALREADY_GRANTED">, [productId: string, customerId: string]> & {
|
|
@@ -548,7 +548,7 @@ declare const KnownErrors: {
|
|
|
548
548
|
StripeAccountInfoNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"STRIPE_ACCOUNT_INFO_NOT_FOUND">, []> & {
|
|
549
549
|
errorCode: "STRIPE_ACCOUNT_INFO_NOT_FOUND";
|
|
550
550
|
};
|
|
551
|
-
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "
|
|
551
|
+
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "team" | "user", customerId: string]> & {
|
|
552
552
|
errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
|
|
553
553
|
};
|
|
554
554
|
NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {
|
|
@@ -174,7 +174,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
|
|
|
174
174
|
displayName: string;
|
|
175
175
|
tsxSource: string;
|
|
176
176
|
}>, yup$1.AnyObject, undefined, "">;
|
|
177
|
-
declare const customerTypeSchema: yup$1.StringSchema<"
|
|
177
|
+
declare const customerTypeSchema: yup$1.StringSchema<"team" | "user" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
|
|
178
178
|
/**
|
|
179
179
|
* Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
|
|
180
180
|
* like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
|
|
@@ -218,7 +218,7 @@ declare const productSchema: yup$1.ObjectSchema<{
|
|
|
218
218
|
displayName: string | undefined;
|
|
219
219
|
productLineId: string | undefined;
|
|
220
220
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
221
|
-
customerType: "
|
|
221
|
+
customerType: "team" | "user" | "custom";
|
|
222
222
|
freeTrial: DayInterval | undefined;
|
|
223
223
|
serverOnly: boolean | undefined;
|
|
224
224
|
stackable: boolean | undefined;
|
|
@@ -257,7 +257,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
257
257
|
displayName: string | undefined;
|
|
258
258
|
productLineId: string | undefined;
|
|
259
259
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
260
|
-
customerType: "
|
|
260
|
+
customerType: "team" | "user" | "custom";
|
|
261
261
|
freeTrial: DayInterval | undefined;
|
|
262
262
|
serverOnly: boolean | undefined;
|
|
263
263
|
stackable: boolean | undefined;
|
|
@@ -298,7 +298,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
298
298
|
}, "">;
|
|
299
299
|
declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
300
300
|
display_name: string;
|
|
301
|
-
customer_type: "
|
|
301
|
+
customer_type: "team" | "user" | "custom";
|
|
302
302
|
free_trial: DayInterval | undefined;
|
|
303
303
|
server_only: boolean;
|
|
304
304
|
stackable: boolean;
|
|
@@ -164,9 +164,9 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
166
166
|
error: number;
|
|
167
|
+
bounced: number;
|
|
167
168
|
in_progress: number;
|
|
168
169
|
delivered: number;
|
|
169
|
-
bounced: number;
|
|
170
170
|
};
|
|
171
171
|
deliverability_rate: number;
|
|
172
172
|
bounce_rate: 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<"tv" | "widescreen" | "desktop" | "laptop" | "tablet"
|
|
372
|
+
declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"mobile" | "tv" | "widescreen" | "desktop" | "laptop" | "tablet", yup.AnyObject, undefined, "">;
|
|
373
373
|
declare const AnalyticsClickmapTokenResponseBodySchema: yup.ObjectSchema<{
|
|
374
374
|
token: string;
|
|
375
375
|
origin: string;
|
|
@@ -398,8 +398,8 @@ 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: {
|
|
@@ -577,9 +577,9 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
579
579
|
error: number;
|
|
580
|
+
bounced: number;
|
|
580
581
|
in_progress: number;
|
|
581
582
|
delivered: number;
|
|
582
|
-
bounced: number;
|
|
583
583
|
};
|
|
584
584
|
deliverability_rate: number;
|
|
585
585
|
bounce_rate: number;
|
|
@@ -173,7 +173,6 @@ 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: "pending" | "open" | "closed";
|
|
177
176
|
source: "email" | "manual" | "chat" | "api";
|
|
178
177
|
metadata: {
|
|
179
178
|
tags: string[];
|
|
@@ -185,8 +184,9 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
185
184
|
lastCustomerReplyAt: string | null;
|
|
186
185
|
lastAgentReplyAt: string | null;
|
|
187
186
|
};
|
|
188
|
-
|
|
187
|
+
status: "pending" | "open" | "closed";
|
|
189
188
|
priority: "low" | "normal" | "high" | "urgent";
|
|
189
|
+
subject: string;
|
|
190
190
|
conversationId: string;
|
|
191
191
|
userId: string | null;
|
|
192
192
|
teamId: string | null;
|
|
@@ -211,7 +211,6 @@ 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: "pending" | "open" | "closed";
|
|
215
214
|
source: "email" | "manual" | "chat" | "api";
|
|
216
215
|
metadata: {
|
|
217
216
|
tags: string[];
|
|
@@ -223,8 +222,9 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
223
222
|
lastCustomerReplyAt: string | null;
|
|
224
223
|
lastAgentReplyAt: string | null;
|
|
225
224
|
};
|
|
226
|
-
|
|
225
|
+
status: "pending" | "open" | "closed";
|
|
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
|
id: string;
|
|
240
|
-
status: "pending" | "open" | "closed";
|
|
241
240
|
body: string | null;
|
|
242
241
|
source: "email" | "manual" | "chat" | "api";
|
|
243
242
|
metadata: {} | null;
|
|
244
|
-
|
|
243
|
+
status: "pending" | "open" | "closed";
|
|
245
244
|
priority: "low" | "normal" | "high" | "urgent";
|
|
245
|
+
subject: string;
|
|
246
246
|
conversationId: string;
|
|
247
247
|
userId: string | null;
|
|
248
248
|
teamId: string | null;
|
|
@@ -4,10 +4,6 @@ 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
|
-
display_name: string | null;
|
|
8
|
-
client_metadata: {} | null;
|
|
9
|
-
client_read_only_metadata: {} | null;
|
|
10
|
-
id: string;
|
|
11
7
|
selected_team_id: string | null;
|
|
12
8
|
is_anonymous: boolean;
|
|
13
9
|
is_restricted: boolean;
|
|
@@ -15,15 +11,19 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
15
11
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
16
12
|
} | null;
|
|
17
13
|
requires_totp_mfa: boolean;
|
|
14
|
+
display_name: string | null;
|
|
15
|
+
client_metadata: {} | null;
|
|
16
|
+
client_read_only_metadata: {} | null;
|
|
17
|
+
id: string;
|
|
18
18
|
primary_email: string | null;
|
|
19
|
-
profile_image_url: string | null;
|
|
20
19
|
primary_email_verified: boolean;
|
|
21
|
-
|
|
20
|
+
profile_image_url: string | null;
|
|
21
|
+
signed_up_at_millis: number;
|
|
22
|
+
has_password: boolean;
|
|
22
23
|
otp_auth_enabled: boolean;
|
|
24
|
+
passkey_auth_enabled: boolean;
|
|
23
25
|
restricted_by_admin: boolean;
|
|
24
26
|
restricted_by_admin_reason: string | null;
|
|
25
|
-
signed_up_at_millis: number;
|
|
26
|
-
has_password: boolean;
|
|
27
27
|
oauth_providers: {
|
|
28
28
|
email?: string | null | undefined;
|
|
29
29
|
id: string;
|
|
@@ -172,13 +172,13 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
172
172
|
requires_totp_mfa: undefined;
|
|
173
173
|
}, "">;
|
|
174
174
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
175
|
+
selected_team_id: string | null | undefined;
|
|
175
176
|
display_name: string | null | undefined;
|
|
176
177
|
client_metadata: {} | null | undefined;
|
|
177
|
-
selected_team_id: string | null | undefined;
|
|
178
178
|
primary_email: string | null | undefined;
|
|
179
179
|
profile_image_url: string | null | undefined;
|
|
180
|
-
passkey_auth_enabled: boolean | undefined;
|
|
181
180
|
otp_auth_enabled: boolean | undefined;
|
|
181
|
+
passkey_auth_enabled: boolean | undefined;
|
|
182
182
|
totp_secret_base64: string | null | undefined;
|
|
183
183
|
}, yup$1.AnyObject, {
|
|
184
184
|
display_name: undefined;
|