@stackframe/stack-shared 2.8.43 → 2.8.44

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 (56) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/apps/apps-config.d.mts +52 -31
  3. package/dist/apps/apps-config.d.ts +52 -31
  4. package/dist/apps/apps-config.js +54 -32
  5. package/dist/apps/apps-config.js.map +1 -1
  6. package/dist/config/schema.d.mts +248 -248
  7. package/dist/config/schema.d.ts +248 -248
  8. package/dist/config/schema.js +1 -1
  9. package/dist/config/schema.js.map +1 -1
  10. package/dist/esm/apps/apps-config.js +52 -31
  11. package/dist/esm/apps/apps-config.js.map +1 -1
  12. package/dist/esm/config/schema.js +1 -1
  13. package/dist/esm/config/schema.js.map +1 -1
  14. package/dist/esm/interface/client-interface.js +18 -16
  15. package/dist/esm/interface/client-interface.js.map +1 -1
  16. package/dist/esm/utils/caches.js +6 -2
  17. package/dist/esm/utils/caches.js.map +1 -1
  18. package/dist/esm/utils/globals.js +9 -1
  19. package/dist/esm/utils/globals.js.map +1 -1
  20. package/dist/esm/utils/react.js +12 -6
  21. package/dist/esm/utils/react.js.map +1 -1
  22. package/dist/esm/utils/regex.js +13 -0
  23. package/dist/esm/utils/regex.js.map +1 -0
  24. package/dist/esm/utils/urls.js +10 -0
  25. package/dist/esm/utils/urls.js.map +1 -1
  26. package/dist/index.d.mts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/interface/admin-interface.d.mts +1 -1
  29. package/dist/interface/admin-interface.d.ts +1 -1
  30. package/dist/interface/client-interface.d.mts +1 -1
  31. package/dist/interface/client-interface.d.ts +1 -1
  32. package/dist/interface/client-interface.js +18 -16
  33. package/dist/interface/client-interface.js.map +1 -1
  34. package/dist/interface/server-interface.d.mts +1 -1
  35. package/dist/interface/server-interface.d.ts +1 -1
  36. package/dist/utils/caches.d.mts +4 -2
  37. package/dist/utils/caches.d.ts +4 -2
  38. package/dist/utils/caches.js +6 -2
  39. package/dist/utils/caches.js.map +1 -1
  40. package/dist/utils/globals.d.mts +3 -1
  41. package/dist/utils/globals.d.ts +3 -1
  42. package/dist/utils/globals.js +12 -2
  43. package/dist/utils/globals.js.map +1 -1
  44. package/dist/utils/react.d.mts +2 -1
  45. package/dist/utils/react.d.ts +2 -1
  46. package/dist/utils/react.js +13 -6
  47. package/dist/utils/react.js.map +1 -1
  48. package/dist/utils/regex.d.mts +3 -0
  49. package/dist/utils/regex.d.ts +3 -0
  50. package/dist/utils/regex.js +38 -0
  51. package/dist/utils/regex.js.map +1 -0
  52. package/dist/utils/urls.d.mts +3 -1
  53. package/dist/utils/urls.d.ts +3 -1
  54. package/dist/utils/urls.js +12 -0
  55. package/dist/utils/urls.js.map +1 -1
  56. package/package.json +1 -1
@@ -39,13 +39,16 @@ 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;
44
42
  catalogId?: string | undefined;
45
43
  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;
49
52
  USD?: string | undefined;
50
53
  EUR?: string | undefined;
51
54
  GBP?: string | undefined;
@@ -53,9 +56,6 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
53
56
  INR?: string | undefined;
54
57
  AUD?: string | undefined;
55
58
  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,14 +86,33 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
86
86
  type: "postgres";
87
87
  connectionString: string;
88
88
  };
89
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
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
+ };
90
113
  domains: {
91
114
  allowLocalhost?: boolean | undefined;
92
115
  };
