@hexclave/shared 1.0.36 → 1.0.37
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.js +2 -2
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/config/format.js +10 -0
- package/dist/config/format.js.map +1 -1
- package/dist/config/schema.d.ts +50 -50
- package/dist/config-eval.d.ts +31 -0
- package/dist/config-eval.d.ts.map +1 -0
- package/dist/config-eval.js +117 -0
- package/dist/config-eval.js.map +1 -0
- package/dist/config-rendering.d.ts +3 -6
- package/dist/config-rendering.d.ts.map +1 -1
- package/dist/config-rendering.js +21 -69
- package/dist/config-rendering.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -2
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/config/format.js +10 -0
- package/dist/esm/config/format.js.map +1 -1
- package/dist/esm/config/schema.d.ts +50 -50
- package/dist/esm/config-eval.d.ts +31 -0
- package/dist/esm/config-eval.d.ts.map +1 -0
- package/dist/esm/config-eval.js +112 -0
- package/dist/esm/config-eval.js.map +1 -0
- package/dist/esm/config-rendering.d.ts +3 -6
- package/dist/esm/config-rendering.d.ts.map +1 -1
- package/dist/esm/config-rendering.js +15 -58
- package/dist/esm/config-rendering.js.map +1 -1
- package/dist/esm/interface/admin-interface.d.ts +44 -2
- package/dist/esm/interface/admin-interface.d.ts.map +1 -1
- package/dist/esm/interface/admin-interface.js +56 -1
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +12 -12
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +4 -4
- package/dist/esm/interface/crud/current-user.d.ts +12 -12
- package/dist/esm/interface/crud/email-outbox.d.ts +180 -180
- package/dist/esm/interface/crud/products.d.ts +15 -15
- 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 +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +26 -26
- package/dist/esm/interface/crud/transactions.d.ts +20 -20
- 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.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +1 -1
- package/dist/esm/schema-fields.d.ts +35 -2
- package/dist/esm/schema-fields.d.ts.map +1 -1
- package/dist/esm/schema-fields.js +53 -2
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/jsx-editable-transpiler.js +2 -2
- package/dist/esm/utils/promises.js +1 -1
- package/dist/interface/admin-interface.d.ts +44 -2
- package/dist/interface/admin-interface.d.ts.map +1 -1
- package/dist/interface/admin-interface.js +56 -1
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/admin-metrics.d.ts +12 -12
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +4 -4
- package/dist/interface/crud/current-user.d.ts +12 -12
- package/dist/interface/crud/email-outbox.d.ts +180 -180
- package/dist/interface/crud/products.d.ts +15 -15
- 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 +28 -28
- package/dist/interface/crud/team-member-profiles.d.ts +26 -26
- package/dist/interface/crud/transactions.d.ts +20 -20
- 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.js +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +1 -1
- package/dist/schema-fields.d.ts +35 -2
- package/dist/schema-fields.d.ts.map +1 -1
- package/dist/schema-fields.js +55 -1
- package/dist/schema-fields.js.map +1 -1
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/jsx-editable-transpiler.js +4 -4
- package/dist/utils/promises.js +1 -1
- package/package.json +2 -1
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +2 -2
- package/src/config/format.ts +18 -0
- package/src/config-eval.ts +140 -0
- package/src/config-rendering.ts +23 -79
- package/src/interface/admin-interface.ts +85 -5
- package/src/schema-fields.ts +59 -1
- package/dist/esm/hexclave-config-file.d.ts +0 -38
- package/dist/esm/hexclave-config-file.d.ts.map +0 -1
- package/dist/esm/hexclave-config-file.js +0 -144
- package/dist/esm/hexclave-config-file.js.map +0 -1
- package/dist/hexclave-config-file.d.ts +0 -38
- package/dist/hexclave-config-file.d.ts.map +0 -1
- package/dist/hexclave-config-file.js +0 -153
- package/dist/hexclave-config-file.js.map +0 -1
- package/src/hexclave-config-file.ts +0 -215
|
@@ -10,6 +10,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
10
10
|
client_metadata?: {} | null | undefined;
|
|
11
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
12
12
|
server_metadata?: {} | null | undefined;
|
|
13
|
+
server_only: boolean;
|
|
14
|
+
customer_type: "team" | "user" | "custom";
|
|
13
15
|
stackable: boolean;
|
|
14
16
|
prices: Record<string, {
|
|
15
17
|
USD?: string | undefined;
|
|
@@ -23,11 +25,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
23
25
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
24
26
|
}>;
|
|
25
27
|
display_name: string;
|
|
26
|
-
customer_type: "team" | "user" | "custom";
|
|
27
|
-
server_only: boolean;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
29
|
quantity?: number | undefined;
|
|
30
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -39,11 +39,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
39
39
|
is_cancelable: boolean;
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
switch_options: {
|
|
42
|
+
product_id: string;
|
|
42
43
|
product: {
|
|
43
44
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
44
45
|
client_metadata?: {} | null | undefined;
|
|
45
46
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
47
|
server_metadata?: {} | null | undefined;
|
|
48
|
+
server_only: boolean;
|
|
49
|
+
customer_type: "team" | "user" | "custom";
|
|
47
50
|
stackable: boolean;
|
|
48
51
|
prices: Record<string, {
|
|
49
52
|
USD?: string | undefined;
|
|
@@ -57,15 +60,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
57
60
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
58
61
|
}>;
|
|
59
62
|
display_name: string;
|
|
60
|
-
customer_type: "team" | "user" | "custom";
|
|
61
|
-
server_only: boolean;
|
|
62
63
|
included_items: Record<string, {
|
|
63
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
64
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
65
66
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
66
67
|
}>;
|
|
67
68
|
};
|
|
68
|
-
product_id: string;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
}, yup$1.AnyObject, {
|
|
71
71
|
id: undefined;
|
|
@@ -102,11 +102,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
102
102
|
is_cancelable: boolean;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
switch_options?: {
|
|
105
|
+
product_id: string;
|
|
105
106
|
product: {
|
|
106
107
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
107
108
|
client_metadata?: {} | null | undefined;
|
|
108
109
|
client_read_only_metadata?: {} | null | undefined;
|
|
109
110
|
server_metadata?: {} | null | undefined;
|
|
111
|
+
server_only: boolean;
|
|
112
|
+
customer_type: "team" | "user" | "custom";
|
|
110
113
|
stackable: boolean;
|
|
111
114
|
prices: Record<string, {
|
|
112
115
|
USD?: string | undefined;
|
|
@@ -120,21 +123,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
120
123
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
121
124
|
}>;
|
|
122
125
|
display_name: string;
|
|
123
|
-
customer_type: "team" | "user" | "custom";
|
|
124
|
-
server_only: boolean;
|
|
125
126
|
included_items: Record<string, {
|
|
126
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
127
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
128
129
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
129
130
|
}>;
|
|
130
131
|
};
|
|
131
|
-
product_id: string;
|
|
132
132
|
}[] | undefined;
|
|
133
|
+
quantity: number;
|
|
133
134
|
product: {
|
|
134
135
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
135
136
|
client_metadata?: {} | null | undefined;
|
|
136
137
|
client_read_only_metadata?: {} | null | undefined;
|
|
137
138
|
server_metadata?: {} | null | undefined;
|
|
139
|
+
server_only: boolean;
|
|
140
|
+
customer_type: "team" | "user" | "custom";
|
|
138
141
|
stackable: boolean;
|
|
139
142
|
prices: Record<string, {
|
|
140
143
|
USD?: string | undefined;
|
|
@@ -148,15 +151,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
148
151
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
149
152
|
}>;
|
|
150
153
|
display_name: string;
|
|
151
|
-
customer_type: "team" | "user" | "custom";
|
|
152
|
-
server_only: boolean;
|
|
153
154
|
included_items: Record<string, {
|
|
154
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
155
155
|
quantity?: number | undefined;
|
|
156
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
156
157
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
157
158
|
}>;
|
|
158
159
|
};
|
|
159
|
-
quantity: number;
|
|
160
160
|
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA
|
|
1
|
+
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -79,10 +79,10 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
+
user_id: string;
|
|
82
83
|
type: "user";
|
|
83
84
|
description: string;
|
|
84
85
|
id: string;
|
|
85
|
-
user_id: string;
|
|
86
86
|
created_at_millis: number;
|
|
87
87
|
expires_at_millis: number | undefined;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -178,9 +178,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
180
|
type: "team";
|
|
181
|
+
team_id: string;
|
|
181
182
|
description: string;
|
|
182
183
|
id: string;
|
|
183
|
-
team_id: string;
|
|
184
184
|
created_at_millis: number;
|
|
185
185
|
expires_at_millis: number | undefined;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -63,10 +63,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
63
63
|
message: string;
|
|
64
64
|
}[];
|
|
65
65
|
config: {
|
|
66
|
-
domains: {
|
|
67
|
-
domain: string;
|
|
68
|
-
handler_path: string;
|
|
69
|
-
}[];
|
|
70
66
|
oauth_providers: {
|
|
71
67
|
client_id?: string | undefined;
|
|
72
68
|
client_secret?: string | undefined;
|
|
@@ -77,6 +73,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
77
73
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
78
74
|
provider_config_id: string;
|
|
79
75
|
}[];
|
|
76
|
+
domains: {
|
|
77
|
+
domain: string;
|
|
78
|
+
handler_path: string;
|
|
79
|
+
}[];
|
|
80
80
|
allow_localhost: boolean;
|
|
81
81
|
sign_up_enabled: boolean;
|
|
82
82
|
credential_enabled: boolean;
|
|
@@ -230,10 +230,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
230
230
|
selected_payments_country: "US" | "OTHER";
|
|
231
231
|
} | null | undefined;
|
|
232
232
|
config: {
|
|
233
|
-
domains?: {
|
|
234
|
-
domain: string;
|
|
235
|
-
handler_path: string;
|
|
236
|
-
}[] | undefined;
|
|
237
233
|
oauth_providers?: {
|
|
238
234
|
client_id?: string | undefined;
|
|
239
235
|
client_secret?: string | undefined;
|
|
@@ -243,6 +239,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
243
239
|
type: "shared" | "standard";
|
|
244
240
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
245
241
|
}[] | undefined;
|
|
242
|
+
domains?: {
|
|
243
|
+
domain: string;
|
|
244
|
+
handler_path: string;
|
|
245
|
+
}[] | undefined;
|
|
246
246
|
allow_localhost?: boolean | undefined;
|
|
247
247
|
sign_up_enabled?: boolean | undefined;
|
|
248
248
|
credential_enabled?: boolean | undefined;
|
|
@@ -310,10 +310,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
310
310
|
selected_payments_country: "US" | "OTHER";
|
|
311
311
|
} | null | undefined;
|
|
312
312
|
config: {
|
|
313
|
-
domains?: {
|
|
314
|
-
domain: string;
|
|
315
|
-
handler_path: string;
|
|
316
|
-
}[] | undefined;
|
|
317
313
|
oauth_providers?: {
|
|
318
314
|
client_id?: string | undefined;
|
|
319
315
|
client_secret?: string | undefined;
|
|
@@ -323,6 +319,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
323
319
|
type: "shared" | "standard";
|
|
324
320
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
325
321
|
}[] | undefined;
|
|
322
|
+
domains?: {
|
|
323
|
+
domain: string;
|
|
324
|
+
handler_path: string;
|
|
325
|
+
}[] | undefined;
|
|
326
326
|
allow_localhost?: boolean | undefined;
|
|
327
327
|
sign_up_enabled?: boolean | undefined;
|
|
328
328
|
credential_enabled?: boolean | undefined;
|
|
@@ -466,10 +466,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
466
466
|
message: string;
|
|
467
467
|
}[];
|
|
468
468
|
config: {
|
|
469
|
-
domains: {
|
|
470
|
-
domain: string;
|
|
471
|
-
handler_path: string;
|
|
472
|
-
}[];
|
|
473
469
|
oauth_providers: {
|
|
474
470
|
client_id?: string | undefined;
|
|
475
471
|
client_secret?: string | undefined;
|
|
@@ -480,6 +476,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
480
476
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
481
477
|
provider_config_id: string;
|
|
482
478
|
}[];
|
|
479
|
+
domains: {
|
|
480
|
+
domain: string;
|
|
481
|
+
handler_path: string;
|
|
482
|
+
}[];
|
|
483
483
|
allow_localhost: boolean;
|
|
484
484
|
sign_up_enabled: boolean;
|
|
485
485
|
credential_enabled: boolean;
|
|
@@ -585,10 +585,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
585
585
|
selected_payments_country: "US" | "OTHER";
|
|
586
586
|
} | null | undefined;
|
|
587
587
|
config: {
|
|
588
|
-
domains?: {
|
|
589
|
-
domain: string;
|
|
590
|
-
handler_path: string;
|
|
591
|
-
}[] | undefined;
|
|
592
588
|
oauth_providers?: {
|
|
593
589
|
client_id?: string | undefined;
|
|
594
590
|
client_secret?: string | undefined;
|
|
@@ -598,6 +594,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
598
594
|
type: "shared" | "standard";
|
|
599
595
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
600
596
|
}[] | undefined;
|
|
597
|
+
domains?: {
|
|
598
|
+
domain: string;
|
|
599
|
+
handler_path: string;
|
|
600
|
+
}[] | undefined;
|
|
601
601
|
allow_localhost?: boolean | undefined;
|
|
602
602
|
sign_up_enabled?: boolean | undefined;
|
|
603
603
|
credential_enabled?: boolean | undefined;
|
|
@@ -699,10 +699,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
699
699
|
message: string;
|
|
700
700
|
}[];
|
|
701
701
|
config: {
|
|
702
|
-
domains: {
|
|
703
|
-
domain: string;
|
|
704
|
-
handler_path: string;
|
|
705
|
-
}[];
|
|
706
702
|
oauth_providers: {
|
|
707
703
|
client_id?: string | undefined;
|
|
708
704
|
client_secret?: string | undefined;
|
|
@@ -713,6 +709,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
713
709
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
714
710
|
provider_config_id: string;
|
|
715
711
|
}[];
|
|
712
|
+
domains: {
|
|
713
|
+
domain: string;
|
|
714
|
+
handler_path: string;
|
|
715
|
+
}[];
|
|
716
716
|
allow_localhost: boolean;
|
|
717
717
|
sign_up_enabled: boolean;
|
|
718
718
|
credential_enabled: boolean;
|
|
@@ -818,10 +818,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
818
818
|
selected_payments_country: "US" | "OTHER";
|
|
819
819
|
} | null | undefined;
|
|
820
820
|
config: {
|
|
821
|
-
domains?: {
|
|
822
|
-
domain: string;
|
|
823
|
-
handler_path: string;
|
|
824
|
-
}[] | undefined;
|
|
825
821
|
oauth_providers?: {
|
|
826
822
|
client_id?: string | undefined;
|
|
827
823
|
client_secret?: string | undefined;
|
|
@@ -831,6 +827,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
831
827
|
type: "shared" | "standard";
|
|
832
828
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
833
829
|
}[] | undefined;
|
|
830
|
+
domains?: {
|
|
831
|
+
domain: string;
|
|
832
|
+
handler_path: string;
|
|
833
|
+
}[] | undefined;
|
|
834
834
|
allow_localhost?: boolean | undefined;
|
|
835
835
|
sign_up_enabled?: boolean | undefined;
|
|
836
836
|
credential_enabled?: boolean | undefined;
|
|
@@ -21,40 +21,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
+
restricted_reason: {
|
|
25
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
|
+
} | null;
|
|
27
|
+
primary_email: string | null;
|
|
28
|
+
selected_team_id: string | null;
|
|
29
|
+
is_anonymous: boolean;
|
|
30
|
+
is_restricted: boolean;
|
|
31
|
+
requires_totp_mfa: boolean;
|
|
24
32
|
display_name: string | null;
|
|
25
33
|
client_metadata: {} | null;
|
|
26
34
|
client_read_only_metadata: {} | null;
|
|
27
35
|
server_metadata: {} | null;
|
|
28
36
|
id: string;
|
|
29
|
-
selected_team_id: string | null;
|
|
30
|
-
is_anonymous: boolean;
|
|
31
|
-
is_restricted: boolean;
|
|
32
|
-
restricted_reason: {
|
|
33
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
34
|
-
} | null;
|
|
35
|
-
requires_totp_mfa: boolean;
|
|
36
|
-
primary_email: string | null;
|
|
37
|
-
country_code: string | null;
|
|
38
|
-
profile_image_url: string | null;
|
|
39
|
-
signed_up_at_millis: number;
|
|
40
|
-
last_active_at_millis: number;
|
|
41
37
|
primary_email_verified: boolean;
|
|
42
38
|
primary_email_auth_enabled: boolean;
|
|
39
|
+
profile_image_url: string | null;
|
|
43
40
|
selected_team: {
|
|
44
41
|
client_metadata?: {} | null | undefined;
|
|
45
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
43
|
server_metadata?: {} | null | undefined;
|
|
47
44
|
display_name: string;
|
|
48
45
|
id: string;
|
|
49
|
-
created_at_millis: number;
|
|
50
46
|
profile_image_url: string | null;
|
|
47
|
+
created_at_millis: number;
|
|
51
48
|
} | null;
|
|
49
|
+
signed_up_at_millis: number;
|
|
52
50
|
has_password: boolean;
|
|
53
51
|
otp_auth_enabled: boolean;
|
|
54
52
|
passkey_auth_enabled: boolean;
|
|
53
|
+
last_active_at_millis: number;
|
|
55
54
|
restricted_by_admin: boolean;
|
|
56
55
|
restricted_by_admin_reason: string | null;
|
|
57
56
|
restricted_by_admin_private_details: string | null;
|
|
57
|
+
country_code: string | null;
|
|
58
58
|
risk_scores: {
|
|
59
59
|
sign_up: {
|
|
60
60
|
bot: number;
|
|
@@ -144,40 +144,40 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
+
restricted_reason: {
|
|
148
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
|
+
} | null;
|
|
150
|
+
primary_email: string | null;
|
|
151
|
+
selected_team_id: string | null;
|
|
152
|
+
is_anonymous: boolean;
|
|
153
|
+
is_restricted: boolean;
|
|
154
|
+
requires_totp_mfa: boolean;
|
|
147
155
|
display_name: string | null;
|
|
148
156
|
client_metadata: {} | null;
|
|
149
157
|
client_read_only_metadata: {} | null;
|
|
150
158
|
server_metadata: {} | null;
|
|
151
159
|
id: string;
|
|
152
|
-
selected_team_id: string | null;
|
|
153
|
-
is_anonymous: boolean;
|
|
154
|
-
is_restricted: boolean;
|
|
155
|
-
restricted_reason: {
|
|
156
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
157
|
-
} | null;
|
|
158
|
-
requires_totp_mfa: boolean;
|
|
159
|
-
primary_email: string | null;
|
|
160
|
-
country_code: string | null;
|
|
161
|
-
profile_image_url: string | null;
|
|
162
|
-
signed_up_at_millis: number;
|
|
163
|
-
last_active_at_millis: number;
|
|
164
160
|
primary_email_verified: boolean;
|
|
165
161
|
primary_email_auth_enabled: boolean;
|
|
162
|
+
profile_image_url: string | null;
|
|
166
163
|
selected_team: {
|
|
167
164
|
client_metadata?: {} | null | undefined;
|
|
168
165
|
client_read_only_metadata?: {} | null | undefined;
|
|
169
166
|
server_metadata?: {} | null | undefined;
|
|
170
167
|
display_name: string;
|
|
171
168
|
id: string;
|
|
172
|
-
created_at_millis: number;
|
|
173
169
|
profile_image_url: string | null;
|
|
170
|
+
created_at_millis: number;
|
|
174
171
|
} | null;
|
|
172
|
+
signed_up_at_millis: number;
|
|
175
173
|
has_password: boolean;
|
|
176
174
|
otp_auth_enabled: boolean;
|
|
177
175
|
passkey_auth_enabled: boolean;
|
|
176
|
+
last_active_at_millis: number;
|
|
178
177
|
restricted_by_admin: boolean;
|
|
179
178
|
restricted_by_admin_reason: string | null;
|
|
180
179
|
restricted_by_admin_private_details: string | null;
|
|
180
|
+
country_code: string | null;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
|
|
|
5
5
|
//#region src/interface/crud/transactions.d.ts
|
|
6
6
|
declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
7
7
|
type: "money_transfer";
|
|
8
|
-
customer_type: "team" | "user" | "custom";
|
|
9
8
|
customer_id: string;
|
|
9
|
+
customer_type: "team" | "user" | "custom";
|
|
10
10
|
charged_amount: {
|
|
11
11
|
USD?: string | undefined;
|
|
12
12
|
EUR?: string | undefined;
|
|
@@ -23,21 +23,27 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
23
23
|
adjusted_entry_index: number | null;
|
|
24
24
|
} | {
|
|
25
25
|
type: "item_quantity_change";
|
|
26
|
-
quantity: number;
|
|
27
|
-
customer_type: "team" | "user" | "custom";
|
|
28
26
|
item_id: string;
|
|
29
27
|
customer_id: string;
|
|
28
|
+
quantity: number;
|
|
29
|
+
customer_type: "team" | "user" | "custom";
|
|
30
30
|
adjusted_transaction_id: string | null;
|
|
31
31
|
adjusted_entry_index: number | null;
|
|
32
32
|
} | {
|
|
33
33
|
one_time_purchase_id?: string | undefined;
|
|
34
34
|
subscription_id?: string | undefined;
|
|
35
35
|
type: "product_grant";
|
|
36
|
+
customer_id: string;
|
|
37
|
+
product_id: string | null;
|
|
38
|
+
quantity: number;
|
|
39
|
+
customer_type: "team" | "user" | "custom";
|
|
36
40
|
product: {
|
|
37
41
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
38
42
|
client_metadata?: {} | null | undefined;
|
|
39
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
40
44
|
server_metadata?: {} | null | undefined;
|
|
45
|
+
server_only: boolean;
|
|
46
|
+
customer_type: "team" | "user" | "custom";
|
|
41
47
|
stackable: boolean;
|
|
42
48
|
prices: Record<string, {
|
|
43
49
|
USD?: string | undefined;
|
|
@@ -51,18 +57,12 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
51
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
52
58
|
}>;
|
|
53
59
|
display_name: string;
|
|
54
|
-
customer_type: "team" | "user" | "custom";
|
|
55
|
-
server_only: boolean;
|
|
56
60
|
included_items: Record<string, {
|
|
57
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
58
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
59
63
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
60
64
|
}>;
|
|
61
65
|
};
|
|
62
|
-
quantity: number;
|
|
63
|
-
customer_type: "team" | "user" | "custom";
|
|
64
|
-
customer_id: string;
|
|
65
|
-
product_id: string | null;
|
|
66
66
|
adjusted_transaction_id: string | null;
|
|
67
67
|
adjusted_entry_index: number | null;
|
|
68
68
|
price_id: string | null;
|
|
@@ -89,8 +89,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
89
89
|
customer_id: string;
|
|
90
90
|
entries: ({
|
|
91
91
|
type: "money_transfer";
|
|
92
|
-
customer_type: "team" | "user" | "custom";
|
|
93
92
|
customer_id: string;
|
|
93
|
+
customer_type: "team" | "user" | "custom";
|
|
94
94
|
charged_amount: {
|
|
95
95
|
USD?: string | undefined;
|
|
96
96
|
EUR?: string | undefined;
|
|
@@ -107,21 +107,27 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
107
107
|
adjusted_entry_index: number | null;
|
|
108
108
|
} | {
|
|
109
109
|
type: "item_quantity_change";
|
|
110
|
-
quantity: number;
|
|
111
|
-
customer_type: "team" | "user" | "custom";
|
|
112
110
|
item_id: string;
|
|
113
111
|
customer_id: string;
|
|
112
|
+
quantity: number;
|
|
113
|
+
customer_type: "team" | "user" | "custom";
|
|
114
114
|
adjusted_transaction_id: string | null;
|
|
115
115
|
adjusted_entry_index: number | null;
|
|
116
116
|
} | {
|
|
117
117
|
one_time_purchase_id?: string | undefined;
|
|
118
118
|
subscription_id?: string | undefined;
|
|
119
119
|
type: "product_grant";
|
|
120
|
+
customer_id: string;
|
|
121
|
+
product_id: string | null;
|
|
122
|
+
quantity: number;
|
|
123
|
+
customer_type: "team" | "user" | "custom";
|
|
120
124
|
product: {
|
|
121
125
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
122
126
|
client_metadata?: {} | null | undefined;
|
|
123
127
|
client_read_only_metadata?: {} | null | undefined;
|
|
124
128
|
server_metadata?: {} | null | undefined;
|
|
129
|
+
server_only: boolean;
|
|
130
|
+
customer_type: "team" | "user" | "custom";
|
|
125
131
|
stackable: boolean;
|
|
126
132
|
prices: Record<string, {
|
|
127
133
|
USD?: string | undefined;
|
|
@@ -135,18 +141,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
135
141
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
142
|
}>;
|
|
137
143
|
display_name: string;
|
|
138
|
-
customer_type: "team" | "user" | "custom";
|
|
139
|
-
server_only: boolean;
|
|
140
144
|
included_items: Record<string, {
|
|
141
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
142
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
143
147
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
144
148
|
}>;
|
|
145
149
|
};
|
|
146
|
-
quantity: number;
|
|
147
|
-
customer_type: "team" | "user" | "custom";
|
|
148
|
-
customer_id: string;
|
|
149
|
-
product_id: string | null;
|
|
150
150
|
adjusted_transaction_id: string | null;
|
|
151
151
|
adjusted_entry_index: number | null;
|
|
152
152
|
price_id: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|
|
@@ -83,8 +83,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
83
83
|
server_metadata?: {} | null | undefined;
|
|
84
84
|
display_name: string;
|
|
85
85
|
id: string;
|
|
86
|
-
created_at_millis: number;
|
|
87
86
|
profile_image_url: string | null;
|
|
87
|
+
created_at_millis: number;
|
|
88
88
|
} | null;
|
|
89
89
|
selected_team_id: string | null;
|
|
90
90
|
profile_image_url: string | null;
|
|
@@ -163,34 +163,34 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
+
primary_email: string | null | undefined;
|
|
167
|
+
is_anonymous: boolean | undefined;
|
|
166
168
|
display_name: string | null | undefined;
|
|
167
169
|
client_metadata: {} | null | undefined;
|
|
168
170
|
client_read_only_metadata: {} | null | undefined;
|
|
169
171
|
server_metadata: {} | null | undefined;
|
|
170
|
-
is_anonymous: boolean | undefined;
|
|
171
|
-
primary_email: string | null | undefined;
|
|
172
|
-
password: string | null | undefined;
|
|
173
|
-
country_code: string | null | undefined;
|
|
174
|
-
profile_image_url: string | null | undefined;
|
|
175
172
|
primary_email_verified: boolean | undefined;
|
|
176
173
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
|
+
profile_image_url: string | null | undefined;
|
|
177
175
|
otp_auth_enabled: boolean | undefined;
|
|
178
176
|
passkey_auth_enabled: boolean | undefined;
|
|
179
177
|
restricted_by_admin: boolean | undefined;
|
|
180
178
|
restricted_by_admin_reason: string | null | undefined;
|
|
181
179
|
restricted_by_admin_private_details: string | null | undefined;
|
|
180
|
+
country_code: string | null | undefined;
|
|
182
181
|
risk_scores: {
|
|
183
182
|
sign_up: {
|
|
184
183
|
bot: number;
|
|
185
184
|
free_trial_abuse: number;
|
|
186
185
|
};
|
|
187
186
|
} | undefined;
|
|
187
|
+
password: string | null | undefined;
|
|
188
188
|
password_hash: string | undefined;
|
|
189
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;
|
|
@@ -236,8 +236,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
236
236
|
server_metadata?: {} | null | undefined;
|
|
237
237
|
display_name: string;
|
|
238
238
|
id: string;
|
|
239
|
-
created_at_millis: number;
|
|
240
239
|
profile_image_url: string | null;
|
|
240
|
+
created_at_millis: number;
|
|
241
241
|
} | null;
|
|
242
242
|
selected_team_id: string | null;
|
|
243
243
|
profile_image_url: string | null;
|
|
@@ -369,34 +369,34 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
+
primary_email: string | null | undefined;
|
|
373
|
+
is_anonymous: boolean | undefined;
|
|
372
374
|
display_name: string | null | undefined;
|
|
373
375
|
client_metadata: {} | null | undefined;
|
|
374
376
|
client_read_only_metadata: {} | null | undefined;
|
|
375
377
|
server_metadata: {} | null | undefined;
|
|
376
|
-
is_anonymous: boolean | undefined;
|
|
377
|
-
primary_email: string | null | undefined;
|
|
378
|
-
password: string | null | undefined;
|
|
379
|
-
country_code: string | null | undefined;
|
|
380
|
-
profile_image_url: string | null | undefined;
|
|
381
378
|
primary_email_verified: boolean | undefined;
|
|
382
379
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
|
+
profile_image_url: string | null | undefined;
|
|
383
381
|
otp_auth_enabled: boolean | undefined;
|
|
384
382
|
passkey_auth_enabled: boolean | undefined;
|
|
385
383
|
restricted_by_admin: boolean | undefined;
|
|
386
384
|
restricted_by_admin_reason: string | null | undefined;
|
|
387
385
|
restricted_by_admin_private_details: string | null | undefined;
|
|
386
|
+
country_code: string | null | undefined;
|
|
388
387
|
risk_scores: {
|
|
389
388
|
sign_up: {
|
|
390
389
|
bot: number;
|
|
391
390
|
free_trial_abuse: number;
|
|
392
391
|
};
|
|
393
392
|
} | undefined;
|
|
393
|
+
password: string | null | undefined;
|
|
394
394
|
password_hash: string | undefined;
|
|
395
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;
|
|
@@ -470,8 +470,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
470
470
|
server_metadata?: {} | null | undefined;
|
|
471
471
|
display_name: string;
|
|
472
472
|
id: string;
|
|
473
|
-
created_at_millis: number;
|
|
474
473
|
profile_image_url: string | null;
|
|
474
|
+
created_at_millis: number;
|
|
475
475
|
} | null;
|
|
476
476
|
selected_team_id: string | null;
|
|
477
477
|
profile_image_url: string | null;
|
|
@@ -561,8 +561,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
561
561
|
server_metadata?: {} | null | undefined;
|
|
562
562
|
display_name: string;
|
|
563
563
|
id: string;
|
|
564
|
-
created_at_millis: number;
|
|
565
564
|
profile_image_url: string | null;
|
|
565
|
+
created_at_millis: number;
|
|
566
566
|
} | null;
|
|
567
567
|
selected_team_id: string | null;
|
|
568
568
|
profile_image_url: string | null;
|
|
@@ -24,14 +24,14 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
|
|
|
24
24
|
declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
25
25
|
owner_team_id: string;
|
|
26
26
|
owner_team_display_name: string;
|
|
27
|
-
plan_id: "
|
|
27
|
+
plan_id: "team" | "free" | "growth";
|
|
28
28
|
plan_display_name: string;
|
|
29
29
|
period_start_millis: number;
|
|
30
30
|
period_end_millis: number;
|
|
31
31
|
next_plan_id: "team" | "growth" | null;
|
|
32
32
|
rows: {
|
|
33
|
-
display_name: string;
|
|
34
33
|
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
34
|
+
display_name: string;
|
|
35
35
|
kind: "current" | "metered" | "capability";
|
|
36
36
|
used: number | null;
|
|
37
37
|
limit: number | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HexclaveAssertionError } from "../utils/errors.js";
|
|
2
2
|
import { filterUndefined } from "../utils/objects.js";
|
|
3
3
|
import { Result } from "../utils/results.js";
|
|
4
|
-
import { urlString } from "../utils/urls.js";
|
|
5
4
|
import { KnownErrors } from "../known-errors.js";
|
|
5
|
+
import { urlString } from "../utils/urls.js";
|
|
6
6
|
import { InternalSession } from "../sessions.js";
|
|
7
7
|
import { HexclaveClientInterface } from "./client-interface.js";
|
|
8
8
|
import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.js";
|