@stackframe/stack-shared 2.8.52 → 2.8.55

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 (54) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/apps/apps-ui.d.mts +9 -1
  3. package/dist/apps/apps-ui.d.ts +9 -1
  4. package/dist/apps/apps-ui.js +48 -54
  5. package/dist/apps/apps-ui.js.map +1 -1
  6. package/dist/config/schema.d.mts +189 -189
  7. package/dist/config/schema.d.ts +189 -189
  8. package/dist/config/schema.js +2 -1
  9. package/dist/config/schema.js.map +1 -1
  10. package/dist/esm/apps/apps-ui.js +48 -54
  11. package/dist/esm/apps/apps-ui.js.map +1 -1
  12. package/dist/esm/config/schema.js +2 -1
  13. package/dist/esm/config/schema.js.map +1 -1
  14. package/dist/esm/helpers/emails.js +9 -7
  15. package/dist/esm/helpers/emails.js.map +1 -1
  16. package/dist/esm/interface/admin-interface.js +14 -0
  17. package/dist/esm/interface/admin-interface.js.map +1 -1
  18. package/dist/esm/interface/crud/projects.js +6 -2
  19. package/dist/esm/interface/crud/projects.js.map +1 -1
  20. package/dist/esm/interface/crud/transactions.js +107 -13
  21. package/dist/esm/interface/crud/transactions.js.map +1 -1
  22. package/dist/esm/known-errors.js +62 -0
  23. package/dist/esm/known-errors.js.map +1 -1
  24. package/dist/esm/schema-fields.js +22 -2
  25. package/dist/esm/schema-fields.js.map +1 -1
  26. package/dist/helpers/emails.d.mts +1 -1
  27. package/dist/helpers/emails.d.ts +1 -1
  28. package/dist/helpers/emails.js +9 -7
  29. package/dist/helpers/emails.js.map +1 -1
  30. package/dist/interface/admin-interface.d.mts +9 -3
  31. package/dist/interface/admin-interface.d.ts +9 -3
  32. package/dist/interface/admin-interface.js +14 -0
  33. package/dist/interface/admin-interface.js.map +1 -1
  34. package/dist/interface/crud/products.d.mts +2 -2
  35. package/dist/interface/crud/products.d.ts +2 -2
  36. package/dist/interface/crud/projects.d.mts +42 -14
  37. package/dist/interface/crud/projects.d.ts +42 -14
  38. package/dist/interface/crud/projects.js +6 -2
  39. package/dist/interface/crud/projects.js.map +1 -1
  40. package/dist/interface/crud/transactions.d.mts +160 -39
  41. package/dist/interface/crud/transactions.d.ts +160 -39
  42. package/dist/interface/crud/transactions.js +99 -13
  43. package/dist/interface/crud/transactions.js.map +1 -1
  44. package/dist/known-errors.d.mts +15 -0
  45. package/dist/known-errors.d.ts +15 -0
  46. package/dist/known-errors.js +62 -0
  47. package/dist/known-errors.js.map +1 -1
  48. package/dist/schema-fields.d.mts +6 -3
  49. package/dist/schema-fields.d.ts +6 -3
  50. package/dist/schema-fields.js +26 -3
  51. package/dist/schema-fields.js.map +1 -1
  52. package/dist/sessions.d.mts +1 -1
  53. package/dist/sessions.d.ts +1 -1
  54. package/package.json +3 -3
@@ -39,16 +39,13 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
39
39
  }>;
