@stackframe/stack-shared 2.8.47 → 2.8.49

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/apps/apps-config.d.mts +8 -8
  3. package/dist/apps/apps-config.d.ts +8 -8
  4. package/dist/apps/apps-config.js +8 -8
  5. package/dist/apps/apps-config.js.map +1 -1
  6. package/dist/config/schema-fuzzer.test.js +0 -9
  7. package/dist/config/schema-fuzzer.test.js.map +1 -1
  8. package/dist/config/schema.d.mts +193 -307
  9. package/dist/config/schema.d.ts +193 -307
  10. package/dist/config/schema.js +11 -19
  11. package/dist/config/schema.js.map +1 -1
  12. package/dist/esm/apps/apps-config.js +8 -8
  13. package/dist/esm/apps/apps-config.js.map +1 -1
  14. package/dist/esm/config/schema-fuzzer.test.js +0 -9
  15. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  16. package/dist/esm/config/schema.js +11 -19
  17. package/dist/esm/config/schema.js.map +1 -1
  18. package/dist/esm/interface/admin-interface.js +10 -0
  19. package/dist/esm/interface/admin-interface.js.map +1 -1
  20. package/dist/esm/interface/client-interface.js +11 -7
  21. package/dist/esm/interface/client-interface.js.map +1 -1
  22. package/dist/esm/interface/crud/projects.js +2 -1
  23. package/dist/esm/interface/crud/projects.js.map +1 -1
  24. package/dist/esm/known-errors.js +1 -21
  25. package/dist/esm/known-errors.js.map +1 -1
  26. package/dist/esm/schema-fields.js +17 -1
  27. package/dist/esm/schema-fields.js.map +1 -1
  28. package/dist/esm/utils/caches.js +17 -9
  29. package/dist/esm/utils/caches.js.map +1 -1
  30. package/dist/esm/utils/ips.js.map +1 -1
  31. package/dist/esm/utils/urls.js.map +1 -1
  32. package/dist/interface/admin-interface.d.mts +6 -0
  33. package/dist/interface/admin-interface.d.ts +6 -0
  34. package/dist/interface/admin-interface.js +10 -0
  35. package/dist/interface/admin-interface.js.map +1 -1
  36. package/dist/interface/client-interface.d.mts +3 -2
  37. package/dist/interface/client-interface.d.ts +3 -2
  38. package/dist/interface/client-interface.js +11 -7
  39. package/dist/interface/client-interface.js.map +1 -1
  40. package/dist/interface/crud/products.d.mts +9 -0
  41. package/dist/interface/crud/products.d.ts +9 -0
  42. package/dist/interface/crud/projects.d.mts +10 -0
  43. package/dist/interface/crud/projects.d.ts +10 -0
  44. package/dist/interface/crud/projects.js +2 -1
  45. package/dist/interface/crud/projects.js.map +1 -1
  46. package/dist/known-errors.d.mts +0 -6
  47. package/dist/known-errors.d.ts +0 -6
  48. package/dist/known-errors.js +1 -21
  49. package/dist/known-errors.js.map +1 -1
  50. package/dist/schema-fields.d.mts +53 -1
  51. package/dist/schema-fields.d.ts +53 -1
  52. package/dist/schema-fields.js +21 -1
  53. package/dist/schema-fields.js.map +1 -1
  54. package/dist/utils/caches.d.mts +7 -7
  55. package/dist/utils/caches.d.ts +7 -7
  56. package/dist/utils/caches.js +17 -9
  57. package/dist/utils/caches.js.map +1 -1
  58. package/dist/utils/ips.d.mts +1 -1
  59. package/dist/utils/ips.d.ts +1 -1
  60. package/dist/utils/ips.js.map +1 -1
  61. package/dist/utils/urls.js.map +1 -1
  62. package/package.json +1 -1
@@ -39,16 +39,13 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
39
39
  }>;
