@hexclave/shared 1.0.2 → 1.0.3
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/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/config/schema.d.ts +55 -55
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/config/schema.d.ts +55 -55
- package/dist/esm/interface/admin-metrics.d.ts +12 -12
- package/dist/esm/interface/conversations.d.ts +32 -32
- package/dist/esm/interface/crud/current-user.d.ts +13 -13
- package/dist/esm/interface/crud/email-outbox.d.ts +313 -313
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/esm/interface/crud/transactions.d.ts +6 -6
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +14 -14
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +2 -2
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +12 -12
- package/dist/interface/conversations.d.ts +32 -32
- package/dist/interface/crud/current-user.d.ts +13 -13
- package/dist/interface/crud/email-outbox.d.ts +313 -313
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/interface/crud/transactions.d.ts +6 -6
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +14 -14
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +2 -2
- package/dist/schema-fields.d.ts +2 -2
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
|
@@ -6,11 +6,10 @@ 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;
|
|
9
10
|
client_metadata?: {} | null | undefined;
|
|
10
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
11
12
|
server_metadata?: {} | null | undefined;
|
|
12
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
13
|
-
display_name: string;
|
|
14
13
|
server_only: boolean;
|
|
15
14
|
customer_type: "team" | "user" | "custom";
|
|
16
15
|
stackable: boolean;
|
|
@@ -25,9 +24,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
25
24
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
26
25
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
27
26
|
}>;
|
|
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
|
};
|
|
@@ -41,11 +41,10 @@ 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;
|
|
44
45
|
client_metadata?: {} | null | undefined;
|
|
45
46
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
47
|
server_metadata?: {} | null | undefined;
|
|
47
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
48
|
-
display_name: string;
|
|
49
48
|
server_only: boolean;
|
|
50
49
|
customer_type: "team" | "user" | "custom";
|
|
51
50
|
stackable: boolean;
|
|
@@ -60,9 +59,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
60
59
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
61
60
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
62
61
|
}>;
|
|
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
|
};
|
|
@@ -104,11 +104,10 @@ 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;
|
|
107
108
|
client_metadata?: {} | null | undefined;
|
|
108
109
|
client_read_only_metadata?: {} | null | undefined;
|
|
109
110
|
server_metadata?: {} | null | undefined;
|
|
110
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
111
|
-
display_name: string;
|
|
112
111
|
server_only: boolean;
|
|
113
112
|
customer_type: "team" | "user" | "custom";
|
|
114
113
|
stackable: boolean;
|
|
@@ -123,21 +122,20 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
123
122
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
124
123
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
125
124
|
}>;
|
|
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: {
|
|
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;
|
|
141
139
|
server_only: boolean;
|
|
142
140
|
customer_type: "team" | "user" | "custom";
|
|
143
141
|
stackable: boolean;
|
|
@@ -152,12 +150,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
152
150
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
153
151
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
154
152
|
}>;
|
|
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: {
|
|
@@ -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,11 +79,11 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
-
|
|
82
|
+
user_id: string;
|
|
83
83
|
type: "user";
|
|
84
|
+
description: string;
|
|
84
85
|
id: string;
|
|
85
86
|
created_at_millis: number;
|
|
86
|
-
user_id: string;
|
|
87
87
|
expires_at_millis: number | undefined;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
89
89
|
is_public: boolean;
|
|
@@ -177,11 +177,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
177
177
|
is_public: undefined;
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
|
-
description: string;
|
|
181
180
|
type: "team";
|
|
181
|
+
team_id: string;
|
|
182
|
+
description: string;
|
|
182
183
|
id: string;
|
|
183
184
|
created_at_millis: number;
|
|
184
|
-
team_id: string;
|
|
185
185
|
expires_at_millis: number | undefined;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
187
187
|
is_public: boolean;
|
|
@@ -57,6 +57,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
57
57
|
selected_payments_country: "US" | "OTHER";
|
|
58
58
|
} | null | undefined;
|
|
59
59
|
config: {
|
|
60
|
+
domains: {
|
|
61
|
+
domain: string;
|
|
62
|
+
handler_path: string;
|
|
63
|
+
}[];
|
|
60
64
|
oauth_providers: {
|
|
61
65
|
client_id?: string | undefined;
|
|
62
66
|
client_secret?: string | undefined;
|
|
@@ -79,10 +83,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
79
83
|
enabled_oauth_providers: {
|
|
80
84
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
81
85
|
}[];
|
|
82
|
-
domains: {
|
|
83
|
-
domain: string;
|
|
84
|
-
handler_path: string;
|
|
85
|
-
}[];
|
|
86
86
|
email_config: {
|
|
87
87
|
password?: string | undefined;
|
|
88
88
|
host?: string | undefined;
|
|
@@ -159,6 +159,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
159
159
|
id: string;
|
|
160
160
|
display_name: string;
|
|
161
161
|
config: {
|
|
162
|
+
domains: {
|
|
163
|
+
domain: string;
|
|
164
|
+
handler_path: string;
|
|
165
|
+
}[];
|
|
162
166
|
allow_localhost: boolean;
|
|
163
167
|
sign_up_enabled: boolean;
|
|
164
168
|
credential_enabled: boolean;
|
|
@@ -171,10 +175,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
171
175
|
enabled_oauth_providers: {
|
|
172
176
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
173
177
|
}[];
|
|
174
|
-
domains: {
|
|
175
|
-
domain: string;
|
|
176
|
-
handler_path: string;
|
|
177
|
-
}[];
|
|
178
178
|
};
|
|
179
179
|
}, yup$1.AnyObject, {
|
|
180
180
|
id: undefined;
|
|
@@ -210,6 +210,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
210
210
|
selected_payments_country: "US" | "OTHER";
|
|
211
211
|
} | null | undefined;
|
|
212
212
|
config: {
|
|
213
|
+
domains?: {
|
|
214
|
+
domain: string;
|
|
215
|
+
handler_path: string;
|
|
216
|
+
}[] | undefined;
|
|
213
217
|
oauth_providers?: {
|
|
214
218
|
client_id?: string | undefined;
|
|
215
219
|
client_secret?: string | undefined;
|
|
@@ -228,10 +232,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
228
232
|
client_user_deletion_enabled?: boolean | undefined;
|
|
229
233
|
allow_user_api_keys?: boolean | undefined;
|
|
230
234
|
allow_team_api_keys?: boolean | undefined;
|
|
231
|
-
domains?: {
|
|
232
|
-
domain: string;
|
|
233
|
-
handler_path: string;
|
|
234
|
-
}[] | undefined;
|
|
235
235
|
email_config?: {
|
|
236
236
|
password?: string | undefined;
|
|
237
237
|
host?: string | undefined;
|
|
@@ -290,6 +290,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
290
290
|
selected_payments_country: "US" | "OTHER";
|
|
291
291
|
} | null | undefined;
|
|
292
292
|
config: {
|
|
293
|
+
domains?: {
|
|
294
|
+
domain: string;
|
|
295
|
+
handler_path: string;
|
|
296
|
+
}[] | undefined;
|
|
293
297
|
oauth_providers?: {
|
|
294
298
|
client_id?: string | undefined;
|
|
295
299
|
client_secret?: string | undefined;
|
|
@@ -308,10 +312,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
308
312
|
client_user_deletion_enabled?: boolean | undefined;
|
|
309
313
|
allow_user_api_keys?: boolean | undefined;
|
|
310
314
|
allow_team_api_keys?: boolean | undefined;
|
|
311
|
-
domains?: {
|
|
312
|
-
domain: string;
|
|
313
|
-
handler_path: string;
|
|
314
|
-
}[] | undefined;
|
|
315
315
|
email_config?: {
|
|
316
316
|
password?: string | undefined;
|
|
317
317
|
host?: string | undefined;
|
|
@@ -365,6 +365,10 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
365
365
|
id: string;
|
|
366
366
|
display_name: string;
|
|
367
367
|
config: {
|
|
368
|
+
domains: {
|
|
369
|
+
domain: string;
|
|
370
|
+
handler_path: string;
|
|
371
|
+
}[];
|
|
368
372
|
allow_localhost: boolean;
|
|
369
373
|
sign_up_enabled: boolean;
|
|
370
374
|
credential_enabled: boolean;
|
|
@@ -377,10 +381,6 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
377
381
|
enabled_oauth_providers: {
|
|
378
382
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
379
383
|
}[];
|
|
380
|
-
domains: {
|
|
381
|
-
domain: string;
|
|
382
|
-
handler_path: string;
|
|
383
|
-
}[];
|
|
384
384
|
};
|
|
385
385
|
}, yup$1.AnyObject, {
|
|
386
386
|
id: undefined;
|
|
@@ -430,6 +430,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
430
430
|
selected_payments_country: "US" | "OTHER";
|
|
431
431
|
} | null | undefined;
|
|
432
432
|
config: {
|
|
433
|
+
domains: {
|
|
434
|
+
domain: string;
|
|
435
|
+
handler_path: string;
|
|
436
|
+
}[];
|
|
433
437
|
oauth_providers: {
|
|
434
438
|
client_id?: string | undefined;
|
|
435
439
|
client_secret?: string | undefined;
|
|
@@ -452,10 +456,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
452
456
|
enabled_oauth_providers: {
|
|
453
457
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
454
458
|
}[];
|
|
455
|
-
domains: {
|
|
456
|
-
domain: string;
|
|
457
|
-
handler_path: string;
|
|
458
|
-
}[];
|
|
459
459
|
email_config: {
|
|
460
460
|
password?: string | undefined;
|
|
461
461
|
host?: string | undefined;
|
|
@@ -545,6 +545,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
545
545
|
selected_payments_country: "US" | "OTHER";
|
|
546
546
|
} | null | undefined;
|
|
547
547
|
config: {
|
|
548
|
+
domains?: {
|
|
549
|
+
domain: string;
|
|
550
|
+
handler_path: string;
|
|
551
|
+
}[] | undefined;
|
|
548
552
|
oauth_providers?: {
|
|
549
553
|
client_id?: string | undefined;
|
|
550
554
|
client_secret?: string | undefined;
|
|
@@ -563,10 +567,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
563
567
|
client_user_deletion_enabled?: boolean | undefined;
|
|
564
568
|
allow_user_api_keys?: boolean | undefined;
|
|
565
569
|
allow_team_api_keys?: boolean | undefined;
|
|
566
|
-
domains?: {
|
|
567
|
-
domain: string;
|
|
568
|
-
handler_path: string;
|
|
569
|
-
}[] | undefined;
|
|
570
570
|
email_config?: {
|
|
571
571
|
password?: string | undefined;
|
|
572
572
|
host?: string | undefined;
|
|
@@ -653,6 +653,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
653
653
|
selected_payments_country: "US" | "OTHER";
|
|
654
654
|
} | null | undefined;
|
|
655
655
|
config: {
|
|
656
|
+
domains: {
|
|
657
|
+
domain: string;
|
|
658
|
+
handler_path: string;
|
|
659
|
+
}[];
|
|
656
660
|
oauth_providers: {
|
|
657
661
|
client_id?: string | undefined;
|
|
658
662
|
client_secret?: string | undefined;
|
|
@@ -675,10 +679,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
675
679
|
enabled_oauth_providers: {
|
|
676
680
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
677
681
|
}[];
|
|
678
|
-
domains: {
|
|
679
|
-
domain: string;
|
|
680
|
-
handler_path: string;
|
|
681
|
-
}[];
|
|
682
682
|
email_config: {
|
|
683
683
|
password?: string | undefined;
|
|
684
684
|
host?: string | undefined;
|
|
@@ -768,6 +768,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
768
768
|
selected_payments_country: "US" | "OTHER";
|
|
769
769
|
} | null | undefined;
|
|
770
770
|
config: {
|
|
771
|
+
domains?: {
|
|
772
|
+
domain: string;
|
|
773
|
+
handler_path: string;
|
|
774
|
+
}[] | undefined;
|
|
771
775
|
oauth_providers?: {
|
|
772
776
|
client_id?: string | undefined;
|
|
773
777
|
client_secret?: string | undefined;
|
|
@@ -786,10 +790,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
786
790
|
client_user_deletion_enabled?: boolean | undefined;
|
|
787
791
|
allow_user_api_keys?: boolean | undefined;
|
|
788
792
|
allow_team_api_keys?: boolean | undefined;
|
|
789
|
-
domains?: {
|
|
790
|
-
domain: string;
|
|
791
|
-
handler_path: string;
|
|
792
|
-
}[] | undefined;
|
|
793
793
|
email_config?: {
|
|
794
794
|
password?: string | undefined;
|
|
795
795
|
host?: string | undefined;
|
|
@@ -21,32 +21,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
selected_team_id: string | null;
|
|
25
|
-
is_anonymous: boolean;
|
|
26
|
-
is_restricted: boolean;
|
|
27
24
|
restricted_reason: {
|
|
28
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
29
26
|
} | null;
|
|
30
|
-
|
|
27
|
+
primary_email: string | null;
|
|
28
|
+
display_name: string | null;
|
|
29
|
+
client_metadata: {} | null;
|
|
30
|
+
client_read_only_metadata: {} | null;
|
|
31
|
+
server_metadata: {} | null;
|
|
31
32
|
id: string;
|
|
33
|
+
selected_team_id: string | null;
|
|
34
|
+
is_anonymous: boolean;
|
|
35
|
+
is_restricted: boolean;
|
|
36
|
+
requires_totp_mfa: boolean;
|
|
32
37
|
country_code: string | null;
|
|
33
|
-
display_name: string | null;
|
|
34
|
-
primary_email: string | null;
|
|
35
38
|
profile_image_url: string | null;
|
|
36
39
|
signed_up_at_millis: number;
|
|
37
40
|
last_active_at_millis: number;
|
|
38
|
-
client_metadata: {} | null;
|
|
39
|
-
client_read_only_metadata: {} | null;
|
|
40
|
-
server_metadata: {} | null;
|
|
41
41
|
primary_email_verified: boolean;
|
|
42
42
|
primary_email_auth_enabled: boolean;
|
|
43
43
|
selected_team: {
|
|
44
44
|
client_metadata?: {} | null | undefined;
|
|
45
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
46
|
server_metadata?: {} | null | undefined;
|
|
47
|
+
display_name: string;
|
|
47
48
|
id: string;
|
|
48
49
|
created_at_millis: number;
|
|
49
|
-
display_name: string;
|
|
50
50
|
profile_image_url: string | null;
|
|
51
51
|
} | null;
|
|
52
52
|
has_password: boolean;
|
|
@@ -144,32 +144,32 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
selected_team_id: string | null;
|
|
148
|
-
is_anonymous: boolean;
|
|
149
|
-
is_restricted: boolean;
|
|
150
147
|
restricted_reason: {
|
|
151
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
152
149
|
} | null;
|
|
153
|
-
|
|
150
|
+
primary_email: string | null;
|
|
151
|
+
display_name: string | null;
|
|
152
|
+
client_metadata: {} | null;
|
|
153
|
+
client_read_only_metadata: {} | null;
|
|
154
|
+
server_metadata: {} | null;
|
|
154
155
|
id: string;
|
|
156
|
+
selected_team_id: string | null;
|
|
157
|
+
is_anonymous: boolean;
|
|
158
|
+
is_restricted: boolean;
|
|
159
|
+
requires_totp_mfa: boolean;
|
|
155
160
|
country_code: string | null;
|
|
156
|
-
display_name: string | null;
|
|
157
|
-
primary_email: string | null;
|
|
158
161
|
profile_image_url: string | null;
|
|
159
162
|
signed_up_at_millis: number;
|
|
160
163
|
last_active_at_millis: number;
|
|
161
|
-
client_metadata: {} | null;
|
|
162
|
-
client_read_only_metadata: {} | null;
|
|
163
|
-
server_metadata: {} | null;
|
|
164
164
|
primary_email_verified: boolean;
|
|
165
165
|
primary_email_auth_enabled: boolean;
|
|
166
166
|
selected_team: {
|
|
167
167
|
client_metadata?: {} | null | undefined;
|
|
168
168
|
client_read_only_metadata?: {} | null | undefined;
|
|
169
169
|
server_metadata?: {} | null | undefined;
|
|
170
|
+
display_name: string;
|
|
170
171
|
id: string;
|
|
171
172
|
created_at_millis: number;
|
|
172
|
-
display_name: string;
|
|
173
173
|
profile_image_url: string | null;
|
|
174
174
|
} | null;
|
|
175
175
|
has_password: boolean;
|
|
@@ -38,11 +38,10 @@ 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;
|
|
41
42
|
client_metadata?: {} | null | undefined;
|
|
42
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
43
44
|
server_metadata?: {} | null | undefined;
|
|
44
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
45
|
-
display_name: string;
|
|
46
45
|
server_only: boolean;
|
|
47
46
|
customer_type: "team" | "user" | "custom";
|
|
48
47
|
stackable: boolean;
|
|
@@ -57,9 +56,10 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
57
56
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
58
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
59
58
|
}>;
|
|
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
|
};
|
|
@@ -122,11 +122,10 @@ 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;
|
|
125
126
|
client_metadata?: {} | null | undefined;
|
|
126
127
|
client_read_only_metadata?: {} | null | undefined;
|
|
127
128
|
server_metadata?: {} | null | undefined;
|
|
128
|
-
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
129
|
-
display_name: string;
|
|
130
129
|
server_only: boolean;
|
|
131
130
|
customer_type: "team" | "user" | "custom";
|
|
132
131
|
stackable: boolean;
|
|
@@ -141,9 +140,10 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
141
140
|
interval?: ______utils_dates0.DayInterval | undefined;
|
|
142
141
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
143
142
|
}>;
|
|
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
|
};
|
|
@@ -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"}
|
|
@@ -81,9 +81,9 @@ 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;
|
|
84
85
|
id: string;
|
|
85
86
|
created_at_millis: number;
|
|
86
|
-
display_name: string;
|
|
87
87
|
profile_image_url: string | null;
|
|
88
88
|
} | null;
|
|
89
89
|
selected_team_id: string | null;
|
|
@@ -163,14 +163,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
-
is_anonymous: boolean | undefined;
|
|
167
|
-
country_code: string | null | undefined;
|
|
168
|
-
display_name: string | null | undefined;
|
|
169
166
|
primary_email: string | null | undefined;
|
|
170
|
-
|
|
167
|
+
display_name: string | null | undefined;
|
|
171
168
|
client_metadata: {} | null | undefined;
|
|
172
169
|
client_read_only_metadata: {} | null | undefined;
|
|
173
170
|
server_metadata: {} | null | undefined;
|
|
171
|
+
is_anonymous: boolean | undefined;
|
|
172
|
+
password: string | null | undefined;
|
|
173
|
+
country_code: string | null | undefined;
|
|
174
|
+
profile_image_url: string | null | undefined;
|
|
174
175
|
primary_email_verified: boolean | undefined;
|
|
175
176
|
primary_email_auth_enabled: boolean | undefined;
|
|
176
177
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -184,7 +185,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
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
|
} & {
|
|
@@ -234,9 +234,9 @@ 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;
|
|
237
238
|
id: string;
|
|
238
239
|
created_at_millis: number;
|
|
239
|
-
display_name: string;
|
|
240
240
|
profile_image_url: string | null;
|
|
241
241
|
} | null;
|
|
242
242
|
selected_team_id: string | null;
|
|
@@ -369,14 +369,15 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
-
is_anonymous: boolean | undefined;
|
|
373
|
-
country_code: string | null | undefined;
|
|
374
|
-
display_name: string | null | undefined;
|
|
375
372
|
primary_email: string | null | undefined;
|
|
376
|
-
|
|
373
|
+
display_name: string | null | undefined;
|
|
377
374
|
client_metadata: {} | null | undefined;
|
|
378
375
|
client_read_only_metadata: {} | null | undefined;
|
|
379
376
|
server_metadata: {} | null | undefined;
|
|
377
|
+
is_anonymous: boolean | undefined;
|
|
378
|
+
password: string | null | undefined;
|
|
379
|
+
country_code: string | null | undefined;
|
|
380
|
+
profile_image_url: string | null | undefined;
|
|
380
381
|
primary_email_verified: boolean | undefined;
|
|
381
382
|
primary_email_auth_enabled: boolean | undefined;
|
|
382
383
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -390,7 +391,6 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
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
|
} & {
|
|
@@ -468,9 +468,9 @@ 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;
|
|
471
472
|
id: string;
|
|
472
473
|
created_at_millis: number;
|
|
473
|
-
display_name: string;
|
|
474
474
|
profile_image_url: string | null;
|
|
475
475
|
} | null;
|
|
476
476
|
selected_team_id: string | null;
|
|
@@ -559,9 +559,9 @@ 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;
|
|
562
563
|
id: string;
|
|
563
564
|
created_at_millis: number;
|
|
564
|
-
display_name: string;
|
|
565
565
|
profile_image_url: string | null;
|
|
566
566
|
} | null;
|
|
567
567
|
selected_team_id: string | null;
|
|
@@ -20,9 +20,9 @@ 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;
|
|
23
24
|
id: string;
|
|
24
25
|
created_at_millis: number;
|
|
25
|
-
display_name: string;
|
|
26
26
|
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
@@ -110,9 +110,9 @@ 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;
|
|
113
114
|
id: string;
|
|
114
115
|
created_at_millis: number;
|
|
115
|
-
display_name: string;
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: 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: "client" | "server" | "admin"]> & {
|
|
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: "client" | "server" | "admin", allowedAccessTypes: ("client" | "server" | "admin")[]]> & {
|
|
115
115
|
errorCode: "INSUFFICIENT_ACCESS_TYPE";
|
|
116
116
|
};
|
|
117
117
|
InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
@@ -107,7 +107,7 @@ declare const moneyAmountSchema: (currency: Currency) => yup$1.StringSchema<stri
|
|
|
107
107
|
*/
|
|
108
108
|
declare const strictEmailSchema: (message: string | undefined) => yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
109
109
|
declare const emailSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
110
|
-
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"
|
|
110
|
+
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"client" | "server" | "admin", yup$1.AnyObject, undefined, "">;
|
|
111
111
|
declare const serverOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin", yup$1.AnyObject, undefined, "">;
|
|
112
112
|
declare const adminAuthTypeSchema: yup$1.StringSchema<"admin", yup$1.AnyObject, undefined, "">;
|
|
113
113
|
declare const projectIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -302,8 +302,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
302
302
|
free_trial?: DayInterval | undefined;
|
|
303
303
|
}>;
|
|
304
304
|
included_items: Record<string, {
|
|
305
|
-
repeat?: "never" | DayInterval | undefined;
|
|
306
305
|
quantity?: number | undefined;
|
|
306
|
+
repeat?: "never" | DayInterval | undefined;
|
|
307
307
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
308
308
|
}>;
|
|
309
309
|
client_metadata: {} | null | undefined;
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -9,24 +9,24 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
+
project_id: string;
|
|
13
|
+
refresh_token_id: string;
|
|
14
|
+
email: string | null;
|
|
15
|
+
restricted_reason: {
|
|
16
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
|
+
} | null;
|
|
18
|
+
branch_id: string;
|
|
12
19
|
sub: string;
|
|
13
20
|
iat: number;
|
|
14
21
|
iss: string;
|
|
15
22
|
aud: string;
|
|
16
|
-
project_id: string;
|
|
17
|
-
branch_id: string;
|
|
18
|
-
refresh_token_id: string;
|
|
19
23
|
role: "authenticated";
|
|
20
24
|
name: string | null;
|
|
21
|
-
email: string | null;
|
|
22
25
|
email_verified: boolean;
|
|
23
26
|
selected_team_id: string | null;
|
|
24
27
|
signed_up_at: number;
|
|
25
28
|
is_anonymous: boolean;
|
|
26
29
|
is_restricted: boolean;
|
|
27
|
-
restricted_reason: {
|
|
28
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
29
|
-
} | null;
|
|
30
30
|
requires_totp_mfa: boolean;
|
|
31
31
|
};
|
|
32
32
|
get expiresAt(): Date;
|