@hexclave/shared 1.0.13 → 1.0.14
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 +146 -146
- package/dist/esm/ai/unified-prompts/reminders.js +1 -1
- package/dist/esm/config/schema.d.ts +146 -146
- package/dist/esm/interface/admin-metrics.d.ts +2 -2
- package/dist/esm/interface/conversations.d.ts +8 -8
- package/dist/esm/interface/crud/email-outbox.d.ts +148 -148
- package/dist/esm/interface/crud/products.d.ts +4 -4
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +16 -16
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +3 -3
- package/dist/esm/sessions.d.ts +2 -2
- package/dist/interface/admin-metrics.d.ts +2 -2
- package/dist/interface/conversations.d.ts +8 -8
- package/dist/interface/crud/email-outbox.d.ts +148 -148
- package/dist/interface/crud/products.d.ts +4 -4
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +16 -16
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/schema-fields.d.ts +3 -3
- package/dist/sessions.d.ts +2 -2
- package/package.json +1 -1
|
@@ -26,8 +26,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
26
26
|
}>;
|
|
27
27
|
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
quantity?: number | undefined;
|
|
30
29
|
repeat?: "never" | DayInterval | undefined;
|
|
30
|
+
quantity?: number | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -61,8 +61,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
61
61
|
}>;
|
|
62
62
|
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
|
-
quantity?: number | undefined;
|
|
65
64
|
repeat?: "never" | DayInterval | undefined;
|
|
65
|
+
quantity?: number | undefined;
|
|
66
66
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
};
|
|
@@ -124,8 +124,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
124
124
|
}>;
|
|
125
125
|
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
|
-
quantity?: number | undefined;
|
|
128
127
|
repeat?: "never" | DayInterval | undefined;
|
|
128
|
+
quantity?: number | undefined;
|
|
129
129
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
@@ -152,8 +152,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
152
152
|
}>;
|
|
153
153
|
display_name: string;
|
|
154
154
|
included_items: Record<string, {
|
|
155
|
-
quantity?: number | undefined;
|
|
156
155
|
repeat?: "never" | DayInterval | undefined;
|
|
156
|
+
quantity?: number | undefined;
|
|
157
157
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
158
|
}>;
|
|
159
159
|
};
|
|
@@ -78,9 +78,9 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
+
description: string;
|
|
81
82
|
user_id: string;
|
|
82
83
|
type: "user";
|
|
83
|
-
description: string;
|
|
84
84
|
id: string;
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
expires_at_millis: number | undefined;
|
|
@@ -176,9 +176,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
176
176
|
is_public: undefined;
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
|
+
description: string;
|
|
179
180
|
type: "team";
|
|
180
181
|
team_id: string;
|
|
181
|
-
description: string;
|
|
182
182
|
id: string;
|
|
183
183
|
created_at_millis: number;
|
|
184
184
|
expires_at_millis: number | undefined;
|
|
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
|
|
|
3
3
|
|
|
4
4
|
//#region src/interface/crud/projects.d.ts
|
|
5
5
|
declare const emailConfigSchema: yup$1.ObjectSchema<{
|
|
6
|
-
type: "
|
|
6
|
+
type: "standard" | "shared";
|
|
7
7
|
host: string | undefined;
|
|
8
8
|
port: number | undefined;
|
|
9
9
|
username: string | undefined;
|
|
@@ -20,7 +20,7 @@ declare const emailConfigSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
sender_email: undefined;
|
|
21
21
|
}, "">;
|
|
22
22
|
declare const emailConfigWithoutPasswordSchema: yup$1.ObjectSchema<{
|
|
23
|
-
type: "
|
|
23
|
+
type: "standard" | "shared";
|
|
24
24
|
host: string | undefined;
|
|
25
25
|
port: number | undefined;
|
|
26
26
|
username: string | undefined;
|
|
@@ -66,7 +66,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
66
66
|
facebook_config_id?: string | undefined;
|
|
67
67
|
microsoft_tenant_id?: string | undefined;
|
|
68
68
|
apple_bundle_ids?: string[] | undefined;
|
|
69
|
-
type: "
|
|
69
|
+
type: "standard" | "shared";
|
|
70
70
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
71
71
|
provider_config_id: string;
|
|
72
72
|
}[];
|
|
@@ -89,7 +89,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
89
89
|
username?: string | undefined;
|
|
90
90
|
sender_name?: string | undefined;
|
|
91
91
|
sender_email?: string | undefined;
|
|
92
|
-
type: "
|
|
92
|
+
type: "standard" | "shared";
|
|
93
93
|
};
|
|
94
94
|
email_theme: string;
|
|
95
95
|
create_team_on_sign_up: boolean;
|
|
@@ -219,7 +219,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
219
219
|
facebook_config_id?: string | undefined;
|
|
220
220
|
microsoft_tenant_id?: string | undefined;
|
|
221
221
|
apple_bundle_ids?: string[] | undefined;
|
|
222
|
-
type: "
|
|
222
|
+
type: "standard" | "shared";
|
|
223
223
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
224
224
|
}[] | undefined;
|
|
225
225
|
allow_localhost?: boolean | undefined;
|
|
@@ -238,7 +238,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
238
238
|
username?: string | undefined;
|
|
239
239
|
sender_name?: string | undefined;
|
|
240
240
|
sender_email?: string | undefined;
|
|
241
|
-
type: "
|
|
241
|
+
type: "standard" | "shared";
|
|
242
242
|
} | undefined;
|
|
243
243
|
email_theme?: string | undefined;
|
|
244
244
|
create_team_on_sign_up?: boolean | undefined;
|
|
@@ -299,7 +299,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
299
299
|
facebook_config_id?: string | undefined;
|
|
300
300
|
microsoft_tenant_id?: string | undefined;
|
|
301
301
|
apple_bundle_ids?: string[] | undefined;
|
|
302
|
-
type: "
|
|
302
|
+
type: "standard" | "shared";
|
|
303
303
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
304
304
|
}[] | undefined;
|
|
305
305
|
allow_localhost?: boolean | undefined;
|
|
@@ -318,7 +318,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
318
318
|
username?: string | undefined;
|
|
319
319
|
sender_name?: string | undefined;
|
|
320
320
|
sender_email?: string | undefined;
|
|
321
|
-
type: "
|
|
321
|
+
type: "standard" | "shared";
|
|
322
322
|
} | undefined;
|
|
323
323
|
email_theme?: string | undefined;
|
|
324
324
|
create_team_on_sign_up?: boolean | undefined;
|
|
@@ -439,7 +439,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
439
439
|
facebook_config_id?: string | undefined;
|
|
440
440
|
microsoft_tenant_id?: string | undefined;
|
|
441
441
|
apple_bundle_ids?: string[] | undefined;
|
|
442
|
-
type: "
|
|
442
|
+
type: "standard" | "shared";
|
|
443
443
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
444
444
|
provider_config_id: string;
|
|
445
445
|
}[];
|
|
@@ -462,7 +462,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
462
462
|
username?: string | undefined;
|
|
463
463
|
sender_name?: string | undefined;
|
|
464
464
|
sender_email?: string | undefined;
|
|
465
|
-
type: "
|
|
465
|
+
type: "standard" | "shared";
|
|
466
466
|
};
|
|
467
467
|
email_theme: string;
|
|
468
468
|
create_team_on_sign_up: boolean;
|
|
@@ -554,7 +554,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
554
554
|
facebook_config_id?: string | undefined;
|
|
555
555
|
microsoft_tenant_id?: string | undefined;
|
|
556
556
|
apple_bundle_ids?: string[] | undefined;
|
|
557
|
-
type: "
|
|
557
|
+
type: "standard" | "shared";
|
|
558
558
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
559
559
|
}[] | undefined;
|
|
560
560
|
allow_localhost?: boolean | undefined;
|
|
@@ -573,7 +573,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
573
573
|
username?: string | undefined;
|
|
574
574
|
sender_name?: string | undefined;
|
|
575
575
|
sender_email?: string | undefined;
|
|
576
|
-
type: "
|
|
576
|
+
type: "standard" | "shared";
|
|
577
577
|
} | undefined;
|
|
578
578
|
email_theme?: string | undefined;
|
|
579
579
|
create_team_on_sign_up?: boolean | undefined;
|
|
@@ -662,7 +662,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
662
662
|
facebook_config_id?: string | undefined;
|
|
663
663
|
microsoft_tenant_id?: string | undefined;
|
|
664
664
|
apple_bundle_ids?: string[] | undefined;
|
|
665
|
-
type: "
|
|
665
|
+
type: "standard" | "shared";
|
|
666
666
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
667
667
|
provider_config_id: string;
|
|
668
668
|
}[];
|
|
@@ -685,7 +685,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
685
685
|
username?: string | undefined;
|
|
686
686
|
sender_name?: string | undefined;
|
|
687
687
|
sender_email?: string | undefined;
|
|
688
|
-
type: "
|
|
688
|
+
type: "standard" | "shared";
|
|
689
689
|
};
|
|
690
690
|
email_theme: string;
|
|
691
691
|
create_team_on_sign_up: boolean;
|
|
@@ -777,7 +777,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
777
777
|
facebook_config_id?: string | undefined;
|
|
778
778
|
microsoft_tenant_id?: string | undefined;
|
|
779
779
|
apple_bundle_ids?: string[] | undefined;
|
|
780
|
-
type: "
|
|
780
|
+
type: "standard" | "shared";
|
|
781
781
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
782
782
|
}[] | undefined;
|
|
783
783
|
allow_localhost?: boolean | undefined;
|
|
@@ -796,7 +796,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
796
796
|
username?: string | undefined;
|
|
797
797
|
sender_name?: string | undefined;
|
|
798
798
|
sender_email?: string | undefined;
|
|
799
|
-
type: "
|
|
799
|
+
type: "standard" | "shared";
|
|
800
800
|
} | undefined;
|
|
801
801
|
email_theme?: string | undefined;
|
|
802
802
|
create_team_on_sign_up?: boolean | undefined;
|
|
@@ -58,8 +58,8 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
58
58
|
}>;
|
|
59
59
|
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
|
-
quantity?: number | undefined;
|
|
62
61
|
repeat?: "never" | DayInterval | undefined;
|
|
62
|
+
quantity?: number | undefined;
|
|
63
63
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
@@ -142,8 +142,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
142
142
|
}>;
|
|
143
143
|
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
|
-
quantity?: number | undefined;
|
|
146
145
|
repeat?: "never" | DayInterval | undefined;
|
|
146
|
+
quantity?: number | undefined;
|
|
147
147
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
};
|
package/dist/schema-fields.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare const projectSignUpEnabledSchema: yup$1.BooleanSchema<boolean | undefine
|
|
|
140
140
|
declare const projectCredentialEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
|
|
141
141
|
declare const oauthIdSchema: yup$1.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup$1.AnyObject, undefined, "">;
|
|
142
142
|
declare const oauthEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
|
|
143
|
-
declare const oauthTypeSchema: yup$1.StringSchema<"
|
|
143
|
+
declare const oauthTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
|
|
144
144
|
declare const oauthClientIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
145
145
|
declare const oauthClientSecretSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
146
146
|
declare const oauthCustomCallbackUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -149,7 +149,7 @@ declare const oauthMicrosoftTenantIdSchema: yup$1.StringSchema<string | undefine
|
|
|
149
149
|
declare const oauthAppleBundleIdsSchema: yup$1.ArraySchema<string[] | undefined, yup$1.AnyObject, undefined, "">;
|
|
150
150
|
declare const oauthAppleBundleIdSchema: yup$1.StringSchema<string, yup$1.AnyObject, undefined, "">;
|
|
151
151
|
declare const oauthAccountMergeStrategySchema: yup$1.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup$1.AnyObject, undefined, "">;
|
|
152
|
-
declare const emailTypeSchema: yup$1.StringSchema<"
|
|
152
|
+
declare const emailTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
|
|
153
153
|
declare const emailSenderNameSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
154
154
|
declare const emailHostSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
155
155
|
declare const emailPortSchema: yup$1.NumberSchema<number | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -312,8 +312,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
312
312
|
free_trial?: DayInterval | undefined;
|
|
313
313
|
}>;
|
|
314
314
|
included_items: Record<string, {
|
|
315
|
-
quantity?: number | undefined;
|
|
316
315
|
repeat?: "never" | DayInterval | undefined;
|
|
316
|
+
quantity?: number | undefined;
|
|
317
317
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
318
318
|
}>;
|
|
319
319
|
client_metadata: {} | null | undefined;
|
package/dist/sessions.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
+
name: string | null;
|
|
13
|
+
sub: string;
|
|
12
14
|
project_id: string;
|
|
13
15
|
refresh_token_id: string;
|
|
14
16
|
email: string | null;
|
|
@@ -16,12 +18,10 @@ declare class AccessToken {
|
|
|
16
18
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
19
|
} | null;
|
|
18
20
|
branch_id: string;
|
|
19
|
-
sub: string;
|
|
20
21
|
iat: number;
|
|
21
22
|
iss: string;
|
|
22
23
|
aud: string;
|
|
23
24
|
role: "authenticated";
|
|
24
|
-
name: string | null;
|
|
25
25
|
email_verified: boolean;
|
|
26
26
|
selected_team_id: string | null;
|
|
27
27
|
signed_up_at: number;
|