@stackframe/stack-shared 2.8.49 → 2.8.52

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 (46) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/apps/apps-ui.d.mts +26 -0
  3. package/dist/apps/apps-ui.d.ts +26 -0
  4. package/dist/apps/apps-ui.js +110 -0
  5. package/dist/apps/apps-ui.js.map +1 -0
  6. package/dist/config/schema.d.mts +189 -189
  7. package/dist/config/schema.d.ts +189 -189
  8. package/dist/esm/apps/apps-ui.js +83 -0
  9. package/dist/esm/apps/apps-ui.js.map +1 -0
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/interface/crud/svix-token.js +2 -1
  12. package/dist/esm/interface/crud/svix-token.js.map +1 -1
  13. package/dist/esm/interface/server-interface.js +11 -0
  14. package/dist/esm/interface/server-interface.js.map +1 -1
  15. package/dist/esm/known-errors.js +1 -1
  16. package/dist/esm/known-errors.js.map +1 -1
  17. package/dist/esm/utils/caches.js +16 -9
  18. package/dist/esm/utils/caches.js.map +1 -1
  19. package/dist/esm/utils/react.js +49 -2
  20. package/dist/esm/utils/react.js.map +1 -1
  21. package/dist/esm/utils/stores.js +1 -0
  22. package/dist/esm/utils/stores.js.map +1 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/interface/crud/svix-token.d.mts +4 -0
  25. package/dist/interface/crud/svix-token.d.ts +4 -0
  26. package/dist/interface/crud/svix-token.js +2 -1
  27. package/dist/interface/crud/svix-token.js.map +1 -1
  28. package/dist/interface/server-interface.d.mts +4 -0
  29. package/dist/interface/server-interface.d.ts +4 -0
  30. package/dist/interface/server-interface.js +11 -0
  31. package/dist/interface/server-interface.js.map +1 -1
  32. package/dist/known-errors.d.mts +1 -1
  33. package/dist/known-errors.d.ts +1 -1
  34. package/dist/known-errors.js +1 -1
  35. package/dist/known-errors.js.map +1 -1
  36. package/dist/utils/caches.d.mts +4 -3
  37. package/dist/utils/caches.d.ts +4 -3
  38. package/dist/utils/caches.js +16 -9
  39. package/dist/utils/caches.js.map +1 -1
  40. package/dist/utils/react.d.mts +3 -1
  41. package/dist/utils/react.d.ts +3 -1
  42. package/dist/utils/react.js +50 -1
  43. package/dist/utils/react.js.map +1 -1
  44. package/dist/utils/stores.js +1 -0
  45. package/dist/utils/stores.js.map +1 -1
  46. 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" | "apiKeys" | "apps" | "users" | "dataVault"> & {
89
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "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" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex" | "vercel", {
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,6 +172,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
165
172
  }>;
166
173
  }>;
167
174
  };
