@hexclave/shared 1.0.28 → 1.0.29
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 +45 -45
- package/dist/esm/config/schema.d.ts +45 -45
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +13 -13
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +28 -28
- package/dist/esm/interface/crud/current-user.d.ts +9 -9
- package/dist/esm/interface/crud/email-outbox.d.ts +248 -248
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +9 -9
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +5 -5
- package/dist/esm/interface/crud/projects.d.ts +35 -35
- package/dist/esm/interface/crud/team-member-profiles.d.ts +14 -14
- package/dist/esm/interface/crud/transactions.d.ts +4 -4
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +12 -12
- 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/sessions.d.ts +6 -6
- package/dist/esm/utils/promises.d.ts +12 -1
- package/dist/esm/utils/promises.d.ts.map +1 -1
- package/dist/esm/utils/promises.js +58 -2
- package/dist/esm/utils/promises.js.map +1 -1
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +13 -13
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +28 -28
- package/dist/interface/crud/current-user.d.ts +9 -9
- package/dist/interface/crud/email-outbox.d.ts +248 -248
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +9 -9
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +5 -5
- package/dist/interface/crud/projects.d.ts +35 -35
- package/dist/interface/crud/team-member-profiles.d.ts +14 -14
- package/dist/interface/crud/transactions.d.ts +4 -4
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +12 -12
- 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/sessions.d.ts +6 -6
- package/dist/utils/promises.d.ts +12 -1
- package/dist/utils/promises.d.ts.map +1 -1
- package/dist/utils/promises.js +58 -1
- package/dist/utils/promises.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/promises.tsx +65 -0
|
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
|
|
|
3
3
|
//#region src/interface/crud/invoices.d.ts
|
|
4
4
|
declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
|
|
5
5
|
created_at_millis: number;
|
|
6
|
-
status: "
|
|
6
|
+
status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
|
|
7
7
|
amount_total: number;
|
|
8
8
|
hosted_invoice_url: string | null;
|
|
9
9
|
}, yup$1.AnyObject, {
|
|
@@ -15,7 +15,7 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
|
|
|
15
15
|
type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
|
|
16
16
|
declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
|
|
17
17
|
items: {
|
|
18
|
-
status: "
|
|
18
|
+
status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
|
|
19
19
|
created_at_millis: number;
|
|
20
20
|
amount_total: number;
|
|
21
21
|
hosted_invoice_url: string | null;
|
|
@@ -6,10 +6,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
6
6
|
id: string | null;
|
|
7
7
|
quantity: number;
|
|
8
8
|
product: {
|
|
9
|
-
free_trial?: DayInterval | undefined;
|
|
10
9
|
client_metadata?: {} | null | undefined;
|
|
11
10
|
client_read_only_metadata?: {} | null | undefined;
|
|
12
11
|
server_metadata?: {} | null | undefined;
|
|
12
|
+
free_trial?: DayInterval | undefined;
|
|
13
|
+
display_name: string;
|
|
13
14
|
server_only: boolean;
|
|
14
15
|
customer_type: "team" | "user" | "custom";
|
|
15
16
|
stackable: boolean;
|
|
@@ -24,7 +25,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
24
25
|
interval?: DayInterval | undefined;
|
|
25
26
|
free_trial?: DayInterval | undefined;
|
|
26
27
|
}>;
|
|
27
|
-
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
29
|
quantity?: number | undefined;
|
|
30
30
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -41,10 +41,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
41
41
|
switch_options: {
|
|
42
42
|
product_id: string;
|
|
43
43
|
product: {
|
|
44
|
-
free_trial?: DayInterval | undefined;
|
|
45
44
|
client_metadata?: {} | null | undefined;
|
|
46
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
47
46
|
server_metadata?: {} | null | undefined;
|
|
47
|
+
free_trial?: DayInterval | undefined;
|
|
48
|
+
display_name: string;
|
|
48
49
|
server_only: boolean;
|
|
49
50
|
customer_type: "team" | "user" | "custom";
|
|
50
51
|
stackable: boolean;
|
|
@@ -59,7 +60,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
59
60
|
interval?: DayInterval | undefined;
|
|
60
61
|
free_trial?: DayInterval | undefined;
|
|
61
62
|
}>;
|
|
62
|
-
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
64
|
quantity?: number | undefined;
|
|
65
65
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -104,10 +104,11 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
104
104
|
switch_options?: {
|
|
105
105
|
product_id: string;
|
|
106
106
|
product: {
|
|
107
|
-
free_trial?: DayInterval | undefined;
|
|
108
107
|
client_metadata?: {} | null | undefined;
|
|
109
108
|
client_read_only_metadata?: {} | null | undefined;
|
|
110
109
|
server_metadata?: {} | null | undefined;
|
|
110
|
+
free_trial?: DayInterval | undefined;
|
|
111
|
+
display_name: string;
|
|
111
112
|
server_only: boolean;
|
|
112
113
|
customer_type: "team" | "user" | "custom";
|
|
113
114
|
stackable: boolean;
|
|
@@ -122,7 +123,6 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
122
123
|
interval?: DayInterval | undefined;
|
|
123
124
|
free_trial?: DayInterval | undefined;
|
|
124
125
|
}>;
|
|
125
|
-
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
127
|
quantity?: number | undefined;
|
|
128
128
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -131,11 +131,13 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
133
|
quantity: number;
|
|
134
|
+
id: string | null;
|
|
134
135
|
product: {
|
|
135
|
-
free_trial?: DayInterval | undefined;
|
|
136
136
|
client_metadata?: {} | null | undefined;
|
|
137
137
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
138
|
server_metadata?: {} | null | undefined;
|
|
139
|
+
free_trial?: DayInterval | undefined;
|
|
140
|
+
display_name: string;
|
|
139
141
|
server_only: boolean;
|
|
140
142
|
customer_type: "team" | "user" | "custom";
|
|
141
143
|
stackable: boolean;
|
|
@@ -150,14 +152,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
150
152
|
interval?: DayInterval | undefined;
|
|
151
153
|
free_trial?: DayInterval | undefined;
|
|
152
154
|
}>;
|
|
153
|
-
display_name: string;
|
|
154
155
|
included_items: Record<string, {
|
|
155
156
|
quantity?: number | undefined;
|
|
156
157
|
repeat?: "never" | DayInterval | undefined;
|
|
157
158
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
159
|
}>;
|
|
159
160
|
};
|
|
160
|
-
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
163
163
|
pagination: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,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,13 +78,13 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
-
user_id: string;
|
|
82
81
|
type: "user";
|
|
83
|
-
|
|
82
|
+
user_id: string;
|
|
84
83
|
id: string;
|
|
84
|
+
description: string;
|
|
85
|
+
created_at_millis: number;
|
|
85
86
|
expires_at_millis: number | undefined;
|
|
86
87
|
manually_revoked_at_millis: number | undefined;
|
|
87
|
-
created_at_millis: number;
|
|
88
88
|
is_public: boolean;
|
|
89
89
|
} & {
|
|
90
90
|
value: string;
|
|
@@ -178,11 +178,11 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
180
|
team_id: string;
|
|
181
|
-
description: string;
|
|
182
181
|
id: string;
|
|
182
|
+
description: string;
|
|
183
|
+
created_at_millis: number;
|
|
183
184
|
expires_at_millis: number | undefined;
|
|
184
185
|
manually_revoked_at_millis: number | undefined;
|
|
185
|
-
created_at_millis: number;
|
|
186
186
|
is_public: boolean;
|
|
187
187
|
} & {
|
|
188
188
|
value: string;
|
|
@@ -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: ("
|
|
54
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
227
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
307
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
457
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
582
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
690
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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;
|
|
@@ -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: ("
|
|
815
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
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;
|
|
@@ -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,36 +20,35 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
+
display_name: string | null;
|
|
23
24
|
restricted_reason: {
|
|
24
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
25
26
|
} | null;
|
|
26
27
|
primary_email: string | null;
|
|
27
|
-
display_name: string | null;
|
|
28
28
|
client_metadata: {} | null;
|
|
29
29
|
client_read_only_metadata: {} | null;
|
|
30
30
|
server_metadata: {} | null;
|
|
31
31
|
id: string;
|
|
32
|
-
selected_team_id: string | null;
|
|
33
|
-
is_anonymous: boolean;
|
|
34
|
-
is_restricted: boolean;
|
|
35
|
-
requires_totp_mfa: boolean;
|
|
36
|
-
profile_image_url: string | null;
|
|
37
32
|
primary_email_verified: boolean;
|
|
38
33
|
primary_email_auth_enabled: boolean;
|
|
34
|
+
profile_image_url: string | null;
|
|
39
35
|
selected_team: {
|
|
40
36
|
client_metadata?: {} | null | undefined;
|
|
41
37
|
client_read_only_metadata?: {} | null | undefined;
|
|
42
38
|
server_metadata?: {} | null | undefined;
|
|
43
39
|
display_name: string;
|
|
44
40
|
id: string;
|
|
45
|
-
created_at_millis: number;
|
|
46
41
|
profile_image_url: string | null;
|
|
42
|
+
created_at_millis: number;
|
|
47
43
|
} | null;
|
|
44
|
+
selected_team_id: string | null;
|
|
48
45
|
signed_up_at_millis: number;
|
|
49
46
|
has_password: boolean;
|
|
50
47
|
otp_auth_enabled: boolean;
|
|
51
48
|
passkey_auth_enabled: boolean;
|
|
52
49
|
last_active_at_millis: number;
|
|
50
|
+
is_anonymous: boolean;
|
|
51
|
+
is_restricted: boolean;
|
|
53
52
|
restricted_by_admin: boolean;
|
|
54
53
|
restricted_by_admin_reason: string | null;
|
|
55
54
|
restricted_by_admin_private_details: string | null;
|
|
@@ -66,6 +65,7 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
66
65
|
account_id: string;
|
|
67
66
|
}[];
|
|
68
67
|
auth_with_email: boolean;
|
|
68
|
+
requires_totp_mfa: boolean;
|
|
69
69
|
};
|
|
70
70
|
}, yup$1.AnyObject, {
|
|
71
71
|
team_id: undefined;
|
|
@@ -143,36 +143,35 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
+
display_name: string | null;
|
|
146
147
|
restricted_reason: {
|
|
147
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
148
149
|
} | null;
|
|
149
150
|
primary_email: string | null;
|
|
150
|
-
display_name: string | null;
|
|
151
151
|
client_metadata: {} | null;
|
|
152
152
|
client_read_only_metadata: {} | null;
|
|
153
153
|
server_metadata: {} | null;
|
|
154
154
|
id: string;
|
|
155
|
-
selected_team_id: string | null;
|
|
156
|
-
is_anonymous: boolean;
|
|
157
|
-
is_restricted: boolean;
|
|
158
|
-
requires_totp_mfa: boolean;
|
|
159
|
-
profile_image_url: string | null;
|
|
160
155
|
primary_email_verified: boolean;
|
|
161
156
|
primary_email_auth_enabled: boolean;
|
|
157
|
+
profile_image_url: string | null;
|
|
162
158
|
selected_team: {
|
|
163
159
|
client_metadata?: {} | null | undefined;
|
|
164
160
|
client_read_only_metadata?: {} | null | undefined;
|
|
165
161
|
server_metadata?: {} | null | undefined;
|
|
166
162
|
display_name: string;
|
|
167
163
|
id: string;
|
|
168
|
-
created_at_millis: number;
|
|
169
164
|
profile_image_url: string | null;
|
|
165
|
+
created_at_millis: number;
|
|
170
166
|
} | null;
|
|
167
|
+
selected_team_id: string | null;
|
|
171
168
|
signed_up_at_millis: number;
|
|
172
169
|
has_password: boolean;
|
|
173
170
|
otp_auth_enabled: boolean;
|
|
174
171
|
passkey_auth_enabled: boolean;
|
|
175
172
|
last_active_at_millis: number;
|
|
173
|
+
is_anonymous: boolean;
|
|
174
|
+
is_restricted: boolean;
|
|
176
175
|
restricted_by_admin: boolean;
|
|
177
176
|
restricted_by_admin_reason: string | null;
|
|
178
177
|
restricted_by_admin_private_details: string | null;
|
|
@@ -189,6 +188,7 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
189
188
|
account_id: string;
|
|
190
189
|
}[];
|
|
191
190
|
auth_with_email: boolean;
|
|
191
|
+
requires_totp_mfa: boolean;
|
|
192
192
|
};
|
|
193
193
|
}, yup$1.AnyObject, {
|
|
194
194
|
team_id: undefined;
|
|
@@ -38,10 +38,11 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
38
38
|
quantity: number;
|
|
39
39
|
customer_type: "team" | "user" | "custom";
|
|
40
40
|
product: {
|
|
41
|
-
free_trial?: DayInterval | undefined;
|
|
42
41
|
client_metadata?: {} | null | undefined;
|
|
43
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
43
|
server_metadata?: {} | null | undefined;
|
|
44
|
+
free_trial?: DayInterval | undefined;
|
|
45
|
+
display_name: string;
|
|
45
46
|
server_only: boolean;
|
|
46
47
|
customer_type: "team" | "user" | "custom";
|
|
47
48
|
stackable: boolean;
|
|
@@ -56,7 +57,6 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
56
57
|
interval?: DayInterval | undefined;
|
|
57
58
|
free_trial?: DayInterval | undefined;
|
|
58
59
|
}>;
|
|
59
|
-
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
61
|
quantity?: number | undefined;
|
|
62
62
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -122,10 +122,11 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
122
122
|
quantity: number;
|
|
123
123
|
customer_type: "team" | "user" | "custom";
|
|
124
124
|
product: {
|
|
125
|
-
free_trial?: DayInterval | undefined;
|
|
126
125
|
client_metadata?: {} | null | undefined;
|
|
127
126
|
client_read_only_metadata?: {} | null | undefined;
|
|
128
127
|
server_metadata?: {} | null | undefined;
|
|
128
|
+
free_trial?: DayInterval | undefined;
|
|
129
|
+
display_name: string;
|
|
129
130
|
server_only: boolean;
|
|
130
131
|
customer_type: "team" | "user" | "custom";
|
|
131
132
|
stackable: boolean;
|
|
@@ -140,7 +141,6 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
140
141
|
interval?: DayInterval | undefined;
|
|
141
142
|
free_trial?: DayInterval | undefined;
|
|
142
143
|
}>;
|
|
143
|
-
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
145
|
quantity?: number | undefined;
|
|
146
146
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -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,18 +162,17 @@ 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
165
|
display_name: string | null | undefined;
|
|
166
|
+
primary_email: string | null | undefined;
|
|
167
167
|
client_metadata: {} | null | undefined;
|
|
168
168
|
client_read_only_metadata: {} | null | undefined;
|
|
169
169
|
server_metadata: {} | null | undefined;
|
|
170
|
-
is_anonymous: boolean | undefined;
|
|
171
|
-
password: string | null | undefined;
|
|
172
|
-
profile_image_url: string | null | undefined;
|
|
173
170
|
primary_email_verified: boolean | undefined;
|
|
174
171
|
primary_email_auth_enabled: boolean | undefined;
|
|
172
|
+
profile_image_url: string | null | undefined;
|
|
175
173
|
otp_auth_enabled: boolean | undefined;
|
|
176
174
|
passkey_auth_enabled: boolean | undefined;
|
|
175
|
+
is_anonymous: boolean | undefined;
|
|
177
176
|
restricted_by_admin: boolean | undefined;
|
|
178
177
|
restricted_by_admin_reason: string | null | undefined;
|
|
179
178
|
restricted_by_admin_private_details: 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
|
} & {
|
|
@@ -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,18 +368,17 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
-
primary_email: string | null | undefined;
|
|
372
371
|
display_name: string | null | undefined;
|
|
372
|
+
primary_email: string | null | undefined;
|
|
373
373
|
client_metadata: {} | null | undefined;
|
|
374
374
|
client_read_only_metadata: {} | null | undefined;
|
|
375
375
|
server_metadata: {} | null | undefined;
|
|
376
|
-
is_anonymous: boolean | undefined;
|
|
377
|
-
password: string | null | undefined;
|
|
378
|
-
profile_image_url: string | null | undefined;
|
|
379
376
|
primary_email_verified: boolean | undefined;
|
|
380
377
|
primary_email_auth_enabled: boolean | undefined;
|
|
378
|
+
profile_image_url: string | null | undefined;
|
|
381
379
|
otp_auth_enabled: boolean | undefined;
|
|
382
380
|
passkey_auth_enabled: boolean | undefined;
|
|
381
|
+
is_anonymous: boolean | undefined;
|
|
383
382
|
restricted_by_admin: boolean | undefined;
|
|
384
383
|
restricted_by_admin_reason: string | null | undefined;
|
|
385
384
|
restricted_by_admin_private_details: 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
|
} & {
|
|
@@ -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,15 +24,15 @@ 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: "free" | "team" | "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
|
+
kind: "current" | "metered" | "capability";
|
|
33
34
|
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
34
35
|
display_name: string;
|
|
35
|
-
kind: "current" | "metered" | "capability";
|
|
36
36
|
used: number | null;
|
|
37
37
|
limit: number | null;
|
|
38
38
|
remaining: 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 ___known_errors_js = require("../known-errors.js");
|
|
7
6
|
let ___utils_urls_js = require("../utils/urls.js");
|
|
7
|
+
let ___known_errors_js = require("../known-errors.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");
|
|
@@ -22,8 +22,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
23
|
display_name: string;
|
|
24
24
|
id: string;
|
|
25
|
-
created_at_millis: number;
|
|
26
25
|
profile_image_url: string | null;
|
|
26
|
+
created_at_millis: number;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
29
29
|
profile_image_url: string | null;
|
|
@@ -112,8 +112,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
113
|
display_name: string;
|
|
114
114
|
id: string;
|
|
115
|
-
created_at_millis: number;
|
|
116
115
|
profile_image_url: string | null;
|
|
116
|
+
created_at_millis: number;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|
|
119
119
|
profile_image_url: string | null;
|
package/dist/sessions.d.ts
CHANGED
|
@@ -16,18 +16,18 @@ declare class AccessToken {
|
|
|
16
16
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
17
|
} | null;
|
|
18
18
|
branch_id: string;
|
|
19
|
-
sub: string;
|
|
20
19
|
name: string | null;
|
|
20
|
+
sub: string;
|
|
21
|
+
selected_team_id: string | null;
|
|
22
|
+
is_anonymous: boolean;
|
|
23
|
+
is_restricted: boolean;
|
|
24
|
+
requires_totp_mfa: boolean;
|
|
25
|
+
role: "authenticated";
|
|
21
26
|
iat: number;
|
|
22
27
|
iss: string;
|
|
23
28
|
aud: string;
|
|
24
|
-
role: "authenticated";
|
|
25
29
|
email_verified: boolean;
|
|
26
|
-
selected_team_id: string | null;
|
|
27
30
|
signed_up_at: number;
|
|
28
|
-
is_anonymous: boolean;
|
|
29
|
-
is_restricted: boolean;
|
|
30
|
-
requires_totp_mfa: boolean;
|
|
31
31
|
};
|
|
32
32
|
get expiresAt(): Date;
|
|
33
33
|
get issuedAt(): Date;
|