40
40
  products: Record<string, {
41
41
  displayName?: string | undefined;
42
+ serverOnly?: boolean | undefined;
43
+ freeTrial?: DayInterval | undefined;
42
44
  catalogId?: string | undefined;
43
45
  isAddOnTo?: false | Record<string, true> | undefined;
44
- freeTrial?: DayInterval | undefined;
45
- serverOnly?: boolean | undefined;
46
46
  stackable?: boolean | undefined;
47
47
  customerType: "team" | "user" | "custom";
48
48
  prices: "include-by-default" | Record<string, {
49
- interval?: DayInterval | undefined;
50
- freeTrial?: DayInterval | undefined;
51
- serverOnly?: boolean | undefined;
52
49
  USD?: string | undefined;
53
50
  EUR?: string | undefined;
54
51
  GBP?: string | undefined;
@@ -56,6 +53,9 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
56
53
  INR?: string | undefined;
57
54
  AUD?: string | undefined;
58
55
  CAD?: string | undefined;
56
+ interval?: DayInterval | undefined;
57
+ serverOnly?: boolean | undefined;
58
+ freeTrial?: DayInterval | undefined;
59
59
  }>;
60
60
  includedItems: Record<string, {
61
61
  repeat?: "never" | DayInterval | undefined;
@@ -86,33 +86,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
86
86
  type: "postgres";
87
87
  connectionString: string;
88
88
  };
89
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
90
- rbac: {
91
- permissions: Record<string, {
92
- description?: string | undefined;
93
- scope?: "team" | "project" | undefined;
94
- containedPermissionIds?: Record<string, true | undefined> | undefined;
95
- } | undefined>;
96
- defaultPermissions: {
97
- teamCreator: Record<string, true | undefined>;
98
- teamMember: Record<string, true | undefined>;
99
- signUp: Record<string, true | undefined>;
100
- };
101
- };
102
- apiKeys: {
103
- enabled: {
104
- team?: boolean | undefined;
105
- user?: boolean | undefined;
106
- };
107
- };
108
- apps: {
109
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
110
- enabled?: boolean | undefined;
111
- }>;
112
- };
89
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
113
90
  domains: {
114
91
  allowLocalhost?: boolean | undefined;
115
92
  };