175
+ teams: {
176
+ createPersonalTeamOnSignUp?: boolean | undefined;
177
+ allowClientTeamCreation?: boolean | undefined;
178
+ };
179
+ users: {
180
+ allowClientUserDeletion?: boolean | undefined;
181
+ };
168
182
  emails: {
169
183
  selectedThemeId?: string | undefined;
170
184
  themes: Record<string, {
@@ -177,20 +191,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
177
191
  tsxSource: string;
178
192
  }>;
179
193
  };
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
- };
194
194
  dataVault: {
195
195
  stores: Record<string, {
196
196
  displayName?: string | undefined;
@@ -198,7 +198,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
198
198
  };
199
199
  }, yup.AnyObject, Omit<Omit<{
200
200
  sourceOfTruth: undefined;
201
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
201
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
202
202
  rbac: {
203
203
  permissions: undefined;
204
204
  defaultPermissions: {
@@ -270,14 +270,33 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
270
270
  type: "postgres";
271
271
  connectionString: string;
272
272
  };
273
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
273
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
274
+ rbac: {
275
+ permissions: Record<string, {
276
+ description?: string | undefined;
277
+ scope?: "team" | "project" | undefined;
278
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
279
+ } | undefined>;
280
+ defaultPermissions: {
281
+ teamCreator: Record<string, true | undefined>;
282
+ teamMember: Record<string, true | undefined>;
283
+ signUp: Record<string, true | undefined>;
284
+ };
285
+ };
286
+ apiKeys: {
287
+ enabled: {
288
+ team?: boolean | undefined;
289
+ user?: boolean | undefined;
290
+ };
291
+ };
292
+ apps: {
293
+ installed: Record<"neon" | "rbac" | "payments" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex" | "vercel", {
294
+ enabled?: boolean | undefined;
295
+ }>;
296
+ };
274
297
  domains: {
275
298
  allowLocalhost?: boolean | undefined;
276
299
  };
277
- teams: {
278
- createPersonalTeamOnSignUp?: boolean | undefined;
279
- allowClientTeamCreation?: boolean | undefined;
280
- };
281
300
  auth: {
282
301
  allowSignUp?: boolean | undefined;
283
302
  password: {
@@ -292,24 +311,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
292
311
  oauth: {
293
312
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
294
313
  providers: Record<string, {
295
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
314
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
296
315
  allowSignIn?: boolean | undefined;
297
316
  allowConnectedAccounts?: boolean | undefined;
298
317
  }>;
299
318
  };
300
319
  };
301
- rbac: {
302
- permissions: Record<string, {
303
- description?: string | undefined;
304
- scope?: "team" | "project" | undefined;
305
- containedPermissionIds?: Record<string, true | undefined> | undefined;
306
- } | undefined>;
307
- defaultPermissions: {
308
- teamCreator: Record<string, true | undefined>;
309
- teamMember: Record<string, true | undefined>;
310
- signUp: Record<string, true | undefined>;
311
- };
312
- };
313
320
  payments: {
314
321
  autoPay?: {
315
322
  interval?: DayInterval | undefined;
@@ -324,13 +331,16 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
324
331
  }>;
325
332
  products: Record<string, {
326
333
  displayName?: string | undefined;
327
- serverOnly?: boolean | undefined;
328
- freeTrial?: DayInterval | undefined;
329
334
  catalogId?: string | undefined;
330
335
  isAddOnTo?: false | Record<string, true> | undefined;
336
+ freeTrial?: DayInterval | undefined;
337
+ serverOnly?: boolean | undefined;
331
338
  stackable?: boolean | undefined;
332
339
  customerType: "team" | "user" | "custom";
333
340
  prices: "include-by-default" | Record<string, {
341
+ interval?: DayInterval | undefined;
342
+ freeTrial?: DayInterval | undefined;
343
+ serverOnly?: boolean | undefined;
334
344
  USD?: string | undefined;
335
345
  EUR?: string | undefined;
336
346
  GBP?: string | undefined;
@@ -338,9 +348,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
338
348
  INR?: string | undefined;
339
349
  AUD?: string | undefined;
340
350
  CAD?: string | undefined;
341
- interval?: DayInterval | undefined;
342
- serverOnly?: boolean | undefined;
343
- freeTrial?: DayInterval | undefined;
344
351
  }>;
345
352
  includedItems: Record<string, {
346
353
  repeat?: "never" | DayInterval | undefined;
@@ -349,6 +356,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
349
356
  }>;
350
357
  }>;
351
358
  };
359
+ teams: {
360
+ createPersonalTeamOnSignUp?: boolean | undefined;
361
+ allowClientTeamCreation?: boolean | undefined;
362
+ };
363
+ users: {
364
+ allowClientUserDeletion?: boolean | undefined;
365
+ };
352
366
  emails: {
353
367
  selectedThemeId?: string | undefined;
354
368
  themes: Record<string, {
@@ -361,20 +375,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
361
375
  tsxSource: string;
362
376
  }>;
363
377
  };
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
- };
378
378
  dataVault: {
379
379
  stores: Record<string, {
380
380
  displayName?: string | undefined;
@@ -403,7 +403,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
403
403
  oauth: {
404
404
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
405
405
  providers: Record<string, {
406
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
406
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
407
407
  allowSignIn?: boolean | undefined;
408
408
  allowConnectedAccounts?: boolean | undefined;
409
409
  }>;
@@ -412,18 +412,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
412
412
  oauth: Omit<{
413
413
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
414
414
  providers: Record<string, {
415
- 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;
416
416
  allowSignIn?: boolean | undefined;
417
417
  allowConnectedAccounts?: boolean | undefined;
418
418
  }>;
419
419
  }, "providers"> & {
420
420
  providers: Record<string, {
421
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
422
- clientId?: string | undefined;
423
- clientSecret?: string | undefined;
421
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
424
422
  allowSignIn?: boolean | undefined;
425
423
  allowConnectedAccounts?: boolean | undefined;
426
424
  isShared?: boolean | undefined;
425
+ clientId?: string | undefined;
426
+ clientSecret?: string | undefined;
427
427
  facebookConfigId?: string | undefined;
428
428
  microsoftTenantId?: string | undefined;
429
429
  }>;
@@ -442,19 +442,19 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
442
442
  }>;
443
443
  }, "server"> & {
444
444
  server: {
445
- host?: string | undefined;
446
- port?: number | undefined;
447
- username?: string | undefined;
448
445
  password?: string | undefined;
449
446
  isShared?: boolean | undefined;
450
447
  provider?: "resend" | "smtp" | undefined;
448
+ host?: string | undefined;
449
+ port?: number | undefined;
450
+ username?: string | undefined;
451
451
  senderName?: string | undefined;
452
452
  senderEmail?: string | undefined;
453
453
  };
454
454
  };
455
455
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
456
456
  sourceOfTruth: undefined;
457
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
457
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
458
458
  rbac: {
459
459
  permissions: undefined;
460
460
  defaultPermissions: {
@@ -518,7 +518,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
518
518
  }>, "domains" | "auth" | "emails"> & {
519
519
  auth: Omit<NonNullable<Omit<Omit<{
520
520
  sourceOfTruth: undefined;
521
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
521
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
522
522
  rbac: {
523
523
  permissions: undefined;
524
524
  defaultPermissions: {
@@ -582,7 +582,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
582
582
  }>, "oauth"> & {
583
583
  oauth: Omit<NonNullable<Omit<Omit<{
584
584
  sourceOfTruth: undefined;
585
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
585
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
586
586
  rbac: {
587
587
  permissions: undefined;
588
588
  defaultPermissions: {
@@ -649,7 +649,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
649
649
  };
650
650
  emails: Omit<NonNullable<Omit<Omit<{
651
651
  sourceOfTruth: undefined;
652
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
652
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
653
653
  rbac: {
654
654
  permissions: undefined;
655
655
  defaultPermissions: {
@@ -724,7 +724,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
724
724
  };
725
725
  domains: Omit<NonNullable<Omit<Omit<{
726
726
  sourceOfTruth: undefined;
727
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
727
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
728
728
  rbac: {
729
729
  permissions: undefined;
730
730
  defaultPermissions: {
@@ -799,14 +799,33 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
799
799
  type: "postgres";
800
800
  connectionString: string;
801
801
  };
802
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
802
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
803
+ rbac: {
804
+ permissions: Record<string, {
805
+ description?: string | undefined;
806
+ scope?: "team" | "project" | undefined;
807
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
808
+ } | undefined>;
809
+ defaultPermissions: {
810
+ teamCreator: Record<string, true | undefined>;
811
+ teamMember: Record<string, true | undefined>;
812
+ signUp: Record<string, true | undefined>;
813
+ };
814
+ };
815
+ apiKeys: {
816
+ enabled: {
817
+ team?: boolean | undefined;
818
+ user?: boolean | undefined;
819
+ };
820
+ };
821
+ apps: {
822
+ installed: Record<"neon" | "rbac" | "payments" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex" | "vercel", {
823
+ enabled?: boolean | undefined;
824
+ }>;
825
+ };
803
826
  domains: {
804
827
  allowLocalhost?: boolean | undefined;
805
828
  };
806
- teams: {
807
- createPersonalTeamOnSignUp?: boolean | undefined;
808
- allowClientTeamCreation?: boolean | undefined;
809
- };
810
829
  auth: {
811
830
  allowSignUp?: boolean | undefined;
812
831
  password: {
@@ -821,24 +840,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
821
840
  oauth: {
822
841
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
823
842
  providers: Record<string, {
824
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
843
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
825
844
  allowSignIn?: boolean | undefined;
826
845
  allowConnectedAccounts?: boolean | undefined;
827
846
  }>;
828
847
  };
829
848
  };
830
- rbac: {
831
- permissions: Record<string, {
832
- description?: string | undefined;
833
- scope?: "team" | "project" | undefined;
834
- containedPermissionIds?: Record<string, true | undefined> | undefined;
835
- } | undefined>;
836
- defaultPermissions: {
837
- teamCreator: Record<string, true | undefined>;
838
- teamMember: Record<string, true | undefined>;
839
- signUp: Record<string, true | undefined>;
840
- };
841
- };
842
849
  payments: {
843
850
  autoPay?: {
844
851
  interval?: DayInterval | undefined;
@@ -853,13 +860,16 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
853
860
  }>;
854
861
  products: Record<string, {
855
862
  displayName?: string | undefined;
856
- serverOnly?: boolean | undefined;
857
- freeTrial?: DayInterval | undefined;
858
863
  catalogId?: string | undefined;
859
864
  isAddOnTo?: false | Record<string, true> | undefined;
865
+ freeTrial?: DayInterval | undefined;
866
+ serverOnly?: boolean | undefined;
860
867
  stackable?: boolean | undefined;
861
868
  customerType: "team" | "user" | "custom";
862
869
  prices: "include-by-default" | Record<string, {
870
+ interval?: DayInterval | undefined;
871
+ freeTrial?: DayInterval | undefined;
872
+ serverOnly?: boolean | undefined;
863
873
  USD?: string | undefined;
864
874
  EUR?: string | undefined;
865
875
  GBP?: string | undefined;
@@ -867,9 +877,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
867
877
  INR?: string | undefined;
868
878
  AUD?: string | undefined;
869
879
  CAD?: string | undefined;
870
- interval?: DayInterval | undefined;
871
- serverOnly?: boolean | undefined;
872
- freeTrial?: DayInterval | undefined;
873
880
  }>;
874
881
  includedItems: Record<string, {
875
882
  repeat?: "never" | DayInterval | undefined;
@@ -878,6 +885,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
878
885
  }>;
879
886
  }>;
880
887
  };
888
+ teams: {
889
+ createPersonalTeamOnSignUp?: boolean | undefined;
890
+ allowClientTeamCreation?: boolean | undefined;
891
+ };
892
+ users: {
893
+ allowClientUserDeletion?: boolean | undefined;
894
+ };
881
895
  emails: {
882
896
  selectedThemeId?: string | undefined;
883
897
  themes: Record<string, {
@@ -890,20 +904,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
890
904
  tsxSource: string;
891
905
  }>;
892
906
  };
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
- };
907
907
  dataVault: {
908
908
  stores: Record<string, {
909
909
  displayName?: string | undefined;
@@ -932,7 +932,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
932
932
  oauth: {
933
933
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
934
934
  providers: Record<string, {
935
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
935
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
936
936
  allowSignIn?: boolean | undefined;
937
937
  allowConnectedAccounts?: boolean | undefined;
938
938
  }>;
@@ -941,18 +941,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
941
941
  oauth: Omit<{
942
942
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
943
943
  providers: Record<string, {
944
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
944
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
945
945
  allowSignIn?: boolean | undefined;
946
946
  allowConnectedAccounts?: boolean | undefined;
947
947
  }>;
948
948
  }, "providers"> & {
949
949
  providers: Record<string, {
950
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
951
- clientId?: string | undefined;
952
- clientSecret?: string | undefined;
950
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
953
951
  allowSignIn?: boolean | undefined;
954
952
  allowConnectedAccounts?: boolean | undefined;
955
953
  isShared?: boolean | undefined;
954
+ clientId?: string | undefined;
955
+ clientSecret?: string | undefined;
956
956
  facebookConfigId?: string | undefined;
957
957
  microsoftTenantId?: string | undefined;
958
958
  }>;
@@ -971,19 +971,19 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
971
971
  }>;
972
972
  }, "server"> & {
973
973
  server: {
974
- host?: string | undefined;
975
- port?: number | undefined;
976
- username?: string | undefined;
977
974
  password?: string | undefined;
978
975
  isShared?: boolean | undefined;
979
976
  provider?: "resend" | "smtp" | undefined;
977
+ host?: string | undefined;
978
+ port?: number | undefined;
979
+ username?: string | undefined;
980
980
  senderName?: string | undefined;
981
981
  senderEmail?: string | undefined;
982
982
  };
983
983
  };
984
984
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
985
985
  sourceOfTruth: undefined;
986
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
986
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
987
987
  rbac: {
988
988
  permissions: undefined;
989
989
  defaultPermissions: {
@@ -1047,7 +1047,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1047
1047
  }>, "domains" | "auth" | "emails"> & {
1048
1048
  auth: Omit<NonNullable<Omit<Omit<{
1049
1049
  sourceOfTruth: undefined;
1050
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1050
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1051
1051
  rbac: {
1052
1052
  permissions: undefined;
1053
1053
  defaultPermissions: {
@@ -1111,7 +1111,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1111
1111
  }>, "oauth"> & {
1112
1112
  oauth: Omit<NonNullable<Omit<Omit<{
1113
1113
  sourceOfTruth: undefined;
1114
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1114
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1115
1115
  rbac: {
1116
1116
  permissions: undefined;
1117
1117
  defaultPermissions: {
@@ -1178,7 +1178,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1178
1178
  };
1179
1179
  emails: Omit<NonNullable<Omit<Omit<{
1180
1180
  sourceOfTruth: undefined;
1181
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1181
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1182
1182
  rbac: {
1183
1183
  permissions: undefined;
1184
1184
  defaultPermissions: {
@@ -1253,7 +1253,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1253
1253
  };
1254
1254
  domains: Omit<NonNullable<Omit<Omit<{
1255
1255
  sourceOfTruth: undefined;
1256
- }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1256
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1257
1257
  rbac: {
1258
1258
  permissions: undefined;
1259
1259
  defaultPermissions: {
@@ -1580,12 +1580,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1580
1580
  };
1581
1581
  };
1582
1582
  server: {
1583
- host: string | undefined;
1584
- port: number | undefined;
1585
- username: string | undefined;
1586
1583
  password: string | undefined;
1587
1584
  isShared: boolean;
1588
1585
  provider: "resend" | "smtp";
1586
+ host: string | undefined;
1587
+ port: number | undefined;
1588
+ username: string | undefined;
1589
1589
  senderName: string | undefined;
1590
1590
  senderEmail: string | undefined;
1591
1591
  };
@@ -1594,6 +1594,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1594
1594
  products: Record<string, {
1595
1595
  isAddOnTo: false | Record<string, true>;
1596
1596
  prices: "include-by-default" | Record<string, {
1597
+ interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1598
+ freeTrial?: [number, "day" | "week" | "month" | "year"] | undefined;
1599
+ serverOnly: boolean;
1597
1600
  USD?: string | undefined;
1598
1601
  EUR?: string | undefined;
1599
1602
  GBP?: string | undefined;
@@ -1601,19 +1604,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1601
1604
  INR?: string | undefined;
1602
1605
  AUD?: string | undefined;
1603
1606
  CAD?: string | undefined;
1604
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1605
- serverOnly: boolean;
1606
- freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
1607
1607
  }>;
1608
1608
  displayName: string;
1609
- serverOnly: boolean;
1610
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1611
1609
  catalogId: string | undefined;
1612
1610
  customerType: "team" | "user" | "custom";
1611
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1612
+ serverOnly: boolean;
1613
1613
  stackable: boolean | undefined;
1614
1614
  includedItems: {
1615
1615
  [x: string]: {
1616
- repeat: "never" | [number, "day" | "week" | "year" | "month"];
1616
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
1617
1617
  quantity: number;
1618
1618
  expires: "never" | "when-purchase-expires" | "when-repeated";
1619
1619
  };
@@ -1626,7 +1626,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1626
1626
  };
1627
1627
  };
1628
1628
  autoPay: {
1629
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1629
+ interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1630
1630
  } | undefined;
1631
1631
  testMode: boolean;
1632
1632
  catalogs: {
@@ -1641,7 +1641,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1641
1641
  } | undefined>;
1642
1642
  };
1643
1643
  sourceOfTruth: {
1644
- type: "neon" | "hosted" | "postgres";
1644
+ type: "hosted" | "neon" | "postgres";
1645
1645
  connectionString: string | undefined;
1646
1646
  connectionStrings: {
1647
1647
  [x: string]: string | undefined;
@@ -1661,6 +1661,34 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1661
1661
  readonly connectionStrings?: undefined;
1662
1662
  readonly connectionString?: undefined;
1663
1663
  });
1664
+ rbac: {
1665
+ permissions: {
1666
+ [x: string]: {
1667
+ description: string | undefined;
1668
+ scope: "team" | "project" | undefined;
1669
+ containedPermissionIds: {
1670
+ [x: string]: true | undefined;
1671
+ };
1672
+ };
1673
+ };
1674
+ defaultPermissions: {
1675
+ teamCreator: {
1676
+ [x: string]: true | undefined;
1677
+ };
1678
+ teamMember: {
1679
+ [x: string]: true | undefined;
1680
+ };
1681
+ signUp: {
1682
+ [x: string]: true | undefined;
1683
+ };
1684
+ };
1685
+ };
1686
+ apiKeys: {
1687
+ enabled: {
1688
+ team: boolean;
1689
+ user: boolean;
1690
+ };
1691
+ };
1664
1692
  domains: {
1665
1693
  allowLocalhost: boolean;
1666
1694
  trustedDomains: {
@@ -1670,15 +1698,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1670
1698
  };
1671
1699
  };
1672
1700
  };
1673
- teams: {
1674
- createPersonalTeamOnSignUp: boolean;
1675
- allowClientTeamCreation: boolean;
1676
- };
1677
1701
  auth: {
1702
+ allowSignUp: boolean;
1678
1703
  password: {
1679
1704
  allowSignIn: boolean;
1680
1705
  };
1681
- allowSignUp: boolean;
1682
1706
  otp: {
1683
1707
  allowSignIn: boolean;
1684
1708
  };
@@ -1689,45 +1713,21 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1689
1713
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1690
1714
  providers: {
1691
1715
  [x: string]: {
1692
- type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1693
- clientId: string | undefined;
1694
- clientSecret: string | undefined;
1716
+ type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1695
1717
  allowSignIn: boolean;
1696
1718
  allowConnectedAccounts: boolean;
1697
1719
  isShared: boolean;
1720
+ clientId: string | undefined;
1721
+ clientSecret: string | undefined;
1698
1722
  facebookConfigId: string | undefined;
1699
1723
  microsoftTenantId: string | undefined;
1700
1724
  };
1701
1725
  };
1702
1726
  };
1703
1727
  };
1704
- rbac: {
1705
- permissions: {
1706
- [x: 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;
1723
- };
1724
- };
1725
- };
1726
- apiKeys: {
1727
- enabled: {
1728
- team: boolean;
1729
- user: boolean;
1730
- };
1728
+ teams: {
1729
+ createPersonalTeamOnSignUp: boolean;
1730
+ allowClientTeamCreation: boolean;
1731
1731
  };
1732
1732
  users: {
1733
1733
  allowClientUserDeletion: boolean;