@stackframe/stack-shared 2.8.43 → 2.8.45

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 (64) hide show
  1. package/CHANGELOG.md +12 -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 +159 -159
  7. package/dist/config/schema.d.ts +159 -159
  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/strings.js +1 -1
  25. package/dist/esm/utils/strings.js.map +1 -1
  26. package/dist/esm/utils/strings.nicify.test.js +6 -0
  27. package/dist/esm/utils/strings.nicify.test.js.map +1 -1
  28. package/dist/esm/utils/urls.js +10 -0
  29. package/dist/esm/utils/urls.js.map +1 -1
  30. package/dist/index.d.mts +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/interface/admin-interface.d.mts +1 -1
  33. package/dist/interface/admin-interface.d.ts +1 -1
  34. package/dist/interface/client-interface.d.mts +1 -1
  35. package/dist/interface/client-interface.d.ts +1 -1
  36. package/dist/interface/client-interface.js +18 -16
  37. package/dist/interface/client-interface.js.map +1 -1
  38. package/dist/interface/server-interface.d.mts +1 -1
  39. package/dist/interface/server-interface.d.ts +1 -1
  40. package/dist/utils/caches.d.mts +4 -2
  41. package/dist/utils/caches.d.ts +4 -2
  42. package/dist/utils/caches.js +6 -2
  43. package/dist/utils/caches.js.map +1 -1
  44. package/dist/utils/globals.d.mts +3 -1
  45. package/dist/utils/globals.d.ts +3 -1
  46. package/dist/utils/globals.js +12 -2
  47. package/dist/utils/globals.js.map +1 -1
  48. package/dist/utils/react.d.mts +2 -1
  49. package/dist/utils/react.d.ts +2 -1
  50. package/dist/utils/react.js +13 -6
  51. package/dist/utils/react.js.map +1 -1
  52. package/dist/utils/regex.d.mts +3 -0
  53. package/dist/utils/regex.d.ts +3 -0
  54. package/dist/utils/regex.js +38 -0
  55. package/dist/utils/regex.js.map +1 -0
  56. package/dist/utils/strings.js +1 -1
  57. package/dist/utils/strings.js.map +1 -1
  58. package/dist/utils/strings.nicify.test.js +6 -0
  59. package/dist/utils/strings.nicify.test.js.map +1 -1
  60. package/dist/utils/urls.d.mts +3 -1
  61. package/dist/utils/urls.d.ts +3 -1
  62. package/dist/utils/urls.js +12 -0
  63. package/dist/utils/urls.js.map +1 -1
  64. package/package.json +1 -1
@@ -38,14 +38,17 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
38
38
  displayName?: string | undefined;
39
39
  }>;
