@hexclave/shared 1.0.27 → 1.0.28
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 +24 -24
- package/dist/esm/config/schema.d.ts +24 -24
- 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 +37 -37
- package/dist/esm/interface/crud/current-user.d.ts +4 -4
- package/dist/esm/interface/crud/email-outbox.d.ts +168 -168
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +5 -5
- 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 +10 -10
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/interface/crud/users.d.ts +8 -8
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +3 -3
- package/dist/esm/utils/passkey.d.ts +1 -1
- package/dist/esm/utils/promises.js +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.d.ts +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +37 -37
- package/dist/interface/crud/current-user.d.ts +4 -4
- package/dist/interface/crud/email-outbox.d.ts +168 -168
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +5 -5
- 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 +10 -10
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/interface/crud/users.d.ts +8 -8
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +3 -3
- package/dist/utils/passkey.d.ts +1 -1
- package/dist/utils/promises.js +1 -1
- package/package.json +3 -7
- package/src/utils/passkey.tsx +1 -1
- package/dist/index-nCRuFJTF.d.ts +0 -153
- package/dist/index-nCRuFJTF.d.ts.map +0 -1
|
@@ -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: "draft" | "open" | "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: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
|
|
19
19
|
created_at_millis: number;
|
|
20
20
|
amount_total: number;
|
|
21
21
|
hosted_invoice_url: string | null;
|
|
@@ -26,8 +26,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
26
26
|
}>;
|
|
27
27
|
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
29
|
quantity?: number | undefined;
|
|
30
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -61,8 +61,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
61
61
|
}>;
|
|
62
62
|
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
65
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
66
66
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
};
|
|
@@ -124,13 +124,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
124
124
|
}>;
|
|
125
125
|
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
128
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
129
129
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
|
-
id: string | null;
|
|
134
133
|
quantity: number;
|
|
135
134
|
product: {
|
|
136
135
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
@@ -153,11 +152,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
153
152
|
}>;
|
|
154
153
|
display_name: string;
|
|
155
154
|
included_items: Record<string, {
|
|
156
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
157
155
|
quantity?: number | undefined;
|
|
156
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
158
157
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
159
158
|
}>;
|
|
160
159
|
};
|
|
160
|
+
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
163
163
|
pagination: {
|
|
@@ -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
|
-
id: string;
|
|
83
|
-
type: "user";
|
|
84
82
|
user_id: string;
|
|
83
|
+
type: "user";
|
|
85
84
|
description: string;
|
|
86
|
-
|
|
85
|
+
id: string;
|
|
87
86
|
expires_at_millis: number | undefined;
|
|
88
87
|
manually_revoked_at_millis: number | undefined;
|
|
88
|
+
created_at_millis: number;
|
|
89
89
|
is_public: boolean;
|
|
90
90
|
} & {
|
|
91
91
|
value: string;
|
|
@@ -177,13 +177,13 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
177
177
|
is_public: undefined;
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
|
-
id: string;
|
|
181
180
|
type: "team";
|
|
182
181
|
team_id: string;
|
|
183
182
|
description: string;
|
|
184
|
-
|
|
183
|
+
id: string;
|
|
185
184
|
expires_at_millis: number | undefined;
|
|
186
185
|
manually_revoked_at_millis: number | undefined;
|
|
186
|
+
created_at_millis: number;
|
|
187
187
|
is_public: boolean;
|
|
188
188
|
} & {
|
|
189
189
|
value: string;
|
|
@@ -63,20 +63,20 @@ 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
|
+
}[];
|
|
66
70
|
oauth_providers: {
|
|
67
71
|
client_id?: string | undefined;
|
|
68
72
|
client_secret?: string | undefined;
|
|
69
73
|
facebook_config_id?: string | undefined;
|
|
70
74
|
microsoft_tenant_id?: string | undefined;
|
|
71
75
|
apple_bundle_ids?: string[] | undefined;
|
|
72
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
73
76
|
type: "shared" | "standard";
|
|
77
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
74
78
|
provider_config_id: string;
|
|
75
79
|
}[];
|
|
76
|
-
domains: {
|
|
77
|
-
domain: string;
|
|
78
|
-
handler_path: string;
|
|
79
|
-
}[];
|
|
80
80
|
allow_localhost: boolean;
|
|
81
81
|
sign_up_enabled: boolean;
|
|
82
82
|
credential_enabled: boolean;
|
|
@@ -230,18 +230,18 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
230
230
|
selected_payments_country: "US" | "OTHER";
|
|
231
231
|
} | null | undefined;
|
|
232
232
|
config: {
|
|
233
|
+
domains?: {
|
|
234
|
+
domain: string;
|
|
235
|
+
handler_path: string;
|
|
236
|
+
}[] | undefined;
|
|
233
237
|
oauth_providers?: {
|
|
234
238
|
client_id?: string | undefined;
|
|
235
239
|
client_secret?: string | undefined;
|
|
236
240
|
facebook_config_id?: string | undefined;
|
|
237
241
|
microsoft_tenant_id?: string | undefined;
|
|
238
242
|
apple_bundle_ids?: string[] | undefined;
|
|
239
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
240
243
|
type: "shared" | "standard";
|
|
241
|
-
|
|
242
|
-
domains?: {
|
|
243
|
-
domain: string;
|
|
244
|
-
handler_path: string;
|
|
244
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
245
245
|
}[] | undefined;
|
|
246
246
|
allow_localhost?: boolean | undefined;
|
|
247
247
|
sign_up_enabled?: boolean | undefined;
|
|
@@ -310,18 +310,18 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
310
310
|
selected_payments_country: "US" | "OTHER";
|
|
311
311
|
} | null | undefined;
|
|
312
312
|
config: {
|
|
313
|
+
domains?: {
|
|
314
|
+
domain: string;
|
|
315
|
+
handler_path: string;
|
|
316
|
+
}[] | undefined;
|
|
313
317
|
oauth_providers?: {
|
|
314
318
|
client_id?: string | undefined;
|
|
315
319
|
client_secret?: string | undefined;
|
|
316
320
|
facebook_config_id?: string | undefined;
|
|
317
321
|
microsoft_tenant_id?: string | undefined;
|
|
318
322
|
apple_bundle_ids?: string[] | undefined;
|
|
319
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
320
323
|
type: "shared" | "standard";
|
|
321
|
-
|
|
322
|
-
domains?: {
|
|
323
|
-
domain: string;
|
|
324
|
-
handler_path: string;
|
|
324
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
325
325
|
}[] | undefined;
|
|
326
326
|
allow_localhost?: boolean | undefined;
|
|
327
327
|
sign_up_enabled?: boolean | undefined;
|
|
@@ -466,20 +466,20 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
466
466
|
message: string;
|
|
467
467
|
}[];
|
|
468
468
|
config: {
|
|
469
|
+
domains: {
|
|
470
|
+
domain: string;
|
|
471
|
+
handler_path: string;
|
|
472
|
+
}[];
|
|
469
473
|
oauth_providers: {
|
|
470
474
|
client_id?: string | undefined;
|
|
471
475
|
client_secret?: string | undefined;
|
|
472
476
|
facebook_config_id?: string | undefined;
|
|
473
477
|
microsoft_tenant_id?: string | undefined;
|
|
474
478
|
apple_bundle_ids?: string[] | undefined;
|
|
475
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
476
479
|
type: "shared" | "standard";
|
|
480
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
477
481
|
provider_config_id: string;
|
|
478
482
|
}[];
|
|
479
|
-
domains: {
|
|
480
|
-
domain: string;
|
|
481
|
-
handler_path: string;
|
|
482
|
-
}[];
|
|
483
483
|
allow_localhost: boolean;
|
|
484
484
|
sign_up_enabled: boolean;
|
|
485
485
|
credential_enabled: boolean;
|
|
@@ -585,18 +585,18 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
585
585
|
selected_payments_country: "US" | "OTHER";
|
|
586
586
|
} | null | undefined;
|
|
587
587
|
config: {
|
|
588
|
+
domains?: {
|
|
589
|
+
domain: string;
|
|
590
|
+
handler_path: string;
|
|
591
|
+
}[] | undefined;
|
|
588
592
|
oauth_providers?: {
|
|
589
593
|
client_id?: string | undefined;
|
|
590
594
|
client_secret?: string | undefined;
|
|
591
595
|
facebook_config_id?: string | undefined;
|
|
592
596
|
microsoft_tenant_id?: string | undefined;
|
|
593
597
|
apple_bundle_ids?: string[] | undefined;
|
|
594
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
595
598
|
type: "shared" | "standard";
|
|
596
|
-
|
|
597
|
-
domains?: {
|
|
598
|
-
domain: string;
|
|
599
|
-
handler_path: string;
|
|
599
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
600
600
|
}[] | undefined;
|
|
601
601
|
allow_localhost?: boolean | undefined;
|
|
602
602
|
sign_up_enabled?: boolean | undefined;
|
|
@@ -699,20 +699,20 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
699
699
|
message: string;
|
|
700
700
|
}[];
|
|
701
701
|
config: {
|
|
702
|
+
domains: {
|
|
703
|
+
domain: string;
|
|
704
|
+
handler_path: string;
|
|
705
|
+
}[];
|
|
702
706
|
oauth_providers: {
|
|
703
707
|
client_id?: string | undefined;
|
|
704
708
|
client_secret?: string | undefined;
|
|
705
709
|
facebook_config_id?: string | undefined;
|
|
706
710
|
microsoft_tenant_id?: string | undefined;
|
|
707
711
|
apple_bundle_ids?: string[] | undefined;
|
|
708
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
709
712
|
type: "shared" | "standard";
|
|
713
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
710
714
|
provider_config_id: string;
|
|
711
715
|
}[];
|
|
712
|
-
domains: {
|
|
713
|
-
domain: string;
|
|
714
|
-
handler_path: string;
|
|
715
|
-
}[];
|
|
716
716
|
allow_localhost: boolean;
|
|
717
717
|
sign_up_enabled: boolean;
|
|
718
718
|
credential_enabled: boolean;
|
|
@@ -818,18 +818,18 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
818
818
|
selected_payments_country: "US" | "OTHER";
|
|
819
819
|
} | null | undefined;
|
|
820
820
|
config: {
|
|
821
|
+
domains?: {
|
|
822
|
+
domain: string;
|
|
823
|
+
handler_path: string;
|
|
824
|
+
}[] | undefined;
|
|
821
825
|
oauth_providers?: {
|
|
822
826
|
client_id?: string | undefined;
|
|
823
827
|
client_secret?: string | undefined;
|
|
824
828
|
facebook_config_id?: string | undefined;
|
|
825
829
|
microsoft_tenant_id?: string | undefined;
|
|
826
830
|
apple_bundle_ids?: string[] | undefined;
|
|
827
|
-
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
828
831
|
type: "shared" | "standard";
|
|
829
|
-
|
|
830
|
-
domains?: {
|
|
831
|
-
domain: string;
|
|
832
|
-
handler_path: string;
|
|
832
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
833
833
|
}[] | undefined;
|
|
834
834
|
allow_localhost?: boolean | undefined;
|
|
835
835
|
sign_up_enabled?: boolean | undefined;
|
|
@@ -21,7 +21,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
id: string;
|
|
25
24
|
restricted_reason: {
|
|
26
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
27
26
|
} | null;
|
|
@@ -30,31 +29,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
30
29
|
client_metadata: {} | null;
|
|
31
30
|
client_read_only_metadata: {} | null;
|
|
32
31
|
server_metadata: {} | null;
|
|
32
|
+
id: string;
|
|
33
33
|
selected_team_id: string | null;
|
|
34
34
|
is_anonymous: boolean;
|
|
35
35
|
is_restricted: boolean;
|
|
36
36
|
requires_totp_mfa: boolean;
|
|
37
|
-
country_code: string | null;
|
|
38
37
|
profile_image_url: string | null;
|
|
39
|
-
signed_up_at_millis: number;
|
|
40
|
-
last_active_at_millis: number;
|
|
41
38
|
primary_email_verified: boolean;
|
|
42
39
|
primary_email_auth_enabled: boolean;
|
|
43
40
|
selected_team: {
|
|
44
41
|
client_metadata?: {} | null | undefined;
|
|
45
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
43
|
server_metadata?: {} | null | undefined;
|
|
47
|
-
id: string;
|
|
48
44
|
display_name: string;
|
|
45
|
+
id: string;
|
|
49
46
|
created_at_millis: number;
|
|
50
47
|
profile_image_url: string | null;
|
|
51
48
|
} | null;
|
|
49
|
+
signed_up_at_millis: number;
|
|
52
50
|
has_password: boolean;
|
|
53
51
|
otp_auth_enabled: boolean;
|
|
54
52
|
passkey_auth_enabled: boolean;
|
|
53
|
+
last_active_at_millis: number;
|
|
55
54
|
restricted_by_admin: boolean;
|
|
56
55
|
restricted_by_admin_reason: string | null;
|
|
57
56
|
restricted_by_admin_private_details: string | null;
|
|
57
|
+
country_code: string | null;
|
|
58
58
|
risk_scores: {
|
|
59
59
|
sign_up: {
|
|
60
60
|
bot: number;
|
|
@@ -144,7 +144,6 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
id: string;
|
|
148
147
|
restricted_reason: {
|
|
149
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
150
149
|
} | null;
|
|
@@ -153,31 +152,32 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
153
152
|
client_metadata: {} | null;
|
|
154
153
|
client_read_only_metadata: {} | null;
|
|
155
154
|
server_metadata: {} | null;
|
|
155
|
+
id: string;
|
|
156
156
|
selected_team_id: string | null;
|
|
157
157
|
is_anonymous: boolean;
|
|
158
158
|
is_restricted: boolean;
|
|
159
159
|
requires_totp_mfa: boolean;
|
|
160
|
-
country_code: string | null;
|
|
161
160
|
profile_image_url: string | null;
|
|
162
|
-
signed_up_at_millis: number;
|
|
163
|
-
last_active_at_millis: number;
|
|
164
161
|
primary_email_verified: boolean;
|
|
165
162
|
primary_email_auth_enabled: boolean;
|
|
166
163
|
selected_team: {
|
|
167
164
|
client_metadata?: {} | null | undefined;
|
|
168
165
|
client_read_only_metadata?: {} | null | undefined;
|
|
169
166
|
server_metadata?: {} | null | undefined;
|
|
170
|
-
id: string;
|
|
171
167
|
display_name: string;
|
|
168
|
+
id: string;
|
|
172
169
|
created_at_millis: number;
|
|
173
170
|
profile_image_url: string | null;
|
|
174
171
|
} | null;
|
|
172
|
+
signed_up_at_millis: number;
|
|
175
173
|
has_password: boolean;
|
|
176
174
|
otp_auth_enabled: boolean;
|
|
177
175
|
passkey_auth_enabled: boolean;
|
|
176
|
+
last_active_at_millis: number;
|
|
178
177
|
restricted_by_admin: boolean;
|
|
179
178
|
restricted_by_admin_reason: string | null;
|
|
180
179
|
restricted_by_admin_private_details: string | null;
|
|
180
|
+
country_code: string | null;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -58,8 +58,8 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
58
58
|
}>;
|
|
59
59
|
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
62
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
63
63
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
@@ -142,8 +142,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
142
142
|
}>;
|
|
143
143
|
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
146
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
147
147
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
};
|
|
@@ -81,8 +81,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
81
81
|
client_metadata?: {} | null | undefined;
|
|
82
82
|
client_read_only_metadata?: {} | null | undefined;
|
|
83
83
|
server_metadata?: {} | null | undefined;
|
|
84
|
-
id: string;
|
|
85
84
|
display_name: string;
|
|
85
|
+
id: string;
|
|
86
86
|
created_at_millis: number;
|
|
87
87
|
profile_image_url: string | null;
|
|
88
88
|
} | null;
|
|
@@ -170,7 +170,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
170
170
|
server_metadata: {} | null | undefined;
|
|
171
171
|
is_anonymous: boolean | undefined;
|
|
172
172
|
password: string | null | undefined;
|
|
173
|
-
country_code: string | null | undefined;
|
|
174
173
|
profile_image_url: string | null | undefined;
|
|
175
174
|
primary_email_verified: boolean | undefined;
|
|
176
175
|
primary_email_auth_enabled: boolean | undefined;
|
|
@@ -179,6 +178,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
179
178
|
restricted_by_admin: boolean | undefined;
|
|
180
179
|
restricted_by_admin_reason: string | null | undefined;
|
|
181
180
|
restricted_by_admin_private_details: string | null | undefined;
|
|
181
|
+
country_code: string | null | undefined;
|
|
182
182
|
risk_scores: {
|
|
183
183
|
sign_up: {
|
|
184
184
|
bot: number;
|
|
@@ -189,8 +189,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
189
189
|
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
191
191
|
oauth_providers: {
|
|
192
|
-
id: string;
|
|
193
192
|
email: string | null;
|
|
193
|
+
id: string;
|
|
194
194
|
account_id: string;
|
|
195
195
|
}[] | undefined;
|
|
196
196
|
is_anonymous: boolean | undefined;
|
|
@@ -234,8 +234,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
234
234
|
client_metadata?: {} | null | undefined;
|
|
235
235
|
client_read_only_metadata?: {} | null | undefined;
|
|
236
236
|
server_metadata?: {} | null | undefined;
|
|
237
|
-
id: string;
|
|
238
237
|
display_name: string;
|
|
238
|
+
id: string;
|
|
239
239
|
created_at_millis: number;
|
|
240
240
|
profile_image_url: string | null;
|
|
241
241
|
} | null;
|
|
@@ -376,7 +376,6 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
376
376
|
server_metadata: {} | null | undefined;
|
|
377
377
|
is_anonymous: boolean | undefined;
|
|
378
378
|
password: string | null | undefined;
|
|
379
|
-
country_code: string | null | undefined;
|
|
380
379
|
profile_image_url: string | null | undefined;
|
|
381
380
|
primary_email_verified: boolean | undefined;
|
|
382
381
|
primary_email_auth_enabled: boolean | undefined;
|
|
@@ -385,6 +384,7 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
385
384
|
restricted_by_admin: boolean | undefined;
|
|
386
385
|
restricted_by_admin_reason: string | null | undefined;
|
|
387
386
|
restricted_by_admin_private_details: string | null | undefined;
|
|
387
|
+
country_code: string | null | undefined;
|
|
388
388
|
risk_scores: {
|
|
389
389
|
sign_up: {
|
|
390
390
|
bot: number;
|
|
@@ -395,8 +395,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
395
395
|
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
397
397
|
oauth_providers: {
|
|
398
|
-
id: string;
|
|
399
398
|
email: string | null;
|
|
399
|
+
id: string;
|
|
400
400
|
account_id: string;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
is_anonymous: boolean | undefined;
|
|
@@ -468,8 +468,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
468
468
|
client_metadata?: {} | null | undefined;
|
|
469
469
|
client_read_only_metadata?: {} | null | undefined;
|
|
470
470
|
server_metadata?: {} | null | undefined;
|
|
471
|
-
id: string;
|
|
472
471
|
display_name: string;
|
|
472
|
+
id: string;
|
|
473
473
|
created_at_millis: number;
|
|
474
474
|
profile_image_url: string | null;
|
|
475
475
|
} | null;
|
|
@@ -559,8 +559,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
559
559
|
client_metadata?: {} | null | undefined;
|
|
560
560
|
client_read_only_metadata?: {} | null | undefined;
|
|
561
561
|
server_metadata?: {} | null | undefined;
|
|
562
|
-
id: string;
|
|
563
562
|
display_name: string;
|
|
563
|
+
id: string;
|
|
564
564
|
created_at_millis: number;
|
|
565
565
|
profile_image_url: string | null;
|
|
566
566
|
} | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HexclaveAssertionError } from "../utils/errors.js";
|
|
2
2
|
import { filterUndefined } from "../utils/objects.js";
|
|
3
3
|
import { Result } from "../utils/results.js";
|
|
4
|
-
import { urlString } from "../utils/urls.js";
|
|
5
4
|
import { KnownErrors } from "../known-errors.js";
|
|
5
|
+
import { urlString } from "../utils/urls.js";
|
|
6
6
|
import { InternalSession } from "../sessions.js";
|
|
7
7
|
import { HexclaveClientInterface } from "./client-interface.js";
|
|
8
8
|
import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.js";
|
|
@@ -20,8 +20,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
20
20
|
client_metadata?: {} | null | undefined;
|
|
21
21
|
client_read_only_metadata?: {} | null | undefined;
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
|
-
id: string;
|
|
24
23
|
display_name: string;
|
|
24
|
+
id: string;
|
|
25
25
|
created_at_millis: number;
|
|
26
26
|
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
@@ -110,8 +110,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
110
110
|
client_metadata?: {} | null | undefined;
|
|
111
111
|
client_read_only_metadata?: {} | null | undefined;
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
|
-
id: string;
|
|
114
113
|
display_name: string;
|
|
114
|
+
id: string;
|
|
115
115
|
created_at_millis: number;
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
@@ -314,8 +314,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
314
314
|
free_trial?: DayInterval | undefined;
|
|
315
315
|
}>;
|
|
316
316
|
included_items: Record<string, {
|
|
317
|
-
repeat?: "never" | DayInterval | undefined;
|
|
318
317
|
quantity?: number | undefined;
|
|
318
|
+
repeat?: "never" | DayInterval | undefined;
|
|
319
319
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
320
320
|
}>;
|
|
321
321
|
client_metadata: {} | null | undefined;
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -9,9 +9,6 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
-
name: string | null;
|
|
13
|
-
role: "authenticated";
|
|
14
|
-
sub: string;
|
|
15
12
|
project_id: string;
|
|
16
13
|
refresh_token_id: string;
|
|
17
14
|
email: string | null;
|
|
@@ -19,9 +16,12 @@ declare class AccessToken {
|
|
|
19
16
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
20
17
|
} | null;
|
|
21
18
|
branch_id: string;
|
|
19
|
+
sub: string;
|
|
20
|
+
name: string | null;
|
|
22
21
|
iat: number;
|
|
23
22
|
iss: string;
|
|
24
23
|
aud: string;
|
|
24
|
+
role: "authenticated";
|
|
25
25
|
email_verified: boolean;
|
|
26
26
|
selected_team_id: string | null;
|
|
27
27
|
signed_up_at: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AuthenticationResponseJSON, AuthenticatorAttestationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/
|
|
1
|
+
import { AuthenticationResponseJSON, AuthenticatorAttestationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/browser";
|
|
2
2
|
export { type AuthenticationResponseJSON, type AuthenticatorAttestationResponseJSON, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RegistrationResponseJSON };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KnownError } from "../index.js";
|
|
2
1
|
import { HexclaveAssertionError, captureError, concatStacktraces, errorToNiceString } from "./errors.js";
|
|
3
2
|
import { getProcessEnv } from "./env.js";
|
|
4
3
|
import { DependenciesMap } from "./maps.js";
|
|
5
4
|
import { Result } from "./results.js";
|
|
6
5
|
import { traceSpan } from "./telemetry.js";
|
|
6
|
+
import { KnownError } from "../index.js";
|
|
7
7
|
import { generateUuid } from "./uuids.js";
|
|
8
8
|
|
|
9
9
|
//#region src/utils/promises.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
+
let ___utils_errors_js = require("../utils/errors.js");
|
|
3
4
|
let react = require("react");
|
|
4
5
|
react = require_chunk.__toESM(react);
|
|
5
|
-
let ___utils_errors_js = require("../utils/errors.js");
|
|
6
6
|
|
|
7
7
|
//#region src/hooks/use-async-callback.tsx
|
|
8
8
|
function useAsyncCallback(callback, deps) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
-
let react = require("react");
|
|
4
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
+
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/use-async-external-store.tsx
|
|
7
7
|
function useAsyncExternalStore(subscribe) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
-
let react = require("react");
|
|
4
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
+
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/use-strict-memo.tsx
|
|
7
7
|
const cached = /* @__PURE__ */ new Map();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
-
let ___utils_urls_js = require("../utils/urls.js");
|
|
5
4
|
let ___known_errors_js = require("../known-errors.js");
|
|
5
|
+
let ___utils_urls_js = require("../utils/urls.js");
|
|
6
6
|
let __server_interface_js = require("./server-interface.js");
|
|
7
7
|
|
|
8
8
|
//#region src/interface/admin-interface.ts
|