@hexclave/shared 1.0.22 → 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 +80 -80
- 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 +80 -80
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +13 -13
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +35 -35
- package/dist/esm/interface/crud/current-user.d.ts +10 -10
- package/dist/esm/interface/crud/email-outbox.d.ts +116 -116
- 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 +2 -2
- 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/server-interface.js +1 -1
- 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-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +13 -13
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +35 -35
- package/dist/interface/crud/current-user.d.ts +10 -10
- package/dist/interface/crud/email-outbox.d.ts +116 -116
- 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 +2 -2
- 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/server-interface.js +1 -1
- 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?: 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" | 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?: 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?: 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" | 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?: 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?: 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" | 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?: 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?: 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" | 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,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -78,10 +78,10 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
-
user_id: string;
|
|
82
81
|
type: "user";
|
|
83
82
|
description: string;
|
|
84
83
|
id: string;
|
|
84
|
+
user_id: string;
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
expires_at_millis: number | undefined;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -177,9 +177,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
|
-
team_id: string;
|
|
181
180
|
description: string;
|
|
182
181
|
id: string;
|
|
182
|
+
team_id: string;
|
|
183
183
|
created_at_millis: number;
|
|
184
184
|
expires_at_millis: number | undefined;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -56,10 +56,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
56
56
|
selected_payments_country: "US" | "OTHER";
|
|
57
57
|
} | null | undefined;
|
|
58
58
|
config: {
|
|
59
|
-
domains: {
|
|
60
|
-
domain: string;
|
|
61
|
-
handler_path: string;
|
|
62
|
-
}[];
|
|
63
59
|
oauth_providers: {
|
|
64
60
|
client_id?: string | undefined;
|
|
65
61
|
client_secret?: string | undefined;
|
|
@@ -82,6 +78,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
82
78
|
enabled_oauth_providers: {
|
|
83
79
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
84
80
|
}[];
|
|
81
|
+
domains: {
|
|
82
|
+
domain: string;
|
|
83
|
+
handler_path: string;
|
|
84
|
+
}[];
|
|
85
85
|
email_config: {
|
|
86
86
|
password?: string | undefined;
|
|
87
87
|
host?: string | undefined;
|
|
@@ -158,10 +158,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
158
158
|
id: string;
|
|
159
159
|
display_name: string;
|
|
160
160
|
config: {
|
|
161
|
-
domains: {
|
|
162
|
-
domain: string;
|
|
163
|
-
handler_path: string;
|
|
164
|
-
}[];
|
|
165
161
|
allow_localhost: boolean;
|
|
166
162
|
sign_up_enabled: boolean;
|
|
167
163
|
credential_enabled: boolean;
|
|
@@ -174,6 +170,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
174
170
|
enabled_oauth_providers: {
|
|
175
171
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
176
172
|
}[];
|
|
173
|
+
domains: {
|
|
174
|
+
domain: string;
|
|
175
|
+
handler_path: string;
|
|
176
|
+
}[];
|
|
177
177
|
};
|
|
178
178
|
}, yup$1.AnyObject, {
|
|
179
179
|
id: undefined;
|
|
@@ -209,10 +209,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
209
209
|
selected_payments_country: "US" | "OTHER";
|
|
210
210
|
} | null | undefined;
|
|
211
211
|
config: {
|
|
212
|
-
domains?: {
|
|
213
|
-
domain: string;
|
|
214
|
-
handler_path: string;
|
|
215
|
-
}[] | undefined;
|
|
216
212
|
oauth_providers?: {
|
|
217
213
|
client_id?: string | undefined;
|
|
218
214
|
client_secret?: string | undefined;
|
|
@@ -231,6 +227,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
231
227
|
client_user_deletion_enabled?: boolean | undefined;
|
|
232
228
|
allow_user_api_keys?: boolean | undefined;
|
|
233
229
|
allow_team_api_keys?: boolean | undefined;
|
|
230
|
+
domains?: {
|
|
231
|
+
domain: string;
|
|
232
|
+
handler_path: string;
|
|
233
|
+
}[] | undefined;
|
|
234
234
|
email_config?: {
|
|
235
235
|
password?: string | undefined;
|
|
236
236
|
host?: string | undefined;
|
|
@@ -289,10 +289,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
289
289
|
selected_payments_country: "US" | "OTHER";
|
|
290
290
|
} | null | undefined;
|
|
291
291
|
config: {
|
|
292
|
-
domains?: {
|
|
293
|
-
domain: string;
|
|
294
|
-
handler_path: string;
|
|
295
|
-
}[] | undefined;
|
|
296
292
|
oauth_providers?: {
|
|
297
293
|
client_id?: string | undefined;
|
|
298
294
|
client_secret?: string | undefined;
|
|
@@ -311,6 +307,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
311
307
|
client_user_deletion_enabled?: boolean | undefined;
|
|
312
308
|
allow_user_api_keys?: boolean | undefined;
|
|
313
309
|
allow_team_api_keys?: boolean | undefined;
|
|
310
|
+
domains?: {
|
|
311
|
+
domain: string;
|
|
312
|
+
handler_path: string;
|
|
313
|
+
}[] | undefined;
|
|
314
314
|
email_config?: {
|
|
315
315
|
password?: string | undefined;
|
|
316
316
|
host?: string | undefined;
|
|
@@ -364,10 +364,6 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
364
364
|
id: string;
|
|
365
365
|
display_name: string;
|
|
366
366
|
config: {
|
|
367
|
-
domains: {
|
|
368
|
-
domain: string;
|
|
369
|
-
handler_path: string;
|
|
370
|
-
}[];
|
|
371
367
|
allow_localhost: boolean;
|
|
372
368
|
sign_up_enabled: boolean;
|
|
373
369
|
credential_enabled: boolean;
|
|
@@ -380,6 +376,10 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
380
376
|
enabled_oauth_providers: {
|
|
381
377
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
382
378
|
}[];
|
|
379
|
+
domains: {
|
|
380
|
+
domain: string;
|
|
381
|
+
handler_path: string;
|
|
382
|
+
}[];
|
|
383
383
|
};
|
|
384
384
|
}, yup$1.AnyObject, {
|
|
385
385
|
id: undefined;
|
|
@@ -429,10 +429,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
429
429
|
selected_payments_country: "US" | "OTHER";
|
|
430
430
|
} | null | undefined;
|
|
431
431
|
config: {
|
|
432
|
-
domains: {
|
|
433
|
-
domain: string;
|
|
434
|
-
handler_path: string;
|
|
435
|
-
}[];
|
|
436
432
|
oauth_providers: {
|
|
437
433
|
client_id?: string | undefined;
|
|
438
434
|
client_secret?: string | undefined;
|
|
@@ -455,6 +451,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
455
451
|
enabled_oauth_providers: {
|
|
456
452
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
457
453
|
}[];
|
|
454
|
+
domains: {
|
|
455
|
+
domain: string;
|
|
456
|
+
handler_path: string;
|
|
457
|
+
}[];
|
|
458
458
|
email_config: {
|
|
459
459
|
password?: string | undefined;
|
|
460
460
|
host?: string | undefined;
|
|
@@ -544,10 +544,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
544
544
|
selected_payments_country: "US" | "OTHER";
|
|
545
545
|
} | null | undefined;
|
|
546
546
|
config: {
|
|
547
|
-
domains?: {
|
|
548
|
-
domain: string;
|
|
549
|
-
handler_path: string;
|
|
550
|
-
}[] | undefined;
|
|
551
547
|
oauth_providers?: {
|
|
552
548
|
client_id?: string | undefined;
|
|
553
549
|
client_secret?: string | undefined;
|
|
@@ -566,6 +562,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
566
562
|
client_user_deletion_enabled?: boolean | undefined;
|
|
567
563
|
allow_user_api_keys?: boolean | undefined;
|
|
568
564
|
allow_team_api_keys?: boolean | undefined;
|
|
565
|
+
domains?: {
|
|
566
|
+
domain: string;
|
|
567
|
+
handler_path: string;
|
|
568
|
+
}[] | undefined;
|
|
569
569
|
email_config?: {
|
|
570
570
|
password?: string | undefined;
|
|
571
571
|
host?: string | undefined;
|
|
@@ -652,10 +652,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
652
652
|
selected_payments_country: "US" | "OTHER";
|
|
653
653
|
} | null | undefined;
|
|
654
654
|
config: {
|
|
655
|
-
domains: {
|
|
656
|
-
domain: string;
|
|
657
|
-
handler_path: string;
|
|
658
|
-
}[];
|
|
659
655
|
oauth_providers: {
|
|
660
656
|
client_id?: string | undefined;
|
|
661
657
|
client_secret?: string | undefined;
|
|
@@ -678,6 +674,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
678
674
|
enabled_oauth_providers: {
|
|
679
675
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
680
676
|
}[];
|
|
677
|
+
domains: {
|
|
678
|
+
domain: string;
|
|
679
|
+
handler_path: string;
|
|
680
|
+
}[];
|
|
681
681
|
email_config: {
|
|
682
682
|
password?: string | undefined;
|
|
683
683
|
host?: string | undefined;
|
|
@@ -767,10 +767,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
767
767
|
selected_payments_country: "US" | "OTHER";
|
|
768
768
|
} | null | undefined;
|
|
769
769
|
config: {
|
|
770
|
-
domains?: {
|
|
771
|
-
domain: string;
|
|
772
|
-
handler_path: string;
|
|
773
|
-
}[] | undefined;
|
|
774
770
|
oauth_providers?: {
|
|
775
771
|
client_id?: string | undefined;
|
|
776
772
|
client_secret?: string | undefined;
|
|
@@ -789,6 +785,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
789
785
|
client_user_deletion_enabled?: boolean | undefined;
|
|
790
786
|
allow_user_api_keys?: boolean | undefined;
|
|
791
787
|
allow_team_api_keys?: boolean | undefined;
|
|
788
|
+
domains?: {
|
|
789
|
+
domain: string;
|
|
790
|
+
handler_path: string;
|
|
791
|
+
}[] | undefined;
|
|
792
792
|
email_config?: {
|
|
793
793
|
password?: string | undefined;
|
|
794
794
|
host?: string | undefined;
|
|
@@ -20,10 +20,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
-
restricted_reason: {
|
|
24
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
25
|
-
} | null;
|
|
26
|
-
primary_email: string | null;
|
|
27
23
|
display_name: string | null;
|
|
28
24
|
client_metadata: {} | null;
|
|
29
25
|
client_read_only_metadata: {} | null;
|
|
@@ -32,34 +28,38 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
32
28
|
selected_team_id: string | null;
|
|
33
29
|
is_anonymous: boolean;
|
|
34
30
|
is_restricted: boolean;
|
|
31
|
+
restricted_reason: {
|
|
32
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
33
|
+
} | null;
|
|
35
34
|
requires_totp_mfa: boolean;
|
|
36
|
-
|
|
35
|
+
primary_email: string | null;
|
|
37
36
|
profile_image_url: string | null;
|
|
38
|
-
signed_up_at_millis: number;
|
|
39
|
-
last_active_at_millis: number;
|
|
40
37
|
primary_email_verified: boolean;
|
|
41
38
|
primary_email_auth_enabled: boolean;
|
|
42
|
-
selected_team: {
|
|
43
|
-
client_metadata?: {} | null | undefined;
|
|
44
|
-
client_read_only_metadata?: {} | null | undefined;
|
|
45
|
-
server_metadata?: {} | null | undefined;
|
|
46
|
-
display_name: string;
|
|
47
|
-
id: string;
|
|
48
|
-
created_at_millis: number;
|
|
49
|
-
profile_image_url: string | null;
|
|
50
|
-
} | null;
|
|
51
|
-
has_password: boolean;
|
|
52
|
-
otp_auth_enabled: boolean;
|
|
53
39
|
passkey_auth_enabled: boolean;
|
|
40
|
+
otp_auth_enabled: boolean;
|
|
54
41
|
restricted_by_admin: boolean;
|
|
55
42
|
restricted_by_admin_reason: string | null;
|
|
56
43
|
restricted_by_admin_private_details: string | null;
|
|
44
|
+
country_code: string | null;
|
|
57
45
|
risk_scores: {
|
|
58
46
|
sign_up: {
|
|
59
47
|
bot: number;
|
|
60
48
|
free_trial_abuse: number;
|
|
61
49
|
};
|
|
62
50
|
};
|
|
51
|
+
selected_team: {
|
|
52
|
+
client_metadata?: {} | null | undefined;
|
|
53
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
54
|
+
server_metadata?: {} | null | undefined;
|
|
55
|
+
display_name: string;
|
|
56
|
+
id: string;
|
|
57
|
+
profile_image_url: string | null;
|
|
58
|
+
created_at_millis: number;
|
|
59
|
+
} | null;
|
|
60
|
+
signed_up_at_millis: number;
|
|
61
|
+
has_password: boolean;
|
|
62
|
+
last_active_at_millis: number;
|
|
63
63
|
oauth_providers: {
|
|
64
64
|
email?: string | null | undefined;
|
|
65
65
|
id: string;
|
|
@@ -143,10 +143,6 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
-
restricted_reason: {
|
|
147
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
148
|
-
} | null;
|
|
149
|
-
primary_email: string | null;
|
|
150
146
|
display_name: string | null;
|
|
151
147
|
client_metadata: {} | null;
|
|
152
148
|
client_read_only_metadata: {} | null;
|
|
@@ -155,34 +151,38 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
155
151
|
selected_team_id: string | null;
|
|
156
152
|
is_anonymous: boolean;
|
|
157
153
|
is_restricted: boolean;
|
|
154
|
+
restricted_reason: {
|
|
155
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
156
|
+
} | null;
|
|
158
157
|
requires_totp_mfa: boolean;
|
|
159
|
-
|
|
158
|
+
primary_email: string | null;
|
|
160
159
|
profile_image_url: string | null;
|
|
161
|
-
signed_up_at_millis: number;
|
|
162
|
-
last_active_at_millis: number;
|
|
163
160
|
primary_email_verified: boolean;
|
|
164
161
|
primary_email_auth_enabled: boolean;
|
|
165
|
-
selected_team: {
|
|
166
|
-
client_metadata?: {} | null | undefined;
|
|
167
|
-
client_read_only_metadata?: {} | null | undefined;
|
|
168
|
-
server_metadata?: {} | null | undefined;
|
|
169
|
-
display_name: string;
|
|
170
|
-
id: string;
|
|
171
|
-
created_at_millis: number;
|
|
172
|
-
profile_image_url: string | null;
|
|
173
|
-
} | null;
|
|
174
|
-
has_password: boolean;
|
|
175
|
-
otp_auth_enabled: boolean;
|
|
176
162
|
passkey_auth_enabled: boolean;
|
|
163
|
+
otp_auth_enabled: boolean;
|
|
177
164
|
restricted_by_admin: boolean;
|
|
178
165
|
restricted_by_admin_reason: string | null;
|
|
179
166
|
restricted_by_admin_private_details: string | null;
|
|
167
|
+
country_code: string | null;
|
|
180
168
|
risk_scores: {
|
|
181
169
|
sign_up: {
|
|
182
170
|
bot: number;
|
|
183
171
|
free_trial_abuse: number;
|
|
184
172
|
};
|
|
185
173
|
};
|
|
174
|
+
selected_team: {
|
|
175
|
+
client_metadata?: {} | null | undefined;
|
|
176
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
177
|
+
server_metadata?: {} | null | undefined;
|
|
178
|
+
display_name: string;
|
|
179
|
+
id: string;
|
|
180
|
+
profile_image_url: string | null;
|
|
181
|
+
created_at_millis: number;
|
|
182
|
+
} | null;
|
|
183
|
+
signed_up_at_millis: number;
|
|
184
|
+
has_password: boolean;
|
|
185
|
+
last_active_at_millis: number;
|
|
186
186
|
oauth_providers: {
|
|
187
187
|
email?: string | null | undefined;
|
|
188
188
|
id: string;
|
|
@@ -5,8 +5,8 @@ import { InferType } from "yup";
|
|
|
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?: 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?: 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" | 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?: 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?: 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" | 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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|