@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?: 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" | DayInterval | undefined;
|
|
30
29
|
quantity?: number | undefined;
|
|
30
|
+
repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
|
|
64
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
|
|
127
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
|
|
155
155
|
quantity?: number | undefined;
|
|
156
|
+
repeat?: "never" | 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,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -78,10 +78,10 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
+
user_id: string;
|
|
81
82
|
type: "user";
|
|
82
83
|
description: string;
|
|
83
84
|
id: string;
|
|
84
|
-
user_id: string;
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
expires_at_millis: number | undefined;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -177,9 +177,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
|
+
team_id: string;
|
|
180
181
|
description: string;
|
|
181
182
|
id: string;
|
|
182
|
-
team_id: string;
|
|
183
183
|
created_at_millis: number;
|
|
184
184
|
expires_at_millis: number | undefined;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -62,10 +62,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
62
62
|
message: string;
|
|
63
63
|
}[];
|
|
64
64
|
config: {
|
|
65
|
-
domains: {
|
|
66
|
-
domain: string;
|
|
67
|
-
handler_path: string;
|
|
68
|
-
}[];
|
|
69
65
|
oauth_providers: {
|
|
70
66
|
client_id?: string | undefined;
|
|
71
67
|
client_secret?: string | undefined;
|
|
@@ -76,6 +72,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
76
72
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
77
73
|
provider_config_id: string;
|
|
78
74
|
}[];
|
|
75
|
+
domains: {
|
|
76
|
+
domain: string;
|
|
77
|
+
handler_path: string;
|
|
78
|
+
}[];
|
|
79
79
|
allow_localhost: boolean;
|
|
80
80
|
sign_up_enabled: boolean;
|
|
81
81
|
credential_enabled: boolean;
|
|
@@ -229,10 +229,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
229
229
|
selected_payments_country: "US" | "OTHER";
|
|
230
230
|
} | null | undefined;
|
|
231
231
|
config: {
|
|
232
|
-
domains?: {
|
|
233
|
-
domain: string;
|
|
234
|
-
handler_path: string;
|
|
235
|
-
}[] | undefined;
|
|
236
232
|
oauth_providers?: {
|
|
237
233
|
client_id?: string | undefined;
|
|
238
234
|
client_secret?: string | undefined;
|
|
@@ -242,6 +238,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
242
238
|
type: "shared" | "standard";
|
|
243
239
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
244
240
|
}[] | undefined;
|
|
241
|
+
domains?: {
|
|
242
|
+
domain: string;
|
|
243
|
+
handler_path: string;
|
|
244
|
+
}[] | undefined;
|
|
245
245
|
allow_localhost?: boolean | undefined;
|
|
246
246
|
sign_up_enabled?: boolean | undefined;
|
|
247
247
|
credential_enabled?: boolean | undefined;
|
|
@@ -309,10 +309,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
309
309
|
selected_payments_country: "US" | "OTHER";
|
|
310
310
|
} | null | undefined;
|
|
311
311
|
config: {
|
|
312
|
-
domains?: {
|
|
313
|
-
domain: string;
|
|
314
|
-
handler_path: string;
|
|
315
|
-
}[] | undefined;
|
|
316
312
|
oauth_providers?: {
|
|
317
313
|
client_id?: string | undefined;
|
|
318
314
|
client_secret?: string | undefined;
|
|
@@ -322,6 +318,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
322
318
|
type: "shared" | "standard";
|
|
323
319
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
324
320
|
}[] | undefined;
|
|
321
|
+
domains?: {
|
|
322
|
+
domain: string;
|
|
323
|
+
handler_path: string;
|
|
324
|
+
}[] | undefined;
|
|
325
325
|
allow_localhost?: boolean | undefined;
|
|
326
326
|
sign_up_enabled?: boolean | undefined;
|
|
327
327
|
credential_enabled?: boolean | undefined;
|
|
@@ -465,10 +465,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
465
465
|
message: string;
|
|
466
466
|
}[];
|
|
467
467
|
config: {
|
|
468
|
-
domains: {
|
|
469
|
-
domain: string;
|
|
470
|
-
handler_path: string;
|
|
471
|
-
}[];
|
|
472
468
|
oauth_providers: {
|
|
473
469
|
client_id?: string | undefined;
|
|
474
470
|
client_secret?: string | undefined;
|
|
@@ -479,6 +475,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
479
475
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
480
476
|
provider_config_id: string;
|
|
481
477
|
}[];
|
|
478
|
+
domains: {
|
|
479
|
+
domain: string;
|
|
480
|
+
handler_path: string;
|
|
481
|
+
}[];
|
|
482
482
|
allow_localhost: boolean;
|
|
483
483
|
sign_up_enabled: boolean;
|
|
484
484
|
credential_enabled: boolean;
|
|
@@ -584,10 +584,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
584
584
|
selected_payments_country: "US" | "OTHER";
|
|
585
585
|
} | null | undefined;
|
|
586
586
|
config: {
|
|
587
|
-
domains?: {
|
|
588
|
-
domain: string;
|
|
589
|
-
handler_path: string;
|
|
590
|
-
}[] | undefined;
|
|
591
587
|
oauth_providers?: {
|
|
592
588
|
client_id?: string | undefined;
|
|
593
589
|
client_secret?: string | undefined;
|
|
@@ -597,6 +593,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
597
593
|
type: "shared" | "standard";
|
|
598
594
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
599
595
|
}[] | undefined;
|
|
596
|
+
domains?: {
|
|
597
|
+
domain: string;
|
|
598
|
+
handler_path: string;
|
|
599
|
+
}[] | undefined;
|
|
600
600
|
allow_localhost?: boolean | undefined;
|
|
601
601
|
sign_up_enabled?: boolean | undefined;
|
|
602
602
|
credential_enabled?: boolean | undefined;
|
|
@@ -698,10 +698,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
698
698
|
message: string;
|
|
699
699
|
}[];
|
|
700
700
|
config: {
|
|
701
|
-
domains: {
|
|
702
|
-
domain: string;
|
|
703
|
-
handler_path: string;
|
|
704
|
-
}[];
|
|
705
701
|
oauth_providers: {
|
|
706
702
|
client_id?: string | undefined;
|
|
707
703
|
client_secret?: string | undefined;
|
|
@@ -712,6 +708,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
712
708
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
713
709
|
provider_config_id: string;
|
|
714
710
|
}[];
|
|
711
|
+
domains: {
|
|
712
|
+
domain: string;
|
|
713
|
+
handler_path: string;
|
|
714
|
+
}[];
|
|
715
715
|
allow_localhost: boolean;
|
|
716
716
|
sign_up_enabled: boolean;
|
|
717
717
|
credential_enabled: boolean;
|
|
@@ -817,10 +817,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
817
817
|
selected_payments_country: "US" | "OTHER";
|
|
818
818
|
} | null | undefined;
|
|
819
819
|
config: {
|
|
820
|
-
domains?: {
|
|
821
|
-
domain: string;
|
|
822
|
-
handler_path: string;
|
|
823
|
-
}[] | undefined;
|
|
824
820
|
oauth_providers?: {
|
|
825
821
|
client_id?: string | undefined;
|
|
826
822
|
client_secret?: string | undefined;
|
|
@@ -830,6 +826,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
830
826
|
type: "shared" | "standard";
|
|
831
827
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
832
828
|
}[] | undefined;
|
|
829
|
+
domains?: {
|
|
830
|
+
domain: string;
|
|
831
|
+
handler_path: string;
|
|
832
|
+
}[] | undefined;
|
|
833
833
|
allow_localhost?: boolean | undefined;
|
|
834
834
|
sign_up_enabled?: boolean | undefined;
|
|
835
835
|
credential_enabled?: boolean | undefined;
|
|
@@ -20,40 +20,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
+
restricted_reason: {
|
|
24
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
25
|
+
} | null;
|
|
26
|
+
primary_email: string | null;
|
|
27
|
+
selected_team_id: string | null;
|
|
28
|
+
is_anonymous: boolean;
|
|
29
|
+
is_restricted: boolean;
|
|
30
|
+
requires_totp_mfa: boolean;
|
|
23
31
|
display_name: string | null;
|
|
24
32
|
client_metadata: {} | null;
|
|
25
33
|
client_read_only_metadata: {} | null;
|
|
26
34
|
server_metadata: {} | null;
|
|
27
35
|
id: string;
|
|
28
|
-
selected_team_id: string | null;
|
|
29
|
-
is_anonymous: boolean;
|
|
30
|
-
is_restricted: boolean;
|
|
31
|
-
restricted_reason: {
|
|
32
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
33
|
-
} | null;
|
|
34
|
-
requires_totp_mfa: boolean;
|
|
35
|
-
primary_email: string | null;
|
|
36
|
-
country_code: string | null;
|
|
37
|
-
profile_image_url: string | null;
|
|
38
|
-
signed_up_at_millis: number;
|
|
39
|
-
last_active_at_millis: number;
|
|
40
36
|
primary_email_verified: boolean;
|
|
41
37
|
primary_email_auth_enabled: boolean;
|
|
38
|
+
profile_image_url: string | null;
|
|
42
39
|
selected_team: {
|
|
43
40
|
client_metadata?: {} | null | undefined;
|
|
44
41
|
client_read_only_metadata?: {} | null | undefined;
|
|
45
42
|
server_metadata?: {} | null | undefined;
|
|
46
43
|
display_name: string;
|
|
47
44
|
id: string;
|
|
48
|
-
created_at_millis: number;
|
|
49
45
|
profile_image_url: string | null;
|
|
46
|
+
created_at_millis: number;
|
|
50
47
|
} | null;
|
|
48
|
+
signed_up_at_millis: number;
|
|
51
49
|
has_password: boolean;
|
|
52
50
|
otp_auth_enabled: boolean;
|
|
53
51
|
passkey_auth_enabled: boolean;
|
|
52
|
+
last_active_at_millis: number;
|
|
54
53
|
restricted_by_admin: boolean;
|
|
55
54
|
restricted_by_admin_reason: string | null;
|
|
56
55
|
restricted_by_admin_private_details: string | null;
|
|
56
|
+
country_code: string | null;
|
|
57
57
|
risk_scores: {
|
|
58
58
|
sign_up: {
|
|
59
59
|
bot: number;
|
|
@@ -143,40 +143,40 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
+
restricted_reason: {
|
|
147
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
148
|
+
} | null;
|
|
149
|
+
primary_email: string | null;
|
|
150
|
+
selected_team_id: string | null;
|
|
151
|
+
is_anonymous: boolean;
|
|
152
|
+
is_restricted: boolean;
|
|
153
|
+
requires_totp_mfa: boolean;
|
|
146
154
|
display_name: string | null;
|
|
147
155
|
client_metadata: {} | null;
|
|
148
156
|
client_read_only_metadata: {} | null;
|
|
149
157
|
server_metadata: {} | null;
|
|
150
158
|
id: string;
|
|
151
|
-
selected_team_id: string | null;
|
|
152
|
-
is_anonymous: boolean;
|
|
153
|
-
is_restricted: boolean;
|
|
154
|
-
restricted_reason: {
|
|
155
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
156
|
-
} | null;
|
|
157
|
-
requires_totp_mfa: boolean;
|
|
158
|
-
primary_email: string | null;
|
|
159
|
-
country_code: string | null;
|
|
160
|
-
profile_image_url: string | null;
|
|
161
|
-
signed_up_at_millis: number;
|
|
162
|
-
last_active_at_millis: number;
|
|
163
159
|
primary_email_verified: boolean;
|
|
164
160
|
primary_email_auth_enabled: boolean;
|
|
161
|
+
profile_image_url: string | null;
|
|
165
162
|
selected_team: {
|
|
166
163
|
client_metadata?: {} | null | undefined;
|
|
167
164
|
client_read_only_metadata?: {} | null | undefined;
|
|
168
165
|
server_metadata?: {} | null | undefined;
|
|
169
166
|
display_name: string;
|
|
170
167
|
id: string;
|
|
171
|
-
created_at_millis: number;
|
|
172
168
|
profile_image_url: string | null;
|
|
169
|
+
created_at_millis: number;
|
|
173
170
|
} | null;
|
|
171
|
+
signed_up_at_millis: number;
|
|
174
172
|
has_password: boolean;
|
|
175
173
|
otp_auth_enabled: boolean;
|
|
176
174
|
passkey_auth_enabled: boolean;
|
|
175
|
+
last_active_at_millis: number;
|
|
177
176
|
restricted_by_admin: boolean;
|
|
178
177
|
restricted_by_admin_reason: string | null;
|
|
179
178
|
restricted_by_admin_private_details: string | null;
|
|
179
|
+
country_code: string | null;
|
|
180
180
|
risk_scores: {
|
|
181
181
|
sign_up: {
|
|
182
182
|
bot: number;
|
|
@@ -5,8 +5,8 @@ import { InferType } from "yup";
|
|
|
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?: 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?: 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" | DayInterval | undefined;
|
|
58
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | 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?: 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?: 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" | DayInterval | undefined;
|
|
142
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|
|
@@ -82,8 +82,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
83
|
display_name: string;
|
|
84
84
|
id: string;
|
|
85
|
-
created_at_millis: number;
|
|
86
85
|
profile_image_url: string | null;
|
|
86
|
+
created_at_millis: number;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
89
89
|
profile_image_url: string | null;
|
|
@@ -162,34 +162,34 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
162
162
|
requires_totp_mfa: undefined;
|
|
163
163
|
}, "">;
|
|
164
164
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
165
|
+
primary_email: string | null | undefined;
|
|
166
|
+
is_anonymous: boolean | undefined;
|
|
165
167
|
display_name: string | null | undefined;
|
|
166
168
|
client_metadata: {} | null | undefined;
|
|
167
169
|
client_read_only_metadata: {} | null | undefined;
|
|
168
170
|
server_metadata: {} | null | undefined;
|
|
169
|
-
is_anonymous: boolean | undefined;
|
|
170
|
-
primary_email: string | null | undefined;
|
|
171
|
-
password: string | null | undefined;
|
|
172
|
-
country_code: string | null | undefined;
|
|
173
|
-
profile_image_url: string | null | undefined;
|
|
174
171
|
primary_email_verified: boolean | undefined;
|
|
175
172
|
primary_email_auth_enabled: boolean | undefined;
|
|
173
|
+
profile_image_url: string | null | undefined;
|
|
176
174
|
otp_auth_enabled: boolean | undefined;
|
|
177
175
|
passkey_auth_enabled: boolean | undefined;
|
|
178
176
|
restricted_by_admin: boolean | undefined;
|
|
179
177
|
restricted_by_admin_reason: string | null | undefined;
|
|
180
178
|
restricted_by_admin_private_details: string | null | undefined;
|
|
179
|
+
country_code: string | null | undefined;
|
|
181
180
|
risk_scores: {
|
|
182
181
|
sign_up: {
|
|
183
182
|
bot: number;
|
|
184
183
|
free_trial_abuse: number;
|
|
185
184
|
};
|
|
186
185
|
} | undefined;
|
|
186
|
+
password: string | null | undefined;
|
|
187
187
|
password_hash: string | undefined;
|
|
188
188
|
totp_secret_base64: string | null | undefined;
|
|
189
189
|
} & {
|
|
190
190
|
oauth_providers: {
|
|
191
|
-
id: string;
|
|
192
191
|
email: string | null;
|
|
192
|
+
id: string;
|
|
193
193
|
account_id: string;
|
|
194
194
|
}[] | undefined;
|
|
195
195
|
is_anonymous: boolean | undefined;
|
|
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
236
|
display_name: string;
|
|
237
237
|
id: string;
|
|
238
|
-
created_at_millis: number;
|
|
239
238
|
profile_image_url: string | null;
|
|
239
|
+
created_at_millis: number;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
242
242
|
profile_image_url: string | null;
|
|
@@ -368,34 +368,34 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
+
primary_email: string | null | undefined;
|
|
372
|
+
is_anonymous: boolean | undefined;
|
|
371
373
|
display_name: string | null | undefined;
|
|
372
374
|
client_metadata: {} | null | undefined;
|
|
373
375
|
client_read_only_metadata: {} | null | undefined;
|
|
374
376
|
server_metadata: {} | null | undefined;
|
|
375
|
-
is_anonymous: boolean | undefined;
|
|
376
|
-
primary_email: string | null | undefined;
|
|
377
|
-
password: string | null | undefined;
|
|
378
|
-
country_code: string | null | undefined;
|
|
379
|
-
profile_image_url: string | null | undefined;
|
|
380
377
|
primary_email_verified: boolean | undefined;
|
|
381
378
|
primary_email_auth_enabled: boolean | undefined;
|
|
379
|
+
profile_image_url: string | null | undefined;
|
|
382
380
|
otp_auth_enabled: boolean | undefined;
|
|
383
381
|
passkey_auth_enabled: boolean | undefined;
|
|
384
382
|
restricted_by_admin: boolean | undefined;
|
|
385
383
|
restricted_by_admin_reason: string | null | undefined;
|
|
386
384
|
restricted_by_admin_private_details: string | null | undefined;
|
|
385
|
+
country_code: string | null | undefined;
|
|
387
386
|
risk_scores: {
|
|
388
387
|
sign_up: {
|
|
389
388
|
bot: number;
|
|
390
389
|
free_trial_abuse: number;
|
|
391
390
|
};
|
|
392
391
|
} | undefined;
|
|
392
|
+
password: string | null | undefined;
|
|
393
393
|
password_hash: string | undefined;
|
|
394
394
|
totp_secret_base64: string | null | undefined;
|
|
395
395
|
} & {
|
|
396
396
|
oauth_providers: {
|
|
397
|
-
id: string;
|
|
398
397
|
email: string | null;
|
|
398
|
+
id: string;
|
|
399
399
|
account_id: string;
|
|
400
400
|
}[] | undefined;
|
|
401
401
|
is_anonymous: boolean | undefined;
|
|
@@ -469,8 +469,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
470
|
display_name: string;
|
|
471
471
|
id: string;
|
|
472
|
-
created_at_millis: number;
|
|
473
472
|
profile_image_url: string | null;
|
|
473
|
+
created_at_millis: number;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
476
476
|
profile_image_url: string | null;
|
|
@@ -560,8 +560,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
561
|
display_name: string;
|
|
562
562
|
id: string;
|
|
563
|
-
created_at_millis: number;
|
|
564
563
|
profile_image_url: string | null;
|
|
564
|
+
created_at_millis: number;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
567
567
|
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;
|
|
@@ -3,8 +3,8 @@ const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
|
3
3
|
let ___utils_errors_js = require("../utils/errors.js");
|
|
4
4
|
let ___utils_objects_js = require("../utils/objects.js");
|
|
5
5
|
let ___utils_results_js = require("../utils/results.js");
|
|
6
|
-
let ___utils_urls_js = require("../utils/urls.js");
|
|
7
6
|
let ___known_errors_js = require("../known-errors.js");
|
|
7
|
+
let ___utils_urls_js = require("../utils/urls.js");
|
|
8
8
|
let ___sessions_js = require("../sessions.js");
|
|
9
9
|
let __client_interface_js = require("./client-interface.js");
|
|
10
10
|
let ___helpers_vault_client_side_js = require("../helpers/vault/client-side.js");
|