93
- teams: {
94
- createPersonalTeamOnSignUp?: boolean | undefined;
95
- allowClientTeamCreation?: boolean | undefined;
96
- };
97
116
  auth: {
98
117
  allowSignUp?: boolean | undefined;
99
118
  password: {
@@ -108,24 +127,12 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
108
127
  oauth: {
109
128
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
110
129
  providers: Record<string, {
111
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
130
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
112
131
  allowSignIn?: boolean | undefined;
113
132
  allowConnectedAccounts?: boolean | undefined;
114
133
  }>;
115
134
  };
116
135
  };
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
136
  payments: {
130
137
  autoPay?: {
131
138
  interval?: DayInterval | undefined;
@@ -140,13 +147,16 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
140
147
  }>;
141
148
  products: Record<string, {
142
149
  displayName?: string | undefined;
143
- serverOnly?: boolean | undefined;
144
- freeTrial?: DayInterval | undefined;
145
150
  catalogId?: string | undefined;
146
151
  isAddOnTo?: false | Record<string, true> | undefined;
152
+ freeTrial?: DayInterval | undefined;
153
+ serverOnly?: boolean | undefined;
147
154
  stackable?: boolean | undefined;
148
155
  customerType: "team" | "user" | "custom";
149
156
  prices: "include-by-default" | Record<string, {
157
+ interval?: DayInterval | undefined;
158
+ freeTrial?: DayInterval | undefined;
159
+ serverOnly?: boolean | undefined;
150
160
  USD?: string | undefined;
151
161
  EUR?: string | undefined;
152
162
  GBP?: string | undefined;
@@ -154,9 +164,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
154
164
  INR?: string | undefined;
155
165
  AUD?: string | undefined;
156
166
  CAD?: string | undefined;
157
- interval?: DayInterval | undefined;
158
- serverOnly?: boolean | undefined;
159
- freeTrial?: DayInterval | undefined;
160
167
  }>;
161
168
  includedItems: Record<string, {
162
169
  repeat?: "never" | DayInterval | undefined;
@@ -165,39 +172,32 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
165
172
  }>;
166
173
  }>;
167
174
  };
168
- emails: {
169
- selectedThemeId?: string | undefined;
170
- templates: Record<string, {
171
- themeId?: string | false | undefined;
172
- displayName: string;
173
- tsxSource: string;
174
- }>;
175
- themes: Record<string, {
176
- displayName: string;
177
- tsxSource: string;
178
- }>;
179
- };
180
175
  workflows: {
181
176
  availableWorkflows: Record<string, {
182
- displayName?: string | undefined;
183
177
  enabled?: boolean | undefined;
178
+ displayName?: string | undefined;
184
179
  tsSource?: string | undefined;
185
180
  }>;
186
181
  };
187
- apiKeys: {
188
- enabled: {
189
- team?: boolean | undefined;
190
- user?: boolean | undefined;
191
- };
192
- };
193
- apps: {
194
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
195
- enabled?: boolean | undefined;
196
- }>;
182
+ teams: {
183
+ createPersonalTeamOnSignUp?: boolean | undefined;
184
+ allowClientTeamCreation?: boolean | undefined;
197
185
  };
198
186
  users: {
199
187
  allowClientUserDeletion?: boolean | undefined;
200
188
  };
189
+ emails: {
190
+ selectedThemeId?: string | undefined;
191
+ themes: Record<string, {
192
+ displayName: string;
193
+ tsxSource: string;
194
+ }>;
195
+ templates: Record<string, {
196
+ themeId?: string | false | undefined;
197
+ displayName: string;
198
+ tsxSource: string;
199
+ }>;
200
+ };
201
201
  dataVault: {
202
202
  stores: Record<string, {
203
203
  displayName?: string | undefined;
@@ -205,7 +205,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
205
205
  };
206
206
  }, yup.AnyObject, Omit<Omit<{
207
207
  sourceOfTruth: undefined;
208
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
208
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
209
209
  rbac: {
210
210
  permissions: undefined;
211
211
  defaultPermissions: {
@@ -280,14 +280,33 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
280
280
  type: "postgres";
281
281
  connectionString: string;
282
282
  };
283
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
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
+ };
284
307
  domains: {
285
308
  allowLocalhost?: boolean | undefined;
286
309
  };
287
- teams: {
288
- createPersonalTeamOnSignUp?: boolean | undefined;
289
- allowClientTeamCreation?: boolean | undefined;
290
- };
291
310
  auth: {
292
311
  allowSignUp?: boolean | undefined;
293
312
  password: {
@@ -302,24 +321,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
302
321
  oauth: {
303
322
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
304
323
  providers: Record<string, {
305
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
324
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
306
325
  allowSignIn?: boolean | undefined;
307
326
  allowConnectedAccounts?: boolean | undefined;
308
327
  }>;
309
328
  };
310
329
  };
311
- rbac: {
312
- permissions: Record<string, {
313
- description?: string | undefined;
314
- scope?: "team" | "project" | undefined;
315
- containedPermissionIds?: Record<string, true | undefined> | undefined;
316
- } | undefined>;
317
- defaultPermissions: {
318
- teamCreator: Record<string, true | undefined>;
319
- teamMember: Record<string, true | undefined>;
320
- signUp: Record<string, true | undefined>;
321
- };
322
- };
323
330
  payments: {
324
331
  autoPay?: {
325
332
  interval?: DayInterval | undefined;
@@ -334,13 +341,16 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
334
341
  }>;
335
342
  products: Record<string, {
336
343
  displayName?: string | undefined;
337
- serverOnly?: boolean | undefined;
338
- freeTrial?: DayInterval | undefined;
339
344
  catalogId?: string | undefined;
340
345
  isAddOnTo?: false | Record<string, true> | undefined;
346
+ freeTrial?: DayInterval | undefined;
347
+ serverOnly?: boolean | undefined;
341
348
  stackable?: boolean | undefined;
342
349
  customerType: "team" | "user" | "custom";
343
350
  prices: "include-by-default" | Record<string, {
351
+ interval?: DayInterval | undefined;
352
+ freeTrial?: DayInterval | undefined;
353
+ serverOnly?: boolean | undefined;
344
354
  USD?: string | undefined;
345
355
  EUR?: string | undefined;
346
356
  GBP?: string | undefined;
@@ -348,9 +358,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
348
358
  INR?: string | undefined;
349
359
  AUD?: string | undefined;
350
360
  CAD?: string | undefined;
351
- interval?: DayInterval | undefined;
352
- serverOnly?: boolean | undefined;
353
- freeTrial?: DayInterval | undefined;
354
361
  }>;
355
362
  includedItems: Record<string, {
356
363
  repeat?: "never" | DayInterval | undefined;
@@ -359,39 +366,32 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
359
366
  }>;
360
367
  }>;
361
368
  };
362
- emails: {
363
- selectedThemeId?: string | undefined;
364
- templates: Record<string, {
365
- themeId?: string | false | undefined;
366
- displayName: string;
367
- tsxSource: string;
368
- }>;
369
- themes: Record<string, {
370
- displayName: string;
371
- tsxSource: string;
372
- }>;
373
- };
374
369
  workflows: {
375
370
  availableWorkflows: Record<string, {
376
- displayName?: string | undefined;
377
371
  enabled?: boolean | undefined;
372
+ displayName?: string | undefined;
378
373
  tsSource?: string | undefined;
379
374
  }>;
380
375
  };
381
- apiKeys: {
382
- enabled: {
383
- team?: boolean | undefined;
384
- user?: boolean | undefined;
385
- };
386
- };
387
- apps: {
388
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
389
- enabled?: boolean | undefined;
390
- }>;
376
+ teams: {
377
+ createPersonalTeamOnSignUp?: boolean | undefined;
378
+ allowClientTeamCreation?: boolean | undefined;
391
379
  };
392
380
  users: {
393
381
  allowClientUserDeletion?: boolean | undefined;
394
382
  };
383
+ emails: {
384
+ selectedThemeId?: string | undefined;
385
+ themes: Record<string, {
386
+ displayName: string;
387
+ tsxSource: string;
388
+ }>;
389
+ templates: Record<string, {
390
+ themeId?: string | false | undefined;
391
+ displayName: string;
392
+ tsxSource: string;
393
+ }>;
394
+ };
395
395
  dataVault: {
396
396
  stores: Record<string, {
397
397
  displayName?: string | undefined;
@@ -420,7 +420,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
420
420
  oauth: {
421
421
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
422
422
  providers: Record<string, {
423
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
423
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
424
424
  allowSignIn?: boolean | undefined;
425
425
  allowConnectedAccounts?: boolean | undefined;
426
426
  }>;
@@ -429,18 +429,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
429
429
  oauth: Omit<{
430
430
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
431
431
  providers: Record<string, {
432
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
432
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
433
433
  allowSignIn?: boolean | undefined;
434
434
  allowConnectedAccounts?: boolean | undefined;
435
435
  }>;
436
436
  }, "providers"> & {
437
437
  providers: Record<string, {
438
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
439
- clientId?: string | undefined;
440
- clientSecret?: string | undefined;
438
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
441
439
  allowSignIn?: boolean | undefined;
442
440
  allowConnectedAccounts?: boolean | undefined;
443
441
  isShared?: boolean | undefined;
442
+ clientId?: string | undefined;
443
+ clientSecret?: string | undefined;
444
444
  facebookConfigId?: string | undefined;
445
445
  microsoftTenantId?: string | undefined;
446
446
  }>;
@@ -448,30 +448,30 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
448
448
  };
449
449
  emails: Omit<{
450
450
  selectedThemeId?: string | undefined;
451
- templates: Record<string, {
452
- themeId?: string | false | undefined;
451
+ themes: Record<string, {
453
452
  displayName: string;
454
453
  tsxSource: string;
455
454
  }>;
456
- themes: Record<string, {
455
+ templates: Record<string, {
456
+ themeId?: string | false | undefined;
457
457
  displayName: string;
458
458
  tsxSource: string;
459
459
  }>;
460
460
  }, "server"> & {
461
461
  server: {
462
- host?: string | undefined;
463
- port?: number | undefined;
464
- username?: string | undefined;
465
462
  password?: string | undefined;
466
463
  isShared?: boolean | undefined;
467
464
  provider?: "resend" | "smtp" | undefined;
465
+ host?: string | undefined;
466
+ port?: number | undefined;
467
+ username?: string | undefined;
468
468
  senderName?: string | undefined;
469
469
  senderEmail?: string | undefined;
470
470
  };
471
471
  };
472
472
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
473
473
  sourceOfTruth: undefined;
474
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
474
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
475
475
  rbac: {
476
476
  permissions: undefined;
477
477
  defaultPermissions: {
@@ -538,7 +538,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
538
538
  }>, "domains" | "auth" | "emails"> & {
539
539
  auth: Omit<NonNullable<Omit<Omit<{
540
540
  sourceOfTruth: undefined;
541
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
541
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
542
542
  rbac: {
543
543
  permissions: undefined;
544
544
  defaultPermissions: {
@@ -605,7 +605,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
605
605
  }>, "oauth"> & {
606
606
  oauth: Omit<NonNullable<Omit<Omit<{
607
607
  sourceOfTruth: undefined;
608
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
608
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
609
609
  rbac: {
610
610
  permissions: undefined;
611
611
  defaultPermissions: {
@@ -675,7 +675,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
675
675
  };
676
676
  emails: Omit<NonNullable<Omit<Omit<{
677
677
  sourceOfTruth: undefined;
678
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
678
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
679
679
  rbac: {
680
680
  permissions: undefined;
681
681
  defaultPermissions: {
@@ -753,7 +753,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
753
753
  };
754
754
  domains: Omit<NonNullable<Omit<Omit<{
755
755
  sourceOfTruth: undefined;
756
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
756
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
757
757
  rbac: {
758
758
  permissions: undefined;
759
759
  defaultPermissions: {
@@ -831,14 +831,33 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
831
831
  type: "postgres";
832
832
  connectionString: string;
833
833
  };
834
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
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
+ };
835
858
  domains: {
836
859
  allowLocalhost?: boolean | undefined;
837
860
  };
838
- teams: {
839
- createPersonalTeamOnSignUp?: boolean | undefined;
840
- allowClientTeamCreation?: boolean | undefined;
841
- };
842
861
  auth: {
843
862
  allowSignUp?: boolean | undefined;
844
863
  password: {
@@ -853,24 +872,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
853
872
  oauth: {
854
873
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
855
874
  providers: Record<string, {
856
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
875
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
857
876
  allowSignIn?: boolean | undefined;
858
877
  allowConnectedAccounts?: boolean | undefined;
859
878
  }>;
860
879
  };
861
880
  };
862
- rbac: {
863
- permissions: Record<string, {
864
- description?: string | undefined;
865
- scope?: "team" | "project" | undefined;
866
- containedPermissionIds?: Record<string, true | undefined> | undefined;
867
- } | undefined>;
868
- defaultPermissions: {
869
- teamCreator: Record<string, true | undefined>;
870
- teamMember: Record<string, true | undefined>;
871
- signUp: Record<string, true | undefined>;
872
- };
873
- };
874
881
  payments: {
875
882
  autoPay?: {
876
883
  interval?: DayInterval | undefined;
@@ -885,13 +892,16 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
885
892
  }>;
886
893
  products: Record<string, {
887
894
  displayName?: string | undefined;
888
- serverOnly?: boolean | undefined;
889
- freeTrial?: DayInterval | undefined;
890
895
  catalogId?: string | undefined;
891
896
  isAddOnTo?: false | Record<string, true> | undefined;
897
+ freeTrial?: DayInterval | undefined;
898
+ serverOnly?: boolean | undefined;
892
899
  stackable?: boolean | undefined;
893
900
  customerType: "team" | "user" | "custom";
894
901
  prices: "include-by-default" | Record<string, {
902
+ interval?: DayInterval | undefined;
903
+ freeTrial?: DayInterval | undefined;
904
+ serverOnly?: boolean | undefined;
895
905
  USD?: string | undefined;
896
906
  EUR?: string | undefined;
897
907
  GBP?: string | undefined;
@@ -899,9 +909,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
899
909
  INR?: string | undefined;
900
910
  AUD?: string | undefined;
901
911
  CAD?: string | undefined;
902
- interval?: DayInterval | undefined;
903
- serverOnly?: boolean | undefined;
904
- freeTrial?: DayInterval | undefined;
905
912
  }>;
906
913
  includedItems: Record<string, {
907
914
  repeat?: "never" | DayInterval | undefined;
@@ -910,39 +917,32 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
910
917
  }>;
911
918
  }>;
912
919
  };
913
- emails: {
914
- selectedThemeId?: string | undefined;
915
- templates: Record<string, {
916
- themeId?: string | false | undefined;
917
- displayName: string;
918
- tsxSource: string;
919
- }>;
920
- themes: Record<string, {
921
- displayName: string;
922
- tsxSource: string;
923
- }>;
924
- };
925
920
  workflows: {
926
921
  availableWorkflows: Record<string, {
927
- displayName?: string | undefined;
928
922
  enabled?: boolean | undefined;
923
+ displayName?: string | undefined;
929
924
  tsSource?: string | undefined;
930
925
  }>;
931
926
  };
932
- apiKeys: {
933
- enabled: {
934
- team?: boolean | undefined;
935
- user?: boolean | undefined;
936
- };
937
- };
938
- apps: {
939
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
940
- enabled?: boolean | undefined;
941
- }>;
927
+ teams: {
928
+ createPersonalTeamOnSignUp?: boolean | undefined;
929
+ allowClientTeamCreation?: boolean | undefined;
942
930
  };
943
931
  users: {
944
932
  allowClientUserDeletion?: boolean | undefined;
945
933
  };
934
+ emails: {
935
+ selectedThemeId?: string | undefined;
936
+ themes: Record<string, {
937
+ displayName: string;
938
+ tsxSource: string;
939
+ }>;
940
+ templates: Record<string, {
941
+ themeId?: string | false | undefined;
942
+ displayName: string;
943
+ tsxSource: string;
944
+ }>;
945
+ };
946
946
  dataVault: {
947
947
  stores: Record<string, {
948
948
  displayName?: string | undefined;
@@ -971,7 +971,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
971
971
  oauth: {
972
972
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
973
973
  providers: Record<string, {
974
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
974
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
975
975
  allowSignIn?: boolean | undefined;
976
976
  allowConnectedAccounts?: boolean | undefined;
977
977
  }>;
@@ -980,18 +980,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
980
980
  oauth: Omit<{
981
981
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
982
982
  providers: Record<string, {
983
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
983
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
984
984
  allowSignIn?: boolean | undefined;
985
985
  allowConnectedAccounts?: boolean | undefined;
986
986
  }>;
987
987
  }, "providers"> & {
988
988
  providers: Record<string, {
989
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
990
- clientId?: string | undefined;
991
- clientSecret?: string | undefined;
989
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
992
990
  allowSignIn?: boolean | undefined;
993
991
  allowConnectedAccounts?: boolean | undefined;
994
992
  isShared?: boolean | undefined;
993
+ clientId?: string | undefined;
994
+ clientSecret?: string | undefined;
995
995
  facebookConfigId?: string | undefined;
996
996
  microsoftTenantId?: string | undefined;
997
997
  }>;
@@ -999,30 +999,30 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
999
999
  };
1000
1000
  emails: Omit<{
1001
1001
  selectedThemeId?: string | undefined;
1002
- templates: Record<string, {
1003
- themeId?: string | false | undefined;
1002
+ themes: Record<string, {
1004
1003
  displayName: string;
1005
1004
  tsxSource: string;
1006
1005
  }>;
1007
- themes: Record<string, {
1006
+ templates: Record<string, {
1007
+ themeId?: string | false | undefined;
1008
1008
  displayName: string;
1009
1009
  tsxSource: string;
1010
1010
  }>;
1011
1011
  }, "server"> & {
1012
1012
  server: {
1013
- host?: string | undefined;
1014
- port?: number | undefined;
1015
- username?: string | undefined;
1016
1013
  password?: string | undefined;
1017
1014
  isShared?: boolean | undefined;
1018
1015
  provider?: "resend" | "smtp" | undefined;
1016
+ host?: string | undefined;
1017
+ port?: number | undefined;
1018
+ username?: string | undefined;
1019
1019
  senderName?: string | undefined;
1020
1020
  senderEmail?: string | undefined;
1021
1021
  };
1022
1022
  };
1023
1023
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
1024
1024
  sourceOfTruth: undefined;
1025
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1025
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1026
1026
  rbac: {
1027
1027
  permissions: undefined;
1028
1028
  defaultPermissions: {
@@ -1089,7 +1089,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1089
1089
  }>, "domains" | "auth" | "emails"> & {
1090
1090
  auth: Omit<NonNullable<Omit<Omit<{
1091
1091
  sourceOfTruth: undefined;
1092
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1092
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1093
1093
  rbac: {
1094
1094
  permissions: undefined;
1095
1095
  defaultPermissions: {
@@ -1156,7 +1156,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1156
1156
  }>, "oauth"> & {
1157
1157
  oauth: Omit<NonNullable<Omit<Omit<{
1158
1158
  sourceOfTruth: undefined;
1159
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1159
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1160
1160
  rbac: {
1161
1161
  permissions: undefined;
1162
1162
  defaultPermissions: {
@@ -1226,7 +1226,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1226
1226
  };
1227
1227
  emails: Omit<NonNullable<Omit<Omit<{
1228
1228
  sourceOfTruth: undefined;
1229
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1229
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1230
1230
  rbac: {
1231
1231
  permissions: undefined;
1232
1232
  defaultPermissions: {
@@ -1304,7 +1304,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1304
1304
  };
1305
1305
  domains: Omit<NonNullable<Omit<Omit<{
1306
1306
  sourceOfTruth: undefined;
1307
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1307
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1308
1308
  rbac: {
1309
1309
  permissions: undefined;
1310
1310
  defaultPermissions: {
@@ -1402,7 +1402,7 @@ declare const organizationConfigDefaults: {
1402
1402
  };
1403
1403
  };
1404
1404
  readonly apps: {
1405
- readonly installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
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
1406
  enabled: false;
1407
1407
  }>;
1408
1408
  };
@@ -1503,7 +1503,7 @@ declare const organizationConfigDefaults: {
1503
1503
  };
1504
1504
  };
1505
1505
  readonly payments: {
1506
- readonly testMode: false;
1506
+ readonly testMode: true;
1507
1507
  readonly autoPay: undefined;
1508
1508
  readonly catalogs: (key: string) => {
1509
1509
  displayName: undefined;
@@ -1641,12 +1641,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1641
1641
  };
1642
1642
  };
1643
1643
  server: {
1644
- host: string | undefined;
1645
- port: number | undefined;
1646
- username: string | undefined;
1647
1644
  password: string | undefined;
1648
1645
  isShared: boolean;
1649
1646
  provider: "resend" | "smtp";
1647
+ host: string | undefined;
1648
+ port: number | undefined;
1649
+ username: string | undefined;
1650
1650
  senderName: string | undefined;
1651
1651
  senderEmail: string | undefined;
1652
1652
  };
@@ -1655,6 +1655,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1655
1655
  products: Record<string, {
1656
1656
  isAddOnTo: false | Record<string, true>;
1657
1657
  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;
1658
1661
  USD?: string | undefined;
1659
1662
  EUR?: string | undefined;
1660
1663
  GBP?: string | undefined;
@@ -1662,19 +1665,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1662
1665
  INR?: string | undefined;
1663
1666
  AUD?: string | undefined;
1664
1667
  CAD?: string | undefined;
1665
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1666
- serverOnly: boolean;
1667
- freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
1668
1668
  }>;
1669
1669
  displayName: string;
1670
- serverOnly: boolean;
1671
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1672
1670
  catalogId: string | undefined;
1673
1671
  customerType: "team" | "user" | "custom";
1672
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1673
+ serverOnly: boolean;
1674
1674
  stackable: boolean | undefined;
1675
1675
  includedItems: {
1676
1676
  [x: string]: {
1677
- repeat: "never" | [number, "day" | "week" | "year" | "month"];
1677
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
1678
1678
  quantity: number;
1679
1679
  expires: "never" | "when-purchase-expires" | "when-repeated";
1680
1680
  };
@@ -1687,7 +1687,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1687
1687
  };
1688
1688
  };
1689
1689
  autoPay: {
1690
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1690
+ interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1691
1691
  } | undefined;
1692
1692
  testMode: boolean;
1693
1693
  catalogs: {
@@ -1697,7 +1697,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1697
1697
  };
1698
1698
  };
1699
1699
  sourceOfTruth: {
1700
- type: "neon" | "hosted" | "postgres";
1700
+ type: "hosted" | "neon" | "postgres";
1701
1701
  connectionString: string | undefined;
1702
1702
  connectionStrings: {
1703
1703
  [x: string]: string | undefined;
@@ -1717,46 +1717,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1717
1717
  readonly connectionStrings?: undefined;
1718
1718
  readonly connectionString?: undefined;
1719
1719
  });
1720
- domains: {
1721
- allowLocalhost: boolean;
1722
- trustedDomains: {
1723
- [x: string]: {
1724
- baseUrl: string | undefined;
1725
- handlerPath: string;
1726
- };
1727
- };
1728
- };
1729
- teams: {
1730
- createPersonalTeamOnSignUp: boolean;
1731
- allowClientTeamCreation: boolean;
1732
- };
1733
- auth: {
1734
- password: {
1735
- allowSignIn: boolean;
1736
- };
1737
- allowSignUp: boolean;
1738
- otp: {
1739
- allowSignIn: boolean;
1740
- };
1741
- passkey: {
1742
- allowSignIn: boolean;
1743
- };
1744
- oauth: {
1745
- accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1746
- providers: {
1747
- [x: string]: {
1748
- type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1749
- clientId: string | undefined;
1750
- clientSecret: string | undefined;
1751
- allowSignIn: boolean;
1752
- allowConnectedAccounts: boolean;
1753
- isShared: boolean;
1754
- facebookConfigId: string | undefined;
1755
- microsoftTenantId: string | undefined;
1756
- };
1757
- };
1758
- };
1759
- };
1760
1720
  rbac: {
1761
1721
  permissions: {
1762
1722
  [x: string]: {
@@ -1779,15 +1739,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1779
1739
  };
1780
1740
  };
1781
1741
  };
1782
- workflows: {
1783
- availableWorkflows: {
1784
- [x: string]: {
1785
- displayName: string;
1786
- enabled: boolean;
1787
- tsSource: string;
1788
- };
1789
- };
1790
- };
1791
1742
  apiKeys: {
1792
1743
  enabled: {
1793
1744
  team: boolean;
@@ -1796,19 +1747,25 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1796
1747
  };
1797
1748
  apps: {
1798
1749
  installed: {
1799
- teams: {
1750
+ neon: {
1800
1751
  enabled: boolean;
1801
1752
  };
1802
- authentication: {
1753
+ rbac: {
1803
1754
  enabled: boolean;
1804
1755
  };
1805
- rbac: {
1756
+ payments: {
1806
1757
  enabled: boolean;
1807
1758
  };
1808
- "api-keys": {
1759
+ workflows: {
1809
1760
  enabled: boolean;
1810
1761
  };
1811
- payments: {
1762
+ teams: {
1763
+ enabled: boolean;
1764
+ };
1765
+ authentication: {
1766
+ enabled: boolean;
1767
+ };
1768
+ "api-keys": {
1812
1769
  enabled: boolean;
1813
1770
  };
1814
1771
  emails: {
@@ -1820,9 +1777,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1820
1777
  "data-vault": {
1821
1778
  enabled: boolean;
1822
1779
  };
1823
- workflows: {
1824
- enabled: boolean;
1825
- };
1826
1780
  webhooks: {
1827
1781
  enabled: boolean;
1828
1782
  };
@@ -1835,14 +1789,60 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1835
1789
  catalyst: {
1836
1790
  enabled: boolean;
1837
1791
  };
1838
- neon: {
1792
+ convex: {
1839
1793
  enabled: boolean;
1840
1794
  };
1841
- convex: {
1795
+ };
1796
+ };
1797
+ domains: {
1798
+ allowLocalhost: boolean;
1799
+ trustedDomains: {
1800
+ [x: string]: {
1801
+ baseUrl: string | undefined;
1802
+ handlerPath: string;
1803
+ };
1804
+ };
1805
+ };
1806
+ auth: {
1807
+ allowSignUp: boolean;
1808
+ password: {
1809
+ allowSignIn: boolean;
1810
+ };
1811
+ otp: {
1812
+ allowSignIn: boolean;
1813
+ };
1814
+ passkey: {
1815
+ allowSignIn: boolean;
1816
+ };
1817
+ oauth: {
1818
+ accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1819
+ providers: {
1820
+ [x: string]: {
1821
+ type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1822
+ allowSignIn: boolean;
1823
+ allowConnectedAccounts: boolean;
1824
+ isShared: boolean;
1825
+ clientId: string | undefined;
1826
+ clientSecret: string | undefined;
1827
+ facebookConfigId: string | undefined;
1828
+ microsoftTenantId: string | undefined;
1829
+ };
1830
+ };
1831
+ };
1832
+ };
1833
+ workflows: {
1834
+ availableWorkflows: {
1835
+ [x: string]: {
1842
1836
  enabled: boolean;
1837
+ displayName: string;
1838
+ tsSource: string;
1843
1839
  };
1844
1840
  };
1845
1841
  };
1842
+ teams: {
1843
+ createPersonalTeamOnSignUp: boolean;
1844
+ allowClientTeamCreation: boolean;
1845
+ };
1846
1846
  users: {
1847
1847
  allowClientUserDeletion: boolean;
1848
1848
  };