@hexclave/shared 1.0.53 → 1.0.54
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/{admin-interface-D9wMduWc.d.ts → admin-interface-DuboQXpC.d.ts} +11 -11
- package/dist/{admin-interface-D9wMduWc.d.ts.map → admin-interface-DuboQXpC.d.ts.map} +1 -1
- package/dist/{admin-metrics-bsOkw4YQ.d.ts → admin-metrics-IxLyJ-cP.d.ts} +18 -18
- package/dist/{admin-metrics-bsOkw4YQ.d.ts.map → admin-metrics-IxLyJ-cP.d.ts.map} +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +4 -4
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/{client-interface-BQz4jNAC.d.ts → client-interface-Ca6UZywk.d.ts} +9 -9
- package/dist/{client-interface-BQz4jNAC.d.ts.map → client-interface-Ca6UZywk.d.ts.map} +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config-authoring.d.ts +1 -1
- package/dist/config-rendering.d.ts +9 -1
- package/dist/config-rendering.d.ts.map +1 -1
- package/dist/config-rendering.js +2 -2
- package/dist/config-rendering.js.map +1 -1
- package/dist/{current-user-BBoN3hsn.d.ts → current-user-DNxac4sS.d.ts} +15 -15
- package/dist/{current-user-BBoN3hsn.d.ts.map → current-user-DNxac4sS.d.ts.map} +1 -1
- package/dist/dates-BRAvSk6L.d.ts.map +1 -1
- package/dist/{email-outbox-B1wmVPRG.d.ts → email-outbox-ILs0LlGd.d.ts} +185 -185
- package/dist/{email-outbox-B1wmVPRG.d.ts.map → email-outbox-ILs0LlGd.d.ts.map} +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +4 -4
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/config/schema.d.ts +99 -99
- package/dist/esm/config-rendering.d.ts +9 -1
- package/dist/esm/config-rendering.d.ts.map +1 -1
- package/dist/esm/config-rendering.js +2 -3
- package/dist/esm/config-rendering.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +17 -17
- package/dist/esm/interface/conversations.d.ts +10 -10
- package/dist/esm/interface/crud/current-user.d.ts +14 -14
- package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
- package/dist/esm/interface/crud/products.d.ts +17 -17
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +15 -15
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +16 -16
- package/dist/esm/interface/plan-usage.d.ts +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +3 -3
- package/dist/esm/package.json +18 -0
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +8 -8
- package/dist/esm/utils/dates.d.ts.map +1 -1
- package/dist/esm/utils/dates.js +2 -1
- package/dist/esm/utils/dates.js.map +1 -1
- package/dist/helpers/password.d.ts +1 -1
- package/dist/helpers/production-mode.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/interface/admin-interface.d.ts +2 -2
- package/dist/interface/admin-metrics.d.ts +1 -1
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/conversations.d.ts +10 -10
- package/dist/interface/crud/current-user.d.ts +1 -1
- package/dist/interface/crud/email-outbox.d.ts +1 -1
- package/dist/interface/crud/products.d.ts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +1 -1
- package/dist/interface/crud/projects.d.ts +1 -1
- package/dist/interface/crud/team-member-profiles.d.ts +1 -1
- package/dist/interface/crud/transactions.d.ts +1 -1
- package/dist/interface/crud/users.d.ts +1 -1
- package/dist/interface/plan-usage.d.ts +1 -1
- package/dist/interface/server-interface.d.ts +1 -1
- package/dist/interface/webhooks.d.ts +1 -1
- package/dist/{known-errors-Bm4a61wL.d.ts → known-errors-g7JC8z58.d.ts} +4 -4
- package/dist/{known-errors-Bm4a61wL.d.ts.map → known-errors-g7JC8z58.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-BaDxcLZ1.d.ts → plan-usage-D0kWw4HR.d.ts} +2 -2
- package/dist/{plan-usage-BaDxcLZ1.d.ts.map → plan-usage-D0kWw4HR.d.ts.map} +1 -1
- package/dist/{products-D4o8A2W0.d.ts → products-C98fCS-1.d.ts} +18 -18
- package/dist/{products-D4o8A2W0.d.ts.map → products-C98fCS-1.d.ts.map} +1 -1
- package/dist/{project-api-keys--7V5X_UW.d.ts → project-api-keys-P97ElZZe.d.ts} +5 -5
- package/dist/{project-api-keys--7V5X_UW.d.ts.map → project-api-keys-P97ElZZe.d.ts.map} +1 -1
- package/dist/{projects-CFTNXRfG.d.ts → projects-BM2a4sfO.d.ts} +29 -29
- package/dist/{projects-CFTNXRfG.d.ts.map → projects-BM2a4sfO.d.ts.map} +1 -1
- package/dist/{schema-DV0SQUbY.d.ts → schema-Bq1TSMFV.d.ts} +100 -100
- package/dist/{schema-DV0SQUbY.d.ts.map → schema-Bq1TSMFV.d.ts.map} +1 -1
- package/dist/{schema-fields-DZtDQEEO.d.ts → schema-fields-Cch3V5nd.d.ts} +6 -6
- package/dist/{schema-fields-DZtDQEEO.d.ts.map → schema-fields-Cch3V5nd.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface-BjY-eS4Q.d.ts → server-interface-yKuDPrQI.d.ts} +8 -8
- package/dist/{server-interface-BjY-eS4Q.d.ts.map → server-interface-yKuDPrQI.d.ts.map} +1 -1
- package/dist/{sessions-CI-0TBQb.d.ts → sessions-DCTyJhi3.d.ts} +10 -10
- package/dist/{sessions-CI-0TBQb.d.ts.map → sessions-DCTyJhi3.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-BoDEqx-0.d.ts → team-member-profiles-CaD1OJqt.d.ts} +25 -25
- package/dist/{team-member-profiles-BoDEqx-0.d.ts.map → team-member-profiles-CaD1OJqt.d.ts.map} +1 -1
- package/dist/{transactions-CHNUJ42J.d.ts → transactions-CrAZLdGo.d.ts} +16 -16
- package/dist/transactions-CrAZLdGo.d.ts.map +1 -0
- package/dist/{users-DHNRwoSz.d.ts → users-DSpJgn9Z.d.ts} +18 -18
- package/dist/{users-DHNRwoSz.d.ts.map → users-DSpJgn9Z.d.ts.map} +1 -1
- package/dist/utils/dates.js +2 -1
- package/dist/utils/dates.js.map +1 -1
- package/dist/{webhooks-8Ts1Clcb.d.ts → webhooks-_aXIgZBW.d.ts} +3 -3
- package/dist/{webhooks-8Ts1Clcb.d.ts.map → webhooks-_aXIgZBW.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +4 -4
- package/src/config-rendering.ts +5 -6
- package/src/utils/dates.tsx +22 -1
- package/dist/transactions-CHNUJ42J.d.ts.map +0 -1
|
@@ -5,12 +5,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
5
5
|
id: string | null;
|
|
6
6
|
quantity: number;
|
|
7
7
|
product: {
|
|
8
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
9
8
|
client_metadata?: {} | null | undefined;
|
|
10
9
|
client_read_only_metadata?: {} | null | undefined;
|
|
11
10
|
server_metadata?: {} | null | undefined;
|
|
11
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
12
|
+
display_name: string;
|
|
12
13
|
server_only: boolean;
|
|
13
|
-
customer_type: "
|
|
14
|
+
customer_type: "user" | "team" | "custom";
|
|
14
15
|
stackable: boolean;
|
|
15
16
|
prices: Record<string, {
|
|
16
17
|
USD?: string | undefined;
|
|
@@ -23,10 +24,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
23
24
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
24
25
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
25
26
|
}>;
|
|
26
|
-
display_name: string;
|
|
27
27
|
included_items: Record<string, {
|
|
28
|
-
quantity?: number | undefined;
|
|
29
28
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
29
|
+
quantity?: number | undefined;
|
|
30
30
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
};
|
|
@@ -40,12 +40,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
40
40
|
switch_options: {
|
|
41
41
|
product_id: string;
|
|
42
42
|
product: {
|
|
43
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
44
43
|
client_metadata?: {} | null | undefined;
|
|
45
44
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
45
|
server_metadata?: {} | null | undefined;
|
|
46
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
47
|
+
display_name: string;
|
|
47
48
|
server_only: boolean;
|
|
48
|
-
customer_type: "
|
|
49
|
+
customer_type: "user" | "team" | "custom";
|
|
49
50
|
stackable: boolean;
|
|
50
51
|
prices: Record<string, {
|
|
51
52
|
USD?: string | undefined;
|
|
@@ -58,10 +59,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
58
59
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
59
60
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
60
61
|
}>;
|
|
61
|
-
display_name: string;
|
|
62
62
|
included_items: Record<string, {
|
|
63
|
-
quantity?: number | undefined;
|
|
64
63
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
64
|
+
quantity?: number | undefined;
|
|
65
65
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
};
|
|
@@ -103,12 +103,13 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
103
103
|
switch_options?: {
|
|
104
104
|
product_id: string;
|
|
105
105
|
product: {
|
|
106
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
107
106
|
client_metadata?: {} | null | undefined;
|
|
108
107
|
client_read_only_metadata?: {} | null | undefined;
|
|
109
108
|
server_metadata?: {} | null | undefined;
|
|
109
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
110
|
+
display_name: string;
|
|
110
111
|
server_only: boolean;
|
|
111
|
-
customer_type: "
|
|
112
|
+
customer_type: "user" | "team" | "custom";
|
|
112
113
|
stackable: boolean;
|
|
113
114
|
prices: Record<string, {
|
|
114
115
|
USD?: string | undefined;
|
|
@@ -121,22 +122,23 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
121
122
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
122
123
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
123
124
|
}>;
|
|
124
|
-
display_name: string;
|
|
125
125
|
included_items: Record<string, {
|
|
126
|
-
quantity?: number | undefined;
|
|
127
126
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
127
|
+
quantity?: number | undefined;
|
|
128
128
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
129
129
|
}>;
|
|
130
130
|
};
|
|
131
131
|
}[] | undefined;
|
|
132
|
+
id: string | null;
|
|
132
133
|
quantity: number;
|
|
133
134
|
product: {
|
|
134
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
135
135
|
client_metadata?: {} | null | undefined;
|
|
136
136
|
client_read_only_metadata?: {} | null | undefined;
|
|
137
137
|
server_metadata?: {} | null | undefined;
|
|
138
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
139
|
+
display_name: string;
|
|
138
140
|
server_only: boolean;
|
|
139
|
-
customer_type: "
|
|
141
|
+
customer_type: "user" | "team" | "custom";
|
|
140
142
|
stackable: boolean;
|
|
141
143
|
prices: Record<string, {
|
|
142
144
|
USD?: string | undefined;
|
|
@@ -149,14 +151,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
149
151
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
150
152
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
151
153
|
}>;
|
|
152
|
-
display_name: string;
|
|
153
154
|
included_items: Record<string, {
|
|
154
|
-
quantity?: number | undefined;
|
|
155
155
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
156
|
+
quantity?: number | undefined;
|
|
156
157
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
157
158
|
}>;
|
|
158
159
|
};
|
|
159
|
-
id: string | null;
|
|
160
160
|
}[];
|
|
161
161
|
is_paginated: boolean;
|
|
162
162
|
pagination: {
|
|
@@ -78,12 +78,12 @@ declare const userApiKeysCrud: import("../../crud").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
|
-
description: string;
|
|
84
82
|
id: string;
|
|
85
83
|
created_at_millis: number;
|
|
86
84
|
expires_at_millis: number | undefined;
|
|
85
|
+
user_id: string;
|
|
86
|
+
description: string;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
88
88
|
is_public: boolean;
|
|
89
89
|
} & {
|
|
@@ -177,11 +177,11 @@ declare const teamApiKeysCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
|
-
team_id: string;
|
|
181
|
-
description: string;
|
|
182
180
|
id: string;
|
|
183
181
|
created_at_millis: number;
|
|
184
182
|
expires_at_millis: number | undefined;
|
|
183
|
+
team_id: string;
|
|
184
|
+
description: string;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
186
186
|
is_public: boolean;
|
|
187
187
|
} & {
|
|
@@ -61,10 +61,6 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
|
|
|
61
61
|
message: string;
|
|
62
62
|
}[];
|
|
63
63
|
config: {
|
|
64
|
-
domains: {
|
|
65
|
-
domain: string;
|
|
66
|
-
handler_path: string;
|
|
67
|
-
}[];
|
|
68
64
|
oauth_providers: {
|
|
69
65
|
client_id?: string | undefined;
|
|
70
66
|
client_secret?: string | undefined;
|
|
@@ -75,6 +71,10 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
|
|
|
75
71
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
76
72
|
provider_config_id: string;
|
|
77
73
|
}[];
|
|
74
|
+
domains: {
|
|
75
|
+
domain: string;
|
|
76
|
+
handler_path: string;
|
|
77
|
+
}[];
|
|
78
78
|
allow_localhost: boolean;
|
|
79
79
|
sign_up_enabled: boolean;
|
|
80
80
|
credential_enabled: boolean;
|
|
@@ -228,10 +228,6 @@ declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
|
|
|
228
228
|
selected_payments_country: "US" | "OTHER";
|
|
229
229
|
} | null | undefined;
|
|
230
230
|
config: {
|
|
231
|
-
domains?: {
|
|
232
|
-
domain: string;
|
|
233
|
-
handler_path: string;
|
|
234
|
-
}[] | undefined;
|
|
235
231
|
oauth_providers?: {
|
|
236
232
|
client_id?: string | undefined;
|
|
237
233
|
client_secret?: string | undefined;
|
|
@@ -241,6 +237,10 @@ declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
|
|
|
241
237
|
type: "shared" | "standard";
|
|
242
238
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
243
239
|
}[] | undefined;
|
|
240
|
+
domains?: {
|
|
241
|
+
domain: string;
|
|
242
|
+
handler_path: string;
|
|
243
|
+
}[] | undefined;
|
|
244
244
|
allow_localhost?: boolean | undefined;
|
|
245
245
|
sign_up_enabled?: boolean | undefined;
|
|
246
246
|
credential_enabled?: boolean | undefined;
|
|
@@ -308,10 +308,6 @@ declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
|
|
|
308
308
|
selected_payments_country: "US" | "OTHER";
|
|
309
309
|
} | null | undefined;
|
|
310
310
|
config: {
|
|
311
|
-
domains?: {
|
|
312
|
-
domain: string;
|
|
313
|
-
handler_path: string;
|
|
314
|
-
}[] | undefined;
|
|
315
311
|
oauth_providers?: {
|
|
316
312
|
client_id?: string | undefined;
|
|
317
313
|
client_secret?: string | undefined;
|
|
@@ -321,6 +317,10 @@ declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
|
|
|
321
317
|
type: "shared" | "standard";
|
|
322
318
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
323
319
|
}[] | undefined;
|
|
320
|
+
domains?: {
|
|
321
|
+
domain: string;
|
|
322
|
+
handler_path: string;
|
|
323
|
+
}[] | undefined;
|
|
324
324
|
allow_localhost?: boolean | undefined;
|
|
325
325
|
sign_up_enabled?: boolean | undefined;
|
|
326
326
|
credential_enabled?: boolean | undefined;
|
|
@@ -464,10 +464,6 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
464
464
|
message: string;
|
|
465
465
|
}[];
|
|
466
466
|
config: {
|
|
467
|
-
domains: {
|
|
468
|
-
domain: string;
|
|
469
|
-
handler_path: string;
|
|
470
|
-
}[];
|
|
471
467
|
oauth_providers: {
|
|
472
468
|
client_id?: string | undefined;
|
|
473
469
|
client_secret?: string | undefined;
|
|
@@ -478,6 +474,10 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
478
474
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
479
475
|
provider_config_id: string;
|
|
480
476
|
}[];
|
|
477
|
+
domains: {
|
|
478
|
+
domain: string;
|
|
479
|
+
handler_path: string;
|
|
480
|
+
}[];
|
|
481
481
|
allow_localhost: boolean;
|
|
482
482
|
sign_up_enabled: boolean;
|
|
483
483
|
credential_enabled: boolean;
|
|
@@ -583,10 +583,6 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
583
583
|
selected_payments_country: "US" | "OTHER";
|
|
584
584
|
} | null | undefined;
|
|
585
585
|
config: {
|
|
586
|
-
domains?: {
|
|
587
|
-
domain: string;
|
|
588
|
-
handler_path: string;
|
|
589
|
-
}[] | undefined;
|
|
590
586
|
oauth_providers?: {
|
|
591
587
|
client_id?: string | undefined;
|
|
592
588
|
client_secret?: string | undefined;
|
|
@@ -596,6 +592,10 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
596
592
|
type: "shared" | "standard";
|
|
597
593
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
598
594
|
}[] | undefined;
|
|
595
|
+
domains?: {
|
|
596
|
+
domain: string;
|
|
597
|
+
handler_path: string;
|
|
598
|
+
}[] | undefined;
|
|
599
599
|
allow_localhost?: boolean | undefined;
|
|
600
600
|
sign_up_enabled?: boolean | undefined;
|
|
601
601
|
credential_enabled?: boolean | undefined;
|
|
@@ -697,10 +697,6 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
697
697
|
message: string;
|
|
698
698
|
}[];
|
|
699
699
|
config: {
|
|
700
|
-
domains: {
|
|
701
|
-
domain: string;
|
|
702
|
-
handler_path: string;
|
|
703
|
-
}[];
|
|
704
700
|
oauth_providers: {
|
|
705
701
|
client_id?: string | undefined;
|
|
706
702
|
client_secret?: string | undefined;
|
|
@@ -711,6 +707,10 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
711
707
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
712
708
|
provider_config_id: string;
|
|
713
709
|
}[];
|
|
710
|
+
domains: {
|
|
711
|
+
domain: string;
|
|
712
|
+
handler_path: string;
|
|
713
|
+
}[];
|
|
714
714
|
allow_localhost: boolean;
|
|
715
715
|
sign_up_enabled: boolean;
|
|
716
716
|
credential_enabled: boolean;
|
|
@@ -816,10 +816,6 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
816
816
|
selected_payments_country: "US" | "OTHER";
|
|
817
817
|
} | null | undefined;
|
|
818
818
|
config: {
|
|
819
|
-
domains?: {
|
|
820
|
-
domain: string;
|
|
821
|
-
handler_path: string;
|
|
822
|
-
}[] | undefined;
|
|
823
819
|
oauth_providers?: {
|
|
824
820
|
client_id?: string | undefined;
|
|
825
821
|
client_secret?: string | undefined;
|
|
@@ -829,6 +825,10 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
829
825
|
type: "shared" | "standard";
|
|
830
826
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
831
827
|
}[] | undefined;
|
|
828
|
+
domains?: {
|
|
829
|
+
domain: string;
|
|
830
|
+
handler_path: string;
|
|
831
|
+
}[] | undefined;
|
|
832
832
|
allow_localhost?: boolean | undefined;
|
|
833
833
|
sign_up_enabled?: boolean | undefined;
|
|
834
834
|
credential_enabled?: boolean | undefined;
|
|
@@ -19,32 +19,32 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
|
|
|
19
19
|
profile_image_url: string | null;
|
|
20
20
|
} & {
|
|
21
21
|
user: {
|
|
22
|
+
id: string;
|
|
23
|
+
country_code: string | null;
|
|
24
|
+
display_name: string | null;
|
|
25
|
+
primary_email: string | null;
|
|
26
|
+
profile_image_url: string | null;
|
|
27
|
+
signed_up_at_millis: number;
|
|
28
|
+
last_active_at_millis: number;
|
|
29
|
+
selected_team_id: string | null;
|
|
30
|
+
is_anonymous: boolean;
|
|
31
|
+
is_restricted: boolean;
|
|
22
32
|
restricted_reason: {
|
|
23
33
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
24
34
|
} | null;
|
|
25
|
-
|
|
26
|
-
display_name: string | null;
|
|
35
|
+
requires_totp_mfa: boolean;
|
|
27
36
|
client_metadata: {} | null;
|
|
28
37
|
client_read_only_metadata: {} | null;
|
|
29
38
|
server_metadata: {} | null;
|
|
30
|
-
id: string;
|
|
31
|
-
selected_team_id: string | null;
|
|
32
|
-
is_anonymous: boolean;
|
|
33
|
-
is_restricted: boolean;
|
|
34
|
-
requires_totp_mfa: boolean;
|
|
35
|
-
country_code: string | null;
|
|
36
|
-
profile_image_url: string | null;
|
|
37
|
-
signed_up_at_millis: number;
|
|
38
|
-
last_active_at_millis: number;
|
|
39
39
|
primary_email_verified: boolean;
|
|
40
40
|
primary_email_auth_enabled: boolean;
|
|
41
41
|
selected_team: {
|
|
42
42
|
client_metadata?: {} | null | undefined;
|
|
43
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
44
|
server_metadata?: {} | null | undefined;
|
|
45
|
-
display_name: string;
|
|
46
45
|
id: string;
|
|
47
46
|
created_at_millis: number;
|
|
47
|
+
display_name: string;
|
|
48
48
|
profile_image_url: string | null;
|
|
49
49
|
} | null;
|
|
50
50
|
has_password: boolean;
|
|
@@ -142,32 +142,32 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
142
142
|
profile_image_url: string | null;
|
|
143
143
|
} & {
|
|
144
144
|
user: {
|
|
145
|
+
id: string;
|
|
146
|
+
country_code: string | null;
|
|
147
|
+
display_name: string | null;
|
|
148
|
+
primary_email: string | null;
|
|
149
|
+
profile_image_url: string | null;
|
|
150
|
+
signed_up_at_millis: number;
|
|
151
|
+
last_active_at_millis: number;
|
|
152
|
+
selected_team_id: string | null;
|
|
153
|
+
is_anonymous: boolean;
|
|
154
|
+
is_restricted: boolean;
|
|
145
155
|
restricted_reason: {
|
|
146
156
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
147
157
|
} | null;
|
|
148
|
-
|
|
149
|
-
display_name: string | null;
|
|
158
|
+
requires_totp_mfa: boolean;
|
|
150
159
|
client_metadata: {} | null;
|
|
151
160
|
client_read_only_metadata: {} | null;
|
|
152
161
|
server_metadata: {} | null;
|
|
153
|
-
id: string;
|
|
154
|
-
selected_team_id: string | null;
|
|
155
|
-
is_anonymous: boolean;
|
|
156
|
-
is_restricted: boolean;
|
|
157
|
-
requires_totp_mfa: boolean;
|
|
158
|
-
country_code: string | null;
|
|
159
|
-
profile_image_url: string | null;
|
|
160
|
-
signed_up_at_millis: number;
|
|
161
|
-
last_active_at_millis: number;
|
|
162
162
|
primary_email_verified: boolean;
|
|
163
163
|
primary_email_auth_enabled: boolean;
|
|
164
164
|
selected_team: {
|
|
165
165
|
client_metadata?: {} | null | undefined;
|
|
166
166
|
client_read_only_metadata?: {} | null | undefined;
|
|
167
167
|
server_metadata?: {} | null | undefined;
|
|
168
|
-
display_name: string;
|
|
169
168
|
id: string;
|
|
170
169
|
created_at_millis: number;
|
|
170
|
+
display_name: string;
|
|
171
171
|
profile_image_url: string | null;
|
|
172
172
|
} | null;
|
|
173
173
|
has_password: boolean;
|
|
@@ -4,7 +4,7 @@ import { InferType } from "yup";
|
|
|
4
4
|
declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
5
5
|
type: "money_transfer";
|
|
6
6
|
customer_id: string;
|
|
7
|
-
customer_type: "
|
|
7
|
+
customer_type: "user" | "team" | "custom";
|
|
8
8
|
charged_amount: {
|
|
9
9
|
USD?: string | undefined;
|
|
10
10
|
EUR?: string | undefined;
|
|
@@ -24,7 +24,7 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
24
24
|
item_id: string;
|
|
25
25
|
customer_id: string;
|
|
26
26
|
quantity: number;
|
|
27
|
-
customer_type: "
|
|
27
|
+
customer_type: "user" | "team" | "custom";
|
|
28
28
|
adjusted_transaction_id: string | null;
|
|
29
29
|
adjusted_entry_index: number | null;
|
|
30
30
|
} | {
|
|
@@ -34,14 +34,15 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
34
34
|
customer_id: string;
|
|
35
35
|
product_id: string | null;
|
|
36
36
|
quantity: number;
|
|
37
|
-
customer_type: "
|
|
37
|
+
customer_type: "user" | "team" | "custom";
|
|
38
38
|
product: {
|
|
39
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
40
39
|
client_metadata?: {} | null | undefined;
|
|
41
40
|
client_read_only_metadata?: {} | null | undefined;
|
|
42
41
|
server_metadata?: {} | null | undefined;
|
|
42
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
43
|
+
display_name: string;
|
|
43
44
|
server_only: boolean;
|
|
44
|
-
customer_type: "
|
|
45
|
+
customer_type: "user" | "team" | "custom";
|
|
45
46
|
stackable: boolean;
|
|
46
47
|
prices: Record<string, {
|
|
47
48
|
USD?: string | undefined;
|
|
@@ -54,10 +55,9 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
54
55
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
55
56
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
56
57
|
}>;
|
|
57
|
-
display_name: string;
|
|
58
58
|
included_items: Record<string, {
|
|
59
|
-
quantity?: number | undefined;
|
|
60
59
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
60
|
+
quantity?: number | undefined;
|
|
61
61
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
};
|
|
@@ -83,12 +83,12 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
83
83
|
created_at_millis: number;
|
|
84
84
|
effective_at_millis: number;
|
|
85
85
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
86
|
-
customer_type: "
|
|
86
|
+
customer_type: "user" | "team" | "custom";
|
|
87
87
|
customer_id: string;
|
|
88
88
|
entries: ({
|
|
89
89
|
type: "money_transfer";
|
|
90
90
|
customer_id: string;
|
|
91
|
-
customer_type: "
|
|
91
|
+
customer_type: "user" | "team" | "custom";
|
|
92
92
|
charged_amount: {
|
|
93
93
|
USD?: string | undefined;
|
|
94
94
|
EUR?: string | undefined;
|
|
@@ -108,7 +108,7 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
108
108
|
item_id: string;
|
|
109
109
|
customer_id: string;
|
|
110
110
|
quantity: number;
|
|
111
|
-
customer_type: "
|
|
111
|
+
customer_type: "user" | "team" | "custom";
|
|
112
112
|
adjusted_transaction_id: string | null;
|
|
113
113
|
adjusted_entry_index: number | null;
|
|
114
114
|
} | {
|
|
@@ -118,14 +118,15 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
118
118
|
customer_id: string;
|
|
119
119
|
product_id: string | null;
|
|
120
120
|
quantity: number;
|
|
121
|
-
customer_type: "
|
|
121
|
+
customer_type: "user" | "team" | "custom";
|
|
122
122
|
product: {
|
|
123
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
124
123
|
client_metadata?: {} | null | undefined;
|
|
125
124
|
client_read_only_metadata?: {} | null | undefined;
|
|
126
125
|
server_metadata?: {} | null | undefined;
|
|
126
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
127
|
+
display_name: string;
|
|
127
128
|
server_only: boolean;
|
|
128
|
-
customer_type: "
|
|
129
|
+
customer_type: "user" | "team" | "custom";
|
|
129
130
|
stackable: boolean;
|
|
130
131
|
prices: Record<string, {
|
|
131
132
|
USD?: string | undefined;
|
|
@@ -138,10 +139,9 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
138
139
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
139
140
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
140
141
|
}>;
|
|
141
|
-
display_name: string;
|
|
142
142
|
included_items: Record<string, {
|
|
143
|
-
quantity?: number | undefined;
|
|
144
143
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
144
|
+
quantity?: number | undefined;
|
|
145
145
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
146
146
|
}>;
|
|
147
147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,MAAA;;;;;;;;;;;oBAAA,MAAA;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBlB,MAAA;;;;;;;;;;;sBAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}
|
|
@@ -80,9 +80,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
80
80
|
client_metadata?: {} | null | undefined;
|
|
81
81
|
client_read_only_metadata?: {} | null | undefined;
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
|
-
display_name: string;
|
|
84
83
|
id: string;
|
|
85
84
|
created_at_millis: number;
|
|
85
|
+
display_name: string;
|
|
86
86
|
profile_image_url: string | null;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
@@ -162,15 +162,14 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
162
162
|
requires_totp_mfa: undefined;
|
|
163
163
|
}, "">;
|
|
164
164
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
165
|
-
|
|
165
|
+
country_code: string | null | undefined;
|
|
166
166
|
display_name: string | null | undefined;
|
|
167
|
+
primary_email: string | null | undefined;
|
|
168
|
+
profile_image_url: string | null | undefined;
|
|
169
|
+
is_anonymous: boolean | undefined;
|
|
167
170
|
client_metadata: {} | null | undefined;
|
|
168
171
|
client_read_only_metadata: {} | null | undefined;
|
|
169
172
|
server_metadata: {} | null | undefined;
|
|
170
|
-
is_anonymous: boolean | undefined;
|
|
171
|
-
password: string | null | undefined;
|
|
172
|
-
country_code: string | null | undefined;
|
|
173
|
-
profile_image_url: string | null | undefined;
|
|
174
173
|
primary_email_verified: boolean | undefined;
|
|
175
174
|
primary_email_auth_enabled: boolean | undefined;
|
|
176
175
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -184,12 +183,13 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
184
183
|
free_trial_abuse: number;
|
|
185
184
|
};
|
|
186
185
|
} | undefined;
|
|
186
|
+
password: string | null | undefined;
|
|
187
187
|
password_hash: string | undefined;
|
|
188
188
|
totp_secret_base64: string | null | undefined;
|
|
189
189
|
} & {
|
|
190
190
|
oauth_providers: {
|
|
191
|
-
email: string | null;
|
|
192
191
|
id: string;
|
|
192
|
+
email: string | null;
|
|
193
193
|
account_id: string;
|
|
194
194
|
}[] | undefined;
|
|
195
195
|
is_anonymous: boolean | undefined;
|
|
@@ -233,9 +233,9 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
233
233
|
client_metadata?: {} | null | undefined;
|
|
234
234
|
client_read_only_metadata?: {} | null | undefined;
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
|
-
display_name: string;
|
|
237
236
|
id: string;
|
|
238
237
|
created_at_millis: number;
|
|
238
|
+
display_name: string;
|
|
239
239
|
profile_image_url: string | null;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
@@ -368,15 +368,14 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
-
|
|
371
|
+
country_code: string | null | undefined;
|
|
372
372
|
display_name: string | null | undefined;
|
|
373
|
+
primary_email: string | null | undefined;
|
|
374
|
+
profile_image_url: string | null | undefined;
|
|
375
|
+
is_anonymous: boolean | undefined;
|
|
373
376
|
client_metadata: {} | null | undefined;
|
|
374
377
|
client_read_only_metadata: {} | null | undefined;
|
|
375
378
|
server_metadata: {} | null | undefined;
|
|
376
|
-
is_anonymous: boolean | undefined;
|
|
377
|
-
password: string | null | undefined;
|
|
378
|
-
country_code: string | null | undefined;
|
|
379
|
-
profile_image_url: string | null | undefined;
|
|
380
379
|
primary_email_verified: boolean | undefined;
|
|
381
380
|
primary_email_auth_enabled: boolean | undefined;
|
|
382
381
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -390,12 +389,13 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
390
389
|
free_trial_abuse: number;
|
|
391
390
|
};
|
|
392
391
|
} | undefined;
|
|
392
|
+
password: string | null | undefined;
|
|
393
393
|
password_hash: string | undefined;
|
|
394
394
|
totp_secret_base64: string | null | undefined;
|
|
395
395
|
} & {
|
|
396
396
|
oauth_providers: {
|
|
397
|
-
email: string | null;
|
|
398
397
|
id: string;
|
|
398
|
+
email: string | null;
|
|
399
399
|
account_id: string;
|
|
400
400
|
}[] | undefined;
|
|
401
401
|
is_anonymous: boolean | undefined;
|
|
@@ -467,9 +467,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
467
467
|
client_metadata?: {} | null | undefined;
|
|
468
468
|
client_read_only_metadata?: {} | null | undefined;
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
|
-
display_name: string;
|
|
471
470
|
id: string;
|
|
472
471
|
created_at_millis: number;
|
|
472
|
+
display_name: string;
|
|
473
473
|
profile_image_url: string | null;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
@@ -558,9 +558,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
558
558
|
client_metadata?: {} | null | undefined;
|
|
559
559
|
client_read_only_metadata?: {} | null | undefined;
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
|
-
display_name: string;
|
|
562
561
|
id: string;
|
|
563
562
|
created_at_millis: number;
|
|
563
|
+
display_name: string;
|
|
564
564
|
profile_image_url: string | null;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
@@ -31,9 +31,9 @@ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
|
31
31
|
next_plan_id: "team" | "growth" | null;
|
|
32
32
|
are_plan_limits_enforced: boolean;
|
|
33
33
|
rows: {
|
|
34
|
-
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
35
34
|
display_name: string;
|
|
36
35
|
kind: "current" | "metered" | "capability";
|
|
36
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
37
37
|
used: number | null;
|
|
38
38
|
limit: number | null;
|
|
39
39
|
remaining: number | 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;
|
|
24
23
|
id: string;
|
|
25
24
|
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;
|
|
114
113
|
id: string;
|
|
115
114
|
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;
|
|
@@ -512,7 +512,7 @@ declare const KnownErrors: {
|
|
|
512
512
|
ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
|
|
513
513
|
errorCode: "ITEM_NOT_FOUND";
|
|
514
514
|
};
|
|
515
|
-
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "
|
|
515
|
+
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
|
|
516
516
|
errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
517
517
|
};
|
|
518
518
|
CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
|
|
@@ -521,7 +521,7 @@ declare const KnownErrors: {
|
|
|
521
521
|
ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | null]> & {
|
|
522
522
|
errorCode: "PRODUCT_DOES_NOT_EXIST";
|
|
523
523
|
};
|
|
524
|
-
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "
|
|
524
|
+
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
|
|
525
525
|
errorCode: "PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
526
526
|
};
|
|
527
527
|
ProductAlreadyGranted: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_ALREADY_GRANTED">, [productId: string, customerId: string]> & {
|
|
@@ -548,7 +548,7 @@ declare const KnownErrors: {
|
|
|
548
548
|
StripeAccountInfoNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"STRIPE_ACCOUNT_INFO_NOT_FOUND">, []> & {
|
|
549
549
|
errorCode: "STRIPE_ACCOUNT_INFO_NOT_FOUND";
|
|
550
550
|
};
|
|
551
|
-
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "
|
|
551
|
+
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "user" | "team", customerId: string]> & {
|
|
552
552
|
errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
|
|
553
553
|
};
|
|
554
554
|
NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {
|