93
+ teams: {
94
+ createPersonalTeamOnSignUp?: boolean | undefined;
95
+ allowClientTeamCreation?: boolean | undefined;
96
+ };
116
97
  auth: {
117
98
  allowSignUp?: boolean | undefined;
118
99
  password: {
@@ -127,12 +108,24 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
127
108
  oauth: {
128
109
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
129
110
  providers: Record<string, {
130
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
111
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
131
112
  allowSignIn?: boolean | undefined;
132
113
  allowConnectedAccounts?: boolean | undefined;
133
114
  }>;
134
115
  };
135
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
+ };
136
129
  payments: {
137
130
  autoPay?: {
138
131
  interval?: DayInterval | undefined;
@@ -147,16 +140,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
147
140
  }>;
148
141
  products: Record<string, {
149
142
  displayName?: string | undefined;
143
+ serverOnly?: boolean | undefined;
144
+ freeTrial?: DayInterval | undefined;
150
145
  catalogId?: string | undefined;
151
146
  isAddOnTo?: false | Record<string, true> | undefined;
152
- freeTrial?: DayInterval | undefined;
153
- serverOnly?: boolean | undefined;
154
147
  stackable?: boolean | undefined;
155
148
  customerType: "team" | "user" | "custom";
156
149
  prices: "include-by-default" | Record<string, {
157
- interval?: DayInterval | undefined;
158
- freeTrial?: DayInterval | undefined;
159
- serverOnly?: boolean | undefined;
160
150
  USD?: string | undefined;
161
151
  EUR?: string | undefined;
162
152
  GBP?: string | undefined;
@@ -164,6 +154,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
164
154
  INR?: string | undefined;
165
155
  AUD?: string | undefined;
166
156
  CAD?: string | undefined;
157
+ interval?: DayInterval | undefined;
158
+ serverOnly?: boolean | undefined;
159
+ freeTrial?: DayInterval | undefined;
167
160
  }>;
168
161
  includedItems: Record<string, {
169
162
  repeat?: "never" | DayInterval | undefined;
@@ -172,20 +165,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
172
165
  }>;
173
166
  }>;
174
167
  };
175
- workflows: {
176
- availableWorkflows: Record<string, {
177
- enabled?: boolean | undefined;
178
- displayName?: string | undefined;
179
- tsSource?: string | undefined;
180
- }>;
181
- };
182
- teams: {
183
- createPersonalTeamOnSignUp?: boolean | undefined;
184
- allowClientTeamCreation?: boolean | undefined;
185
- };
186
- users: {
187
- allowClientUserDeletion?: boolean | undefined;
188
- };
189
168
  emails: {
190
169
  selectedThemeId?: string | undefined;
191
170
  themes: Record<string, {
@@ -198,6 +177,20 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
198
177
  tsxSource: string;
199
178
  }>;
200
179
  };
180
+ apiKeys: {
181
+ enabled: {
182
+ team?: boolean | undefined;
183
+ user?: boolean | undefined;
184
+ };
185
+ };
186
+ apps: {
187
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
188
+ enabled?: boolean | undefined;
189
+ }>;
190
+ };
191
+ users: {
192
+ allowClientUserDeletion?: boolean | undefined;
193
+ };
201
194
  dataVault: {
202
195
  stores: Record<string, {
203
196
  displayName?: string | undefined;
@@ -205,7 +198,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
205
198
  };
206
199
  }, yup.AnyObject, Omit<Omit<{
207
200
  sourceOfTruth: undefined;
208
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
201
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
209
202
  rbac: {
210
203
  permissions: undefined;
211
204
  defaultPermissions: {
@@ -266,9 +259,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
266
259
  dataVault: {
267
260
  stores: undefined;
268
261
  };
269
- workflows: {
270
- availableWorkflows: undefined;
271
- };
272
262
  }, "">;
273
263
  declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
274
264
  sourceOfTruth: {
@@ -280,33 +270,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
280
270
  type: "postgres";
281
271
  connectionString: string;
282
272
  };
283
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
284
- rbac: {
285
- permissions: Record<string, {
286
- description?: string | undefined;
287
- scope?: "team" | "project" | undefined;
288
- containedPermissionIds?: Record<string, true | undefined> | undefined;
289
- } | undefined>;
290
- defaultPermissions: {
291
- teamCreator: Record<string, true | undefined>;
292
- teamMember: Record<string, true | undefined>;
293
- signUp: Record<string, true | undefined>;
294
- };
295
- };
296
- apiKeys: {
297
- enabled: {
298
- team?: boolean | undefined;
299
- user?: boolean | undefined;
300
- };
301
- };
302
- apps: {
303
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
304
- enabled?: boolean | undefined;
305
- }>;
306
- };
273
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
307
274
  domains: {
308
275
  allowLocalhost?: boolean | undefined;
309
276
  };
277
+ teams: {
278
+ createPersonalTeamOnSignUp?: boolean | undefined;
279
+ allowClientTeamCreation?: boolean | undefined;
280
+ };
310
281
  auth: {
311
282
  allowSignUp?: boolean | undefined;
312
283
  password: {
@@ -321,12 +292,24 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
321
292
  oauth: {
322
293
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
323
294
  providers: Record<string, {
324
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
295
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
325
296
  allowSignIn?: boolean | undefined;
326
297
  allowConnectedAccounts?: boolean | undefined;
327
298
  }>;
328
299
  };
329
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
+ };
330
313
  payments: {
331
314
  autoPay?: {
332
315
  interval?: DayInterval | undefined;
@@ -341,16 +324,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
341
324
  }>;
342
325
  products: Record<string, {
343
326
  displayName?: string | undefined;
327
+ serverOnly?: boolean | undefined;
328
+ freeTrial?: DayInterval | undefined;
344
329
  catalogId?: string | undefined;
345
330
  isAddOnTo?: false | Record<string, true> | undefined;
346
- freeTrial?: DayInterval | undefined;
347
- serverOnly?: boolean | undefined;
348
331
  stackable?: boolean | undefined;
349
332
  customerType: "team" | "user" | "custom";
350
333
  prices: "include-by-default" | Record<string, {
351
- interval?: DayInterval | undefined;
352
- freeTrial?: DayInterval | undefined;
353
- serverOnly?: boolean | undefined;
354
334
  USD?: string | undefined;
355
335
  EUR?: string | undefined;
356
336
  GBP?: string | undefined;
@@ -358,6 +338,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
358
338
  INR?: string | undefined;
359
339
  AUD?: string | undefined;
360
340
  CAD?: string | undefined;
341
+ interval?: DayInterval | undefined;
342
+ serverOnly?: boolean | undefined;
343
+ freeTrial?: DayInterval | undefined;
361
344
  }>;
362
345
  includedItems: Record<string, {
363
346
  repeat?: "never" | DayInterval | undefined;
@@ -366,20 +349,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
366
349
  }>;
367
350
  }>;
368
351
  };
369
- workflows: {
370
- availableWorkflows: Record<string, {
371
- enabled?: boolean | undefined;
372
- displayName?: string | undefined;
373
- tsSource?: string | undefined;
374
- }>;
375
- };
376
- teams: {
377
- createPersonalTeamOnSignUp?: boolean | undefined;
378
- allowClientTeamCreation?: boolean | undefined;
379
- };
380
- users: {
381
- allowClientUserDeletion?: boolean | undefined;
382
- };
383
352
  emails: {
384
353
  selectedThemeId?: string | undefined;
385
354
  themes: Record<string, {
@@ -392,6 +361,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
392
361
  tsxSource: string;
393
362
  }>;
394
363
  };
364
+ apiKeys: {
365
+ enabled: {
366
+ team?: boolean | undefined;
367
+ user?: boolean | undefined;
368
+ };
369
+ };
370
+ apps: {
371
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
372
+ enabled?: boolean | undefined;
373
+ }>;
374
+ };
375
+ users: {
376
+ allowClientUserDeletion?: boolean | undefined;
377
+ };
395
378
  dataVault: {
396
379
  stores: Record<string, {
397
380
  displayName?: string | undefined;
@@ -420,7 +403,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
420
403
  oauth: {
421
404
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
422
405
  providers: Record<string, {
423
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
406
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
424
407
  allowSignIn?: boolean | undefined;
425
408
  allowConnectedAccounts?: boolean | undefined;
426
409
  }>;
@@ -429,18 +412,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
429
412
  oauth: Omit<{
430
413
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
431
414
  providers: Record<string, {
432
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
415
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
433
416
  allowSignIn?: boolean | undefined;
434
417
  allowConnectedAccounts?: boolean | undefined;
435
418
  }>;
436
419
  }, "providers"> & {
437
420
  providers: Record<string, {
438
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
421
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
422
+ clientId?: string | undefined;
423
+ clientSecret?: string | undefined;
439
424
  allowSignIn?: boolean | undefined;
440
425
  allowConnectedAccounts?: boolean | undefined;
441
426
  isShared?: boolean | undefined;
442
- clientId?: string | undefined;
443
- clientSecret?: string | undefined;
444
427
  facebookConfigId?: string | undefined;
445
428
  microsoftTenantId?: string | undefined;
446
429
  }>;
@@ -459,19 +442,19 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
459
442
  }>;
460
443
  }, "server"> & {
461
444
  server: {
462
- password?: string | undefined;
463
- isShared?: boolean | undefined;
464
- provider?: "resend" | "smtp" | undefined;
465
445
  host?: string | undefined;
466
446
  port?: number | undefined;
467
447
  username?: string | undefined;
448
+ password?: string | undefined;
449
+ isShared?: boolean | undefined;
450
+ provider?: "resend" | "smtp" | undefined;
468
451
  senderName?: string | undefined;
469
452
  senderEmail?: string | undefined;
470
453
  };
471
454
  };
472
455
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
473
456
  sourceOfTruth: undefined;
474
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
457
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
475
458
  rbac: {
476
459
  permissions: undefined;
477
460
  defaultPermissions: {
@@ -532,13 +515,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
532
515
  dataVault: {
533
516
  stores: undefined;
534
517
  };
535
- workflows: {
536
- availableWorkflows: undefined;
537
- };
538
518
  }>, "domains" | "auth" | "emails"> & {
539
519
  auth: Omit<NonNullable<Omit<Omit<{
540
520
  sourceOfTruth: undefined;
541
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
521
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
542
522
  rbac: {
543
523
  permissions: undefined;
544
524
  defaultPermissions: {
@@ -599,13 +579,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
599
579
  dataVault: {
600
580
  stores: undefined;
601
581
  };
602
- workflows: {
603
- availableWorkflows: undefined;
604
- };
605
582
  }>, "oauth"> & {
606
583
  oauth: Omit<NonNullable<Omit<Omit<{
607
584
  sourceOfTruth: undefined;
608
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
585
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
609
586
  rbac: {
610
587
  permissions: undefined;
611
588
  defaultPermissions: {
@@ -666,16 +643,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
666
643
  dataVault: {
667
644
  stores: undefined;
668
645
  };
669
- workflows: {
670
- availableWorkflows: undefined;
671
- };
672
646
  }>, "providers"> & {
673
647
  providers: undefined;
674
648
  };
675
649
  };
676
650
  emails: Omit<NonNullable<Omit<Omit<{
677
651
  sourceOfTruth: undefined;
678
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
652
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
679
653
  rbac: {
680
654
  permissions: undefined;
681
655
  defaultPermissions: {
@@ -736,9 +710,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
736
710
  dataVault: {
737
711
  stores: undefined;
738
712
  };
739
- workflows: {
740
- availableWorkflows: undefined;
741
- };
742
713
  }>, "server"> & {
743
714
  server: {
744
715
  isShared: undefined;
@@ -753,7 +724,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
753
724
  };
754
725
  domains: Omit<NonNullable<Omit<Omit<{
755
726
  sourceOfTruth: undefined;
756
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
727
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
757
728
  rbac: {
758
729
  permissions: undefined;
759
730
  defaultPermissions: {
@@ -814,9 +785,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
814
785
  dataVault: {
815
786
  stores: undefined;
816
787
  };
817
- workflows: {
818
- availableWorkflows: undefined;
819
- };
820
788
  }>, "trustedDomains"> & {
821
789
  trustedDomains: undefined;
822
790
  };
@@ -831,33 +799,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
831
799
  type: "postgres";
832
800
  connectionString: string;
833
801
  };
834
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
835
- rbac: {
836
- permissions: Record<string, {
837
- description?: string | undefined;
838
- scope?: "team" | "project" | undefined;
839
- containedPermissionIds?: Record<string, true | undefined> | undefined;
840
- } | undefined>;
841
- defaultPermissions: {
842
- teamCreator: Record<string, true | undefined>;
843
- teamMember: Record<string, true | undefined>;
844
- signUp: Record<string, true | undefined>;
845
- };
846
- };
847
- apiKeys: {
848
- enabled: {
849
- team?: boolean | undefined;
850
- user?: boolean | undefined;
851
- };
852
- };
853
- apps: {
854
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
855
- enabled?: boolean | undefined;
856
- }>;
857
- };
802
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
858
803
  domains: {
859
804
  allowLocalhost?: boolean | undefined;
860
805
  };
806
+ teams: {
807
+ createPersonalTeamOnSignUp?: boolean | undefined;
808
+ allowClientTeamCreation?: boolean | undefined;
809
+ };
861
810
  auth: {
862
811
  allowSignUp?: boolean | undefined;
863
812
  password: {
@@ -872,12 +821,24 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
872
821
  oauth: {
873
822
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
874
823
  providers: Record<string, {
875
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
824
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
876
825
  allowSignIn?: boolean | undefined;
877
826
  allowConnectedAccounts?: boolean | undefined;
878
827
  }>;
879
828
  };
880
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
+ };
881
842
  payments: {
882
843
  autoPay?: {
883
844
  interval?: DayInterval | undefined;
@@ -892,16 +853,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
892
853
  }>;
893
854
  products: Record<string, {
894
855
  displayName?: string | undefined;
856
+ serverOnly?: boolean | undefined;
857
+ freeTrial?: DayInterval | undefined;
895
858
  catalogId?: string | undefined;
896
859
  isAddOnTo?: false | Record<string, true> | undefined;
897
- freeTrial?: DayInterval | undefined;
898
- serverOnly?: boolean | undefined;
899
860
  stackable?: boolean | undefined;
900
861
  customerType: "team" | "user" | "custom";
901
862
  prices: "include-by-default" | Record<string, {
902
- interval?: DayInterval | undefined;
903
- freeTrial?: DayInterval | undefined;
904
- serverOnly?: boolean | undefined;
905
863
  USD?: string | undefined;
906
864
  EUR?: string | undefined;
907
865
  GBP?: string | undefined;
@@ -909,6 +867,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
909
867
  INR?: string | undefined;
910
868
  AUD?: string | undefined;
911
869
  CAD?: string | undefined;
870
+ interval?: DayInterval | undefined;
871
+ serverOnly?: boolean | undefined;
872
+ freeTrial?: DayInterval | undefined;
912
873
  }>;
913
874
  includedItems: Record<string, {
914
875
  repeat?: "never" | DayInterval | undefined;
@@ -917,20 +878,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
917
878
  }>;
918
879
  }>;
919
880
  };
920
- workflows: {
921
- availableWorkflows: Record<string, {
922
- enabled?: boolean | undefined;
923
- displayName?: string | undefined;
924
- tsSource?: string | undefined;
925
- }>;
926
- };
927
- teams: {
928
- createPersonalTeamOnSignUp?: boolean | undefined;
929
- allowClientTeamCreation?: boolean | undefined;
930
- };
931
- users: {
932
- allowClientUserDeletion?: boolean | undefined;
933
- };
934
881
  emails: {
935
882
  selectedThemeId?: string | undefined;
936
883
  themes: Record<string, {
@@ -943,6 +890,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
943
890
  tsxSource: string;
944
891
  }>;
945
892
  };
893
+ apiKeys: {
894
+ enabled: {
895
+ team?: boolean | undefined;
896
+ user?: boolean | undefined;
897
+ };
898
+ };
899
+ apps: {
900
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
901
+ enabled?: boolean | undefined;
902
+ }>;
903
+ };
904
+ users: {
905
+ allowClientUserDeletion?: boolean | undefined;
906
+ };
946
907
  dataVault: {
947
908
  stores: Record<string, {
948
909
  displayName?: string | undefined;
@@ -971,7 +932,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
971
932
  oauth: {
972
933
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
973
934
  providers: Record<string, {
974
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
935
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
975
936
  allowSignIn?: boolean | undefined;
976
937
  allowConnectedAccounts?: boolean | undefined;
977
938
  }>;
@@ -980,18 +941,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
980
941
  oauth: Omit<{
981
942
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
982
943
  providers: Record<string, {
983
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
944
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
984
945
  allowSignIn?: boolean | undefined;
985
946
  allowConnectedAccounts?: boolean | undefined;
986
947
  }>;
987
948
  }, "providers"> & {
988
949
  providers: Record<string, {
989
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
950
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
951
+ clientId?: string | undefined;
952
+ clientSecret?: string | undefined;
990
953
  allowSignIn?: boolean | undefined;
991
954
  allowConnectedAccounts?: boolean | undefined;
992
955
  isShared?: boolean | undefined;
993
- clientId?: string | undefined;
994
- clientSecret?: string | undefined;
995
956
  facebookConfigId?: string | undefined;
996
957
  microsoftTenantId?: string | undefined;
997
958
  }>;
@@ -1010,19 +971,19 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1010
971
  }>;
1011
972
  }, "server"> & {
1012
973
  server: {
1013
- password?: string | undefined;
1014
- isShared?: boolean | undefined;
1015
- provider?: "resend" | "smtp" | undefined;
1016
974
  host?: string | undefined;
1017
975
  port?: number | undefined;
1018
976
  username?: string | undefined;
977
+ password?: string | undefined;
978
+ isShared?: boolean | undefined;
979
+ provider?: "resend" | "smtp" | undefined;
1019
980
  senderName?: string | undefined;
1020
981
  senderEmail?: string | undefined;
1021
982
  };
1022
983
  };
1023
984
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
1024
985
  sourceOfTruth: undefined;
1025
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
986
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1026
987
  rbac: {
1027
988
  permissions: undefined;
1028
989
  defaultPermissions: {
@@ -1083,13 +1044,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1083
1044
  dataVault: {
1084
1045
  stores: undefined;
1085
1046
  };
1086
- workflows: {
1087
- availableWorkflows: undefined;
1088
- };
1089
1047
  }>, "domains" | "auth" | "emails"> & {
1090
1048
  auth: Omit<NonNullable<Omit<Omit<{
1091
1049
  sourceOfTruth: undefined;
1092
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1050
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1093
1051
  rbac: {
1094
1052
  permissions: undefined;
1095
1053
  defaultPermissions: {
@@ -1150,13 +1108,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1150
1108
  dataVault: {
1151
1109
  stores: undefined;
1152
1110
  };
1153
- workflows: {
1154
- availableWorkflows: undefined;
1155
- };
1156
1111
  }>, "oauth"> & {
1157
1112
  oauth: Omit<NonNullable<Omit<Omit<{
1158
1113
  sourceOfTruth: undefined;
1159
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1114
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1160
1115
  rbac: {
1161
1116
  permissions: undefined;
1162
1117
  defaultPermissions: {
@@ -1217,16 +1172,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1217
1172
  dataVault: {
1218
1173
  stores: undefined;
1219
1174
  };
1220
- workflows: {
1221
- availableWorkflows: undefined;
1222
- };
1223
1175
  }>, "providers"> & {
1224
1176
  providers: undefined;
1225
1177
  };
1226
1178
  };
1227
1179
  emails: Omit<NonNullable<Omit<Omit<{
1228
1180
  sourceOfTruth: undefined;
1229
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1181
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1230
1182
  rbac: {
1231
1183
  permissions: undefined;
1232
1184
  defaultPermissions: {
@@ -1287,9 +1239,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1287
1239
  dataVault: {
1288
1240
  stores: undefined;
1289
1241
  };
1290
- workflows: {
1291
- availableWorkflows: undefined;
1292
- };
1293
1242
  }>, "server"> & {
1294
1243
  server: {
1295
1244
  isShared: undefined;
@@ -1304,7 +1253,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1304
1253
  };
1305
1254
  domains: Omit<NonNullable<Omit<Omit<{
1306
1255
  sourceOfTruth: undefined;
1307
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1256
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1308
1257
  rbac: {
1309
1258
  permissions: undefined;
1310
1259
  defaultPermissions: {
@@ -1365,9 +1314,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1365
1314
  dataVault: {
1366
1315
  stores: undefined;
1367
1316
  };
1368
- workflows: {
1369
- availableWorkflows: undefined;
1370
- };
1371
1317
  }>, "trustedDomains"> & {
1372
1318
  trustedDomains: undefined;
1373
1319
  };
@@ -1402,9 +1348,9 @@ declare const organizationConfigDefaults: {
1402
1348
  };
1403
1349
  };
1404
1350
  readonly apps: {
1405
- readonly installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
1406
- enabled: false;
1407
- }>;
1351
+ readonly installed: Record<string, {
1352
+ enabled: boolean;
1353
+ } | undefined>;
1408
1354
  };
1409
1355
  readonly teams: {
1410
1356
  readonly createPersonalTeamOnSignUp: false;
@@ -1544,13 +1490,6 @@ declare const organizationConfigDefaults: {
1544
1490
  displayName: string;
1545
1491
  };
1546
1492
  };
1547
- readonly workflows: {
1548
- readonly availableWorkflows: (key: string) => {
1549
- displayName: string;
1550
- tsSource: string;
1551
- enabled: false;
1552
- };
1553
- };
1554
1493
  };
1555
1494
  type ReplaceFunctionsWithObjects<T> = T & (T extends (arg: infer K extends string) => infer R ? Record<K, R> & object : unknown);
1556
1495
  type DeepReplaceFunctionsWithObjects<T> = T extends object ? {
@@ -1641,12 +1580,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1641
1580
  };
1642
1581
  };
1643
1582
  server: {
1644
- password: string | undefined;
1645
- isShared: boolean;
1646
- provider: "resend" | "smtp";
1647
1583
  host: string | undefined;
1648
1584
  port: number | undefined;
1649
1585
  username: string | undefined;
1586
+ password: string | undefined;
1587
+ isShared: boolean;
1588
+ provider: "resend" | "smtp";
1650
1589
  senderName: string | undefined;
1651
1590
  senderEmail: string | undefined;
1652
1591
  };
@@ -1655,9 +1594,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1655
1594
  products: Record<string, {
1656
1595
  isAddOnTo: false | Record<string, true>;
1657
1596
  prices: "include-by-default" | Record<string, {
1658
- interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1659
- freeTrial?: [number, "day" | "week" | "month" | "year"] | undefined;
1660
- serverOnly: boolean;
1661
1597
  USD?: string | undefined;
1662
1598
  EUR?: string | undefined;
1663
1599
  GBP?: string | undefined;
@@ -1665,16 +1601,19 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1665
1601
  INR?: string | undefined;
1666
1602
  AUD?: string | undefined;
1667
1603
  CAD?: string | undefined;
1604
+ interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1605
+ serverOnly: boolean;
1606
+ freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
1668
1607
  }>;
1669
1608
  displayName: string;
1609
+ serverOnly: boolean;
1610
+ freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1670
1611
  catalogId: string | undefined;
1671
1612
  customerType: "team" | "user" | "custom";
1672
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1673
- serverOnly: boolean;
1674
1613
  stackable: boolean | undefined;
1675
1614
  includedItems: {
1676
1615
  [x: string]: {
1677
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
1616
+ repeat: "never" | [number, "day" | "week" | "year" | "month"];
1678
1617
  quantity: number;
1679
1618
  expires: "never" | "when-purchase-expires" | "when-repeated";
1680
1619
  };
@@ -1687,7 +1626,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1687
1626
  };
1688
1627
  };
1689
1628
  autoPay: {
1690
- interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1629
+ interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1691
1630
  } | undefined;
1692
1631
  testMode: boolean;
1693
1632
  catalogs: {
@@ -1696,8 +1635,13 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1696
1635
  };
1697
1636
  };
1698
1637
  };
1638
+ apps: {
1639
+ installed: Record<string, {
1640
+ enabled: boolean;
1641
+ } | undefined>;
1642
+ };
1699
1643
  sourceOfTruth: {
1700
- type: "hosted" | "neon" | "postgres";
1644
+ type: "neon" | "hosted" | "postgres";
1701
1645
  connectionString: string | undefined;
1702
1646
  connectionStrings: {
1703
1647
  [x: string]: string | undefined;
@@ -1717,83 +1661,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1717
1661
  readonly connectionStrings?: undefined;
1718
1662
  readonly connectionString?: undefined;
1719
1663
  });
1720
- rbac: {
1721
- permissions: {
1722
- [x: string]: {
1723
- description: string | undefined;
1724
- scope: "team" | "project" | undefined;
1725
- containedPermissionIds: {
1726
- [x: string]: true | undefined;
1727
- };
1728
- };
1729
- };
1730
- defaultPermissions: {
1731
- teamCreator: {
1732
- [x: string]: true | undefined;
1733
- };
1734
- teamMember: {
1735
- [x: string]: true | undefined;
1736
- };
1737
- signUp: {
1738
- [x: string]: true | undefined;
1739
- };
1740
- };
1741
- };
1742
- apiKeys: {
1743
- enabled: {
1744
- team: boolean;
1745
- user: boolean;
1746
- };
1747
- };
1748
- apps: {
1749
- installed: {
1750
- neon: {
1751
- enabled: boolean;
1752
- };
1753
- rbac: {
1754
- enabled: boolean;
1755
- };
1756
- payments: {
1757
- enabled: boolean;
1758
- };
1759
- workflows: {
1760
- enabled: boolean;
1761
- };
1762
- teams: {
1763
- enabled: boolean;
1764
- };
1765
- authentication: {
1766
- enabled: boolean;
1767
- };
1768
- "api-keys": {
1769
- enabled: boolean;
1770
- };
1771
- emails: {
1772
- enabled: boolean;
1773
- };
1774
- "email-api": {
1775
- enabled: boolean;
1776
- };
1777
- "data-vault": {
1778
- enabled: boolean;
1779
- };
1780
- webhooks: {
1781
- enabled: boolean;
1782
- };
1783
- "tv-mode": {
1784
- enabled: boolean;
1785
- };
1786
- "launch-checklist": {
1787
- enabled: boolean;
1788
- };
1789
- catalyst: {
1790
- enabled: boolean;
1791
- };
1792
- convex: {
1793
- enabled: boolean;
1794
- };
1795
- };
1796
- };
1797
1664
  domains: {
1798
1665
  allowLocalhost: boolean;
1799
1666
  trustedDomains: {
@@ -1803,11 +1670,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1803
1670
  };
1804
1671
  };
1805
1672
  };
1673
+ teams: {
1674
+ createPersonalTeamOnSignUp: boolean;
1675
+ allowClientTeamCreation: boolean;
1676
+ };
1806
1677
  auth: {
1807
- allowSignUp: boolean;
1808
1678
  password: {
1809
1679
  allowSignIn: boolean;
1810
1680
  };
1681
+ allowSignUp: boolean;
1811
1682
  otp: {
1812
1683
  allowSignIn: boolean;
1813
1684
  };
@@ -1818,30 +1689,45 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1818
1689
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1819
1690
  providers: {
1820
1691
  [x: string]: {
1821
- type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1692
+ type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1693
+ clientId: string | undefined;
1694
+ clientSecret: string | undefined;
1822
1695
  allowSignIn: boolean;
1823
1696
  allowConnectedAccounts: boolean;
1824
1697
  isShared: boolean;
1825
- clientId: string | undefined;
1826
- clientSecret: string | undefined;
1827
1698
  facebookConfigId: string | undefined;
1828
1699
  microsoftTenantId: string | undefined;
1829
1700
  };
1830
1701
  };
1831
1702
  };
1832
1703
  };
1833
- workflows: {
1834
- availableWorkflows: {
1704
+ rbac: {
1705
+ permissions: {
1835
1706
  [x: string]: {
1836
- enabled: boolean;
1837
- displayName: string;
1838
- tsSource: string;
1707
+ description: string | undefined;
1708
+ scope: "team" | "project" | undefined;
1709
+ containedPermissionIds: {
1710
+ [x: string]: true | undefined;
1711
+ };
1712
+ };
1713
+ };
1714
+ defaultPermissions: {
1715
+ teamCreator: {
1716
+ [x: string]: true | undefined;
1717
+ };
1718
+ teamMember: {
1719
+ [x: string]: true | undefined;
1720
+ };
1721
+ signUp: {
1722
+ [x: string]: true | undefined;
1839
1723
  };
1840
1724
  };
1841
1725
  };
1842
- teams: {
1843
- createPersonalTeamOnSignUp: boolean;
1844
- allowClientTeamCreation: boolean;
1726
+ apiKeys: {
1727
+ enabled: {
1728
+ team: boolean;
1729
+ user: boolean;
1730
+ };
1845
1731
  };
1846
1732
  users: {
1847
1733
  allowClientUserDeletion: boolean;