@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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
25
26
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
26
27
|
}>;
|
|
27
|
-
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
29
|
quantity?: number | undefined;
|
|
30
30
|
repeat?: "never" | ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
60
61
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
61
62
|
}>;
|
|
62
|
-
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
64
|
quantity?: number | undefined;
|
|
65
65
|
repeat?: "never" | ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
123
124
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
124
125
|
}>;
|
|
125
|
-
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
127
|
quantity?: number | undefined;
|
|
128
128
|
repeat?: "never" | ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
151
153
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
152
154
|
}>;
|
|
153
|
-
display_name: string;
|
|
154
155
|
included_items: Record<string, {
|
|
155
156
|
quantity?: number | undefined;
|
|
156
157
|
repeat?: "never" | ______utils_dates0.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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -79,13 +79,13 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
-
user_id: string;
|
|
83
82
|
type: "user";
|
|
84
|
-
|
|
83
|
+
user_id: string;
|
|
85
84
|
id: string;
|
|
85
|
+
description: string;
|
|
86
|
+
created_at_millis: number;
|
|
86
87
|
expires_at_millis: number | undefined;
|
|
87
88
|
manually_revoked_at_millis: number | undefined;
|
|
88
|
-
created_at_millis: number;
|
|
89
89
|
is_public: boolean;
|
|
90
90
|
} & {
|
|
91
91
|
value: string;
|
|
@@ -179,11 +179,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
180
|
type: "team";
|
|
181
181
|
team_id: string;
|
|
182
|
-
description: string;
|
|
183
182
|
id: string;
|
|
183
|
+
description: string;
|
|
184
|
+
created_at_millis: number;
|
|
184
185
|
expires_at_millis: number | undefined;
|
|
185
186
|
manually_revoked_at_millis: number | undefined;
|
|
186
|
-
created_at_millis: number;
|
|
187
187
|
is_public: boolean;
|
|
188
188
|
} & {
|
|
189
189
|
value: string;
|
|
@@ -52,7 +52,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
52
52
|
onboarding_state: {
|
|
53
53
|
selected_config_choice: "create-new" | "link-existing";
|
|
54
54
|
selected_apps: string[];
|
|
55
|
-
selected_sign_in_methods: ("
|
|
55
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
56
56
|
selected_email_theme_id: string | null;
|
|
57
57
|
selected_payments_country: "US" | "OTHER";
|
|
58
58
|
} | null | undefined;
|
|
@@ -63,10 +63,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
63
63
|
message: string;
|
|
64
64
|
}[];
|
|
65
65
|
config: {
|
|
66
|
-
domains: {
|
|
67
|
-
domain: string;
|
|
68
|
-
handler_path: string;
|
|
69
|
-
}[];
|
|
70
66
|
oauth_providers: {
|
|
71
67
|
client_id?: string | undefined;
|
|
72
68
|
client_secret?: string | undefined;
|
|
@@ -77,6 +73,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
77
73
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
78
74
|
provider_config_id: string;
|
|
79
75
|
}[];
|
|
76
|
+
domains: {
|
|
77
|
+
domain: string;
|
|
78
|
+
handler_path: string;
|
|
79
|
+
}[];
|
|
80
80
|
allow_localhost: boolean;
|
|
81
81
|
sign_up_enabled: boolean;
|
|
82
82
|
credential_enabled: boolean;
|
|
@@ -225,15 +225,11 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
225
225
|
onboarding_state: {
|
|
226
226
|
selected_config_choice: "create-new" | "link-existing";
|
|
227
227
|
selected_apps: string[];
|
|
228
|
-
selected_sign_in_methods: ("
|
|
228
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
229
229
|
selected_email_theme_id: string | null;
|
|
230
230
|
selected_payments_country: "US" | "OTHER";
|
|
231
231
|
} | null | undefined;
|
|
232
232
|
config: {
|
|
233
|
-
domains?: {
|
|
234
|
-
domain: string;
|
|
235
|
-
handler_path: string;
|
|
236
|
-
}[] | undefined;
|
|
237
233
|
oauth_providers?: {
|
|
238
234
|
client_id?: string | undefined;
|
|
239
235
|
client_secret?: string | undefined;
|
|
@@ -243,6 +239,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
243
239
|
type: "shared" | "standard";
|
|
244
240
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
245
241
|
}[] | undefined;
|
|
242
|
+
domains?: {
|
|
243
|
+
domain: string;
|
|
244
|
+
handler_path: string;
|
|
245
|
+
}[] | undefined;
|
|
246
246
|
allow_localhost?: boolean | undefined;
|
|
247
247
|
sign_up_enabled?: boolean | undefined;
|
|
248
248
|
credential_enabled?: boolean | undefined;
|
|
@@ -305,15 +305,11 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
305
305
|
onboarding_state: {
|
|
306
306
|
selected_config_choice: "create-new" | "link-existing";
|
|
307
307
|
selected_apps: string[];
|
|
308
|
-
selected_sign_in_methods: ("
|
|
308
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
309
309
|
selected_email_theme_id: string | null;
|
|
310
310
|
selected_payments_country: "US" | "OTHER";
|
|
311
311
|
} | null | undefined;
|
|
312
312
|
config: {
|
|
313
|
-
domains?: {
|
|
314
|
-
domain: string;
|
|
315
|
-
handler_path: string;
|
|
316
|
-
}[] | undefined;
|
|
317
313
|
oauth_providers?: {
|
|
318
314
|
client_id?: string | undefined;
|
|
319
315
|
client_secret?: string | undefined;
|
|
@@ -323,6 +319,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
323
319
|
type: "shared" | "standard";
|
|
324
320
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
325
321
|
}[] | undefined;
|
|
322
|
+
domains?: {
|
|
323
|
+
domain: string;
|
|
324
|
+
handler_path: string;
|
|
325
|
+
}[] | undefined;
|
|
326
326
|
allow_localhost?: boolean | undefined;
|
|
327
327
|
sign_up_enabled?: boolean | undefined;
|
|
328
328
|
credential_enabled?: boolean | undefined;
|
|
@@ -455,7 +455,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
455
455
|
onboarding_state: {
|
|
456
456
|
selected_config_choice: "create-new" | "link-existing";
|
|
457
457
|
selected_apps: string[];
|
|
458
|
-
selected_sign_in_methods: ("
|
|
458
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
459
459
|
selected_email_theme_id: string | null;
|
|
460
460
|
selected_payments_country: "US" | "OTHER";
|
|
461
461
|
} | null | undefined;
|
|
@@ -466,10 +466,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
466
466
|
message: string;
|
|
467
467
|
}[];
|
|
468
468
|
config: {
|
|
469
|
-
domains: {
|
|
470
|
-
domain: string;
|
|
471
|
-
handler_path: string;
|
|
472
|
-
}[];
|
|
473
469
|
oauth_providers: {
|
|
474
470
|
client_id?: string | undefined;
|
|
475
471
|
client_secret?: string | undefined;
|
|
@@ -480,6 +476,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
480
476
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
481
477
|
provider_config_id: string;
|
|
482
478
|
}[];
|
|
479
|
+
domains: {
|
|
480
|
+
domain: string;
|
|
481
|
+
handler_path: string;
|
|
482
|
+
}[];
|
|
483
483
|
allow_localhost: boolean;
|
|
484
484
|
sign_up_enabled: boolean;
|
|
485
485
|
credential_enabled: boolean;
|
|
@@ -580,15 +580,11 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
580
580
|
onboarding_state: {
|
|
581
581
|
selected_config_choice: "create-new" | "link-existing";
|
|
582
582
|
selected_apps: string[];
|
|
583
|
-
selected_sign_in_methods: ("
|
|
583
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
584
584
|
selected_email_theme_id: string | null;
|
|
585
585
|
selected_payments_country: "US" | "OTHER";
|
|
586
586
|
} | null | undefined;
|
|
587
587
|
config: {
|
|
588
|
-
domains?: {
|
|
589
|
-
domain: string;
|
|
590
|
-
handler_path: string;
|
|
591
|
-
}[] | undefined;
|
|
592
588
|
oauth_providers?: {
|
|
593
589
|
client_id?: string | undefined;
|
|
594
590
|
client_secret?: string | undefined;
|
|
@@ -598,6 +594,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
598
594
|
type: "shared" | "standard";
|
|
599
595
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
600
596
|
}[] | undefined;
|
|
597
|
+
domains?: {
|
|
598
|
+
domain: string;
|
|
599
|
+
handler_path: string;
|
|
600
|
+
}[] | undefined;
|
|
601
601
|
allow_localhost?: boolean | undefined;
|
|
602
602
|
sign_up_enabled?: boolean | undefined;
|
|
603
603
|
credential_enabled?: boolean | undefined;
|
|
@@ -688,7 +688,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
688
688
|
onboarding_state: {
|
|
689
689
|
selected_config_choice: "create-new" | "link-existing";
|
|
690
690
|
selected_apps: string[];
|
|
691
|
-
selected_sign_in_methods: ("
|
|
691
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
692
692
|
selected_email_theme_id: string | null;
|
|
693
693
|
selected_payments_country: "US" | "OTHER";
|
|
694
694
|
} | null | undefined;
|
|
@@ -699,10 +699,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
699
699
|
message: string;
|
|
700
700
|
}[];
|
|
701
701
|
config: {
|
|
702
|
-
domains: {
|
|
703
|
-
domain: string;
|
|
704
|
-
handler_path: string;
|
|
705
|
-
}[];
|
|
706
702
|
oauth_providers: {
|
|
707
703
|
client_id?: string | undefined;
|
|
708
704
|
client_secret?: string | undefined;
|
|
@@ -713,6 +709,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
713
709
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
714
710
|
provider_config_id: string;
|
|
715
711
|
}[];
|
|
712
|
+
domains: {
|
|
713
|
+
domain: string;
|
|
714
|
+
handler_path: string;
|
|
715
|
+
}[];
|
|
716
716
|
allow_localhost: boolean;
|
|
717
717
|
sign_up_enabled: boolean;
|
|
718
718
|
credential_enabled: boolean;
|
|
@@ -813,15 +813,11 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
813
813
|
onboarding_state: {
|
|
814
814
|
selected_config_choice: "create-new" | "link-existing";
|
|
815
815
|
selected_apps: string[];
|
|
816
|
-
selected_sign_in_methods: ("
|
|
816
|
+
selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
|
|
817
817
|
selected_email_theme_id: string | null;
|
|
818
818
|
selected_payments_country: "US" | "OTHER";
|
|
819
819
|
} | null | undefined;
|
|
820
820
|
config: {
|
|
821
|
-
domains?: {
|
|
822
|
-
domain: string;
|
|
823
|
-
handler_path: string;
|
|
824
|
-
}[] | undefined;
|
|
825
821
|
oauth_providers?: {
|
|
826
822
|
client_id?: string | undefined;
|
|
827
823
|
client_secret?: string | undefined;
|
|
@@ -831,6 +827,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
831
827
|
type: "shared" | "standard";
|
|
832
828
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
833
829
|
}[] | undefined;
|
|
830
|
+
domains?: {
|
|
831
|
+
domain: string;
|
|
832
|
+
handler_path: string;
|
|
833
|
+
}[] | undefined;
|
|
834
834
|
allow_localhost?: boolean | undefined;
|
|
835
835
|
sign_up_enabled?: boolean | undefined;
|
|
836
836
|
credential_enabled?: boolean | undefined;
|
|
@@ -21,36 +21,35 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
+
display_name: string | null;
|
|
24
25
|
restricted_reason: {
|
|
25
26
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
27
|
} | null;
|
|
27
28
|
primary_email: string | null;
|
|
28
|
-
display_name: string | null;
|
|
29
29
|
client_metadata: {} | null;
|
|
30
30
|
client_read_only_metadata: {} | null;
|
|
31
31
|
server_metadata: {} | null;
|
|
32
32
|
id: string;
|
|
33
|
-
selected_team_id: string | null;
|
|
34
|
-
is_anonymous: boolean;
|
|
35
|
-
is_restricted: boolean;
|
|
36
|
-
requires_totp_mfa: boolean;
|
|
37
|
-
profile_image_url: string | null;
|
|
38
33
|
primary_email_verified: boolean;
|
|
39
34
|
primary_email_auth_enabled: boolean;
|
|
35
|
+
profile_image_url: string | null;
|
|
40
36
|
selected_team: {
|
|
41
37
|
client_metadata?: {} | null | undefined;
|
|
42
38
|
client_read_only_metadata?: {} | null | undefined;
|
|
43
39
|
server_metadata?: {} | null | undefined;
|
|
44
40
|
display_name: string;
|
|
45
41
|
id: string;
|
|
46
|
-
created_at_millis: number;
|
|
47
42
|
profile_image_url: string | null;
|
|
43
|
+
created_at_millis: number;
|
|
48
44
|
} | null;
|
|
45
|
+
selected_team_id: string | null;
|
|
49
46
|
signed_up_at_millis: number;
|
|
50
47
|
has_password: boolean;
|
|
51
48
|
otp_auth_enabled: boolean;
|
|
52
49
|
passkey_auth_enabled: boolean;
|
|
53
50
|
last_active_at_millis: number;
|
|
51
|
+
is_anonymous: boolean;
|
|
52
|
+
is_restricted: boolean;
|
|
54
53
|
restricted_by_admin: boolean;
|
|
55
54
|
restricted_by_admin_reason: string | null;
|
|
56
55
|
restricted_by_admin_private_details: string | null;
|
|
@@ -67,6 +66,7 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
67
66
|
account_id: string;
|
|
68
67
|
}[];
|
|
69
68
|
auth_with_email: boolean;
|
|
69
|
+
requires_totp_mfa: boolean;
|
|
70
70
|
};
|
|
71
71
|
}, yup$1.AnyObject, {
|
|
72
72
|
team_id: undefined;
|
|
@@ -144,36 +144,35 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
+
display_name: string | null;
|
|
147
148
|
restricted_reason: {
|
|
148
149
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
150
|
} | null;
|
|
150
151
|
primary_email: string | null;
|
|
151
|
-
display_name: string | null;
|
|
152
152
|
client_metadata: {} | null;
|
|
153
153
|
client_read_only_metadata: {} | null;
|
|
154
154
|
server_metadata: {} | null;
|
|
155
155
|
id: string;
|
|
156
|
-
selected_team_id: string | null;
|
|
157
|
-
is_anonymous: boolean;
|
|
158
|
-
is_restricted: boolean;
|
|
159
|
-
requires_totp_mfa: boolean;
|
|
160
|
-
profile_image_url: string | null;
|
|
161
156
|
primary_email_verified: boolean;
|
|
162
157
|
primary_email_auth_enabled: boolean;
|
|
158
|
+
profile_image_url: string | null;
|
|
163
159
|
selected_team: {
|
|
164
160
|
client_metadata?: {} | null | undefined;
|
|
165
161
|
client_read_only_metadata?: {} | null | undefined;
|
|
166
162
|
server_metadata?: {} | null | undefined;
|
|
167
163
|
display_name: string;
|
|
168
164
|
id: string;
|
|
169
|
-
created_at_millis: number;
|
|
170
165
|
profile_image_url: string | null;
|
|
166
|
+
created_at_millis: number;
|
|
171
167
|
} | null;
|
|
168
|
+
selected_team_id: string | null;
|
|
172
169
|
signed_up_at_millis: number;
|
|
173
170
|
has_password: boolean;
|
|
174
171
|
otp_auth_enabled: boolean;
|
|
175
172
|
passkey_auth_enabled: boolean;
|
|
176
173
|
last_active_at_millis: number;
|
|
174
|
+
is_anonymous: boolean;
|
|
175
|
+
is_restricted: boolean;
|
|
177
176
|
restricted_by_admin: boolean;
|
|
178
177
|
restricted_by_admin_reason: string | null;
|
|
179
178
|
restricted_by_admin_private_details: string | null;
|
|
@@ -190,6 +189,7 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
190
189
|
account_id: string;
|
|
191
190
|
}[];
|
|
192
191
|
auth_with_email: boolean;
|
|
192
|
+
requires_totp_mfa: boolean;
|
|
193
193
|
};
|
|
194
194
|
}, yup$1.AnyObject, {
|
|
195
195
|
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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
57
58
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
58
59
|
}>;
|
|
59
|
-
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
61
|
quantity?: number | undefined;
|
|
62
62
|
repeat?: "never" | ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
|
|
141
142
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
142
143
|
}>;
|
|
143
|
-
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
145
|
quantity?: number | undefined;
|
|
146
146
|
repeat?: "never" | ______utils_dates0.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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|
|
@@ -83,8 +83,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
83
83
|
server_metadata?: {} | null | undefined;
|
|
84
84
|
display_name: string;
|
|
85
85
|
id: string;
|
|
86
|
-
created_at_millis: number;
|
|
87
86
|
profile_image_url: string | null;
|
|
87
|
+
created_at_millis: number;
|
|
88
88
|
} | null;
|
|
89
89
|
selected_team_id: string | null;
|
|
90
90
|
profile_image_url: string | null;
|
|
@@ -163,18 +163,17 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
-
primary_email: string | null | undefined;
|
|
167
166
|
display_name: string | null | undefined;
|
|
167
|
+
primary_email: string | null | undefined;
|
|
168
168
|
client_metadata: {} | null | undefined;
|
|
169
169
|
client_read_only_metadata: {} | null | undefined;
|
|
170
170
|
server_metadata: {} | null | undefined;
|
|
171
|
-
is_anonymous: boolean | undefined;
|
|
172
|
-
password: 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;
|
|
176
|
+
is_anonymous: boolean | undefined;
|
|
178
177
|
restricted_by_admin: boolean | undefined;
|
|
179
178
|
restricted_by_admin_reason: string | null | undefined;
|
|
180
179
|
restricted_by_admin_private_details: string | null | undefined;
|
|
@@ -185,6 +184,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
185
184
|
free_trial_abuse: number;
|
|
186
185
|
};
|
|
187
186
|
} | undefined;
|
|
187
|
+
password: string | null | undefined;
|
|
188
188
|
password_hash: string | undefined;
|
|
189
189
|
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
@@ -236,8 +236,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
236
236
|
server_metadata?: {} | null | undefined;
|
|
237
237
|
display_name: string;
|
|
238
238
|
id: string;
|
|
239
|
-
created_at_millis: number;
|
|
240
239
|
profile_image_url: string | null;
|
|
240
|
+
created_at_millis: number;
|
|
241
241
|
} | null;
|
|
242
242
|
selected_team_id: string | null;
|
|
243
243
|
profile_image_url: string | null;
|
|
@@ -369,18 +369,17 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
-
primary_email: string | null | undefined;
|
|
373
372
|
display_name: string | null | undefined;
|
|
373
|
+
primary_email: string | null | undefined;
|
|
374
374
|
client_metadata: {} | null | undefined;
|
|
375
375
|
client_read_only_metadata: {} | null | undefined;
|
|
376
376
|
server_metadata: {} | null | undefined;
|
|
377
|
-
is_anonymous: boolean | undefined;
|
|
378
|
-
password: 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;
|
|
382
|
+
is_anonymous: boolean | undefined;
|
|
384
383
|
restricted_by_admin: boolean | undefined;
|
|
385
384
|
restricted_by_admin_reason: string | null | undefined;
|
|
386
385
|
restricted_by_admin_private_details: string | null | undefined;
|
|
@@ -391,6 +390,7 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
391
390
|
free_trial_abuse: number;
|
|
392
391
|
};
|
|
393
392
|
} | undefined;
|
|
393
|
+
password: string | null | undefined;
|
|
394
394
|
password_hash: string | undefined;
|
|
395
395
|
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
@@ -470,8 +470,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
470
470
|
server_metadata?: {} | null | undefined;
|
|
471
471
|
display_name: string;
|
|
472
472
|
id: string;
|
|
473
|
-
created_at_millis: number;
|
|
474
473
|
profile_image_url: string | null;
|
|
474
|
+
created_at_millis: number;
|
|
475
475
|
} | null;
|
|
476
476
|
selected_team_id: string | null;
|
|
477
477
|
profile_image_url: string | null;
|
|
@@ -561,8 +561,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
561
561
|
server_metadata?: {} | null | undefined;
|
|
562
562
|
display_name: string;
|
|
563
563
|
id: string;
|
|
564
|
-
created_at_millis: number;
|
|
565
564
|
profile_image_url: string | null;
|
|
565
|
+
created_at_millis: number;
|
|
566
566
|
} | null;
|
|
567
567
|
selected_team_id: string | null;
|
|
568
568
|
profile_image_url: string | null;
|
|
@@ -24,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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HexclaveAssertionError } from "../utils/errors.js";
|
|
2
2
|
import { filterUndefined } from "../utils/objects.js";
|
|
3
3
|
import { Result } from "../utils/results.js";
|
|
4
|
-
import { KnownErrors } from "../known-errors.js";
|
|
5
4
|
import { urlString } from "../utils/urls.js";
|
|
5
|
+
import { KnownErrors } from "../known-errors.js";
|
|
6
6
|
import { InternalSession } from "../sessions.js";
|
|
7
7
|
import { HexclaveClientInterface } from "./client-interface.js";
|
|
8
8
|
import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.js";
|
|
@@ -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/esm/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;
|