40
40
  products: Record<string, {
41
41
  displayName?: string | undefined;
42
+ serverOnly?: boolean | undefined;
43
+ freeTrial?: DayInterval | undefined;
42
44
  catalogId?: string | undefined;
43
45
  isAddOnTo?: false | Record<string, true> | undefined;
44
- freeTrial?: DayInterval | undefined;
45
- serverOnly?: boolean | undefined;
46
46
  stackable?: boolean | undefined;
47
47
  customerType: "team" | "user" | "custom";
48
48
  prices: "include-by-default" | Record<string, {
49
- interval?: DayInterval | undefined;
50
- freeTrial?: DayInterval | undefined;
51
- serverOnly?: boolean | undefined;
52
49
  USD?: string | undefined;
53
50
  EUR?: string | undefined;
54
51
  GBP?: string | undefined;
@@ -56,6 +53,9 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
56
53
  INR?: string | undefined;
57
54
  AUD?: string | undefined;
58
55
  CAD?: string | undefined;
56
+ interval?: DayInterval | undefined;
57
+ serverOnly?: boolean | undefined;
58
+ freeTrial?: DayInterval | undefined;
59
59
  }>;
60
60
  includedItems: Record<string, {
61
61
  repeat?: "never" | DayInterval | undefined;
@@ -86,33 +86,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
86
86
  type: "postgres";
87
87
  connectionString: string;
88
88
  };
89
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "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
- };
89
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
113
90
  domains: {
114
91
  allowLocalhost?: boolean | undefined;
115
92
  };
93
+ teams: {
94
+ createPersonalTeamOnSignUp?: boolean | undefined;
95
+ allowClientTeamCreation?: boolean | undefined;
96
+ };
116
97
  auth: {
117
98
  allowSignUp?: boolean | undefined;
118
99
  password: {
@@ -127,12 +108,24 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
127
108
  oauth: {
128
109
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
129
110
  providers: Record<string, {
130
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
111
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
131
112
  allowSignIn?: boolean | undefined;
132
113
  allowConnectedAccounts?: boolean | undefined;
133
114
  }>;
134
115
  };
135
116
  };
117
+ rbac: {
118
+ permissions: Record<string, {
119
+ description?: string | undefined;
120
+ scope?: "team" | "project" | undefined;
121
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
122
+ } | undefined>;
123
+ defaultPermissions: {
124
+ teamCreator: Record<string, true | undefined>;
125
+ teamMember: Record<string, true | undefined>;
126
+ signUp: Record<string, true | undefined>;
127
+ };
128
+ };
136
129
  payments: {
137
130
  autoPay?: {
138
131
  interval?: DayInterval | undefined;
@@ -147,16 +140,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
147
140
  }>;
148
141
  products: Record<string, {
149
142
  displayName?: string | undefined;
143
+ serverOnly?: boolean | undefined;
144
+ freeTrial?: DayInterval | undefined;
150
145
  catalogId?: string | undefined;
151
146
  isAddOnTo?: false | Record<string, true> | undefined;
152
- freeTrial?: DayInterval | undefined;
153
- serverOnly?: boolean | undefined;
154
147
  stackable?: boolean | undefined;
155
148
  customerType: "team" | "user" | "custom";
156
149
  prices: "include-by-default" | Record<string, {
157
- interval?: DayInterval | undefined;
158
- freeTrial?: DayInterval | undefined;
159
- serverOnly?: boolean | undefined;
160
150
  USD?: string | undefined;
161
151
  EUR?: string | undefined;
162
152
  GBP?: string | undefined;
@@ -164,6 +154,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
164
154
  INR?: string | undefined;
165
155
  AUD?: string | undefined;
166
156
  CAD?: string | undefined;
157
+ interval?: DayInterval | undefined;
158
+ serverOnly?: boolean | undefined;
159
+ freeTrial?: DayInterval | undefined;
167
160
  }>;
168
161
  includedItems: Record<string, {
169
162
  repeat?: "never" | DayInterval | undefined;
@@ -172,13 +165,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
172
165
  }>;
173
166
  }>;
174
167
  };
175
- teams: {
176
- createPersonalTeamOnSignUp?: boolean | undefined;
177
- allowClientTeamCreation?: boolean | undefined;
178
- };
179
- users: {
180
- allowClientUserDeletion?: boolean | undefined;
181
- };
182
168
  emails: {
183
169
  selectedThemeId?: string | undefined;
184
170
  themes: Record<string, {
@@ -191,6 +177,20 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
191
177
  tsxSource: string;
192
178
  }>;
193
179
  };
180
+ apiKeys: {
181
+ enabled: {
182
+ team?: boolean | undefined;
183
+ user?: boolean | undefined;
184
+ };
185
+ };
186
+ apps: {
187
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
188
+ enabled?: boolean | undefined;
189
+ }>;
190
+ };
191
+ users: {
192
+ allowClientUserDeletion?: boolean | undefined;
193
+ };
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
201
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
202
202
  rbac: {
203
203
  permissions: undefined;
204
204
  defaultPermissions: {
@@ -270,33 +270,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
270
270
  type: "postgres";
271
271
  connectionString: string;
272
272
  };
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
- };
273
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
297
274
  domains: {
298
275
  allowLocalhost?: boolean | undefined;
299
276
  };
