@hexclave/shared 1.0.54 → 1.0.55
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-DuboQXpC.d.ts → admin-interface-DIt0PvhC.d.ts} +11 -11
- package/dist/{admin-interface-DuboQXpC.d.ts.map → admin-interface-DIt0PvhC.d.ts.map} +1 -1
- package/dist/{admin-metrics-IxLyJ-cP.d.ts → admin-metrics-bsOkw4YQ.d.ts} +18 -18
- package/dist/{admin-metrics-IxLyJ-cP.d.ts.map → admin-metrics-bsOkw4YQ.d.ts.map} +1 -1
- package/dist/ai/unified-prompts/reminders.js +1 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/{client-interface-Ca6UZywk.d.ts → client-interface-BQz4jNAC.d.ts} +9 -9
- package/dist/{client-interface-Ca6UZywk.d.ts.map → client-interface-BQz4jNAC.d.ts.map} +1 -1
- package/dist/config/schema-fuzzer.test.js +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config/schema.js +1 -1
- package/dist/config-authoring.d.ts +1 -1
- package/dist/{current-user-DNxac4sS.d.ts → current-user-BBoN3hsn.d.ts} +15 -15
- package/dist/{current-user-DNxac4sS.d.ts.map → current-user-BBoN3hsn.d.ts.map} +1 -1
- package/dist/{email-outbox-ILs0LlGd.d.ts → email-outbox-CqzwInBL.d.ts} +95 -95
- package/dist/{email-outbox-ILs0LlGd.d.ts.map → email-outbox-CqzwInBL.d.ts.map} +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/config/schema-fuzzer.test.js +1 -1
- package/dist/esm/config/schema.d.ts +99 -99
- package/dist/esm/config/schema.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +17 -17
- package/dist/esm/interface/client-interface.js +2 -2
- 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 +94 -94
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +8 -8
- 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-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +1 -1
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/client-interface.js +2 -2
- 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/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +1 -1
- package/dist/{known-errors-g7JC8z58.d.ts → known-errors-Bm4a61wL.d.ts} +4 -4
- package/dist/{known-errors-g7JC8z58.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-D0kWw4HR.d.ts → plan-usage-BO2GsKlN.d.ts} +3 -3
- package/dist/{plan-usage-D0kWw4HR.d.ts.map → plan-usage-BO2GsKlN.d.ts.map} +1 -1
- package/dist/{products-C98fCS-1.d.ts → products-D4o8A2W0.d.ts} +18 -18
- package/dist/{products-C98fCS-1.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
- package/dist/{project-api-keys-P97ElZZe.d.ts → project-api-keys--7V5X_UW.d.ts} +5 -5
- package/dist/{project-api-keys-P97ElZZe.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
- package/dist/{projects-BM2a4sfO.d.ts → projects-CFTNXRfG.d.ts} +29 -29
- package/dist/{projects-BM2a4sfO.d.ts.map → projects-CFTNXRfG.d.ts.map} +1 -1
- package/dist/{schema-Bq1TSMFV.d.ts → schema-CLmaZetm.d.ts} +100 -100
- package/dist/{schema-Bq1TSMFV.d.ts.map → schema-CLmaZetm.d.ts.map} +1 -1
- package/dist/{schema-fields-Cch3V5nd.d.ts → schema-fields-DZtDQEEO.d.ts} +6 -6
- package/dist/{schema-fields-Cch3V5nd.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface-yKuDPrQI.d.ts → server-interface-BjY-eS4Q.d.ts} +8 -8
- package/dist/{server-interface-yKuDPrQI.d.ts.map → server-interface-BjY-eS4Q.d.ts.map} +1 -1
- package/dist/{sessions-DCTyJhi3.d.ts → sessions-CI-0TBQb.d.ts} +10 -10
- package/dist/{sessions-DCTyJhi3.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-CaD1OJqt.d.ts → team-member-profiles-BoDEqx-0.d.ts} +25 -25
- package/dist/{team-member-profiles-CaD1OJqt.d.ts.map → team-member-profiles-BoDEqx-0.d.ts.map} +1 -1
- package/dist/{transactions-CrAZLdGo.d.ts → transactions-CHNUJ42J.d.ts} +16 -16
- package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
- package/dist/{users-DSpJgn9Z.d.ts → users-DHNRwoSz.d.ts} +18 -18
- package/dist/{users-DSpJgn9Z.d.ts.map → users-DHNRwoSz.d.ts.map} +1 -1
- package/dist/{webhooks-_aXIgZBW.d.ts → webhooks-8Ts1Clcb.d.ts} +3 -3
- package/dist/{webhooks-_aXIgZBW.d.ts.map → webhooks-8Ts1Clcb.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +1 -1
- package/dist/transactions-CrAZLdGo.d.ts.map +0 -1
|
@@ -5,13 +5,12 @@ 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;
|
|
8
9
|
client_metadata?: {} | null | undefined;
|
|
9
10
|
client_read_only_metadata?: {} | null | undefined;
|
|
10
11
|
server_metadata?: {} | null | undefined;
|
|
11
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
12
|
-
display_name: string;
|
|
13
12
|
server_only: boolean;
|
|
14
|
-
customer_type: "
|
|
13
|
+
customer_type: "team" | "user" | "custom";
|
|
15
14
|
stackable: boolean;
|
|
16
15
|
prices: Record<string, {
|
|
17
16
|
USD?: string | undefined;
|
|
@@ -24,9 +23,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
24
23
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
25
24
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
26
25
|
}>;
|
|
26
|
+
display_name: string;
|
|
27
27
|
included_items: Record<string, {
|
|
28
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
29
28
|
quantity?: number | undefined;
|
|
29
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
30
30
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
};
|
|
@@ -40,13 +40,12 @@ 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;
|
|
43
44
|
client_metadata?: {} | null | undefined;
|
|
44
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
45
46
|
server_metadata?: {} | null | undefined;
|
|
46
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
47
|
-
display_name: string;
|
|
48
47
|
server_only: boolean;
|
|
49
|
-
customer_type: "
|
|
48
|
+
customer_type: "team" | "user" | "custom";
|
|
50
49
|
stackable: boolean;
|
|
51
50
|
prices: Record<string, {
|
|
52
51
|
USD?: string | undefined;
|
|
@@ -59,9 +58,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
59
58
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
60
59
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
61
60
|
}>;
|
|
61
|
+
display_name: string;
|
|
62
62
|
included_items: Record<string, {
|
|
63
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
64
63
|
quantity?: number | undefined;
|
|
64
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
65
65
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
};
|
|
@@ -103,13 +103,12 @@ 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;
|
|
106
107
|
client_metadata?: {} | null | undefined;
|
|
107
108
|
client_read_only_metadata?: {} | null | undefined;
|
|
108
109
|
server_metadata?: {} | null | undefined;
|
|
109
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
110
|
-
display_name: string;
|
|
111
110
|
server_only: boolean;
|
|
112
|
-
customer_type: "
|
|
111
|
+
customer_type: "team" | "user" | "custom";
|
|
113
112
|
stackable: boolean;
|
|
114
113
|
prices: Record<string, {
|
|
115
114
|
USD?: string | undefined;
|
|
@@ -122,23 +121,22 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
122
121
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
123
122
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
124
123
|
}>;
|
|
124
|
+
display_name: string;
|
|
125
125
|
included_items: Record<string, {
|
|
126
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
127
126
|
quantity?: number | undefined;
|
|
127
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
128
128
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
129
129
|
}>;
|
|
130
130
|
};
|
|
131
131
|
}[] | undefined;
|
|
132
|
-
id: string | null;
|
|
133
132
|
quantity: number;
|
|
134
133
|
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;
|
|
140
138
|
server_only: boolean;
|
|
141
|
-
customer_type: "
|
|
139
|
+
customer_type: "team" | "user" | "custom";
|
|
142
140
|
stackable: boolean;
|
|
143
141
|
prices: Record<string, {
|
|
144
142
|
USD?: string | undefined;
|
|
@@ -151,12 +149,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
151
149
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
152
150
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
153
151
|
}>;
|
|
152
|
+
display_name: string;
|
|
154
153
|
included_items: Record<string, {
|
|
155
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
156
154
|
quantity?: number | undefined;
|
|
155
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
157
156
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
157
|
}>;
|
|
159
158
|
};
|
|
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;
|
|
81
82
|
type: "user";
|
|
83
|
+
description: string;
|
|
82
84
|
id: string;
|
|
83
85
|
created_at_millis: number;
|
|
84
86
|
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;
|
|
180
182
|
id: string;
|
|
181
183
|
created_at_millis: number;
|
|
182
184
|
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,6 +61,10 @@ 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
|
+
}[];
|
|
64
68
|
oauth_providers: {
|
|
65
69
|
client_id?: string | undefined;
|
|
66
70
|
client_secret?: string | undefined;
|
|
@@ -71,10 +75,6 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
|
|
|
71
75
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
72
76
|
provider_config_id: string;
|
|
73
77
|
}[];
|
|
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,6 +228,10 @@ 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;
|
|
231
235
|
oauth_providers?: {
|
|
232
236
|
client_id?: string | undefined;
|
|
233
237
|
client_secret?: string | undefined;
|
|
@@ -237,10 +241,6 @@ declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
|
|
|
237
241
|
type: "shared" | "standard";
|
|
238
242
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
239
243
|
}[] | 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,6 +308,10 @@ 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;
|
|
311
315
|
oauth_providers?: {
|
|
312
316
|
client_id?: string | undefined;
|
|
313
317
|
client_secret?: string | undefined;
|
|
@@ -317,10 +321,6 @@ declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
|
|
|
317
321
|
type: "shared" | "standard";
|
|
318
322
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
319
323
|
}[] | 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,6 +464,10 @@ 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
|
+
}[];
|
|
467
471
|
oauth_providers: {
|
|
468
472
|
client_id?: string | undefined;
|
|
469
473
|
client_secret?: string | undefined;
|
|
@@ -474,10 +478,6 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
474
478
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
475
479
|
provider_config_id: string;
|
|
476
480
|
}[];
|
|
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,6 +583,10 @@ 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;
|
|
586
590
|
oauth_providers?: {
|
|
587
591
|
client_id?: string | undefined;
|
|
588
592
|
client_secret?: string | undefined;
|
|
@@ -592,10 +596,6 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
592
596
|
type: "shared" | "standard";
|
|
593
597
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
594
598
|
}[] | 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,6 +697,10 @@ 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
|
+
}[];
|
|
700
704
|
oauth_providers: {
|
|
701
705
|
client_id?: string | undefined;
|
|
702
706
|
client_secret?: string | undefined;
|
|
@@ -707,10 +711,6 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
707
711
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
708
712
|
provider_config_id: string;
|
|
709
713
|
}[];
|
|
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,6 +816,10 @@ 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;
|
|
819
823
|
oauth_providers?: {
|
|
820
824
|
client_id?: string | undefined;
|
|
821
825
|
client_secret?: string | undefined;
|
|
@@ -825,10 +829,6 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
|
|
|
825
829
|
type: "shared" | "standard";
|
|
826
830
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
827
831
|
}[] | 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;
|
|
32
22
|
restricted_reason: {
|
|
33
23
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
34
24
|
} | null;
|
|
35
|
-
|
|
25
|
+
primary_email: string | null;
|
|
26
|
+
display_name: string | null;
|
|
36
27
|
client_metadata: {} | null;
|
|
37
28
|
client_read_only_metadata: {} | null;
|
|
38
29
|
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;
|
|
45
46
|
id: string;
|
|
46
47
|
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;
|
|
155
145
|
restricted_reason: {
|
|
156
146
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
157
147
|
} | null;
|
|
158
|
-
|
|
148
|
+
primary_email: string | null;
|
|
149
|
+
display_name: string | null;
|
|
159
150
|
client_metadata: {} | null;
|
|
160
151
|
client_read_only_metadata: {} | null;
|
|
161
152
|
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;
|
|
168
169
|
id: string;
|
|
169
170
|
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: "team" | "user" | "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: "team" | "user" | "custom";
|
|
28
28
|
adjusted_transaction_id: string | null;
|
|
29
29
|
adjusted_entry_index: number | null;
|
|
30
30
|
} | {
|
|
@@ -34,15 +34,14 @@ 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: "team" | "user" | "custom";
|
|
38
38
|
product: {
|
|
39
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
39
40
|
client_metadata?: {} | null | undefined;
|
|
40
41
|
client_read_only_metadata?: {} | null | undefined;
|
|
41
42
|
server_metadata?: {} | null | undefined;
|
|
42
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
43
|
-
display_name: string;
|
|
44
43
|
server_only: boolean;
|
|
45
|
-
customer_type: "
|
|
44
|
+
customer_type: "team" | "user" | "custom";
|
|
46
45
|
stackable: boolean;
|
|
47
46
|
prices: Record<string, {
|
|
48
47
|
USD?: string | undefined;
|
|
@@ -55,9 +54,10 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
55
54
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
56
55
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
57
56
|
}>;
|
|
57
|
+
display_name: string;
|
|
58
58
|
included_items: Record<string, {
|
|
59
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
60
59
|
quantity?: number | undefined;
|
|
60
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | 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: "team" | "user" | "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: "team" | "user" | "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: "team" | "user" | "custom";
|
|
112
112
|
adjusted_transaction_id: string | null;
|
|
113
113
|
adjusted_entry_index: number | null;
|
|
114
114
|
} | {
|
|
@@ -118,15 +118,14 @@ 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: "team" | "user" | "custom";
|
|
122
122
|
product: {
|
|
123
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
123
124
|
client_metadata?: {} | null | undefined;
|
|
124
125
|
client_read_only_metadata?: {} | null | undefined;
|
|
125
126
|
server_metadata?: {} | null | undefined;
|
|
126
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
127
|
-
display_name: string;
|
|
128
127
|
server_only: boolean;
|
|
129
|
-
customer_type: "
|
|
128
|
+
customer_type: "team" | "user" | "custom";
|
|
130
129
|
stackable: boolean;
|
|
131
130
|
prices: Record<string, {
|
|
132
131
|
USD?: string | undefined;
|
|
@@ -139,9 +138,10 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
139
138
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
140
139
|
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
141
140
|
}>;
|
|
141
|
+
display_name: string;
|
|
142
142
|
included_items: Record<string, {
|
|
143
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
144
143
|
quantity?: number | undefined;
|
|
144
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | 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;
|
|
83
84
|
id: string;
|
|
84
85
|
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,14 +162,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
162
162
|
requires_totp_mfa: undefined;
|
|
163
163
|
}, "">;
|
|
164
164
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
165
|
-
country_code: string | null | undefined;
|
|
166
|
-
display_name: string | null | undefined;
|
|
167
165
|
primary_email: string | null | undefined;
|
|
168
|
-
|
|
169
|
-
is_anonymous: boolean | undefined;
|
|
166
|
+
display_name: string | null | undefined;
|
|
170
167
|
client_metadata: {} | null | undefined;
|
|
171
168
|
client_read_only_metadata: {} | null | undefined;
|
|
172
169
|
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;
|
|
173
174
|
primary_email_verified: boolean | undefined;
|
|
174
175
|
primary_email_auth_enabled: boolean | undefined;
|
|
175
176
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -183,13 +184,12 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
183
184
|
free_trial_abuse: number;
|
|
184
185
|
};
|
|
185
186
|
} | 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
|
-
id: string;
|
|
192
191
|
email: string | null;
|
|
192
|
+
id: string;
|
|
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;
|
|
236
237
|
id: string;
|
|
237
238
|
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,14 +368,15 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
-
country_code: string | null | undefined;
|
|
372
|
-
display_name: string | null | undefined;
|
|
373
371
|
primary_email: string | null | undefined;
|
|
374
|
-
|
|
375
|
-
is_anonymous: boolean | undefined;
|
|
372
|
+
display_name: string | null | undefined;
|
|
376
373
|
client_metadata: {} | null | undefined;
|
|
377
374
|
client_read_only_metadata: {} | null | undefined;
|
|
378
375
|
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;
|
|
379
380
|
primary_email_verified: boolean | undefined;
|
|
380
381
|
primary_email_auth_enabled: boolean | undefined;
|
|
381
382
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -389,13 +390,12 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
389
390
|
free_trial_abuse: number;
|
|
390
391
|
};
|
|
391
392
|
} | 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
|
-
id: string;
|
|
398
397
|
email: string | null;
|
|
398
|
+
id: string;
|
|
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;
|
|
470
471
|
id: string;
|
|
471
472
|
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;
|
|
561
562
|
id: string;
|
|
562
563
|
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;
|
|
@@ -24,16 +24,16 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
|
|
|
24
24
|
declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
25
25
|
owner_team_id: string;
|
|
26
26
|
owner_team_display_name: string;
|
|
27
|
-
plan_id: "
|
|
27
|
+
plan_id: "free" | "team" | "growth";
|
|
28
28
|
plan_display_name: string;
|
|
29
29
|
period_start_millis: number;
|
|
30
30
|
period_end_millis: number;
|
|
31
31
|
next_plan_id: "team" | "growth" | null;
|
|
32
32
|
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";
|
|
34
35
|
display_name: string;
|
|
35
36
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HexclaveAssertionError } from "../utils/errors.js";
|
|
2
|
+
import { urlString } from "../utils/urls.js";
|
|
2
3
|
import { filterUndefined } from "../utils/objects.js";
|
|
3
4
|
import { Result } from "../utils/results.js";
|
|
4
|
-
import { urlString } from "../utils/urls.js";
|
|
5
5
|
import { KnownErrors } from "../known-errors.js";
|
|
6
6
|
import { InternalSession } from "../sessions.js";
|
|
7
7
|
import { HexclaveClientInterface } from "./client-interface.js";
|
|
@@ -20,9 +20,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
20
20
|
client_metadata?: {} | null | undefined;
|
|
21
21
|
client_read_only_metadata?: {} | null | undefined;
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
|
+
display_name: string;
|
|
23
24
|
id: string;
|
|
24
25
|
created_at_millis: number;
|
|
25
|
-
display_name: string;
|
|
26
26
|
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
@@ -110,9 +110,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
110
110
|
client_metadata?: {} | null | undefined;
|
|
111
111
|
client_read_only_metadata?: {} | null | undefined;
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
|
+
display_name: string;
|
|
113
114
|
id: string;
|
|
114
115
|
created_at_millis: number;
|
|
115
|
-
display_name: string;
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|