@hexclave/shared 1.0.23 → 1.0.24
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 +2 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/config/schema.d.ts +74 -74
- package/dist/esm/ai/unified-prompts/reminders.js +2 -1
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/esm/config/schema.d.ts +74 -74
- package/dist/esm/interface/admin-metrics.d.ts +14 -14
- package/dist/esm/interface/conversations.d.ts +11 -11
- package/dist/esm/interface/crud/current-user.d.ts +11 -11
- package/dist/esm/interface/crud/email-outbox.d.ts +136 -136
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +15 -15
- 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 +36 -36
- package/dist/esm/interface/crud/transactions.d.ts +21 -21
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +18 -18
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/env.d.ts +2 -1
- package/dist/esm/utils/env.d.ts.map +1 -1
- package/dist/esm/utils/env.js +29 -17
- package/dist/esm/utils/env.js.map +1 -1
- package/dist/esm/utils/env.test.d.ts +1 -0
- package/dist/esm/utils/env.test.js +49 -0
- package/dist/esm/utils/env.test.js.map +1 -0
- package/dist/esm/utils/errors.d.ts.map +1 -1
- package/dist/esm/utils/errors.js +4 -1
- package/dist/esm/utils/errors.js.map +1 -1
- package/dist/interface/admin-metrics.d.ts +14 -14
- package/dist/interface/conversations.d.ts +11 -11
- package/dist/interface/crud/current-user.d.ts +11 -11
- package/dist/interface/crud/email-outbox.d.ts +136 -136
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +15 -15
- 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 +36 -36
- package/dist/interface/crud/transactions.d.ts +21 -21
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +18 -18
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/env.d.ts +2 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +29 -16
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/env.test.d.ts +1 -0
- package/dist/utils/env.test.js +49 -0
- package/dist/utils/env.test.js.map +1 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +4 -1
- package/dist/utils/errors.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +1 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +15 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -62
- package/src/utils/env.test.tsx +58 -0
- package/src/utils/env.tsx +36 -20
- package/src/utils/errors.tsx +6 -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;
|
|
@@ -10,8 +10,6 @@ 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
|
-
server_only: boolean;
|
|
14
|
-
customer_type: "team" | "user" | "custom";
|
|
15
13
|
stackable: boolean;
|
|
16
14
|
prices: Record<string, {
|
|
17
15
|
USD?: string | undefined;
|
|
@@ -25,9 +23,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
25
23
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
26
24
|
}>;
|
|
27
25
|
display_name: string;
|
|
26
|
+
customer_type: "user" | "team" | "custom";
|
|
27
|
+
server_only: boolean;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
quantity?: number | undefined;
|
|
30
29
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
|
+
quantity?: number | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -39,14 +39,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
39
39
|
is_cancelable: boolean;
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
switch_options: {
|
|
42
|
-
product_id: string;
|
|
43
42
|
product: {
|
|
44
43
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
45
44
|
client_metadata?: {} | null | undefined;
|
|
46
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
47
46
|
server_metadata?: {} | null | undefined;
|
|
48
|
-
server_only: boolean;
|
|
49
|
-
customer_type: "team" | "user" | "custom";
|
|
50
47
|
stackable: boolean;
|
|
51
48
|
prices: Record<string, {
|
|
52
49
|
USD?: string | undefined;
|
|
@@ -60,12 +57,15 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
60
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
61
58
|
}>;
|
|
62
59
|
display_name: string;
|
|
60
|
+
customer_type: "user" | "team" | "custom";
|
|
61
|
+
server_only: boolean;
|
|
63
62
|
included_items: Record<string, {
|
|
64
|
-
quantity?: number | undefined;
|
|
65
63
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
64
|
+
quantity?: number | undefined;
|
|
66
65
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
67
66
|
}>;
|
|
68
67
|
};
|
|
68
|
+
product_id: string;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
}, yup$1.AnyObject, {
|
|
71
71
|
id: undefined;
|
|
@@ -102,14 +102,11 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
102
102
|
is_cancelable: boolean;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
switch_options?: {
|
|
105
|
-
product_id: string;
|
|
106
105
|
product: {
|
|
107
106
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
108
107
|
client_metadata?: {} | null | undefined;
|
|
109
108
|
client_read_only_metadata?: {} | null | undefined;
|
|
110
109
|
server_metadata?: {} | null | undefined;
|
|
111
|
-
server_only: boolean;
|
|
112
|
-
customer_type: "team" | "user" | "custom";
|
|
113
110
|
stackable: boolean;
|
|
114
111
|
prices: Record<string, {
|
|
115
112
|
USD?: string | undefined;
|
|
@@ -123,21 +120,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
123
120
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
124
121
|
}>;
|
|
125
122
|
display_name: string;
|
|
123
|
+
customer_type: "user" | "team" | "custom";
|
|
124
|
+
server_only: boolean;
|
|
126
125
|
included_items: Record<string, {
|
|
127
|
-
quantity?: number | undefined;
|
|
128
126
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
127
|
+
quantity?: number | undefined;
|
|
129
128
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
130
129
|
}>;
|
|
131
130
|
};
|
|
131
|
+
product_id: string;
|
|
132
132
|
}[] | undefined;
|
|
133
|
-
quantity: number;
|
|
134
133
|
product: {
|
|
135
134
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
135
|
client_metadata?: {} | null | undefined;
|
|
137
136
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
137
|
server_metadata?: {} | null | undefined;
|
|
139
|
-
server_only: boolean;
|
|
140
|
-
customer_type: "team" | "user" | "custom";
|
|
141
138
|
stackable: boolean;
|
|
142
139
|
prices: Record<string, {
|
|
143
140
|
USD?: string | undefined;
|
|
@@ -151,12 +148,15 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
151
148
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
152
149
|
}>;
|
|
153
150
|
display_name: string;
|
|
151
|
+
customer_type: "user" | "team" | "custom";
|
|
152
|
+
server_only: boolean;
|
|
154
153
|
included_items: Record<string, {
|
|
155
|
-
quantity?: number | undefined;
|
|
156
154
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
155
|
+
quantity?: number | undefined;
|
|
157
156
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
157
|
}>;
|
|
159
158
|
};
|
|
159
|
+
quantity: number;
|
|
160
160
|
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -79,13 +79,13 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
-
user_id: string;
|
|
83
82
|
type: "user";
|
|
84
83
|
description: string;
|
|
85
84
|
id: string;
|
|
85
|
+
user_id: string;
|
|
86
|
+
created_at_millis: number;
|
|
86
87
|
expires_at_millis: number | undefined;
|
|
87
88
|
manually_revoked_at_millis: number | undefined;
|
|
88
|
-
created_at_millis: number;
|
|
89
89
|
is_public: boolean;
|
|
90
90
|
} & {
|
|
91
91
|
value: string;
|
|
@@ -178,12 +178,12 @@ 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
181
|
description: string;
|
|
183
182
|
id: string;
|
|
183
|
+
team_id: string;
|
|
184
|
+
created_at_millis: number;
|
|
184
185
|
expires_at_millis: number | undefined;
|
|
185
186
|
manually_revoked_at_millis: number | undefined;
|
|
186
|
-
created_at_millis: number;
|
|
187
187
|
is_public: boolean;
|
|
188
188
|
} & {
|
|
189
189
|
value: string;
|
|
@@ -57,10 +57,6 @@ 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
|
-
}[];
|
|
64
60
|
oauth_providers: {
|
|
65
61
|
client_id?: string | undefined;
|
|
66
62
|
client_secret?: string | undefined;
|
|
@@ -83,6 +79,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
83
79
|
enabled_oauth_providers: {
|
|
84
80
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
85
81
|
}[];
|
|
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,10 +159,6 @@ 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
|
-
}[];
|
|
166
162
|
allow_localhost: boolean;
|
|
167
163
|
sign_up_enabled: boolean;
|
|
168
164
|
credential_enabled: boolean;
|
|
@@ -175,6 +171,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
175
171
|
enabled_oauth_providers: {
|
|
176
172
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
177
173
|
}[];
|
|
174
|
+
domains: {
|
|
175
|
+
domain: string;
|
|
176
|
+
handler_path: string;
|
|
177
|
+
}[];
|
|
178
178
|
};
|
|
179
179
|
}, yup$1.AnyObject, {
|
|
180
180
|
id: undefined;
|
|
@@ -210,10 +210,6 @@ 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;
|
|
217
213
|
oauth_providers?: {
|
|
218
214
|
client_id?: string | undefined;
|
|
219
215
|
client_secret?: string | undefined;
|
|
@@ -232,6 +228,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
232
228
|
client_user_deletion_enabled?: boolean | undefined;
|
|
233
229
|
allow_user_api_keys?: boolean | undefined;
|
|
234
230
|
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,10 +290,6 @@ 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;
|
|
297
293
|
oauth_providers?: {
|
|
298
294
|
client_id?: string | undefined;
|
|
299
295
|
client_secret?: string | undefined;
|
|
@@ -312,6 +308,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
312
308
|
client_user_deletion_enabled?: boolean | undefined;
|
|
313
309
|
allow_user_api_keys?: boolean | undefined;
|
|
314
310
|
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,10 +365,6 @@ 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
|
-
}[];
|
|
372
368
|
allow_localhost: boolean;
|
|
373
369
|
sign_up_enabled: boolean;
|
|
374
370
|
credential_enabled: boolean;
|
|
@@ -381,6 +377,10 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
381
377
|
enabled_oauth_providers: {
|
|
382
378
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
383
379
|
}[];
|
|
380
|
+
domains: {
|
|
381
|
+
domain: string;
|
|
382
|
+
handler_path: string;
|
|
383
|
+
}[];
|
|
384
384
|
};
|
|
385
385
|
}, yup$1.AnyObject, {
|
|
386
386
|
id: undefined;
|
|
@@ -430,10 +430,6 @@ 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
|
-
}[];
|
|
437
433
|
oauth_providers: {
|
|
438
434
|
client_id?: string | undefined;
|
|
439
435
|
client_secret?: string | undefined;
|
|
@@ -456,6 +452,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
456
452
|
enabled_oauth_providers: {
|
|
457
453
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
458
454
|
}[];
|
|
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,10 +545,6 @@ 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;
|
|
552
548
|
oauth_providers?: {
|
|
553
549
|
client_id?: string | undefined;
|
|
554
550
|
client_secret?: string | undefined;
|
|
@@ -567,6 +563,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
567
563
|
client_user_deletion_enabled?: boolean | undefined;
|
|
568
564
|
allow_user_api_keys?: boolean | undefined;
|
|
569
565
|
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,10 +653,6 @@ 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
|
-
}[];
|
|
660
656
|
oauth_providers: {
|
|
661
657
|
client_id?: string | undefined;
|
|
662
658
|
client_secret?: string | undefined;
|
|
@@ -679,6 +675,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
679
675
|
enabled_oauth_providers: {
|
|
680
676
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
681
677
|
}[];
|
|
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,10 +768,6 @@ 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;
|
|
775
771
|
oauth_providers?: {
|
|
776
772
|
client_id?: string | undefined;
|
|
777
773
|
client_secret?: string | undefined;
|
|
@@ -790,6 +786,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
790
786
|
client_user_deletion_enabled?: boolean | undefined;
|
|
791
787
|
allow_user_api_keys?: boolean | undefined;
|
|
792
788
|
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,10 +21,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
restricted_reason: {
|
|
25
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
|
-
} | null;
|
|
27
|
-
primary_email: string | null;
|
|
28
24
|
display_name: string | null;
|
|
29
25
|
client_metadata: {} | null;
|
|
30
26
|
client_read_only_metadata: {} | null;
|
|
@@ -33,24 +29,16 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
33
29
|
selected_team_id: string | null;
|
|
34
30
|
is_anonymous: boolean;
|
|
35
31
|
is_restricted: boolean;
|
|
32
|
+
restricted_reason: {
|
|
33
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
34
|
+
} | null;
|
|
36
35
|
requires_totp_mfa: boolean;
|
|
36
|
+
primary_email: string | null;
|
|
37
|
+
profile_image_url: string | null;
|
|
37
38
|
primary_email_verified: boolean;
|
|
38
39
|
primary_email_auth_enabled: boolean;
|
|
39
|
-
profile_image_url: string | null;
|
|
40
|
-
selected_team: {
|
|
41
|
-
client_metadata?: {} | null | undefined;
|
|
42
|
-
client_read_only_metadata?: {} | null | undefined;
|
|
43
|
-
server_metadata?: {} | null | undefined;
|
|
44
|
-
display_name: string;
|
|
45
|
-
id: string;
|
|
46
|
-
created_at_millis: number;
|
|
47
|
-
profile_image_url: string | null;
|
|
48
|
-
} | null;
|
|
49
|
-
signed_up_at_millis: number;
|
|
50
|
-
has_password: boolean;
|
|
51
|
-
otp_auth_enabled: boolean;
|
|
52
40
|
passkey_auth_enabled: boolean;
|
|
53
|
-
|
|
41
|
+
otp_auth_enabled: boolean;
|
|
54
42
|
restricted_by_admin: boolean;
|
|
55
43
|
restricted_by_admin_reason: string | null;
|
|
56
44
|
restricted_by_admin_private_details: string | null;
|
|
@@ -61,6 +49,18 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
61
49
|
free_trial_abuse: number;
|
|
62
50
|
};
|
|
63
51
|
};
|
|
52
|
+
selected_team: {
|
|
53
|
+
client_metadata?: {} | null | undefined;
|
|
54
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
55
|
+
server_metadata?: {} | null | undefined;
|
|
56
|
+
display_name: string;
|
|
57
|
+
id: string;
|
|
58
|
+
profile_image_url: string | null;
|
|
59
|
+
created_at_millis: number;
|
|
60
|
+
} | null;
|
|
61
|
+
signed_up_at_millis: number;
|
|
62
|
+
has_password: boolean;
|
|
63
|
+
last_active_at_millis: number;
|
|
64
64
|
oauth_providers: {
|
|
65
65
|
email?: string | null | undefined;
|
|
66
66
|
id: string;
|
|
@@ -144,10 +144,6 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
restricted_reason: {
|
|
148
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
|
-
} | null;
|
|
150
|
-
primary_email: string | null;
|
|
151
147
|
display_name: string | null;
|
|
152
148
|
client_metadata: {} | null;
|
|
153
149
|
client_read_only_metadata: {} | null;
|
|
@@ -156,24 +152,16 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
156
152
|
selected_team_id: string | null;
|
|
157
153
|
is_anonymous: boolean;
|
|
158
154
|
is_restricted: boolean;
|
|
155
|
+
restricted_reason: {
|
|
156
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
157
|
+
} | null;
|
|
159
158
|
requires_totp_mfa: boolean;
|
|
159
|
+
primary_email: string | null;
|
|
160
|
+
profile_image_url: string | null;
|
|
160
161
|
primary_email_verified: boolean;
|
|
161
162
|
primary_email_auth_enabled: boolean;
|
|
162
|
-
profile_image_url: string | null;
|
|
163
|
-
selected_team: {
|
|
164
|
-
client_metadata?: {} | null | undefined;
|
|
165
|
-
client_read_only_metadata?: {} | null | undefined;
|
|
166
|
-
server_metadata?: {} | null | undefined;
|
|
167
|
-
display_name: string;
|
|
168
|
-
id: string;
|
|
169
|
-
created_at_millis: number;
|
|
170
|
-
profile_image_url: string | null;
|
|
171
|
-
} | null;
|
|
172
|
-
signed_up_at_millis: number;
|
|
173
|
-
has_password: boolean;
|
|
174
|
-
otp_auth_enabled: boolean;
|
|
175
163
|
passkey_auth_enabled: boolean;
|
|
176
|
-
|
|
164
|
+
otp_auth_enabled: boolean;
|
|
177
165
|
restricted_by_admin: boolean;
|
|
178
166
|
restricted_by_admin_reason: string | null;
|
|
179
167
|
restricted_by_admin_private_details: string | null;
|
|
@@ -184,6 +172,18 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
184
172
|
free_trial_abuse: number;
|
|
185
173
|
};
|
|
186
174
|
};
|
|
175
|
+
selected_team: {
|
|
176
|
+
client_metadata?: {} | null | undefined;
|
|
177
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
178
|
+
server_metadata?: {} | null | undefined;
|
|
179
|
+
display_name: string;
|
|
180
|
+
id: string;
|
|
181
|
+
profile_image_url: string | null;
|
|
182
|
+
created_at_millis: number;
|
|
183
|
+
} | null;
|
|
184
|
+
signed_up_at_millis: number;
|
|
185
|
+
has_password: boolean;
|
|
186
|
+
last_active_at_millis: number;
|
|
187
187
|
oauth_providers: {
|
|
188
188
|
email?: string | null | undefined;
|
|
189
189
|
id: string;
|
|
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
|
|
|
5
5
|
//#region src/interface/crud/transactions.d.ts
|
|
6
6
|
declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
7
7
|
type: "money_transfer";
|
|
8
|
+
customer_type: "user" | "team" | "custom";
|
|
8
9
|
customer_id: string;
|
|
9
|
-
customer_type: "team" | "user" | "custom";
|
|
10
10
|
charged_amount: {
|
|
11
11
|
USD?: string | undefined;
|
|
12
12
|
EUR?: string | undefined;
|
|
@@ -23,27 +23,21 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
23
23
|
adjusted_entry_index: number | null;
|
|
24
24
|
} | {
|
|
25
25
|
type: "item_quantity_change";
|
|
26
|
+
quantity: number;
|
|
27
|
+
customer_type: "user" | "team" | "custom";
|
|
26
28
|
item_id: string;
|
|
27
29
|
customer_id: string;
|
|
28
|
-
quantity: number;
|
|
29
|
-
customer_type: "team" | "user" | "custom";
|
|
30
30
|
adjusted_transaction_id: string | null;
|
|
31
31
|
adjusted_entry_index: number | null;
|
|
32
32
|
} | {
|
|
33
33
|
one_time_purchase_id?: string | undefined;
|
|
34
34
|
subscription_id?: string | undefined;
|
|
35
35
|
type: "product_grant";
|
|
36
|
-
customer_id: string;
|
|
37
|
-
product_id: string | null;
|
|
38
|
-
quantity: number;
|
|
39
|
-
customer_type: "team" | "user" | "custom";
|
|
40
36
|
product: {
|
|
41
37
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
42
38
|
client_metadata?: {} | null | undefined;
|
|
43
39
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
40
|
server_metadata?: {} | null | undefined;
|
|
45
|
-
server_only: boolean;
|
|
46
|
-
customer_type: "team" | "user" | "custom";
|
|
47
41
|
stackable: boolean;
|
|
48
42
|
prices: Record<string, {
|
|
49
43
|
USD?: string | undefined;
|
|
@@ -57,12 +51,18 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
57
51
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
58
52
|
}>;
|
|
59
53
|
display_name: string;
|
|
54
|
+
customer_type: "user" | "team" | "custom";
|
|
55
|
+
server_only: boolean;
|
|
60
56
|
included_items: Record<string, {
|
|
61
|
-
quantity?: number | undefined;
|
|
62
57
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
58
|
+
quantity?: number | undefined;
|
|
63
59
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
64
60
|
}>;
|
|
65
61
|
};
|
|
62
|
+
quantity: number;
|
|
63
|
+
customer_type: "user" | "team" | "custom";
|
|
64
|
+
customer_id: string;
|
|
65
|
+
product_id: string | null;
|
|
66
66
|
adjusted_transaction_id: string | null;
|
|
67
67
|
adjusted_entry_index: number | null;
|
|
68
68
|
price_id: string | null;
|
|
@@ -85,12 +85,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
effective_at_millis: number;
|
|
87
87
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
88
|
-
customer_type: "
|
|
88
|
+
customer_type: "user" | "team" | "custom";
|
|
89
89
|
customer_id: string;
|
|
90
90
|
entries: ({
|
|
91
91
|
type: "money_transfer";
|
|
92
|
+
customer_type: "user" | "team" | "custom";
|
|
92
93
|
customer_id: string;
|
|
93
|
-
customer_type: "team" | "user" | "custom";
|
|
94
94
|
charged_amount: {
|
|
95
95
|
USD?: string | undefined;
|
|
96
96
|
EUR?: string | undefined;
|
|
@@ -107,27 +107,21 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
107
107
|
adjusted_entry_index: number | null;
|
|
108
108
|
} | {
|
|
109
109
|
type: "item_quantity_change";
|
|
110
|
+
quantity: number;
|
|
111
|
+
customer_type: "user" | "team" | "custom";
|
|
110
112
|
item_id: string;
|
|
111
113
|
customer_id: string;
|
|
112
|
-
quantity: number;
|
|
113
|
-
customer_type: "team" | "user" | "custom";
|
|
114
114
|
adjusted_transaction_id: string | null;
|
|
115
115
|
adjusted_entry_index: number | null;
|
|
116
116
|
} | {
|
|
117
117
|
one_time_purchase_id?: string | undefined;
|
|
118
118
|
subscription_id?: string | undefined;
|
|
119
119
|
type: "product_grant";
|
|
120
|
-
customer_id: string;
|
|
121
|
-
product_id: string | null;
|
|
122
|
-
quantity: number;
|
|
123
|
-
customer_type: "team" | "user" | "custom";
|
|
124
120
|
product: {
|
|
125
121
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
126
122
|
client_metadata?: {} | null | undefined;
|
|
127
123
|
client_read_only_metadata?: {} | null | undefined;
|
|
128
124
|
server_metadata?: {} | null | undefined;
|
|
129
|
-
server_only: boolean;
|
|
130
|
-
customer_type: "team" | "user" | "custom";
|
|
131
125
|
stackable: boolean;
|
|
132
126
|
prices: Record<string, {
|
|
133
127
|
USD?: string | undefined;
|
|
@@ -141,12 +135,18 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
141
135
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
142
136
|
}>;
|
|
143
137
|
display_name: string;
|
|
138
|
+
customer_type: "user" | "team" | "custom";
|
|
139
|
+
server_only: boolean;
|
|
144
140
|
included_items: Record<string, {
|
|
145
|
-
quantity?: number | undefined;
|
|
146
141
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
142
|
+
quantity?: number | undefined;
|
|
147
143
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
148
144
|
}>;
|
|
149
145
|
};
|
|
146
|
+
quantity: number;
|
|
147
|
+
customer_type: "user" | "team" | "custom";
|
|
148
|
+
customer_id: string;
|
|
149
|
+
product_id: string | null;
|
|
150
150
|
adjusted_transaction_id: string | null;
|
|
151
151
|
adjusted_entry_index: number | null;
|
|
152
152
|
price_id: string | null;
|
|
@@ -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"}
|