@stackframe/stack-shared 2.8.56 → 2.8.59
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/apps/apps-config.d.mts +6 -0
- package/dist/apps/apps-config.d.ts +6 -0
- package/dist/apps/apps-config.js +6 -0
- package/dist/apps/apps-config.js.map +1 -1
- package/dist/config/migrate-catalogs-to-product-lines.d.mts +12 -0
- package/dist/config/migrate-catalogs-to-product-lines.d.ts +12 -0
- package/dist/config/migrate-catalogs-to-product-lines.js +211 -0
- package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/config/schema-fuzzer.test.js +20 -6
- package/dist/config/schema-fuzzer.test.js.map +1 -1
- package/dist/config/schema.d.mts +296 -224
- package/dist/config/schema.d.ts +296 -224
- package/dist/config/schema.js +46 -8
- package/dist/config/schema.js.map +1 -1
- package/dist/esm/apps/apps-config.js +6 -0
- package/dist/esm/apps/apps-config.js.map +1 -1
- package/dist/esm/config/migrate-catalogs-to-product-lines.js +186 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/esm/config/schema-fuzzer.test.js +20 -6
- package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
- package/dist/esm/config/schema.js +47 -9
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/interface/admin-interface.js +49 -1
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/client-interface.js +124 -25
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/crud/current-user.js +5 -2
- package/dist/esm/interface/crud/current-user.js.map +1 -1
- package/dist/esm/interface/crud/email-outbox.js +204 -0
- package/dist/esm/interface/crud/email-outbox.js.map +1 -0
- package/dist/esm/interface/crud/emails.js +0 -2
- package/dist/esm/interface/crud/emails.js.map +1 -1
- package/dist/esm/interface/crud/products.js +12 -1
- package/dist/esm/interface/crud/products.js.map +1 -1
- package/dist/esm/interface/crud/projects.js +3 -1
- package/dist/esm/interface/crud/projects.js.map +1 -1
- package/dist/esm/interface/crud/users.js +9 -2
- package/dist/esm/interface/crud/users.js.map +1 -1
- package/dist/esm/interface/server-interface.js +54 -0
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/known-errors.js +69 -1
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.js +27 -3
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/sessions.js +72 -8
- package/dist/esm/sessions.js.map +1 -1
- package/dist/esm/utils/env.js +13 -2
- package/dist/esm/utils/env.js.map +1 -1
- package/dist/esm/utils/esbuild.js +50 -21
- package/dist/esm/utils/esbuild.js.map +1 -1
- package/dist/esm/utils/globals.js +12 -0
- package/dist/esm/utils/globals.js.map +1 -1
- package/dist/esm/utils/paginated-lists.js +153 -23
- package/dist/esm/utils/paginated-lists.js.map +1 -1
- package/dist/esm/utils/paginated-lists.test.js +842 -0
- package/dist/esm/utils/paginated-lists.test.js.map +1 -0
- package/dist/esm/utils/proxies.js +28 -1
- package/dist/esm/utils/proxies.js.map +1 -1
- package/dist/esm/utils/react.js +7 -3
- package/dist/esm/utils/react.js.map +1 -1
- package/dist/esm/utils/results.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/interface/admin-interface.d.mts +26 -3
- package/dist/interface/admin-interface.d.ts +26 -3
- package/dist/interface/admin-interface.js +49 -1
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/client-interface.d.mts +36 -0
- package/dist/interface/client-interface.d.ts +36 -0
- package/dist/interface/client-interface.js +124 -25
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/crud/current-user.d.mts +23 -6
- package/dist/interface/crud/current-user.d.ts +23 -6
- package/dist/interface/crud/current-user.js +5 -2
- package/dist/interface/crud/current-user.js.map +1 -1
- package/dist/interface/crud/email-outbox.d.mts +1075 -0
- package/dist/interface/crud/email-outbox.d.ts +1075 -0
- package/dist/interface/crud/email-outbox.js +241 -0
- package/dist/interface/crud/email-outbox.js.map +1 -0
- package/dist/interface/crud/emails.d.mts +0 -34
- package/dist/interface/crud/emails.d.ts +0 -34
- package/dist/interface/crud/emails.js +0 -2
- package/dist/interface/crud/emails.js.map +1 -1
- package/dist/interface/crud/products.d.mts +77 -0
- package/dist/interface/crud/products.d.ts +77 -0
- package/dist/interface/crud/products.js +12 -1
- package/dist/interface/crud/products.js.map +1 -1
- package/dist/interface/crud/project-api-keys.d.mts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +1 -1
- package/dist/interface/crud/projects.d.mts +70 -66
- package/dist/interface/crud/projects.d.ts +70 -66
- package/dist/interface/crud/projects.js +3 -1
- package/dist/interface/crud/projects.js.map +1 -1
- package/dist/interface/crud/team-member-profiles.d.mts +28 -12
- package/dist/interface/crud/team-member-profiles.d.ts +28 -12
- package/dist/interface/crud/users.d.mts +38 -6
- package/dist/interface/crud/users.d.ts +38 -6
- package/dist/interface/crud/users.js +9 -2
- package/dist/interface/crud/users.js.map +1 -1
- package/dist/interface/server-interface.d.mts +52 -0
- package/dist/interface/server-interface.d.ts +52 -0
- package/dist/interface/server-interface.js +54 -0
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/interface/webhooks.d.mts +18 -2
- package/dist/interface/webhooks.d.ts +18 -2
- package/dist/known-errors.d.mts +20 -1
- package/dist/known-errors.d.ts +20 -1
- package/dist/known-errors.js +69 -1
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.mts +38 -5
- package/dist/schema-fields.d.ts +38 -5
- package/dist/schema-fields.js +33 -3
- package/dist/schema-fields.js.map +1 -1
- package/dist/sessions.d.mts +35 -4
- package/dist/sessions.d.ts +35 -4
- package/dist/sessions.js +72 -8
- package/dist/sessions.js.map +1 -1
- package/dist/utils/env.d.mts +2 -1
- package/dist/utils/env.d.ts +2 -1
- package/dist/utils/env.js +13 -1
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/esbuild.js +49 -20
- package/dist/utils/esbuild.js.map +1 -1
- package/dist/utils/globals.d.mts +6 -1
- package/dist/utils/globals.d.ts +6 -1
- package/dist/utils/globals.js +13 -0
- package/dist/utils/globals.js.map +1 -1
- package/dist/utils/paginated-lists.d.mts +269 -12
- package/dist/utils/paginated-lists.d.ts +269 -12
- package/dist/utils/paginated-lists.js +153 -23
- package/dist/utils/paginated-lists.js.map +1 -1
- package/dist/utils/paginated-lists.test.d.mts +2 -0
- package/dist/utils/paginated-lists.test.d.ts +2 -0
- package/dist/utils/paginated-lists.test.js +844 -0
- package/dist/utils/paginated-lists.test.js.map +1 -0
- package/dist/utils/proxies.d.mts +8 -1
- package/dist/utils/proxies.d.ts +8 -1
- package/dist/utils/proxies.js +30 -2
- package/dist/utils/proxies.js.map +1 -1
- package/dist/utils/react.d.mts +1 -1
- package/dist/utils/react.d.ts +1 -1
- package/dist/utils/react.js +7 -3
- package/dist/utils/react.js.map +1 -1
- package/dist/utils/results.d.mts +5 -5
- package/dist/utils/results.d.ts +5 -5
- package/dist/utils/results.js.map +1 -1
- package/package.json +5 -4
- package/CHANGELOG.md +0 -1354
- package/dist/esm/interface/crud/config.js +0 -40
- package/dist/esm/interface/crud/config.js.map +0 -1
- package/dist/interface/crud/config.d.mts +0 -49
- package/dist/interface/crud/config.d.ts +0 -49
- package/dist/interface/crud/config.js +0 -79
- package/dist/interface/crud/config.js.map +0 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -30,18 +30,20 @@ declare const projectConfigSchema: yup.ObjectSchema<{
|
|
|
30
30
|
sourceOfTruth: undefined;
|
|
31
31
|
}, "">;
|
|
32
32
|
declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
33
|
+
blockNewPurchases: boolean | undefined;
|
|
33
34
|
autoPay: {
|
|
34
35
|
interval?: DayInterval | undefined;
|
|
35
36
|
} | undefined;
|
|
36
37
|
testMode: boolean | undefined;
|
|
37
|
-
|
|
38
|
+
productLines: Record<string, {
|
|
38
39
|
displayName?: string | undefined;
|
|
40
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
39
41
|
}>;
|
|
40
42
|
products: Record<string, {
|
|
41
43
|
displayName?: string | undefined;
|
|
42
44
|
serverOnly?: boolean | undefined;
|
|
43
45
|
freeTrial?: DayInterval | undefined;
|
|
44
|
-
|
|
46
|
+
productLineId?: string | undefined;
|
|
45
47
|
isAddOnTo?: false | Record<string, true> | undefined;
|
|
46
48
|
stackable?: boolean | undefined;
|
|
47
49
|
customerType: "team" | "user" | "custom";
|
|
@@ -67,12 +69,13 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
|
67
69
|
displayName?: string | undefined;
|
|
68
70
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
69
71
|
}>;
|
|
70
|
-
}, yup.AnyObject, {
|
|
72
|
+
} | undefined, yup.AnyObject, {
|
|
73
|
+
blockNewPurchases: undefined;
|
|
71
74
|
autoPay: {
|
|
72
75
|
interval: undefined;
|
|
73
76
|
};
|
|
74
77
|
testMode: undefined;
|
|
75
|
-
|
|
78
|
+
productLines: undefined;
|
|
76
79
|
products: undefined;
|
|
77
80
|
items: undefined;
|
|
78
81
|
}, "">;
|
|
@@ -86,47 +89,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
86
89
|
type: "postgres";
|
|
87
90
|
connectionString: string;
|
|
88
91
|
};
|
|
89
|
-
}, string>, "
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
};
|
|
93
|
-
teams: {
|
|
94
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
95
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
96
|
-
};
|
|
97
|
-
auth: {
|
|
98
|
-
allowSignUp?: boolean | undefined;
|
|
99
|
-
password: {
|
|
100
|
-
allowSignIn?: boolean | undefined;
|
|
101
|
-
};
|
|
102
|
-
otp: {
|
|
103
|
-
allowSignIn?: boolean | undefined;
|
|
104
|
-
};
|
|
105
|
-
passkey: {
|
|
106
|
-
allowSignIn?: boolean | undefined;
|
|
107
|
-
};
|
|
108
|
-
oauth: {
|
|
109
|
-
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
110
|
-
providers: Record<string, {
|
|
111
|
-
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
112
|
-
allowSignIn?: boolean | undefined;
|
|
113
|
-
allowConnectedAccounts?: boolean | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
rbac: {
|
|
118
|
-
permissions: Record<string, {
|
|
119
|
-
description?: string | undefined;
|
|
120
|
-
scope?: "team" | "project" | undefined;
|
|
121
|
-
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
122
|
-
} | undefined>;
|
|
123
|
-
defaultPermissions: {
|
|
124
|
-
teamCreator: Record<string, true | undefined>;
|
|
125
|
-
teamMember: Record<string, true | undefined>;
|
|
126
|
-
signUp: Record<string, true | undefined>;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
payments: {
|
|
92
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
93
|
+
payments?: {
|
|
94
|
+
blockNewPurchases?: boolean | undefined;
|
|
130
95
|
autoPay?: {
|
|
131
96
|
interval?: DayInterval | undefined;
|
|
132
97
|
} | undefined;
|
|
@@ -135,14 +100,15 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
135
100
|
displayName?: string | undefined;
|
|
136
101
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
137
102
|
}>;
|
|
138
|
-
|
|
103
|
+
productLines: Record<string, {
|
|
139
104
|
displayName?: string | undefined;
|
|
105
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
140
106
|
}>;
|
|
141
107
|
products: Record<string, {
|
|
142
108
|
displayName?: string | undefined;
|
|
143
109
|
serverOnly?: boolean | undefined;
|
|
144
110
|
freeTrial?: DayInterval | undefined;
|
|
145
|
-
|
|
111
|
+
productLineId?: string | undefined;
|
|
146
112
|
isAddOnTo?: false | Record<string, true> | undefined;
|
|
147
113
|
stackable?: boolean | undefined;
|
|
148
114
|
customerType: "team" | "user" | "custom";
|
|
@@ -164,7 +130,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
164
130
|
quantity: number;
|
|
165
131
|
}>;
|
|
166
132
|
}>;
|
|
167
|
-
};
|
|
133
|
+
} | undefined;
|
|
168
134
|
emails: {
|
|
169
135
|
selectedThemeId?: string | undefined;
|
|
170
136
|
themes: Record<string, {
|
|
@@ -177,6 +143,48 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
177
143
|
tsxSource: string;
|
|
178
144
|
}>;
|
|
179
145
|
};
|
|
146
|
+
teams: {
|
|
147
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
148
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
149
|
+
};
|
|
150
|
+
domains: {
|
|
151
|
+
allowLocalhost?: boolean | undefined;
|
|
152
|
+
};
|
|
153
|
+
auth: {
|
|
154
|
+
allowSignUp?: boolean | undefined;
|
|
155
|
+
password: {
|
|
156
|
+
allowSignIn?: boolean | undefined;
|
|
157
|
+
};
|
|
158
|
+
otp: {
|
|
159
|
+
allowSignIn?: boolean | undefined;
|
|
160
|
+
};
|
|
161
|
+
passkey: {
|
|
162
|
+
allowSignIn?: boolean | undefined;
|
|
163
|
+
};
|
|
164
|
+
oauth: {
|
|
165
|
+
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
166
|
+
providers: Record<string, {
|
|
167
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
168
|
+
allowSignIn?: boolean | undefined;
|
|
169
|
+
allowConnectedAccounts?: boolean | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
onboarding: {
|
|
174
|
+
requireEmailVerification?: boolean | undefined;
|
|
175
|
+
};
|
|
176
|
+
rbac: {
|
|
177
|
+
permissions: Record<string, {
|
|
178
|
+
description?: string | undefined;
|
|
179
|
+
scope?: "team" | "project" | undefined;
|
|
180
|
+
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
181
|
+
} | undefined>;
|
|
182
|
+
defaultPermissions: {
|
|
183
|
+
teamCreator: Record<string, true | undefined>;
|
|
184
|
+
teamMember: Record<string, true | undefined>;
|
|
185
|
+
signUp: Record<string, true | undefined>;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
180
188
|
apiKeys: {
|
|
181
189
|
enabled: {
|
|
182
190
|
team?: boolean | undefined;
|
|
@@ -184,7 +192,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
184
192
|
};
|
|
185
193
|
};
|
|
186
194
|
apps: {
|
|
187
|
-
installed: Record<"teams" | "
|
|
195
|
+
installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
|
|
188
196
|
enabled?: boolean | undefined;
|
|
189
197
|
}>;
|
|
190
198
|
};
|
|
@@ -198,7 +206,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
198
206
|
};
|
|
199
207
|
}, yup.AnyObject, Omit<Omit<{
|
|
200
208
|
sourceOfTruth: undefined;
|
|
201
|
-
}, string>, "
|
|
209
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
202
210
|
rbac: {
|
|
203
211
|
permissions: undefined;
|
|
204
212
|
defaultPermissions: {
|
|
@@ -214,6 +222,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
214
222
|
users: {
|
|
215
223
|
allowClientUserDeletion: undefined;
|
|
216
224
|
};
|
|
225
|
+
onboarding: {
|
|
226
|
+
requireEmailVerification: undefined;
|
|
227
|
+
};
|
|
217
228
|
apiKeys: {
|
|
218
229
|
enabled: {
|
|
219
230
|
team: undefined;
|
|
@@ -248,11 +259,12 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
248
259
|
templates: undefined;
|
|
249
260
|
};
|
|
250
261
|
payments: {
|
|
262
|
+
blockNewPurchases: undefined;
|
|
251
263
|
autoPay: {
|
|
252
264
|
interval: undefined;
|
|
253
265
|
};
|
|
254
266
|
testMode: undefined;
|
|
255
|
-
|
|
267
|
+
productLines: undefined;
|
|
256
268
|
products: undefined;
|
|
257
269
|
items: undefined;
|
|
258
270
|
};
|
|
@@ -270,47 +282,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
270
282
|
type: "postgres";
|
|
271
283
|
connectionString: string;
|
|
272
284
|
};
|
|
273
|
-
}, string>, "
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
};
|
|
277
|
-
teams: {
|
|
278
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
279
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
280
|
-
};
|
|
281
|
-
auth: {
|
|
282
|
-
allowSignUp?: boolean | undefined;
|
|
283
|
-
password: {
|
|
284
|
-
allowSignIn?: boolean | undefined;
|
|
285
|
-
};
|
|
286
|
-
otp: {
|
|
287
|
-
allowSignIn?: boolean | undefined;
|
|
288
|
-
};
|
|
289
|
-
passkey: {
|
|
290
|
-
allowSignIn?: boolean | undefined;
|
|
291
|
-
};
|
|
292
|
-
oauth: {
|
|
293
|
-
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
294
|
-
providers: Record<string, {
|
|
295
|
-
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
296
|
-
allowSignIn?: boolean | undefined;
|
|
297
|
-
allowConnectedAccounts?: boolean | undefined;
|
|
298
|
-
}>;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
rbac: {
|
|
302
|
-
permissions: Record<string, {
|
|
303
|
-
description?: string | undefined;
|
|
304
|
-
scope?: "team" | "project" | undefined;
|
|
305
|
-
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
306
|
-
} | undefined>;
|
|
307
|
-
defaultPermissions: {
|
|
308
|
-
teamCreator: Record<string, true | undefined>;
|
|
309
|
-
teamMember: Record<string, true | undefined>;
|
|
310
|
-
signUp: Record<string, true | undefined>;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
payments: {
|
|
285
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
286
|
+
payments?: {
|
|
287
|
+
blockNewPurchases?: boolean | undefined;
|
|
314
288
|
autoPay?: {
|
|
315
289
|
interval?: DayInterval | undefined;
|
|
316
290
|
} | undefined;
|
|
@@ -319,14 +293,15 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
319
293
|
displayName?: string | undefined;
|
|
320
294
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
321
295
|
}>;
|
|
322
|
-
|
|
296
|
+
productLines: Record<string, {
|
|
323
297
|
displayName?: string | undefined;
|
|
298
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
324
299
|
}>;
|
|
325
300
|
products: Record<string, {
|
|
326
301
|
displayName?: string | undefined;
|
|
327
302
|
serverOnly?: boolean | undefined;
|
|
328
303
|
freeTrial?: DayInterval | undefined;
|
|
329
|
-
|
|
304
|
+
productLineId?: string | undefined;
|
|
330
305
|
isAddOnTo?: false | Record<string, true> | undefined;
|
|
331
306
|
stackable?: boolean | undefined;
|
|
332
307
|
customerType: "team" | "user" | "custom";
|
|
@@ -348,7 +323,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
348
323
|
quantity: number;
|
|
349
324
|
}>;
|
|
350
325
|
}>;
|
|
351
|
-
};
|
|
326
|
+
} | undefined;
|
|
352
327
|
emails: {
|
|
353
328
|
selectedThemeId?: string | undefined;
|
|
354
329
|
themes: Record<string, {
|
|
@@ -361,6 +336,48 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
361
336
|
tsxSource: string;
|
|
362
337
|
}>;
|
|
363
338
|
};
|
|
339
|
+
teams: {
|
|
340
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
341
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
342
|
+
};
|
|
343
|
+
domains: {
|
|
344
|
+
allowLocalhost?: boolean | undefined;
|
|
345
|
+
};
|
|
346
|
+
auth: {
|
|
347
|
+
allowSignUp?: boolean | undefined;
|
|
348
|
+
password: {
|
|
349
|
+
allowSignIn?: boolean | undefined;
|
|
350
|
+
};
|
|
351
|
+
otp: {
|
|
352
|
+
allowSignIn?: boolean | undefined;
|
|
353
|
+
};
|
|
354
|
+
passkey: {
|
|
355
|
+
allowSignIn?: boolean | undefined;
|
|
356
|
+
};
|
|
357
|
+
oauth: {
|
|
358
|
+
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
359
|
+
providers: Record<string, {
|
|
360
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
361
|
+
allowSignIn?: boolean | undefined;
|
|
362
|
+
allowConnectedAccounts?: boolean | undefined;
|
|
363
|
+
}>;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
onboarding: {
|
|
367
|
+
requireEmailVerification?: boolean | undefined;
|
|
368
|
+
};
|
|
369
|
+
rbac: {
|
|
370
|
+
permissions: Record<string, {
|
|
371
|
+
description?: string | undefined;
|
|
372
|
+
scope?: "team" | "project" | undefined;
|
|
373
|
+
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
374
|
+
} | undefined>;
|
|
375
|
+
defaultPermissions: {
|
|
376
|
+
teamCreator: Record<string, true | undefined>;
|
|
377
|
+
teamMember: Record<string, true | undefined>;
|
|
378
|
+
signUp: Record<string, true | undefined>;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
364
381
|
apiKeys: {
|
|
365
382
|
enabled: {
|
|
366
383
|
team?: boolean | undefined;
|
|
@@ -368,7 +385,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
368
385
|
};
|
|
369
386
|
};
|
|
370
387
|
apps: {
|
|
371
|
-
installed: Record<"teams" | "
|
|
388
|
+
installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
|
|
372
389
|
enabled?: boolean | undefined;
|
|
373
390
|
}>;
|
|
374
391
|
};
|
|
@@ -380,7 +397,30 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
380
397
|
displayName?: string | undefined;
|
|
381
398
|
}>;
|
|
382
399
|
};
|
|
383
|
-
}>, "
|
|
400
|
+
}>, "emails" | "domains" | "auth"> & {
|
|
401
|
+
emails: Omit<{
|
|
402
|
+
selectedThemeId?: string | undefined;
|
|
403
|
+
themes: Record<string, {
|
|
404
|
+
displayName: string;
|
|
405
|
+
tsxSource: string;
|
|
406
|
+
}>;
|
|
407
|
+
templates: Record<string, {
|
|
408
|
+
themeId?: string | false | undefined;
|
|
409
|
+
displayName: string;
|
|
410
|
+
tsxSource: string;
|
|
411
|
+
}>;
|
|
412
|
+
}, "server"> & {
|
|
413
|
+
server: {
|
|
414
|
+
host?: string | undefined;
|
|
415
|
+
password?: string | undefined;
|
|
416
|
+
port?: number | undefined;
|
|
417
|
+
username?: string | undefined;
|
|
418
|
+
isShared?: boolean | undefined;
|
|
419
|
+
provider?: "resend" | "smtp" | undefined;
|
|
420
|
+
senderName?: string | undefined;
|
|
421
|
+
senderEmail?: string | undefined;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
384
424
|
domains: Omit<{
|
|
385
425
|
allowLocalhost?: boolean | undefined;
|
|
386
426
|
}, "trustedDomains"> & {
|
|
@@ -429,32 +469,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
429
469
|
}>;
|
|
430
470
|
};
|
|
431
471
|
};
|
|
432
|
-
emails: Omit<{
|
|
433
|
-
selectedThemeId?: string | undefined;
|
|
434
|
-
themes: Record<string, {
|
|
435
|
-
displayName: string;
|
|
436
|
-
tsxSource: string;
|
|
437
|
-
}>;
|
|
438
|
-
templates: Record<string, {
|
|
439
|
-
themeId?: string | false | undefined;
|
|
440
|
-
displayName: string;
|
|
441
|
-
tsxSource: string;
|
|
442
|
-
}>;
|
|
443
|
-
}, "server"> & {
|
|
444
|
-
server: {
|
|
445
|
-
host?: string | undefined;
|
|
446
|
-
port?: number | undefined;
|
|
447
|
-
username?: string | undefined;
|
|
448
|
-
password?: string | undefined;
|
|
449
|
-
isShared?: boolean | undefined;
|
|
450
|
-
provider?: "resend" | "smtp" | undefined;
|
|
451
|
-
senderName?: string | undefined;
|
|
452
|
-
senderEmail?: string | undefined;
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
472
|
}, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
|
|
456
473
|
sourceOfTruth: undefined;
|
|
457
|
-
}, string>, "
|
|
474
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
458
475
|
rbac: {
|
|
459
476
|
permissions: undefined;
|
|
460
477
|
defaultPermissions: {
|
|
@@ -470,6 +487,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
470
487
|
users: {
|
|
471
488
|
allowClientUserDeletion: undefined;
|
|
472
489
|
};
|
|
490
|
+
onboarding: {
|
|
491
|
+
requireEmailVerification: undefined;
|
|
492
|
+
};
|
|
473
493
|
apiKeys: {
|
|
474
494
|
enabled: {
|
|
475
495
|
team: undefined;
|
|
@@ -504,21 +524,22 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
504
524
|
templates: undefined;
|
|
505
525
|
};
|
|
506
526
|
payments: {
|
|
527
|
+
blockNewPurchases: undefined;
|
|
507
528
|
autoPay: {
|
|
508
529
|
interval: undefined;
|
|
509
530
|
};
|
|
510
531
|
testMode: undefined;
|
|
511
|
-
|
|
532
|
+
productLines: undefined;
|
|
512
533
|
products: undefined;
|
|
513
534
|
items: undefined;
|
|
514
535
|
};
|
|
515
536
|
dataVault: {
|
|
516
537
|
stores: undefined;
|
|
517
538
|
};
|
|
518
|
-
}>, "
|
|
539
|
+
}>, "emails" | "domains" | "auth"> & {
|
|
519
540
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
520
541
|
sourceOfTruth: undefined;
|
|
521
|
-
}, string>, "
|
|
542
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
522
543
|
rbac: {
|
|
523
544
|
permissions: undefined;
|
|
524
545
|
defaultPermissions: {
|
|
@@ -534,6 +555,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
534
555
|
users: {
|
|
535
556
|
allowClientUserDeletion: undefined;
|
|
536
557
|
};
|
|
558
|
+
onboarding: {
|
|
559
|
+
requireEmailVerification: undefined;
|
|
560
|
+
};
|
|
537
561
|
apiKeys: {
|
|
538
562
|
enabled: {
|
|
539
563
|
team: undefined;
|
|
@@ -568,11 +592,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
568
592
|
templates: undefined;
|
|
569
593
|
};
|
|
570
594
|
payments: {
|
|
595
|
+
blockNewPurchases: undefined;
|
|
571
596
|
autoPay: {
|
|
572
597
|
interval: undefined;
|
|
573
598
|
};
|
|
574
599
|
testMode: undefined;
|
|
575
|
-
|
|
600
|
+
productLines: undefined;
|
|
576
601
|
products: undefined;
|
|
577
602
|
items: undefined;
|
|
578
603
|
};
|
|
@@ -582,7 +607,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
582
607
|
}>, "oauth"> & {
|
|
583
608
|
oauth: Omit<NonNullable<Omit<Omit<{
|
|
584
609
|
sourceOfTruth: undefined;
|
|
585
|
-
}, string>, "
|
|
610
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
586
611
|
rbac: {
|
|
587
612
|
permissions: undefined;
|
|
588
613
|
defaultPermissions: {
|
|
@@ -598,6 +623,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
598
623
|
users: {
|
|
599
624
|
allowClientUserDeletion: undefined;
|
|
600
625
|
};
|
|
626
|
+
onboarding: {
|
|
627
|
+
requireEmailVerification: undefined;
|
|
628
|
+
};
|
|
601
629
|
apiKeys: {
|
|
602
630
|
enabled: {
|
|
603
631
|
team: undefined;
|
|
@@ -632,11 +660,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
632
660
|
templates: undefined;
|
|
633
661
|
};
|
|
634
662
|
payments: {
|
|
663
|
+
blockNewPurchases: undefined;
|
|
635
664
|
autoPay: {
|
|
636
665
|
interval: undefined;
|
|
637
666
|
};
|
|
638
667
|
testMode: undefined;
|
|
639
|
-
|
|
668
|
+
productLines: undefined;
|
|
640
669
|
products: undefined;
|
|
641
670
|
items: undefined;
|
|
642
671
|
};
|
|
@@ -649,7 +678,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
649
678
|
};
|
|
650
679
|
emails: Omit<NonNullable<Omit<Omit<{
|
|
651
680
|
sourceOfTruth: undefined;
|
|
652
|
-
}, string>, "
|
|
681
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
653
682
|
rbac: {
|
|
654
683
|
permissions: undefined;
|
|
655
684
|
defaultPermissions: {
|
|
@@ -665,6 +694,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
665
694
|
users: {
|
|
666
695
|
allowClientUserDeletion: undefined;
|
|
667
696
|
};
|
|
697
|
+
onboarding: {
|
|
698
|
+
requireEmailVerification: undefined;
|
|
699
|
+
};
|
|
668
700
|
apiKeys: {
|
|
669
701
|
enabled: {
|
|
670
702
|
team: undefined;
|
|
@@ -699,11 +731,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
699
731
|
templates: undefined;
|
|
700
732
|
};
|
|
701
733
|
payments: {
|
|
734
|
+
blockNewPurchases: undefined;
|
|
702
735
|
autoPay: {
|
|
703
736
|
interval: undefined;
|
|
704
737
|
};
|
|
705
738
|
testMode: undefined;
|
|
706
|
-
|
|
739
|
+
productLines: undefined;
|
|
707
740
|
products: undefined;
|
|
708
741
|
items: undefined;
|
|
709
742
|
};
|
|
@@ -724,7 +757,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
724
757
|
};
|
|
725
758
|
domains: Omit<NonNullable<Omit<Omit<{
|
|
726
759
|
sourceOfTruth: undefined;
|
|
727
|
-
}, string>, "
|
|
760
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
728
761
|
rbac: {
|
|
729
762
|
permissions: undefined;
|
|
730
763
|
defaultPermissions: {
|
|
@@ -740,6 +773,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
740
773
|
users: {
|
|
741
774
|
allowClientUserDeletion: undefined;
|
|
742
775
|
};
|
|
776
|
+
onboarding: {
|
|
777
|
+
requireEmailVerification: undefined;
|
|
778
|
+
};
|
|
743
779
|
apiKeys: {
|
|
744
780
|
enabled: {
|
|
745
781
|
team: undefined;
|
|
@@ -774,11 +810,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
774
810
|
templates: undefined;
|
|
775
811
|
};
|
|
776
812
|
payments: {
|
|
813
|
+
blockNewPurchases: undefined;
|
|
777
814
|
autoPay: {
|
|
778
815
|
interval: undefined;
|
|
779
816
|
};
|
|
780
817
|
testMode: undefined;
|
|
781
|
-
|
|
818
|
+
productLines: undefined;
|
|
782
819
|
products: undefined;
|
|
783
820
|
items: undefined;
|
|
784
821
|
};
|
|
@@ -799,47 +836,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
799
836
|
type: "postgres";
|
|
800
837
|
connectionString: string;
|
|
801
838
|
};
|
|
802
|
-
}, string>, "
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
};
|
|
806
|
-
teams: {
|
|
807
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
808
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
809
|
-
};
|
|
810
|
-
auth: {
|
|
811
|
-
allowSignUp?: boolean | undefined;
|
|
812
|
-
password: {
|
|
813
|
-
allowSignIn?: boolean | undefined;
|
|
814
|
-
};
|
|
815
|
-
otp: {
|
|
816
|
-
allowSignIn?: boolean | undefined;
|
|
817
|
-
};
|
|
818
|
-
passkey: {
|
|
819
|
-
allowSignIn?: boolean | undefined;
|
|
820
|
-
};
|
|
821
|
-
oauth: {
|
|
822
|
-
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
823
|
-
providers: Record<string, {
|
|
824
|
-
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
825
|
-
allowSignIn?: boolean | undefined;
|
|
826
|
-
allowConnectedAccounts?: boolean | undefined;
|
|
827
|
-
}>;
|
|
828
|
-
};
|
|
829
|
-
};
|
|
830
|
-
rbac: {
|
|
831
|
-
permissions: Record<string, {
|
|
832
|
-
description?: string | undefined;
|
|
833
|
-
scope?: "team" | "project" | undefined;
|
|
834
|
-
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
835
|
-
} | undefined>;
|
|
836
|
-
defaultPermissions: {
|
|
837
|
-
teamCreator: Record<string, true | undefined>;
|
|
838
|
-
teamMember: Record<string, true | undefined>;
|
|
839
|
-
signUp: Record<string, true | undefined>;
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
payments: {
|
|
839
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
840
|
+
payments?: {
|
|
841
|
+
blockNewPurchases?: boolean | undefined;
|
|
843
842
|
autoPay?: {
|
|
844
843
|
interval?: DayInterval | undefined;
|
|
845
844
|
} | undefined;
|
|
@@ -848,14 +847,15 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
848
847
|
displayName?: string | undefined;
|
|
849
848
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
850
849
|
}>;
|
|
851
|
-
|
|
850
|
+
productLines: Record<string, {
|
|
852
851
|
displayName?: string | undefined;
|
|
852
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
853
853
|
}>;
|
|
854
854
|
products: Record<string, {
|
|
855
855
|
displayName?: string | undefined;
|
|
856
856
|
serverOnly?: boolean | undefined;
|
|
857
857
|
freeTrial?: DayInterval | undefined;
|
|
858
|
-
|
|
858
|
+
productLineId?: string | undefined;
|
|
859
859
|
isAddOnTo?: false | Record<string, true> | undefined;
|
|
860
860
|
stackable?: boolean | undefined;
|
|
861
861
|
customerType: "team" | "user" | "custom";
|
|
@@ -877,7 +877,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
877
877
|
quantity: number;
|
|
878
878
|
}>;
|
|
879
879
|
}>;
|
|
880
|
-
};
|
|
880
|
+
} | undefined;
|
|
881
881
|
emails: {
|
|
882
882
|
selectedThemeId?: string | undefined;
|
|
883
883
|
themes: Record<string, {
|
|
@@ -890,6 +890,48 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
890
890
|
tsxSource: string;
|
|
891
891
|
}>;
|
|
892
892
|
};
|
|
893
|
+
teams: {
|
|
894
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
895
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
896
|
+
};
|
|
897
|
+
domains: {
|
|
898
|
+
allowLocalhost?: boolean | undefined;
|
|
899
|
+
};
|
|
900
|
+
auth: {
|
|
901
|
+
allowSignUp?: boolean | undefined;
|
|
902
|
+
password: {
|
|
903
|
+
allowSignIn?: boolean | undefined;
|
|
904
|
+
};
|
|
905
|
+
otp: {
|
|
906
|
+
allowSignIn?: boolean | undefined;
|
|
907
|
+
};
|
|
908
|
+
passkey: {
|
|
909
|
+
allowSignIn?: boolean | undefined;
|
|
910
|
+
};
|
|
911
|
+
oauth: {
|
|
912
|
+
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
913
|
+
providers: Record<string, {
|
|
914
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
915
|
+
allowSignIn?: boolean | undefined;
|
|
916
|
+
allowConnectedAccounts?: boolean | undefined;
|
|
917
|
+
}>;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
onboarding: {
|
|
921
|
+
requireEmailVerification?: boolean | undefined;
|
|
922
|
+
};
|
|
923
|
+
rbac: {
|
|
924
|
+
permissions: Record<string, {
|
|
925
|
+
description?: string | undefined;
|
|
926
|
+
scope?: "team" | "project" | undefined;
|
|
927
|
+
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
928
|
+
} | undefined>;
|
|
929
|
+
defaultPermissions: {
|
|
930
|
+
teamCreator: Record<string, true | undefined>;
|
|
931
|
+
teamMember: Record<string, true | undefined>;
|
|
932
|
+
signUp: Record<string, true | undefined>;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
893
935
|
apiKeys: {
|
|
894
936
|
enabled: {
|
|
895
937
|
team?: boolean | undefined;
|
|
@@ -897,7 +939,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
897
939
|
};
|
|
898
940
|
};
|
|
899
941
|
apps: {
|
|
900
|
-
installed: Record<"teams" | "
|
|
942
|
+
installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
|
|
901
943
|
enabled?: boolean | undefined;
|
|
902
944
|
}>;
|
|
903
945
|
};
|
|
@@ -909,7 +951,30 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
909
951
|
displayName?: string | undefined;
|
|
910
952
|
}>;
|
|
911
953
|
};
|
|
912
|
-
}>, "
|
|
954
|
+
}>, "emails" | "domains" | "auth"> & {
|
|
955
|
+
emails: Omit<{
|
|
956
|
+
selectedThemeId?: string | undefined;
|
|
957
|
+
themes: Record<string, {
|
|
958
|
+
displayName: string;
|
|
959
|
+
tsxSource: string;
|
|
960
|
+
}>;
|
|
961
|
+
templates: Record<string, {
|
|
962
|
+
themeId?: string | false | undefined;
|
|
963
|
+
displayName: string;
|
|
964
|
+
tsxSource: string;
|
|
965
|
+
}>;
|
|
966
|
+
}, "server"> & {
|
|
967
|
+
server: {
|
|
968
|
+
host?: string | undefined;
|
|
969
|
+
password?: string | undefined;
|
|
970
|
+
port?: number | undefined;
|
|
971
|
+
username?: string | undefined;
|
|
972
|
+
isShared?: boolean | undefined;
|
|
973
|
+
provider?: "resend" | "smtp" | undefined;
|
|
974
|
+
senderName?: string | undefined;
|
|
975
|
+
senderEmail?: string | undefined;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
913
978
|
domains: Omit<{
|
|
914
979
|
allowLocalhost?: boolean | undefined;
|
|
915
980
|
}, "trustedDomains"> & {
|
|
@@ -958,32 +1023,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
958
1023
|
}>;
|
|
959
1024
|
};
|
|
960
1025
|
};
|
|
961
|
-
emails: Omit<{
|
|
962
|
-
selectedThemeId?: string | undefined;
|
|
963
|
-
themes: Record<string, {
|
|
964
|
-
displayName: string;
|
|
965
|
-
tsxSource: string;
|
|
966
|
-
}>;
|
|
967
|
-
templates: Record<string, {
|
|
968
|
-
themeId?: string | false | undefined;
|
|
969
|
-
displayName: string;
|
|
970
|
-
tsxSource: string;
|
|
971
|
-
}>;
|
|
972
|
-
}, "server"> & {
|
|
973
|
-
server: {
|
|
974
|
-
host?: string | undefined;
|
|
975
|
-
port?: number | undefined;
|
|
976
|
-
username?: string | undefined;
|
|
977
|
-
password?: string | undefined;
|
|
978
|
-
isShared?: boolean | undefined;
|
|
979
|
-
provider?: "resend" | "smtp" | undefined;
|
|
980
|
-
senderName?: string | undefined;
|
|
981
|
-
senderEmail?: string | undefined;
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
1026
|
}>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
|
|
985
1027
|
sourceOfTruth: undefined;
|
|
986
|
-
}, string>, "
|
|
1028
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
987
1029
|
rbac: {
|
|
988
1030
|
permissions: undefined;
|
|
989
1031
|
defaultPermissions: {
|
|
@@ -999,6 +1041,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
999
1041
|
users: {
|
|
1000
1042
|
allowClientUserDeletion: undefined;
|
|
1001
1043
|
};
|
|
1044
|
+
onboarding: {
|
|
1045
|
+
requireEmailVerification: undefined;
|
|
1046
|
+
};
|
|
1002
1047
|
apiKeys: {
|
|
1003
1048
|
enabled: {
|
|
1004
1049
|
team: undefined;
|
|
@@ -1033,21 +1078,22 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1033
1078
|
templates: undefined;
|
|
1034
1079
|
};
|
|
1035
1080
|
payments: {
|
|
1081
|
+
blockNewPurchases: undefined;
|
|
1036
1082
|
autoPay: {
|
|
1037
1083
|
interval: undefined;
|
|
1038
1084
|
};
|
|
1039
1085
|
testMode: undefined;
|
|
1040
|
-
|
|
1086
|
+
productLines: undefined;
|
|
1041
1087
|
products: undefined;
|
|
1042
1088
|
items: undefined;
|
|
1043
1089
|
};
|
|
1044
1090
|
dataVault: {
|
|
1045
1091
|
stores: undefined;
|
|
1046
1092
|
};
|
|
1047
|
-
}>, "
|
|
1093
|
+
}>, "emails" | "domains" | "auth"> & {
|
|
1048
1094
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
1049
1095
|
sourceOfTruth: undefined;
|
|
1050
|
-
}, string>, "
|
|
1096
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1051
1097
|
rbac: {
|
|
1052
1098
|
permissions: undefined;
|
|
1053
1099
|
defaultPermissions: {
|
|
@@ -1063,6 +1109,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1063
1109
|
users: {
|
|
1064
1110
|
allowClientUserDeletion: undefined;
|
|
1065
1111
|
};
|
|
1112
|
+
onboarding: {
|
|
1113
|
+
requireEmailVerification: undefined;
|
|
1114
|
+
};
|
|
1066
1115
|
apiKeys: {
|
|
1067
1116
|
enabled: {
|
|
1068
1117
|
team: undefined;
|
|
@@ -1097,11 +1146,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1097
1146
|
templates: undefined;
|
|
1098
1147
|
};
|
|
1099
1148
|
payments: {
|
|
1149
|
+
blockNewPurchases: undefined;
|
|
1100
1150
|
autoPay: {
|
|
1101
1151
|
interval: undefined;
|
|
1102
1152
|
};
|
|
1103
1153
|
testMode: undefined;
|
|
1104
|
-
|
|
1154
|
+
productLines: undefined;
|
|
1105
1155
|
products: undefined;
|
|
1106
1156
|
items: undefined;
|
|
1107
1157
|
};
|
|
@@ -1111,7 +1161,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1111
1161
|
}>, "oauth"> & {
|
|
1112
1162
|
oauth: Omit<NonNullable<Omit<Omit<{
|
|
1113
1163
|
sourceOfTruth: undefined;
|
|
1114
|
-
}, string>, "
|
|
1164
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1115
1165
|
rbac: {
|
|
1116
1166
|
permissions: undefined;
|
|
1117
1167
|
defaultPermissions: {
|
|
@@ -1127,6 +1177,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1127
1177
|
users: {
|
|
1128
1178
|
allowClientUserDeletion: undefined;
|
|
1129
1179
|
};
|
|
1180
|
+
onboarding: {
|
|
1181
|
+
requireEmailVerification: undefined;
|
|
1182
|
+
};
|
|
1130
1183
|
apiKeys: {
|
|
1131
1184
|
enabled: {
|
|
1132
1185
|
team: undefined;
|
|
@@ -1161,11 +1214,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1161
1214
|
templates: undefined;
|
|
1162
1215
|
};
|
|
1163
1216
|
payments: {
|
|
1217
|
+
blockNewPurchases: undefined;
|
|
1164
1218
|
autoPay: {
|
|
1165
1219
|
interval: undefined;
|
|
1166
1220
|
};
|
|
1167
1221
|
testMode: undefined;
|
|
1168
|
-
|
|
1222
|
+
productLines: undefined;
|
|
1169
1223
|
products: undefined;
|
|
1170
1224
|
items: undefined;
|
|
1171
1225
|
};
|
|
@@ -1178,7 +1232,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1178
1232
|
};
|
|
1179
1233
|
emails: Omit<NonNullable<Omit<Omit<{
|
|
1180
1234
|
sourceOfTruth: undefined;
|
|
1181
|
-
}, string>, "
|
|
1235
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1182
1236
|
rbac: {
|
|
1183
1237
|
permissions: undefined;
|
|
1184
1238
|
defaultPermissions: {
|
|
@@ -1194,6 +1248,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1194
1248
|
users: {
|
|
1195
1249
|
allowClientUserDeletion: undefined;
|
|
1196
1250
|
};
|
|
1251
|
+
onboarding: {
|
|
1252
|
+
requireEmailVerification: undefined;
|
|
1253
|
+
};
|
|
1197
1254
|
apiKeys: {
|
|
1198
1255
|
enabled: {
|
|
1199
1256
|
team: undefined;
|
|
@@ -1228,11 +1285,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1228
1285
|
templates: undefined;
|
|
1229
1286
|
};
|
|
1230
1287
|
payments: {
|
|
1288
|
+
blockNewPurchases: undefined;
|
|
1231
1289
|
autoPay: {
|
|
1232
1290
|
interval: undefined;
|
|
1233
1291
|
};
|
|
1234
1292
|
testMode: undefined;
|
|
1235
|
-
|
|
1293
|
+
productLines: undefined;
|
|
1236
1294
|
products: undefined;
|
|
1237
1295
|
items: undefined;
|
|
1238
1296
|
};
|
|
@@ -1253,7 +1311,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1253
1311
|
};
|
|
1254
1312
|
domains: Omit<NonNullable<Omit<Omit<{
|
|
1255
1313
|
sourceOfTruth: undefined;
|
|
1256
|
-
}, string>, "
|
|
1314
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1257
1315
|
rbac: {
|
|
1258
1316
|
permissions: undefined;
|
|
1259
1317
|
defaultPermissions: {
|
|
@@ -1269,6 +1327,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1269
1327
|
users: {
|
|
1270
1328
|
allowClientUserDeletion: undefined;
|
|
1271
1329
|
};
|
|
1330
|
+
onboarding: {
|
|
1331
|
+
requireEmailVerification: undefined;
|
|
1332
|
+
};
|
|
1272
1333
|
apiKeys: {
|
|
1273
1334
|
enabled: {
|
|
1274
1335
|
team: undefined;
|
|
@@ -1303,11 +1364,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1303
1364
|
templates: undefined;
|
|
1304
1365
|
};
|
|
1305
1366
|
payments: {
|
|
1367
|
+
blockNewPurchases: undefined;
|
|
1306
1368
|
autoPay: {
|
|
1307
1369
|
interval: undefined;
|
|
1308
1370
|
};
|
|
1309
1371
|
testMode: undefined;
|
|
1310
|
-
|
|
1372
|
+
productLines: undefined;
|
|
1311
1373
|
products: undefined;
|
|
1312
1374
|
items: undefined;
|
|
1313
1375
|
};
|
|
@@ -1359,6 +1421,9 @@ declare const organizationConfigDefaults: {
|
|
|
1359
1421
|
readonly users: {
|
|
1360
1422
|
readonly allowClientUserDeletion: false;
|
|
1361
1423
|
};
|
|
1424
|
+
readonly onboarding: {
|
|
1425
|
+
readonly requireEmailVerification: false;
|
|
1426
|
+
};
|
|
1362
1427
|
readonly domains: {
|
|
1363
1428
|
readonly allowLocalhost: false;
|
|
1364
1429
|
readonly trustedDomains: (key: string) => {
|
|
@@ -1449,14 +1514,16 @@ declare const organizationConfigDefaults: {
|
|
|
1449
1514
|
};
|
|
1450
1515
|
};
|
|
1451
1516
|
readonly payments: {
|
|
1517
|
+
readonly blockNewPurchases: false;
|
|
1452
1518
|
readonly testMode: true;
|
|
1453
1519
|
readonly autoPay: undefined;
|
|
1454
|
-
readonly
|
|
1520
|
+
readonly productLines: (key: string) => {
|
|
1455
1521
|
displayName: undefined;
|
|
1522
|
+
customerType: undefined;
|
|
1456
1523
|
};
|
|
1457
1524
|
readonly products: (key: string) => {
|
|
1458
1525
|
readonly displayName: string;
|
|
1459
|
-
readonly
|
|
1526
|
+
readonly productLineId: undefined;
|
|
1460
1527
|
readonly customerType: "user";
|
|
1461
1528
|
readonly freeTrial: undefined;
|
|
1462
1529
|
readonly serverOnly: false;
|
|
@@ -1581,9 +1648,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1581
1648
|
};
|
|
1582
1649
|
server: {
|
|
1583
1650
|
host: string | undefined;
|
|
1651
|
+
password: string | undefined;
|
|
1584
1652
|
port: number | undefined;
|
|
1585
1653
|
username: string | undefined;
|
|
1586
|
-
password: string | undefined;
|
|
1587
1654
|
isShared: boolean;
|
|
1588
1655
|
provider: "resend" | "smtp";
|
|
1589
1656
|
senderName: string | undefined;
|
|
@@ -1608,7 +1675,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1608
1675
|
displayName: string;
|
|
1609
1676
|
serverOnly: boolean;
|
|
1610
1677
|
freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1611
|
-
|
|
1678
|
+
productLineId: string | undefined;
|
|
1612
1679
|
customerType: "team" | "user" | "custom";
|
|
1613
1680
|
stackable: boolean | undefined;
|
|
1614
1681
|
includedItems: {
|
|
@@ -1625,15 +1692,17 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1625
1692
|
customerType: "team" | "user" | "custom";
|
|
1626
1693
|
};
|
|
1627
1694
|
};
|
|
1628
|
-
|
|
1629
|
-
interval?: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1630
|
-
} | undefined;
|
|
1631
|
-
testMode: boolean;
|
|
1632
|
-
catalogs: {
|
|
1695
|
+
productLines: {
|
|
1633
1696
|
[x: string]: {
|
|
1634
1697
|
displayName: string | undefined;
|
|
1698
|
+
customerType: "team" | "user" | "custom" | undefined;
|
|
1635
1699
|
};
|
|
1636
1700
|
};
|
|
1701
|
+
blockNewPurchases: boolean;
|
|
1702
|
+
autoPay: {
|
|
1703
|
+
interval?: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1704
|
+
} | undefined;
|
|
1705
|
+
testMode: boolean;
|
|
1637
1706
|
};
|
|
1638
1707
|
apps: {
|
|
1639
1708
|
installed: Record<string, {
|
|
@@ -1661,6 +1730,10 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1661
1730
|
readonly connectionStrings?: undefined;
|
|
1662
1731
|
readonly connectionString?: undefined;
|
|
1663
1732
|
});
|
|
1733
|
+
teams: {
|
|
1734
|
+
createPersonalTeamOnSignUp: boolean;
|
|
1735
|
+
allowClientTeamCreation: boolean;
|
|
1736
|
+
};
|
|
1664
1737
|
domains: {
|
|
1665
1738
|
allowLocalhost: boolean;
|
|
1666
1739
|
trustedDomains: {
|
|
@@ -1670,10 +1743,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1670
1743
|
};
|
|
1671
1744
|
};
|
|
1672
1745
|
};
|
|
1673
|
-
teams: {
|
|
1674
|
-
createPersonalTeamOnSignUp: boolean;
|
|
1675
|
-
allowClientTeamCreation: boolean;
|
|
1676
|
-
};
|
|
1677
1746
|
auth: {
|
|
1678
1747
|
password: {
|
|
1679
1748
|
allowSignIn: boolean;
|
|
@@ -1701,6 +1770,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1701
1770
|
};
|
|
1702
1771
|
};
|
|
1703
1772
|
};
|
|
1773
|
+
onboarding: {
|
|
1774
|
+
requireEmailVerification: boolean;
|
|
1775
|
+
};
|
|
1704
1776
|
rbac: {
|
|
1705
1777
|
permissions: {
|
|
1706
1778
|
[x: string]: {
|