277
+ teams: {
278
+ createPersonalTeamOnSignUp?: boolean | undefined;
279
+ allowClientTeamCreation?: boolean | undefined;
280
+ };
300
281
  auth: {
301
282
  allowSignUp?: boolean | undefined;
302
283
  password: {
@@ -311,12 +292,24 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
311
292
  oauth: {
312
293
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
313
294
  providers: Record<string, {
314
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
295
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
315
296
  allowSignIn?: boolean | undefined;
316
297
  allowConnectedAccounts?: boolean | undefined;
317
298
  }>;
318
299
  };
319
300
  };
301
+ rbac: {
302
+ permissions: Record<string, {
303
+ description?: string | undefined;
304
+ scope?: "team" | "project" | undefined;
305
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
306
+ } | undefined>;
307
+ defaultPermissions: {
308
+ teamCreator: Record<string, true | undefined>;
309
+ teamMember: Record<string, true | undefined>;
310
+ signUp: Record<string, true | undefined>;
311
+ };
312
+ };
320
313
  payments: {
321
314
  autoPay?: {
322
315
  interval?: DayInterval | undefined;
@@ -331,16 +324,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
331
324
  }>;
332
325
  products: Record<string, {
333
326
  displayName?: string | undefined;
327
+ serverOnly?: boolean | undefined;
328
+ freeTrial?: DayInterval | undefined;
334
329
  catalogId?: string | undefined;
335
330
  isAddOnTo?: false | Record<string, true> | undefined;
336
- freeTrial?: DayInterval | undefined;
337
- serverOnly?: boolean | undefined;
338
331
  stackable?: boolean | undefined;
339
332
  customerType: "team" | "user" | "custom";
340
333
  prices: "include-by-default" | Record<string, {
341
- interval?: DayInterval | undefined;
342
- freeTrial?: DayInterval | undefined;
343
- serverOnly?: boolean | undefined;
344
334
  USD?: string | undefined;
345
335
  EUR?: string | undefined;
346
336
  GBP?: string | undefined;
@@ -348,6 +338,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
348
338
  INR?: string | undefined;
349
339
  AUD?: string | undefined;
350
340
  CAD?: string | undefined;
341
+ interval?: DayInterval | undefined;
342
+ serverOnly?: boolean | undefined;
343
+ freeTrial?: DayInterval | undefined;
351
344
  }>;
352
345
  includedItems: Record<string, {
353
346
  repeat?: "never" | DayInterval | undefined;
@@ -356,13 +349,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
356
349
  }>;
357
350
  }>;
358
351
  };
359
- teams: {
360
- createPersonalTeamOnSignUp?: boolean | undefined;
361
- allowClientTeamCreation?: boolean | undefined;
362
- };
363
- users: {
364
- allowClientUserDeletion?: boolean | undefined;
365
- };
366
352
  emails: {
367
353
  selectedThemeId?: string | undefined;
368
354
  themes: Record<string, {
@@ -375,6 +361,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
375
361
  tsxSource: string;
376
362
  }>;
377
363
  };
364
+ apiKeys: {
365
+ enabled: {
366
+ team?: boolean | undefined;
367
+ user?: boolean | undefined;
368
+ };
369
+ };
370
+ apps: {
371
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
372
+ enabled?: boolean | undefined;
373
+ }>;
374
+ };
375
+ users: {
376
+ allowClientUserDeletion?: boolean | undefined;
377
+ };
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?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
406
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
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?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
415
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
416
416
  allowSignIn?: boolean | undefined;
417
417
  allowConnectedAccounts?: boolean | undefined;
418
418
  }>;