40
40
  products: Record<string, {
41
- displayName?: string | undefined;
42
- serverOnly?: boolean | undefined;
43
- freeTrial?: DayInterval | undefined;
44
41
  catalogId?: string | undefined;
42
+ displayName?: 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,7 @@ 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"> & {
90
- domains: {
91
- allowLocalhost?: boolean | undefined;
92
- };
93
- teams: {
94
- createPersonalTeamOnSignUp?: boolean | undefined;
95
- allowClientTeamCreation?: boolean | undefined;
96
- };
89
+ }, string>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
97
90
  auth: {
98
91
  allowSignUp?: boolean | undefined;
99
92
  password: {
@@ -108,16 +101,20 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
108
101
  oauth: {
109
102
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
110
103
  providers: Record<string, {
111
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
104
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
112
105
  allowSignIn?: boolean | undefined;
113
106
  allowConnectedAccounts?: boolean | undefined;
114
107
  }>;
115
108
  };
116
109
  };
110
+ teams: {
111
+ createPersonalTeamOnSignUp?: boolean | undefined;
112
+ allowClientTeamCreation?: boolean | undefined;
113
+ };
117
114
  rbac: {
118
115
  permissions: Record<string, {
119
116
  description?: string | undefined;
120
- scope?: "team" | "project" | undefined;
117
+ scope?: "project" | "team" | undefined;
121
118
  containedPermissionIds?: Record<string, true | undefined> | undefined;
122
119
  } | undefined>;
123
120
  defaultPermissions: {
@@ -139,14 +136,17 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
139
136
  displayName?: string | undefined;
140
137
  }>;
141
138
  products: Record<string, {
142
- displayName?: string | undefined;
143
- serverOnly?: boolean | undefined;
144
- freeTrial?: DayInterval | undefined;
145
139
  catalogId?: string | undefined;
140
+ displayName?: string | undefined;
146
141
  isAddOnTo?: false | Record<string, true> | undefined;
142
+ freeTrial?: DayInterval | undefined;
143
+ serverOnly?: boolean | undefined;
147
144
  stackable?: boolean | undefined;
148
145
  customerType: "team" | "user" | "custom";
149
146
  prices: "include-by-default" | Record<string, {
147
+ interval?: DayInterval | undefined;
148
+ freeTrial?: DayInterval | undefined;
149
+ serverOnly?: boolean | undefined;
150
150
  USD?: string | undefined;
151
151
  EUR?: string | undefined;
152
152
  GBP?: string | undefined;
@@ -154,9 +154,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
154
154
  INR?: string | undefined;
155
155
  AUD?: string | undefined;
156
156
  CAD?: string | undefined;
157
- interval?: DayInterval | undefined;
158
- serverOnly?: boolean | undefined;
159
- freeTrial?: DayInterval | undefined;
160
157
  }>;
161
158
  includedItems: Record<string, {
162
159
  repeat?: "never" | DayInterval | undefined;
@@ -167,20 +164,20 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
167
164
  };
168
165
  emails: {
169
166
  selectedThemeId?: string | undefined;
170
- templates: Record<string, {
171
- themeId?: string | false | undefined;
167
+ themes: Record<string, {
172
168
  displayName: string;
173
169
  tsxSource: string;
174
170
  }>;
175
- themes: Record<string, {
171
+ templates: Record<string, {
172
+ themeId?: string | false | undefined;
176
173
  displayName: string;
177
174
  tsxSource: string;
178
175
  }>;
179
176
  };
180
177
  workflows: {
181
178
  availableWorkflows: Record<string, {
182
- displayName?: string | undefined;
183
179
  enabled?: boolean | undefined;
180
+ displayName?: string | undefined;
184
181
  tsSource?: string | undefined;
185
182
  }>;
186
183
  };
@@ -191,10 +188,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
191
188
  };
192
189
  };
193
190
  apps: {
194
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
191
+ installed: Record<"neon" | "authentication" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
195
192
  enabled?: boolean | undefined;
196
193
  }>;
197
194
  };
195
+ domains: {
196
+ allowLocalhost?: boolean | undefined;
197
+ };
198
198
  users: {
199
199
  allowClientUserDeletion?: boolean | undefined;
200
200
  };
@@ -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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
209
209
  rbac: {
210
210
  permissions: undefined;
211
211
  defaultPermissions: {
@@ -280,14 +280,7 @@ 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"> & {
284
- domains: {
285
- allowLocalhost?: boolean | undefined;
286
- };
287
- teams: {
288
- createPersonalTeamOnSignUp?: boolean | undefined;
289
- allowClientTeamCreation?: boolean | undefined;
290
- };
283
+ }, string>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
291
284
  auth: {
292
285
  allowSignUp?: boolean | undefined;
293
286
  password: {
@@ -302,16 +295,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
302
295
  oauth: {
303
296
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
304
297
  providers: Record<string, {
305
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
298
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
306
299
  allowSignIn?: boolean | undefined;
307
300
  allowConnectedAccounts?: boolean | undefined;
308
301
  }>;
309
302
  };
310
303
  };
304
+ teams: {
305
+ createPersonalTeamOnSignUp?: boolean | undefined;
306
+ allowClientTeamCreation?: boolean | undefined;
307
+ };
311
308
  rbac: {
312
309
  permissions: Record<string, {
313
310
  description?: string | undefined;
314
- scope?: "team" | "project" | undefined;
311
+ scope?: "project" | "team" | undefined;
315
312
  containedPermissionIds?: Record<string, true | undefined> | undefined;
316
313
  } | undefined>;
317
314
  defaultPermissions: {
@@ -333,14 +330,17 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
333
330
  displayName?: string | undefined;
334
331
  }>;
335
332
  products: Record<string, {
336
- displayName?: string | undefined;
337
- serverOnly?: boolean | undefined;
338
- freeTrial?: DayInterval | undefined;
339
333
  catalogId?: string | undefined;
334
+ displayName?: string | undefined;
340
335
  isAddOnTo?: false | Record<string, true> | undefined;
336
+ freeTrial?: DayInterval | undefined;
337
+ serverOnly?: boolean | undefined;
341
338
  stackable?: boolean | undefined;
342
339
  customerType: "team" | "user" | "custom";
343
340
  prices: "include-by-default" | Record<string, {
341
+ interval?: DayInterval | undefined;
342
+ freeTrial?: DayInterval | undefined;
343
+ serverOnly?: boolean | undefined;
344
344
  USD?: string | undefined;
345
345
  EUR?: string | undefined;
346
346
  GBP?: string | undefined;
@@ -348,9 +348,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
348
348
  INR?: string | undefined;
349
349
  AUD?: string | undefined;
350
350
  CAD?: string | undefined;
351
- interval?: DayInterval | undefined;
352
- serverOnly?: boolean | undefined;
353
- freeTrial?: DayInterval | undefined;
354
351
  }>;
355
352
  includedItems: Record<string, {
356
353
  repeat?: "never" | DayInterval | undefined;
@@ -361,20 +358,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
361
358
  };
362
359
  emails: {
363
360
  selectedThemeId?: string | undefined;
364
- templates: Record<string, {
365
- themeId?: string | false | undefined;
361
+ themes: Record<string, {
366
362
  displayName: string;
367
363
  tsxSource: string;
368
364
  }>;
369
- themes: Record<string, {
365
+ templates: Record<string, {
366
+ themeId?: string | false | undefined;
370
367
  displayName: string;
371
368
  tsxSource: string;
372
369
  }>;
373
370
  };
374
371
  workflows: {
375
372
  availableWorkflows: Record<string, {
376
- displayName?: string | undefined;
377
373
  enabled?: boolean | undefined;
374
+ displayName?: string | undefined;
378
375
  tsSource?: string | undefined;
379
376
  }>;
380
377
  };
@@ -385,10 +382,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
385
382
  };
386
383
  };
387
384
  apps: {
388
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
385
+ installed: Record<"neon" | "authentication" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
389
386
  enabled?: boolean | undefined;
390
387
  }>;
391
388
  };
389
+ domains: {
390
+ allowLocalhost?: boolean | undefined;
391
+ };
392
392
  users: {
393
393
  allowClientUserDeletion?: boolean | undefined;
394
394
  };
@@ -397,15 +397,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
397
397
  displayName?: string | undefined;
398
398
  }>;
399
399
  };
400
- }>, "domains" | "auth" | "emails"> & {
401
- domains: Omit<{
402
- allowLocalhost?: boolean | undefined;
403
- }, "trustedDomains"> & {
404
- trustedDomains: Record<string, {
405
- baseUrl?: string | undefined;
406
- handlerPath?: string | undefined;
407
- }>;
408
- };
400
+ }>, "auth" | "emails" | "domains"> & {
409
401
  auth: Omit<{
410
402
  allowSignUp?: boolean | undefined;
411
403
  password: {
@@ -420,7 +412,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
420
412
  oauth: {
421
413
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
422
414
  providers: Record<string, {
423
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
415
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
424
416
  allowSignIn?: boolean | undefined;
425
417
  allowConnectedAccounts?: boolean | undefined;
426
418
  }>;
@@ -429,18 +421,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
429
421
  oauth: Omit<{
430
422
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
431
423
  providers: Record<string, {
432
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
424
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
433
425
  allowSignIn?: boolean | undefined;
434
426
  allowConnectedAccounts?: boolean | undefined;
435
427
  }>;
436
428
  }, "providers"> & {
437
429
  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;
430
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
441
431
  allowSignIn?: boolean | undefined;
442
432
  allowConnectedAccounts?: boolean | undefined;
443
433
  isShared?: boolean | undefined;
434
+ clientId?: string | undefined;
435
+ clientSecret?: string | undefined;
444
436
  facebookConfigId?: string | undefined;
445
437
  microsoftTenantId?: string | undefined;
446
438
  }>;
@@ -448,30 +440,38 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
448
440
  };
449
441
  emails: Omit<{
450
442
  selectedThemeId?: string | undefined;
451
- templates: Record<string, {
452
- themeId?: string | false | undefined;
443
+ themes: Record<string, {
453
444
  displayName: string;
454
445
  tsxSource: string;
455
446
  }>;
456
- themes: Record<string, {
447
+ templates: Record<string, {
448
+ themeId?: string | false | undefined;
457
449
  displayName: string;
458
450
  tsxSource: string;
459
451
  }>;
460
452
  }, "server"> & {
461
453
  server: {
462
- host?: string | undefined;
463
- port?: number | undefined;
464
- username?: string | undefined;
465
454
  password?: string | undefined;
466
455
  isShared?: boolean | undefined;
467
456
  provider?: "resend" | "smtp" | undefined;
457
+ host?: string | undefined;
458
+ port?: number | undefined;
459
+ username?: string | undefined;
468
460
  senderName?: string | undefined;
469
461
  senderEmail?: string | undefined;
470
462
  };
471
463
  };
464
+ domains: Omit<{
465
+ allowLocalhost?: boolean | undefined;
466
+ }, "trustedDomains"> & {
467
+ trustedDomains: Record<string, {
468
+ baseUrl?: string | undefined;
469
+ handlerPath?: string | undefined;
470
+ }>;
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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
475
475
  rbac: {
476
476
  permissions: undefined;
477
477
  defaultPermissions: {
@@ -535,10 +535,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
535
535
  workflows: {
536
536
  availableWorkflows: undefined;
537
537
  };
538
- }>, "domains" | "auth" | "emails"> & {
538
+ }>, "auth" | "emails" | "domains"> & {
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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
757
757
  rbac: {
758
758
  permissions: undefined;
759
759
  defaultPermissions: {
@@ -831,14 +831,7 @@ 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"> & {
835
- domains: {
836
- allowLocalhost?: boolean | undefined;
837
- };
838
- teams: {
839
- createPersonalTeamOnSignUp?: boolean | undefined;
840
- allowClientTeamCreation?: boolean | undefined;
841
- };
834
+ }, string>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
842
835
  auth: {
843
836
  allowSignUp?: boolean | undefined;
844
837
  password: {
@@ -853,16 +846,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
853
846
  oauth: {
854
847
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
855
848
  providers: Record<string, {
856
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
849
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
857
850
  allowSignIn?: boolean | undefined;
858
851
  allowConnectedAccounts?: boolean | undefined;
859
852
  }>;
860
853
  };
861
854
  };
855
+ teams: {
856
+ createPersonalTeamOnSignUp?: boolean | undefined;
857
+ allowClientTeamCreation?: boolean | undefined;
858
+ };
862
859
  rbac: {
863
860
  permissions: Record<string, {
864
861
  description?: string | undefined;
865
- scope?: "team" | "project" | undefined;
862
+ scope?: "project" | "team" | undefined;
866
863
  containedPermissionIds?: Record<string, true | undefined> | undefined;
867
864
  } | undefined>;
868
865
  defaultPermissions: {
@@ -884,14 +881,17 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
884
881
  displayName?: string | undefined;
885
882
  }>;
886
883
  products: Record<string, {
887
- displayName?: string | undefined;
888
- serverOnly?: boolean | undefined;
889
- freeTrial?: DayInterval | undefined;
890
884
  catalogId?: string | undefined;
885
+ displayName?: string | undefined;
891
886
  isAddOnTo?: false | Record<string, true> | undefined;
887
+ freeTrial?: DayInterval | undefined;
888
+ serverOnly?: boolean | undefined;
892
889
  stackable?: boolean | undefined;
893
890
  customerType: "team" | "user" | "custom";
894
891
  prices: "include-by-default" | Record<string, {
892
+ interval?: DayInterval | undefined;
893
+ freeTrial?: DayInterval | undefined;
894
+ serverOnly?: boolean | undefined;
895
895
  USD?: string | undefined;
896
896
  EUR?: string | undefined;
897
897
  GBP?: string | undefined;
@@ -899,9 +899,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
899
899
  INR?: string | undefined;
900
900
  AUD?: string | undefined;
901
901
  CAD?: string | undefined;
902
- interval?: DayInterval | undefined;
903
- serverOnly?: boolean | undefined;
904
- freeTrial?: DayInterval | undefined;
905
902
  }>;
906
903
  includedItems: Record<string, {
907
904
  repeat?: "never" | DayInterval | undefined;
@@ -912,20 +909,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
912
909
  };
913
910
  emails: {
914
911
  selectedThemeId?: string | undefined;
915
- templates: Record<string, {
916
- themeId?: string | false | undefined;
912
+ themes: Record<string, {
917
913
  displayName: string;
918
914
  tsxSource: string;
919
915
  }>;
920
- themes: Record<string, {
916
+ templates: Record<string, {
917
+ themeId?: string | false | undefined;
921
918
  displayName: string;
922
919
  tsxSource: string;
923
920
  }>;
924
921
  };
925
922
  workflows: {
926
923
  availableWorkflows: Record<string, {
927
- displayName?: string | undefined;
928
924
  enabled?: boolean | undefined;
925
+ displayName?: string | undefined;
929
926
  tsSource?: string | undefined;
930
927
  }>;
931
928
  };
@@ -936,10 +933,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
936
933
  };
937
934
  };
938
935
  apps: {
939
- installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
936
+ installed: Record<"neon" | "authentication" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
940
937
  enabled?: boolean | undefined;
941
938
  }>;
942
939
  };
940
+ domains: {
941
+ allowLocalhost?: boolean | undefined;
942
+ };
943
943
  users: {
944
944
  allowClientUserDeletion?: boolean | undefined;
945
945
  };
@@ -948,15 +948,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
948
948
  displayName?: string | undefined;
949
949
  }>;
950
950
  };
951
- }>, "domains" | "auth" | "emails"> & {
952
- domains: Omit<{
953
- allowLocalhost?: boolean | undefined;
954
- }, "trustedDomains"> & {
955
- trustedDomains: Record<string, {
956
- baseUrl?: string | undefined;
957
- handlerPath?: string | undefined;
958
- }>;
959
- };
951
+ }>, "auth" | "emails" | "domains"> & {
960
952
  auth: Omit<{
961
953
  allowSignUp?: boolean | undefined;
962
954
  password: {
@@ -971,7 +963,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
971
963
  oauth: {
972
964
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
973
965
  providers: Record<string, {
974
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
966
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
975
967
  allowSignIn?: boolean | undefined;
976
968
  allowConnectedAccounts?: boolean | undefined;
977
969
  }>;
@@ -980,18 +972,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
980
972
  oauth: Omit<{
981
973
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
982
974
  providers: Record<string, {
983
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
975
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
984
976
  allowSignIn?: boolean | undefined;
985
977
  allowConnectedAccounts?: boolean | undefined;
986
978
  }>;
987
979
  }, "providers"> & {
988
980
  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;
981
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
992
982
  allowSignIn?: boolean | undefined;
993
983
  allowConnectedAccounts?: boolean | undefined;
994
984
  isShared?: boolean | undefined;
985
+ clientId?: string | undefined;
986
+ clientSecret?: string | undefined;
995
987
  facebookConfigId?: string | undefined;
996
988
  microsoftTenantId?: string | undefined;
997
989
  }>;
@@ -999,30 +991,38 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
999
991
  };
1000
992
  emails: Omit<{
1001
993
  selectedThemeId?: string | undefined;
1002
- templates: Record<string, {
1003
- themeId?: string | false | undefined;
994
+ themes: Record<string, {
1004
995
  displayName: string;
1005
996
  tsxSource: string;
1006
997
  }>;
1007
- themes: Record<string, {
998
+ templates: Record<string, {
999
+ themeId?: string | false | undefined;
1008
1000
  displayName: string;
1009
1001
  tsxSource: string;
1010
1002
  }>;
1011
1003
  }, "server"> & {
1012
1004
  server: {
1013
- host?: string | undefined;
1014
- port?: number | undefined;
1015
- username?: string | undefined;
1016
1005
  password?: string | undefined;
1017
1006
  isShared?: boolean | undefined;
1018
1007
  provider?: "resend" | "smtp" | undefined;
1008
+ host?: string | undefined;
1009
+ port?: number | undefined;
1010
+ username?: string | undefined;
1019
1011
  senderName?: string | undefined;
1020
1012
  senderEmail?: string | undefined;
1021
1013
  };
1022
1014
  };
1015
+ domains: Omit<{
1016
+ allowLocalhost?: boolean | undefined;
1017
+ }, "trustedDomains"> & {
1018
+ trustedDomains: Record<string, {
1019
+ baseUrl?: string | undefined;
1020
+ handlerPath?: string | undefined;
1021
+ }>;
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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "dataVault"> & {
1026
1026
  rbac: {
1027
1027
  permissions: undefined;
1028
1028
  defaultPermissions: {
@@ -1086,10 +1086,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1086
1086
  workflows: {
1087
1087
  availableWorkflows: undefined;
1088
1088
  };
1089
- }>, "domains" | "auth" | "emails"> & {
1089
+ }>, "auth" | "emails" | "domains"> & {
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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "teams" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "domains" | "users" | "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" | "authentication" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "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
- displayName: string;
1670
- serverOnly: boolean;
1671
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1672
1669
  catalogId: string | undefined;
1670
+ displayName: string;
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,24 +1717,11 @@ 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
1720
  auth: {
1721
+ allowSignUp: boolean;
1734
1722
  password: {
1735
1723
  allowSignIn: boolean;
1736
1724
  };
1737
- allowSignUp: boolean;
1738
1725
  otp: {
1739
1726
  allowSignIn: boolean;
1740
1727
  };
@@ -1745,23 +1732,27 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1745
1732
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1746
1733
  providers: {
1747
1734
  [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;
1735
+ type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1751
1736
  allowSignIn: boolean;
1752
1737
  allowConnectedAccounts: boolean;
1753
1738
  isShared: boolean;
1739
+ clientId: string | undefined;
1740
+ clientSecret: string | undefined;
1754
1741
  facebookConfigId: string | undefined;
1755
1742
  microsoftTenantId: string | undefined;
1756
1743
  };
1757
1744
  };
1758
1745
  };
1759
1746
  };
1747
+ teams: {
1748
+ createPersonalTeamOnSignUp: boolean;
1749
+ allowClientTeamCreation: boolean;
1750
+ };
1760
1751
  rbac: {
1761
1752
  permissions: {
1762
1753
  [x: string]: {
1763
1754
  description: string | undefined;
1764
- scope: "team" | "project" | undefined;
1755
+ scope: "project" | "team" | undefined;
1765
1756
  containedPermissionIds: {
1766
1757
  [x: string]: true | undefined;
1767
1758
  };
@@ -1782,8 +1773,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1782
1773
  workflows: {
1783
1774
  availableWorkflows: {
1784
1775
  [x: string]: {
1785
- displayName: string;
1786
1776
  enabled: boolean;
1777
+ displayName: string;
1787
1778
  tsSource: string;
1788
1779
  };
1789
1780
  };
@@ -1796,12 +1787,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1796
1787
  };
1797
1788
  apps: {
1798
1789
  installed: {
1799
- teams: {
1790
+ neon: {
1800
1791
  enabled: boolean;
1801
1792
  };
1802
1793
  authentication: {
1803
1794
  enabled: boolean;
1804
1795
  };
1796
+ teams: {
1797
+ enabled: boolean;
1798
+ };
1805
1799
  rbac: {
1806
1800
  enabled: boolean;
1807
1801
  };
@@ -1835,14 +1829,20 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1835
1829
  catalyst: {
1836
1830
  enabled: boolean;
1837
1831
  };
1838
- neon: {
1839
- enabled: boolean;
1840
- };
1841
1832
  convex: {
1842
1833
  enabled: boolean;
1843
1834
  };
1844
1835
  };
1845
1836
  };
1837
+ domains: {
1838
+ allowLocalhost: boolean;
1839
+ trustedDomains: {
1840
+ [x: string]: {
1841
+ baseUrl: string | undefined;
1842
+ handlerPath: string;
1843
+ };
1844
+ };
1845
+ };
1846
1846
  users: {
1847
1847
  allowClientUserDeletion: boolean;
1848
1848
  };