@hexclave/shared 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/schema.d.ts +140 -140
- package/dist/config-authoring.d.ts +3 -0
- package/dist/config-authoring.d.ts.map +1 -1
- package/dist/config-authoring.js +3 -0
- package/dist/config-authoring.js.map +1 -1
- package/dist/esm/config/schema.d.ts +140 -140
- package/dist/esm/config-authoring.d.ts +3 -0
- package/dist/esm/config-authoring.d.ts.map +1 -1
- package/dist/esm/config-authoring.js +3 -0
- package/dist/esm/config-authoring.js.map +1 -1
- package/dist/esm/interface/admin-interface.d.ts +3 -1
- package/dist/esm/interface/admin-interface.d.ts.map +1 -1
- package/dist/esm/interface/admin-interface.js +3 -0
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +10 -10
- package/dist/esm/interface/conversations.d.ts +6 -6
- package/dist/esm/interface/crud/current-user.d.ts +5 -5
- package/dist/esm/interface/crud/email-outbox.d.ts +206 -206
- 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 +43 -43
- package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
- 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 +4 -4
- package/dist/esm/interface/plan-usage.d.ts +57 -0
- package/dist/esm/interface/plan-usage.d.ts.map +1 -0
- package/dist/esm/interface/plan-usage.js +35 -0
- package/dist/esm/interface/plan-usage.js.map +1 -0
- package/dist/esm/known-errors.d.ts +1 -1
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/{index-fQbeILq7.d.ts → index-nCRuFJTF.d.ts} +1 -1
- package/dist/{index-fQbeILq7.d.ts.map → index-nCRuFJTF.d.ts.map} +1 -1
- package/dist/interface/admin-interface.d.ts +3 -1
- package/dist/interface/admin-interface.d.ts.map +1 -1
- package/dist/interface/admin-interface.js +3 -0
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/admin-metrics.d.ts +10 -10
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/conversations.d.ts +6 -6
- package/dist/interface/crud/current-user.d.ts +5 -5
- package/dist/interface/crud/email-outbox.d.ts +206 -206
- 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 +43 -43
- package/dist/interface/crud/team-member-profiles.d.ts +8 -8
- 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 +4 -4
- package/dist/interface/plan-usage.d.ts +57 -0
- package/dist/interface/plan-usage.d.ts.map +1 -0
- package/dist/interface/plan-usage.js +39 -0
- package/dist/interface/plan-usage.js.map +1 -0
- package/dist/known-errors.d.ts +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/passkey.d.ts +1 -1
- package/package.json +1 -1
- package/src/config-authoring.ts +3 -1
- package/src/interface/admin-interface.ts +14 -0
- package/src/interface/plan-usage.ts +34 -0
|
@@ -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;
|
|
@@ -51,7 +51,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
51
51
|
onboarding_state: {
|
|
52
52
|
selected_config_choice: "create-new" | "link-existing";
|
|
53
53
|
selected_apps: string[];
|
|
54
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
54
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
55
55
|
selected_email_theme_id: string | null;
|
|
56
56
|
selected_payments_country: "US" | "OTHER";
|
|
57
57
|
} | null | 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;
|
|
@@ -88,6 +84,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
88
84
|
enabled_oauth_providers: {
|
|
89
85
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
90
86
|
}[];
|
|
87
|
+
domains: {
|
|
88
|
+
domain: string;
|
|
89
|
+
handler_path: string;
|
|
90
|
+
}[];
|
|
91
91
|
email_config: {
|
|
92
92
|
password?: string | undefined;
|
|
93
93
|
host?: string | undefined;
|
|
@@ -174,10 +174,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
174
174
|
message: string;
|
|
175
175
|
}[];
|
|
176
176
|
config: {
|
|
177
|
-
domains: {
|
|
178
|
-
domain: string;
|
|
179
|
-
handler_path: string;
|
|
180
|
-
}[];
|
|
181
177
|
allow_localhost: boolean;
|
|
182
178
|
sign_up_enabled: boolean;
|
|
183
179
|
credential_enabled: boolean;
|
|
@@ -190,6 +186,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
190
186
|
enabled_oauth_providers: {
|
|
191
187
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
192
188
|
}[];
|
|
189
|
+
domains: {
|
|
190
|
+
domain: string;
|
|
191
|
+
handler_path: string;
|
|
192
|
+
}[];
|
|
193
193
|
};
|
|
194
194
|
}, yup$1.AnyObject, {
|
|
195
195
|
id: undefined;
|
|
@@ -224,15 +224,11 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
224
224
|
onboarding_state: {
|
|
225
225
|
selected_config_choice: "create-new" | "link-existing";
|
|
226
226
|
selected_apps: string[];
|
|
227
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
227
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
228
228
|
selected_email_theme_id: string | null;
|
|
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;
|
|
@@ -251,6 +247,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
251
247
|
client_user_deletion_enabled?: boolean | undefined;
|
|
252
248
|
allow_user_api_keys?: boolean | undefined;
|
|
253
249
|
allow_team_api_keys?: boolean | undefined;
|
|
250
|
+
domains?: {
|
|
251
|
+
domain: string;
|
|
252
|
+
handler_path: string;
|
|
253
|
+
}[] | undefined;
|
|
254
254
|
email_config?: {
|
|
255
255
|
password?: string | undefined;
|
|
256
256
|
host?: string | undefined;
|
|
@@ -304,15 +304,11 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
304
304
|
onboarding_state: {
|
|
305
305
|
selected_config_choice: "create-new" | "link-existing";
|
|
306
306
|
selected_apps: string[];
|
|
307
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
307
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
308
308
|
selected_email_theme_id: string | null;
|
|
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;
|
|
@@ -331,6 +327,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
331
327
|
client_user_deletion_enabled?: boolean | undefined;
|
|
332
328
|
allow_user_api_keys?: boolean | undefined;
|
|
333
329
|
allow_team_api_keys?: boolean | undefined;
|
|
330
|
+
domains?: {
|
|
331
|
+
domain: string;
|
|
332
|
+
handler_path: string;
|
|
333
|
+
}[] | undefined;
|
|
334
334
|
email_config?: {
|
|
335
335
|
password?: string | undefined;
|
|
336
336
|
host?: string | undefined;
|
|
@@ -390,10 +390,6 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
390
390
|
message: string;
|
|
391
391
|
}[];
|
|
392
392
|
config: {
|
|
393
|
-
domains: {
|
|
394
|
-
domain: string;
|
|
395
|
-
handler_path: string;
|
|
396
|
-
}[];
|
|
397
393
|
allow_localhost: boolean;
|
|
398
394
|
sign_up_enabled: boolean;
|
|
399
395
|
credential_enabled: boolean;
|
|
@@ -406,6 +402,10 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
406
402
|
enabled_oauth_providers: {
|
|
407
403
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
408
404
|
}[];
|
|
405
|
+
domains: {
|
|
406
|
+
domain: string;
|
|
407
|
+
handler_path: string;
|
|
408
|
+
}[];
|
|
409
409
|
};
|
|
410
410
|
}, yup$1.AnyObject, {
|
|
411
411
|
id: undefined;
|
|
@@ -454,7 +454,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
454
454
|
onboarding_state: {
|
|
455
455
|
selected_config_choice: "create-new" | "link-existing";
|
|
456
456
|
selected_apps: string[];
|
|
457
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
457
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
458
458
|
selected_email_theme_id: string | null;
|
|
459
459
|
selected_payments_country: "US" | "OTHER";
|
|
460
460
|
} | null | 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;
|
|
@@ -491,6 +487,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
491
487
|
enabled_oauth_providers: {
|
|
492
488
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
493
489
|
}[];
|
|
490
|
+
domains: {
|
|
491
|
+
domain: string;
|
|
492
|
+
handler_path: string;
|
|
493
|
+
}[];
|
|
494
494
|
email_config: {
|
|
495
495
|
password?: string | undefined;
|
|
496
496
|
host?: string | undefined;
|
|
@@ -579,15 +579,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
579
579
|
onboarding_state: {
|
|
580
580
|
selected_config_choice: "create-new" | "link-existing";
|
|
581
581
|
selected_apps: string[];
|
|
582
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
582
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
583
583
|
selected_email_theme_id: string | null;
|
|
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;
|
|
@@ -606,6 +602,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
606
602
|
client_user_deletion_enabled?: boolean | undefined;
|
|
607
603
|
allow_user_api_keys?: boolean | undefined;
|
|
608
604
|
allow_team_api_keys?: boolean | undefined;
|
|
605
|
+
domains?: {
|
|
606
|
+
domain: string;
|
|
607
|
+
handler_path: string;
|
|
608
|
+
}[] | undefined;
|
|
609
609
|
email_config?: {
|
|
610
610
|
password?: string | undefined;
|
|
611
611
|
host?: string | undefined;
|
|
@@ -687,7 +687,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
687
687
|
onboarding_state: {
|
|
688
688
|
selected_config_choice: "create-new" | "link-existing";
|
|
689
689
|
selected_apps: string[];
|
|
690
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
690
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
691
691
|
selected_email_theme_id: string | null;
|
|
692
692
|
selected_payments_country: "US" | "OTHER";
|
|
693
693
|
} | null | 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;
|
|
@@ -724,6 +720,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
724
720
|
enabled_oauth_providers: {
|
|
725
721
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
726
722
|
}[];
|
|
723
|
+
domains: {
|
|
724
|
+
domain: string;
|
|
725
|
+
handler_path: string;
|
|
726
|
+
}[];
|
|
727
727
|
email_config: {
|
|
728
728
|
password?: string | undefined;
|
|
729
729
|
host?: string | undefined;
|
|
@@ -812,15 +812,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
812
812
|
onboarding_state: {
|
|
813
813
|
selected_config_choice: "create-new" | "link-existing";
|
|
814
814
|
selected_apps: string[];
|
|
815
|
-
selected_sign_in_methods: ("google" | "github" | "microsoft" | "
|
|
815
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
|
|
816
816
|
selected_email_theme_id: string | null;
|
|
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;
|
|
@@ -839,6 +835,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
839
835
|
client_user_deletion_enabled?: boolean | undefined;
|
|
840
836
|
allow_user_api_keys?: boolean | undefined;
|
|
841
837
|
allow_team_api_keys?: boolean | undefined;
|
|
838
|
+
domains?: {
|
|
839
|
+
domain: string;
|
|
840
|
+
handler_path: string;
|
|
841
|
+
}[] | undefined;
|
|
842
842
|
email_config?: {
|
|
843
843
|
password?: string | undefined;
|
|
844
844
|
host?: string | undefined;
|
|
@@ -20,19 +20,19 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
-
selected_team_id: string | null;
|
|
24
|
-
is_anonymous: boolean;
|
|
25
|
-
is_restricted: boolean;
|
|
26
23
|
restricted_reason: {
|
|
27
24
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
28
25
|
} | null;
|
|
26
|
+
primary_email: string | null;
|
|
27
|
+
selected_team_id: string | null;
|
|
28
|
+
is_anonymous: boolean;
|
|
29
|
+
is_restricted: boolean;
|
|
29
30
|
requires_totp_mfa: boolean;
|
|
30
31
|
display_name: string | null;
|
|
31
32
|
client_metadata: {} | null;
|
|
32
33
|
client_read_only_metadata: {} | null;
|
|
33
34
|
server_metadata: {} | null;
|
|
34
35
|
id: string;
|
|
35
|
-
primary_email: string | null;
|
|
36
36
|
primary_email_verified: boolean;
|
|
37
37
|
primary_email_auth_enabled: boolean;
|
|
38
38
|
profile_image_url: string | null;
|
|
@@ -143,19 +143,19 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
-
selected_team_id: string | null;
|
|
147
|
-
is_anonymous: boolean;
|
|
148
|
-
is_restricted: boolean;
|
|
149
146
|
restricted_reason: {
|
|
150
147
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
151
148
|
} | null;
|
|
149
|
+
primary_email: string | null;
|
|
150
|
+
selected_team_id: string | null;
|
|
151
|
+
is_anonymous: boolean;
|
|
152
|
+
is_restricted: boolean;
|
|
152
153
|
requires_totp_mfa: boolean;
|
|
153
154
|
display_name: string | null;
|
|
154
155
|
client_metadata: {} | null;
|
|
155
156
|
client_read_only_metadata: {} | null;
|
|
156
157
|
server_metadata: {} | null;
|
|
157
158
|
id: string;
|
|
158
|
-
primary_email: string | null;
|
|
159
159
|
primary_email_verified: boolean;
|
|
160
160
|
primary_email_auth_enabled: boolean;
|
|
161
161
|
profile_image_url: string | null;
|
|
@@ -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"}
|
|
@@ -162,13 +162,12 @@ 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;
|
|
165
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
|
-
primary_email: string | null | undefined;
|
|
171
|
-
password: string | null | undefined;
|
|
172
171
|
primary_email_verified: boolean | undefined;
|
|
173
172
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
173
|
profile_image_url: string | null | undefined;
|
|
@@ -184,6 +183,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
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
|
} & {
|
|
@@ -368,13 +368,12 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
+
primary_email: string | null | undefined;
|
|
371
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
|
-
primary_email: string | null | undefined;
|
|
377
|
-
password: string | null | undefined;
|
|
378
377
|
primary_email_verified: boolean | undefined;
|
|
379
378
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
379
|
profile_image_url: string | null | undefined;
|
|
@@ -390,6 +389,7 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
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
|
} & {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as yup$1 from "yup";
|
|
2
|
+
|
|
3
|
+
//#region src/interface/plan-usage.d.ts
|
|
4
|
+
declare const planUsageKindSchema: yup$1.StringSchema<"current" | "metered" | "capability", yup$1.AnyObject, undefined, "">;
|
|
5
|
+
declare const planUsageRowSchema: yup$1.ObjectSchema<{
|
|
6
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
7
|
+
display_name: string;
|
|
8
|
+
kind: "current" | "metered" | "capability";
|
|
9
|
+
used: number | null;
|
|
10
|
+
limit: number | null;
|
|
11
|
+
remaining: number | null;
|
|
12
|
+
overage: number | null;
|
|
13
|
+
is_unlimited: boolean;
|
|
14
|
+
}, yup$1.AnyObject, {
|
|
15
|
+
item_id: undefined;
|
|
16
|
+
display_name: undefined;
|
|
17
|
+
kind: undefined;
|
|
18
|
+
used: undefined;
|
|
19
|
+
limit: undefined;
|
|
20
|
+
remaining: undefined;
|
|
21
|
+
overage: undefined;
|
|
22
|
+
is_unlimited: undefined;
|
|
23
|
+
}, "">;
|
|
24
|
+
declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
25
|
+
owner_team_id: string;
|
|
26
|
+
owner_team_display_name: string;
|
|
27
|
+
plan_id: "team" | "free" | "growth";
|
|
28
|
+
plan_display_name: string;
|
|
29
|
+
period_start_millis: number;
|
|
30
|
+
period_end_millis: number;
|
|
31
|
+
next_plan_id: "team" | "growth" | null;
|
|
32
|
+
rows: {
|
|
33
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
34
|
+
display_name: string;
|
|
35
|
+
kind: "current" | "metered" | "capability";
|
|
36
|
+
used: number | null;
|
|
37
|
+
limit: number | null;
|
|
38
|
+
remaining: number | null;
|
|
39
|
+
overage: number | null;
|
|
40
|
+
is_unlimited: boolean;
|
|
41
|
+
}[];
|
|
42
|
+
}, yup$1.AnyObject, {
|
|
43
|
+
owner_team_id: undefined;
|
|
44
|
+
owner_team_display_name: undefined;
|
|
45
|
+
plan_id: undefined;
|
|
46
|
+
plan_display_name: undefined;
|
|
47
|
+
period_start_millis: undefined;
|
|
48
|
+
period_end_millis: undefined;
|
|
49
|
+
next_plan_id: undefined;
|
|
50
|
+
rows: undefined;
|
|
51
|
+
}, "">;
|
|
52
|
+
type PlanUsageKind = yup$1.InferType<typeof planUsageKindSchema>;
|
|
53
|
+
type PlanUsageRow = yup$1.InferType<typeof planUsageRowSchema>;
|
|
54
|
+
type PlanUsageResponse = yup$1.InferType<typeof planUsageResponseSchema>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { PlanUsageKind, PlanUsageResponse, PlanUsageRow, planUsageKindSchema, planUsageResponseSchema, planUsageRowSchema };
|
|
57
|
+
//# sourceMappingURL=plan-usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-usage.d.ts","names":[],"sources":["../../src/interface/plan-usage.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,KAAA,CAAA,YAAA,uCAAA,KAAA,CAAA,SAAA;AAAA,cAEnB,kBAAA,EAAkB,KAAA,CAAA,YAAA;;;;;;;;;GASnB,KAAA,CAAA,SAAA;;;;;;;;;;cAEC,uBAAA,EAAuB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;GASxB,KAAA,CAAA,SAAA;;;;;;;;;;KAEA,aAAA,GAAgB,KAAA,CAAI,SAAA,QAAiB,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAA,QAAiB,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAA,QAAiB,uBAAA"}
|