419
419
  }, "providers"> & {
420
420
  providers: Record<string, {
421
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
421
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
422
+ clientId?: string | undefined;
423
+ clientSecret?: string | undefined;
422
424
  allowSignIn?: boolean | undefined;
423
425
  allowConnectedAccounts?: boolean | undefined;
424
426
  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
- password?: string | undefined;
446
- isShared?: boolean | undefined;
447
- provider?: "resend" | "smtp" | undefined;
448
445
  host?: string | undefined;
449
446
  port?: number | undefined;
450
447
  username?: string | undefined;
448
+ password?: string | undefined;
449
+ isShared?: boolean | undefined;
450
+ provider?: "resend" | "smtp" | 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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
457
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
521
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
585
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
652
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
727
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
728
728
  rbac: {
729
729
  permissions: undefined;
730
730
  defaultPermissions: {
@@ -799,33 +799,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
799
799
  type: "postgres";
800
800
  connectionString: string;
801
801
  };
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
- };
802
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "dataVault"> & {
826
803
  domains: {
827
804
  allowLocalhost?: boolean | undefined;
828
805
  };
806
+ teams: {
807
+ createPersonalTeamOnSignUp?: boolean | undefined;
808
+ allowClientTeamCreation?: boolean | undefined;
809
+ };
829
810
  auth: {
830
811
  allowSignUp?: boolean | undefined;
831
812
  password: {
@@ -840,12 +821,24 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
840
821
  oauth: {
841
822
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
842
823
  providers: Record<string, {
843
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
824
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
844
825
  allowSignIn?: boolean | undefined;
845
826
  allowConnectedAccounts?: boolean | undefined;
846
827
  }>;
847
828
  };
848
829
  };
830
+ rbac: {
831
+ permissions: Record<string, {
832
+ description?: string | undefined;
833
+ scope?: "team" | "project" | undefined;
834
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
835
+ } | undefined>;
836
+ defaultPermissions: {
837
+ teamCreator: Record<string, true | undefined>;
838
+ teamMember: Record<string, true | undefined>;
839
+ signUp: Record<string, true | undefined>;
840
+ };
841
+ };
849
842
  payments: {
850
843
  autoPay?: {
851
844
  interval?: DayInterval | undefined;
@@ -860,16 +853,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
860
853
  }>;
861
854
  products: Record<string, {
862
855
  displayName?: string | undefined;
856
+ serverOnly?: boolean | undefined;
857
+ freeTrial?: DayInterval | undefined;
863
858
  catalogId?: string | undefined;
864
859
  isAddOnTo?: false | Record<string, true> | undefined;
865
- freeTrial?: DayInterval | undefined;
866
- serverOnly?: boolean | undefined;
867
860
  stackable?: boolean | undefined;
868
861
  customerType: "team" | "user" | "custom";
869
862
  prices: "include-by-default" | Record<string, {
870
- interval?: DayInterval | undefined;
871
- freeTrial?: DayInterval | undefined;
872
- serverOnly?: boolean | undefined;
873
863
  USD?: string | undefined;
874
864
  EUR?: string | undefined;
875
865
  GBP?: string | undefined;
@@ -877,6 +867,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
877
867
  INR?: string | undefined;
878
868
  AUD?: string | undefined;
879
869
  CAD?: string | undefined;
870
+ interval?: DayInterval | undefined;
871
+ serverOnly?: boolean | undefined;
872
+ freeTrial?: DayInterval | undefined;
880
873
  }>;
881
874
  includedItems: Record<string, {
882
875
  repeat?: "never" | DayInterval | undefined;
@@ -885,13 +878,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
885
878
  }>;
886
879
  }>;
887
880
  };
888
- teams: {
889
- createPersonalTeamOnSignUp?: boolean | undefined;
890
- allowClientTeamCreation?: boolean | undefined;
891
- };
892
- users: {
893
- allowClientUserDeletion?: boolean | undefined;
894
- };
895
881
  emails: {
896
882
  selectedThemeId?: string | undefined;
897
883
  themes: Record<string, {
@@ -904,6 +890,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
904
890
  tsxSource: string;
905
891
  }>;
906
892
  };
893
+ apiKeys: {
894
+ enabled: {
895
+ team?: boolean | undefined;
896
+ user?: boolean | undefined;
897
+ };
898
+ };
899
+ apps: {
900
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
901
+ enabled?: boolean | undefined;
902
+ }>;
903
+ };
904
+ users: {
905
+ allowClientUserDeletion?: boolean | undefined;
906
+ };
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?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
935
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
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?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
944
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
945
945
  allowSignIn?: boolean | undefined;
946
946
  allowConnectedAccounts?: boolean | undefined;
947
947
  }>;
948
948
  }, "providers"> & {
949
949
  providers: Record<string, {
950
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
950
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
951
+ clientId?: string | undefined;
952
+ clientSecret?: string | undefined;
951
953
  allowSignIn?: boolean | undefined;
952
954
  allowConnectedAccounts?: boolean | undefined;
953
955
  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
- password?: string | undefined;
975
- isShared?: boolean | undefined;
976
- provider?: "resend" | "smtp" | undefined;
977
974
  host?: string | undefined;
978
975
  port?: number | undefined;
979
976
  username?: string | undefined;
977
+ password?: string | undefined;
978
+ isShared?: boolean | undefined;
979
+ provider?: "resend" | "smtp" | 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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
986
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1050
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1114
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1181
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "teams" | "users" | "emails" | "dataVault"> & {
1256
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "users" | "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
- password: string | undefined;
1584
- isShared: boolean;
1585
- provider: "resend" | "smtp";
1586
1583
  host: string | undefined;
1587
1584
  port: number | undefined;
1588
1585
  username: string | undefined;
1586
+ password: string | undefined;
1587
+ isShared: boolean;
1588
+ provider: "resend" | "smtp";
1589
1589
  senderName: string | undefined;
1590
1590
  senderEmail: string | undefined;
1591
1591
  };
@@ -1594,9 +1594,6 @@ 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;
1600
1597
  USD?: string | undefined;
1601
1598
  EUR?: string | undefined;
1602
1599
  GBP?: string | undefined;
@@ -1604,16 +1601,19 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1604
1601
  INR?: string | undefined;
1605
1602
  AUD?: string | undefined;
1606
1603
  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;
1609
1611
  catalogId: string | undefined;
1610
1612
  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" | "month" | "year"];
1616
+ repeat: "never" | [number, "day" | "week" | "year" | "month"];
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" | "month" | "year"] | undefined;
1629
+ interval?: [number, "day" | "week" | "year" | "month"] | 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: "hosted" | "neon" | "postgres";
1644
+ type: "neon" | "hosted" | "postgres";
1645
1645
  connectionString: string | undefined;
1646
1646
  connectionStrings: {
1647
1647
  [x: string]: string | undefined;
@@ -1661,34 +1661,6 @@ 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
- };
1692
1664
  domains: {
1693
1665
  allowLocalhost: boolean;
1694
1666
  trustedDomains: {
@@ -1698,11 +1670,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1698
1670
  };
1699
1671
  };
1700
1672
  };
1673
+ teams: {
1674
+ createPersonalTeamOnSignUp: boolean;
1675
+ allowClientTeamCreation: boolean;
1676
+ };
1701
1677
  auth: {
1702
- allowSignUp: boolean;
1703
1678
  password: {
1704
1679
  allowSignIn: boolean;
1705
1680
  };
1681
+ allowSignUp: boolean;
1706
1682
  otp: {
1707
1683
  allowSignIn: boolean;
1708
1684
  };
@@ -1713,21 +1689,45 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1713
1689
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1714
1690
  providers: {
1715
1691
  [x: string]: {
1716
- type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1692
+ type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1693
+ clientId: string | undefined;
1694
+ clientSecret: string | undefined;
1717
1695
  allowSignIn: boolean;
1718
1696
  allowConnectedAccounts: boolean;
1719
1697
  isShared: boolean;
1720
- clientId: string | undefined;
1721
- clientSecret: string | undefined;
1722
1698
  facebookConfigId: string | undefined;
1723
1699
  microsoftTenantId: string | undefined;
1724
1700
  };
1725
1701
  };
1726
1702
  };
1727
1703
  };
1728
- teams: {
1729
- createPersonalTeamOnSignUp: boolean;
1730
- allowClientTeamCreation: boolean;
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
+ };
1731
1731
  };
1732
1732
  users: {
1733
1733
  allowClientUserDeletion: boolean;