@hexclave/shared 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/unified-prompts/reminders.js +3 -2
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/config/schema.d.ts +37 -37
- package/dist/esm/ai/unified-prompts/reminders.js +3 -2
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/config/schema.d.ts +37 -37
- package/dist/esm/interface/admin-metrics.d.ts +25 -25
- package/dist/esm/interface/conversations.d.ts +9 -9
- package/dist/esm/interface/crud/current-user.d.ts +13 -13
- package/dist/esm/interface/crud/email-outbox.d.ts +204 -204
- package/dist/esm/interface/crud/products.d.ts +5 -5
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/interface/crud/users.d.ts +20 -20
- package/dist/esm/interface/plan-usage.d.ts +2 -2
- package/dist/esm/interface/webhooks.d.ts +4 -4
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +1 -1
- package/dist/interface/admin-metrics.d.ts +25 -25
- package/dist/interface/conversations.d.ts +9 -9
- package/dist/interface/crud/current-user.d.ts +13 -13
- package/dist/interface/crud/email-outbox.d.ts +204 -204
- package/dist/interface/crud/products.d.ts +5 -5
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +28 -28
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/interface/crud/users.d.ts +20 -20
- package/dist/interface/plan-usage.d.ts +2 -2
- package/dist/interface/webhooks.d.ts +4 -4
- package/dist/known-errors.d.ts +2 -2
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +3 -2
- package/dist/esm/local-emulator.d.ts +0 -6
- package/dist/esm/local-emulator.d.ts.map +0 -1
- package/dist/esm/local-emulator.js +0 -7
- package/dist/esm/local-emulator.js.map +0 -1
- package/dist/local-emulator.d.ts +0 -6
- package/dist/local-emulator.d.ts.map +0 -1
- package/dist/local-emulator.js +0 -10
- package/dist/local-emulator.js.map +0 -1
- package/src/local-emulator.ts +0 -5
|
@@ -10,6 +10,7 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
10
10
|
client_metadata?: {} | null | undefined;
|
|
11
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
12
12
|
server_metadata?: {} | null | undefined;
|
|
13
|
+
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;
|
|
@@ -45,6 +45,7 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
45
45
|
client_metadata?: {} | null | undefined;
|
|
46
46
|
client_read_only_metadata?: {} | null | undefined;
|
|
47
47
|
server_metadata?: {} | null | 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;
|
|
@@ -108,6 +108,7 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
108
108
|
client_metadata?: {} | null | undefined;
|
|
109
109
|
client_read_only_metadata?: {} | null | undefined;
|
|
110
110
|
server_metadata?: {} | null | 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;
|
|
@@ -130,12 +130,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
|
+
id: string | null;
|
|
133
134
|
quantity: number;
|
|
134
135
|
product: {
|
|
135
136
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
137
|
client_metadata?: {} | null | undefined;
|
|
137
138
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
139
|
server_metadata?: {} | null | 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: {
|
|
@@ -79,12 +79,12 @@ 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
|
-
description: string;
|
|
85
83
|
id: string;
|
|
86
84
|
created_at_millis: number;
|
|
87
85
|
expires_at_millis: number | undefined;
|
|
86
|
+
user_id: string;
|
|
87
|
+
description: string;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
89
89
|
is_public: boolean;
|
|
90
90
|
} & {
|
|
@@ -178,11 +178,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
180
|
type: "team";
|
|
181
|
-
team_id: string;
|
|
182
|
-
description: string;
|
|
183
181
|
id: string;
|
|
184
182
|
created_at_millis: number;
|
|
185
183
|
expires_at_millis: number | undefined;
|
|
184
|
+
team_id: string;
|
|
185
|
+
description: string;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
187
187
|
is_public: boolean;
|
|
188
188
|
} & {
|
|
@@ -63,6 +63,10 @@ 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;
|
|
@@ -73,10 +77,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
73
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,6 +230,10 @@ 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;
|
|
@@ -239,10 +243,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
239
243
|
type: "shared" | "standard";
|
|
240
244
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
241
245
|
}[] | 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;
|
|
@@ -310,6 +310,10 @@ 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;
|
|
@@ -319,10 +323,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
319
323
|
type: "shared" | "standard";
|
|
320
324
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
321
325
|
}[] | 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;
|
|
@@ -466,6 +466,10 @@ 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;
|
|
@@ -476,10 +480,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
476
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,6 +585,10 @@ 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;
|
|
@@ -594,10 +598,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
594
598
|
type: "shared" | "standard";
|
|
595
599
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
596
600
|
}[] | 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;
|
|
@@ -699,6 +699,10 @@ 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;
|
|
@@ -709,10 +713,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
709
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,6 +818,10 @@ 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;
|
|
@@ -827,10 +831,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
827
831
|
type: "shared" | "standard";
|
|
828
832
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
829
833
|
}[] | 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,40 +21,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
+
id: string;
|
|
25
|
+
country_code: string | null;
|
|
26
|
+
display_name: string | null;
|
|
27
|
+
primary_email: string | null;
|
|
28
|
+
profile_image_url: string | null;
|
|
29
|
+
signed_up_at_millis: number;
|
|
30
|
+
last_active_at_millis: number;
|
|
24
31
|
restricted_reason: {
|
|
25
32
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
33
|
} | null;
|
|
27
|
-
|
|
34
|
+
client_metadata: {} | null;
|
|
35
|
+
client_read_only_metadata: {} | null;
|
|
36
|
+
server_metadata: {} | null;
|
|
28
37
|
selected_team_id: string | null;
|
|
29
38
|
is_anonymous: boolean;
|
|
30
39
|
is_restricted: boolean;
|
|
31
40
|
requires_totp_mfa: boolean;
|
|
32
|
-
display_name: string | null;
|
|
33
|
-
client_metadata: {} | null;
|
|
34
|
-
client_read_only_metadata: {} | null;
|
|
35
|
-
server_metadata: {} | null;
|
|
36
|
-
id: string;
|
|
37
41
|
primary_email_verified: boolean;
|
|
38
42
|
primary_email_auth_enabled: boolean;
|
|
39
|
-
profile_image_url: string | null;
|
|
40
43
|
selected_team: {
|
|
41
44
|
client_metadata?: {} | null | undefined;
|
|
42
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
43
46
|
server_metadata?: {} | null | undefined;
|
|
44
|
-
display_name: string;
|
|
45
47
|
id: string;
|
|
46
|
-
profile_image_url: string | null;
|
|
47
48
|
created_at_millis: number;
|
|
49
|
+
display_name: string;
|
|
50
|
+
profile_image_url: string | null;
|
|
48
51
|
} | null;
|
|
49
|
-
signed_up_at_millis: number;
|
|
50
52
|
has_password: boolean;
|
|
51
53
|
otp_auth_enabled: boolean;
|
|
52
54
|
passkey_auth_enabled: boolean;
|
|
53
|
-
last_active_at_millis: number;
|
|
54
55
|
restricted_by_admin: boolean;
|
|
55
56
|
restricted_by_admin_reason: string | null;
|
|
56
57
|
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,40 +144,40 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
+
id: string;
|
|
148
|
+
country_code: string | null;
|
|
149
|
+
display_name: string | null;
|
|
150
|
+
primary_email: string | null;
|
|
151
|
+
profile_image_url: string | null;
|
|
152
|
+
signed_up_at_millis: number;
|
|
153
|
+
last_active_at_millis: number;
|
|
147
154
|
restricted_reason: {
|
|
148
155
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
156
|
} | null;
|
|
150
|
-
|
|
157
|
+
client_metadata: {} | null;
|
|
158
|
+
client_read_only_metadata: {} | null;
|
|
159
|
+
server_metadata: {} | null;
|
|
151
160
|
selected_team_id: string | null;
|
|
152
161
|
is_anonymous: boolean;
|
|
153
162
|
is_restricted: boolean;
|
|
154
163
|
requires_totp_mfa: boolean;
|
|
155
|
-
display_name: string | null;
|
|
156
|
-
client_metadata: {} | null;
|
|
157
|
-
client_read_only_metadata: {} | null;
|
|
158
|
-
server_metadata: {} | null;
|
|
159
|
-
id: string;
|
|
160
164
|
primary_email_verified: boolean;
|
|
161
165
|
primary_email_auth_enabled: boolean;
|
|
162
|
-
profile_image_url: string | null;
|
|
163
166
|
selected_team: {
|
|
164
167
|
client_metadata?: {} | null | undefined;
|
|
165
168
|
client_read_only_metadata?: {} | null | undefined;
|
|
166
169
|
server_metadata?: {} | null | undefined;
|
|
167
|
-
display_name: string;
|
|
168
170
|
id: string;
|
|
169
|
-
profile_image_url: string | null;
|
|
170
171
|
created_at_millis: number;
|
|
172
|
+
display_name: string;
|
|
173
|
+
profile_image_url: string | null;
|
|
171
174
|
} | null;
|
|
172
|
-
signed_up_at_millis: number;
|
|
173
175
|
has_password: boolean;
|
|
174
176
|
otp_auth_enabled: boolean;
|
|
175
177
|
passkey_auth_enabled: boolean;
|
|
176
|
-
last_active_at_millis: number;
|
|
177
178
|
restricted_by_admin: boolean;
|
|
178
179
|
restricted_by_admin_reason: string | null;
|
|
179
180
|
restricted_by_admin_private_details: string | null;
|
|
180
|
-
country_code: string | null;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -42,6 +42,7 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
42
42
|
client_metadata?: {} | null | undefined;
|
|
43
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
44
|
server_metadata?: {} | null | 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;
|
|
@@ -126,6 +126,7 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
126
126
|
client_metadata?: {} | null | undefined;
|
|
127
127
|
client_read_only_metadata?: {} | null | undefined;
|
|
128
128
|
server_metadata?: {} | null | 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;
|
|
@@ -81,10 +81,10 @@ 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
|
-
display_name: string;
|
|
85
84
|
id: string;
|
|
86
|
-
profile_image_url: string | null;
|
|
87
85
|
created_at_millis: number;
|
|
86
|
+
display_name: string;
|
|
87
|
+
profile_image_url: string | null;
|
|
88
88
|
} | null;
|
|
89
89
|
selected_team_id: string | null;
|
|
90
90
|
profile_image_url: string | null;
|
|
@@ -163,34 +163,34 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
-
|
|
167
|
-
is_anonymous: boolean | undefined;
|
|
166
|
+
country_code: string | null | undefined;
|
|
168
167
|
display_name: string | null | undefined;
|
|
168
|
+
primary_email: string | null | undefined;
|
|
169
|
+
profile_image_url: string | null | undefined;
|
|
169
170
|
client_metadata: {} | null | undefined;
|
|
170
171
|
client_read_only_metadata: {} | null | undefined;
|
|
171
172
|
server_metadata: {} | null | undefined;
|
|
173
|
+
is_anonymous: boolean | undefined;
|
|
174
|
+
password: string | null | undefined;
|
|
172
175
|
primary_email_verified: boolean | undefined;
|
|
173
176
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
|
-
profile_image_url: string | null | undefined;
|
|
175
177
|
otp_auth_enabled: boolean | undefined;
|
|
176
178
|
passkey_auth_enabled: boolean | undefined;
|
|
177
179
|
restricted_by_admin: boolean | undefined;
|
|
178
180
|
restricted_by_admin_reason: string | null | undefined;
|
|
179
181
|
restricted_by_admin_private_details: string | null | undefined;
|
|
180
|
-
country_code: string | null | undefined;
|
|
181
182
|
risk_scores: {
|
|
182
183
|
sign_up: {
|
|
183
184
|
bot: number;
|
|
184
185
|
free_trial_abuse: number;
|
|
185
186
|
};
|
|
186
187
|
} | undefined;
|
|
187
|
-
password: string | null | undefined;
|
|
188
188
|
password_hash: string | undefined;
|
|
189
189
|
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
191
191
|
oauth_providers: {
|
|
192
|
-
email: string | null;
|
|
193
192
|
id: string;
|
|
193
|
+
email: string | null;
|
|
194
194
|
account_id: string;
|
|
195
195
|
}[] | undefined;
|
|
196
196
|
is_anonymous: boolean | undefined;
|
|
@@ -234,10 +234,10 @@ 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
|
-
display_name: string;
|
|
238
237
|
id: string;
|
|
239
|
-
profile_image_url: string | null;
|
|
240
238
|
created_at_millis: number;
|
|
239
|
+
display_name: string;
|
|
240
|
+
profile_image_url: string | null;
|
|
241
241
|
} | null;
|
|
242
242
|
selected_team_id: string | null;
|
|
243
243
|
profile_image_url: string | null;
|
|
@@ -369,34 +369,34 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
-
|
|
373
|
-
is_anonymous: boolean | undefined;
|
|
372
|
+
country_code: string | null | undefined;
|
|
374
373
|
display_name: string | null | undefined;
|
|
374
|
+
primary_email: string | null | undefined;
|
|
375
|
+
profile_image_url: string | null | undefined;
|
|
375
376
|
client_metadata: {} | null | undefined;
|
|
376
377
|
client_read_only_metadata: {} | null | undefined;
|
|
377
378
|
server_metadata: {} | null | undefined;
|
|
379
|
+
is_anonymous: boolean | undefined;
|
|
380
|
+
password: string | null | undefined;
|
|
378
381
|
primary_email_verified: boolean | undefined;
|
|
379
382
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
|
-
profile_image_url: string | null | undefined;
|
|
381
383
|
otp_auth_enabled: boolean | undefined;
|
|
382
384
|
passkey_auth_enabled: boolean | undefined;
|
|
383
385
|
restricted_by_admin: boolean | undefined;
|
|
384
386
|
restricted_by_admin_reason: string | null | undefined;
|
|
385
387
|
restricted_by_admin_private_details: string | null | undefined;
|
|
386
|
-
country_code: string | null | undefined;
|
|
387
388
|
risk_scores: {
|
|
388
389
|
sign_up: {
|
|
389
390
|
bot: number;
|
|
390
391
|
free_trial_abuse: number;
|
|
391
392
|
};
|
|
392
393
|
} | undefined;
|
|
393
|
-
password: string | null | undefined;
|
|
394
394
|
password_hash: string | undefined;
|
|
395
395
|
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
397
397
|
oauth_providers: {
|
|
398
|
-
email: string | null;
|
|
399
398
|
id: string;
|
|
399
|
+
email: string | null;
|
|
400
400
|
account_id: string;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
is_anonymous: boolean | undefined;
|
|
@@ -468,10 +468,10 @@ 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
|
-
display_name: string;
|
|
472
471
|
id: string;
|
|
473
|
-
profile_image_url: string | null;
|
|
474
472
|
created_at_millis: number;
|
|
473
|
+
display_name: string;
|
|
474
|
+
profile_image_url: string | null;
|
|
475
475
|
} | null;
|
|
476
476
|
selected_team_id: string | null;
|
|
477
477
|
profile_image_url: string | null;
|
|
@@ -559,10 +559,10 @@ 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
|
-
display_name: string;
|
|
563
562
|
id: string;
|
|
564
|
-
profile_image_url: string | null;
|
|
565
563
|
created_at_millis: number;
|
|
564
|
+
display_name: string;
|
|
565
|
+
profile_image_url: string | null;
|
|
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
|
-
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
34
33
|
display_name: string;
|
|
35
34
|
kind: "current" | "metered" | "capability";
|
|
35
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
36
36
|
used: number | null;
|
|
37
37
|
limit: number | null;
|
|
38
38
|
remaining: number | null;
|
|
@@ -20,10 +20,10 @@ 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
|
-
display_name: string;
|
|
24
23
|
id: string;
|
|
25
|
-
profile_image_url: string | null;
|
|
26
24
|
created_at_millis: number;
|
|
25
|
+
display_name: string;
|
|
26
|
+
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
29
29
|
profile_image_url: string | null;
|
|
@@ -110,10 +110,10 @@ 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
|
-
display_name: string;
|
|
114
113
|
id: string;
|
|
115
|
-
profile_image_url: string | null;
|
|
116
114
|
created_at_millis: number;
|
|
115
|
+
display_name: string;
|
|
116
|
+
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|
|
119
119
|
profile_image_url: string | null;
|
|
@@ -98,7 +98,7 @@ declare const KnownErrors: {
|
|
|
98
98
|
};
|
|
99
99
|
AccessTypeWithoutProjectId: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
100
100
|
constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
|
|
101
|
-
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "
|
|
101
|
+
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "server" | "admin" | "client"]> & {
|
|
102
102
|
errorCode: "ACCESS_TYPE_WITHOUT_PROJECT_ID";
|
|
103
103
|
};
|
|
104
104
|
AccessTypeRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
@@ -111,7 +111,7 @@ declare const KnownErrors: {
|
|
|
111
111
|
};
|
|
112
112
|
InsufficientAccessType: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
113
113
|
constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
|
|
114
|
-
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "
|
|
114
|
+
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "server" | "admin" | "client", allowedAccessTypes: ("server" | "admin" | "client")[]]> & {
|
|
115
115
|
errorCode: "INSUFFICIENT_ACCESS_TYPE";
|
|
116
116
|
};
|
|
117
117
|
InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
@@ -113,7 +113,7 @@ declare const moneyAmountSchema: (currency: Currency) => yup$1.StringSchema<stri
|
|
|
113
113
|
*/
|
|
114
114
|
declare const strictEmailSchema: (message: string | undefined) => yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
115
115
|
declare const emailSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
116
|
-
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"
|
|
116
|
+
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin" | "client", yup$1.AnyObject, undefined, "">;
|
|
117
117
|
declare const serverOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin", yup$1.AnyObject, undefined, "">;
|
|
118
118
|
declare const adminAuthTypeSchema: yup$1.StringSchema<"admin", yup$1.AnyObject, undefined, "">;
|
|
119
119
|
declare const projectIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
+
name: string | null;
|
|
12
13
|
project_id: string;
|
|
13
14
|
refresh_token_id: string;
|
|
14
15
|
email: string | null;
|
|
@@ -21,7 +22,6 @@ declare class AccessToken {
|
|
|
21
22
|
iss: string;
|
|
22
23
|
aud: string;
|
|
23
24
|
role: "authenticated";
|
|
24
|
-
name: string | null;
|
|
25
25
|
email_verified: boolean;
|
|
26
26
|
selected_team_id: string | null;
|
|
27
27
|
signed_up_at: number;
|