@stackframe/stack-shared 2.8.41 → 2.8.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/apps/apps-config.d.mts +130 -0
  3. package/dist/apps/apps-config.d.ts +130 -0
  4. package/dist/apps/apps-config.js +159 -0
  5. package/dist/apps/apps-config.js.map +1 -0
  6. package/dist/config/format.js +3 -1
  7. package/dist/config/format.js.map +1 -1
  8. package/dist/config/schema-fuzzer.test.d.mts +2 -0
  9. package/dist/config/schema-fuzzer.test.d.ts +2 -0
  10. package/dist/config/schema-fuzzer.test.js +206 -0
  11. package/dist/config/schema-fuzzer.test.js.map +1 -0
  12. package/dist/config/schema.d.mts +268 -148
  13. package/dist/config/schema.d.ts +268 -148
  14. package/dist/config/schema.js +92 -44
  15. package/dist/config/schema.js.map +1 -1
  16. package/dist/esm/apps/apps-config.js +133 -0
  17. package/dist/esm/apps/apps-config.js.map +1 -0
  18. package/dist/esm/config/format.js +3 -1
  19. package/dist/esm/config/format.js.map +1 -1
  20. package/dist/esm/config/schema-fuzzer.test.js +204 -0
  21. package/dist/esm/config/schema-fuzzer.test.js.map +1 -0
  22. package/dist/esm/config/schema.js +94 -46
  23. package/dist/esm/config/schema.js.map +1 -1
  24. package/dist/esm/interface/admin-interface.js +0 -27
  25. package/dist/esm/interface/admin-interface.js.map +1 -1
  26. package/dist/esm/interface/client-interface.js +53 -19
  27. package/dist/esm/interface/client-interface.js.map +1 -1
  28. package/dist/esm/interface/crud/products.js +19 -0
  29. package/dist/esm/interface/crud/products.js.map +1 -0
  30. package/dist/esm/interface/crud/transactions.js +3 -3
  31. package/dist/esm/interface/crud/transactions.js.map +1 -1
  32. package/dist/esm/interface/server-interface.js +22 -0
  33. package/dist/esm/interface/server-interface.js.map +1 -1
  34. package/dist/esm/known-errors.js +30 -16
  35. package/dist/esm/known-errors.js.map +1 -1
  36. package/dist/esm/schema-fields.js +15 -14
  37. package/dist/esm/schema-fields.js.map +1 -1
  38. package/dist/esm/utils/caches.js +6 -2
  39. package/dist/esm/utils/caches.js.map +1 -1
  40. package/dist/esm/utils/globals.js +9 -1
  41. package/dist/esm/utils/globals.js.map +1 -1
  42. package/dist/esm/utils/objects.js +4 -0
  43. package/dist/esm/utils/objects.js.map +1 -1
  44. package/dist/esm/utils/react.js +12 -6
  45. package/dist/esm/utils/react.js.map +1 -1
  46. package/dist/esm/utils/regex.js +13 -0
  47. package/dist/esm/utils/regex.js.map +1 -0
  48. package/dist/esm/utils/strings.js +5 -1
  49. package/dist/esm/utils/strings.js.map +1 -1
  50. package/dist/esm/utils/urls.js +10 -0
  51. package/dist/esm/utils/urls.js.map +1 -1
  52. package/dist/index.d.mts +1 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/interface/admin-interface.d.mts +1 -6
  55. package/dist/interface/admin-interface.d.ts +1 -6
  56. package/dist/interface/admin-interface.js +0 -27
  57. package/dist/interface/admin-interface.js.map +1 -1
  58. package/dist/interface/client-interface.d.mts +5 -2
  59. package/dist/interface/client-interface.d.ts +5 -2
  60. package/dist/interface/client-interface.js +53 -19
  61. package/dist/interface/client-interface.js.map +1 -1
  62. package/dist/interface/crud/products.d.mts +91 -0
  63. package/dist/interface/crud/products.d.ts +91 -0
  64. package/dist/interface/crud/products.js +45 -0
  65. package/dist/interface/crud/products.js.map +1 -0
  66. package/dist/interface/crud/transactions.d.mts +2 -2
  67. package/dist/interface/crud/transactions.d.ts +2 -2
  68. package/dist/interface/crud/transactions.js +2 -2
  69. package/dist/interface/crud/transactions.js.map +1 -1
  70. package/dist/interface/server-interface.d.mts +10 -2
  71. package/dist/interface/server-interface.d.ts +10 -2
  72. package/dist/interface/server-interface.js +22 -0
  73. package/dist/interface/server-interface.js.map +1 -1
  74. package/dist/known-errors.d.mts +7 -4
  75. package/dist/known-errors.d.ts +7 -4
  76. package/dist/known-errors.js +30 -16
  77. package/dist/known-errors.js.map +1 -1
  78. package/dist/schema-fields.d.mts +8 -6
  79. package/dist/schema-fields.d.ts +8 -6
  80. package/dist/schema-fields.js +18 -17
  81. package/dist/schema-fields.js.map +1 -1
  82. package/dist/utils/caches.d.mts +4 -2
  83. package/dist/utils/caches.d.ts +4 -2
  84. package/dist/utils/caches.js +6 -2
  85. package/dist/utils/caches.js.map +1 -1
  86. package/dist/utils/globals.d.mts +3 -1
  87. package/dist/utils/globals.d.ts +3 -1
  88. package/dist/utils/globals.js +12 -2
  89. package/dist/utils/globals.js.map +1 -1
  90. package/dist/utils/objects.js +4 -0
  91. package/dist/utils/objects.js.map +1 -1
  92. package/dist/utils/react.d.mts +2 -1
  93. package/dist/utils/react.d.ts +2 -1
  94. package/dist/utils/react.js +13 -6
  95. package/dist/utils/react.js.map +1 -1
  96. package/dist/utils/regex.d.mts +3 -0
  97. package/dist/utils/regex.d.ts +3 -0
  98. package/dist/utils/regex.js +38 -0
  99. package/dist/utils/regex.js.map +1 -0
  100. package/dist/utils/strings.js +5 -1
  101. package/dist/utils/strings.js.map +1 -1
  102. package/dist/utils/urls.d.mts +3 -1
  103. package/dist/utils/urls.d.ts +3 -1
  104. package/dist/utils/urls.js +12 -0
  105. package/dist/utils/urls.js.map +1 -1
  106. package/package.json +7 -7
@@ -33,18 +33,22 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
33
33
  autoPay: {
34
34
  interval?: DayInterval | undefined;
35
35
  } | undefined;
36
- groups: Record<string, {
36
+ testMode: boolean | undefined;
37
+ catalogs: Record<string, {
37
38
  displayName?: string | undefined;
38
39
  }>;
39
- offers: Record<string, {
40
+ products: Record<string, {
40
41
  displayName?: string | undefined;
41
- serverOnly?: boolean | undefined;
42
- freeTrial?: DayInterval | undefined;
43
- groupId?: string | undefined;
42
+ catalogId?: string | undefined;
44
43
  isAddOnTo?: false | Record<string, true> | undefined;
44
+ freeTrial?: DayInterval | undefined;
45
+ serverOnly?: boolean | undefined;
45
46
  stackable?: boolean | undefined;
46
47
  customerType: "team" | "user" | "custom";
47
48
  prices: "include-by-default" | Record<string, {
49
+ interval?: DayInterval | undefined;
50
+ freeTrial?: DayInterval | undefined;
51
+ serverOnly?: boolean | undefined;
48
52
  USD?: string | undefined;
49
53
  EUR?: string | undefined;
50
54
  GBP?: string | undefined;
@@ -52,9 +56,6 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
52
56
  INR?: string | undefined;
53
57
  AUD?: string | undefined;
54
58
  CAD?: string | undefined;
55
- interval?: DayInterval | undefined;
56
- serverOnly?: boolean | undefined;
57
- freeTrial?: DayInterval | undefined;
58
59
  }>;
59
60
  includedItems: Record<string, {
60
61
  repeat?: "never" | DayInterval | undefined;
@@ -70,8 +71,9 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
70
71
  autoPay: {
71
72
  interval: undefined;
72
73
  };
73
- groups: undefined;
74
- offers: undefined;
74
+ testMode: undefined;
75
+ catalogs: undefined;
76
+ products: undefined;
75
77
  items: undefined;
76
78
  }, "">;
77
79
  declare const branchConfigSchema: yup.Schema<Omit<Omit<{
@@ -84,14 +86,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
84
86
  type: "postgres";
85
87
  connectionString: string;
86
88
  };
87
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
88
- domains: {
89
- allowLocalhost?: boolean | undefined;
90
- };
91
- teams: {
92
- createPersonalTeamOnSignUp?: boolean | undefined;
93
- allowClientTeamCreation?: boolean | undefined;
94
- };
89
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
95
90
  rbac: {
96
91
  permissions: Record<string, {
97
92
  description?: string | undefined;
@@ -110,6 +105,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
110
105
  user?: boolean | undefined;
111
106
  };
112
107
  };
108
+ apps: {
109
+ installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
110
+ enabled?: boolean | undefined;
111
+ }>;
112
+ };
113
+ domains: {
114
+ allowLocalhost?: boolean | undefined;
115
+ };
113
116
  auth: {
114
117
  allowSignUp?: boolean | undefined;
115
118
  password: {
@@ -124,7 +127,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
124
127
  oauth: {
125
128
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
126
129
  providers: Record<string, {
127
- 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;
128
131
  allowSignIn?: boolean | undefined;
129
132
  allowConnectedAccounts?: boolean | undefined;
130
133
  }>;
@@ -134,22 +137,26 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
134
137
  autoPay?: {
135
138
  interval?: DayInterval | undefined;
136
139
  } | undefined;
140
+ testMode?: boolean | undefined;
137
141
  items: Record<string, {
138
142
  displayName?: string | undefined;
139
143
  customerType?: "team" | "user" | "custom" | undefined;
140
144
  }>;
141
- groups: Record<string, {
145
+ catalogs: Record<string, {
142
146
  displayName?: string | undefined;
143
147
  }>;
144
- offers: Record<string, {
148
+ products: Record<string, {
145
149
  displayName?: string | undefined;
146
- serverOnly?: boolean | undefined;
147
- freeTrial?: DayInterval | undefined;
148
- groupId?: string | undefined;
150
+ catalogId?: string | undefined;
149
151
  isAddOnTo?: false | Record<string, true> | undefined;
152
+ freeTrial?: DayInterval | undefined;
153
+ serverOnly?: boolean | undefined;
150
154
  stackable?: boolean | undefined;
151
155
  customerType: "team" | "user" | "custom";
152
156
  prices: "include-by-default" | Record<string, {
157
+ interval?: DayInterval | undefined;
158
+ freeTrial?: DayInterval | undefined;
159
+ serverOnly?: boolean | undefined;
153
160
  USD?: string | undefined;
154
161
  EUR?: string | undefined;
155
162
  GBP?: string | undefined;
@@ -157,9 +164,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
157
164
  INR?: string | undefined;
158
165
  AUD?: string | undefined;
159
166
  CAD?: string | undefined;
160
- interval?: DayInterval | undefined;
161
- serverOnly?: boolean | undefined;
162
- freeTrial?: DayInterval | undefined;
163
167
  }>;
164
168
  includedItems: Record<string, {
165
169
  repeat?: "never" | DayInterval | undefined;
@@ -170,11 +174,15 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
170
174
  };
171
175
  workflows: {
172
176
  availableWorkflows: Record<string, {
173
- displayName?: string | undefined;
174
177
  enabled?: boolean | undefined;
178
+ displayName?: string | undefined;
175
179
  tsSource?: string | undefined;
176
180
  }>;
177
181
  };
182
+ teams: {
183
+ createPersonalTeamOnSignUp?: boolean | undefined;
184
+ allowClientTeamCreation?: boolean | undefined;
185
+ };
178
186
  users: {
179
187
  allowClientUserDeletion?: boolean | undefined;
180
188
  };
@@ -197,7 +205,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
197
205
  };
198
206
  }, yup.AnyObject, Omit<Omit<{
199
207
  sourceOfTruth: undefined;
200
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
208
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
201
209
  rbac: {
202
210
  permissions: undefined;
203
211
  defaultPermissions: {
@@ -219,6 +227,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
219
227
  user: undefined;
220
228
  };
221
229
  };
230
+ apps: {
231
+ installed: undefined;
232
+ };
222
233
  domains: {
223
234
  allowLocalhost: undefined;
224
235
  };
@@ -247,8 +258,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
247
258
  autoPay: {
248
259
  interval: undefined;
249
260
  };
250
- groups: undefined;
251
- offers: undefined;
261
+ testMode: undefined;
262
+ catalogs: undefined;
263
+ products: undefined;
252
264
  items: undefined;
253
265
  };
254
266
  dataVault: {
@@ -268,14 +280,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
268
280
  type: "postgres";
269
281
  connectionString: string;
270
282
  };
271
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
272
- domains: {
273
- allowLocalhost?: boolean | undefined;
274
- };
275
- teams: {
276
- createPersonalTeamOnSignUp?: boolean | undefined;
277
- allowClientTeamCreation?: boolean | undefined;
278
- };
283
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
279
284
  rbac: {
280
285
  permissions: Record<string, {
281
286
  description?: string | undefined;
@@ -294,6 +299,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
294
299
  user?: boolean | undefined;
295
300
  };
296
301
  };
302
+ apps: {
303
+ installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
304
+ enabled?: boolean | undefined;
305
+ }>;
306
+ };
307
+ domains: {
308
+ allowLocalhost?: boolean | undefined;
309
+ };
297
310
  auth: {
298
311
  allowSignUp?: boolean | undefined;
299
312
  password: {
@@ -308,7 +321,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
308
321
  oauth: {
309
322
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
310
323
  providers: Record<string, {
311
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
324
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
312
325
  allowSignIn?: boolean | undefined;
313
326
  allowConnectedAccounts?: boolean | undefined;
314
327
  }>;
@@ -318,22 +331,26 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
318
331
  autoPay?: {
319
332
  interval?: DayInterval | undefined;
320
333
  } | undefined;
334
+ testMode?: boolean | undefined;
321
335
  items: Record<string, {
322
336
  displayName?: string | undefined;
323
337
  customerType?: "team" | "user" | "custom" | undefined;
324
338
  }>;
325
- groups: Record<string, {
339
+ catalogs: Record<string, {
326
340
  displayName?: string | undefined;
327
341
  }>;
328
- offers: Record<string, {
342
+ products: Record<string, {
329
343
  displayName?: string | undefined;
330
- serverOnly?: boolean | undefined;
331
- freeTrial?: DayInterval | undefined;
332
- groupId?: string | undefined;
344
+ catalogId?: string | undefined;
333
345
  isAddOnTo?: false | Record<string, true> | undefined;
346
+ freeTrial?: DayInterval | undefined;
347
+ serverOnly?: boolean | undefined;
334
348
  stackable?: boolean | undefined;
335
349
  customerType: "team" | "user" | "custom";
336
350
  prices: "include-by-default" | Record<string, {
351
+ interval?: DayInterval | undefined;
352
+ freeTrial?: DayInterval | undefined;
353
+ serverOnly?: boolean | undefined;
337
354
  USD?: string | undefined;
338
355
  EUR?: string | undefined;
339
356
  GBP?: string | undefined;
@@ -341,9 +358,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
341
358
  INR?: string | undefined;
342
359
  AUD?: string | undefined;
343
360
  CAD?: string | undefined;
344
- interval?: DayInterval | undefined;
345
- serverOnly?: boolean | undefined;
346
- freeTrial?: DayInterval | undefined;
347
361
  }>;
348
362
  includedItems: Record<string, {
349
363
  repeat?: "never" | DayInterval | undefined;
@@ -354,11 +368,15 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
354
368
  };
355
369
  workflows: {
356
370
  availableWorkflows: Record<string, {
357
- displayName?: string | undefined;
358
371
  enabled?: boolean | undefined;
372
+ displayName?: string | undefined;
359
373
  tsSource?: string | undefined;
360
374
  }>;
361
375
  };
376
+ teams: {
377
+ createPersonalTeamOnSignUp?: boolean | undefined;
378
+ allowClientTeamCreation?: boolean | undefined;
379
+ };
362
380
  users: {
363
381
  allowClientUserDeletion?: boolean | undefined;
364
382
  };
@@ -402,7 +420,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
402
420
  oauth: {
403
421
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
404
422
  providers: Record<string, {
405
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
423
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
406
424
  allowSignIn?: boolean | undefined;
407
425
  allowConnectedAccounts?: boolean | undefined;
408
426
  }>;
@@ -411,18 +429,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
411
429
  oauth: Omit<{
412
430
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
413
431
  providers: Record<string, {
414
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
432
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
415
433
  allowSignIn?: boolean | undefined;
416
434
  allowConnectedAccounts?: boolean | undefined;
417
435
  }>;
418
436
  }, "providers"> & {
419
437
  providers: Record<string, {
420
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
421
- clientId?: string | undefined;
422
- clientSecret?: string | undefined;
438
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
423
439
  allowSignIn?: boolean | undefined;
424
440
  allowConnectedAccounts?: boolean | undefined;
425
441
  isShared?: boolean | undefined;
442
+ clientId?: string | undefined;
443
+ clientSecret?: string | undefined;
426
444
  facebookConfigId?: string | undefined;
427
445
  microsoftTenantId?: string | undefined;
428
446
  }>;
@@ -441,19 +459,19 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
441
459
  }>;
442
460
  }, "server"> & {
443
461
  server: {
444
- host?: string | undefined;
445
- port?: number | undefined;
446
- username?: string | undefined;
447
462
  password?: string | undefined;
448
463
  isShared?: boolean | undefined;
449
464
  provider?: "resend" | "smtp" | undefined;
465
+ host?: string | undefined;
466
+ port?: number | undefined;
467
+ username?: string | undefined;
450
468
  senderName?: string | undefined;
451
469
  senderEmail?: string | undefined;
452
470
  };
453
471
  };
454
472
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
455
473
  sourceOfTruth: undefined;
456
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
474
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
457
475
  rbac: {
458
476
  permissions: undefined;
459
477
  defaultPermissions: {
@@ -475,6 +493,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
475
493
  user: undefined;
476
494
  };
477
495
  };
496
+ apps: {
497
+ installed: undefined;
498
+ };
478
499
  domains: {
479
500
  allowLocalhost: undefined;
480
501
  };
@@ -503,8 +524,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
503
524
  autoPay: {
504
525
  interval: undefined;
505
526
  };
506
- groups: undefined;
507
- offers: undefined;
527
+ testMode: undefined;
528
+ catalogs: undefined;
529
+ products: undefined;
508
530
  items: undefined;
509
531
  };
510
532
  dataVault: {
@@ -516,7 +538,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
516
538
  }>, "domains" | "auth" | "emails"> & {
517
539
  auth: Omit<NonNullable<Omit<Omit<{
518
540
  sourceOfTruth: undefined;
519
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
541
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
520
542
  rbac: {
521
543
  permissions: undefined;
522
544
  defaultPermissions: {
@@ -538,6 +560,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
538
560
  user: undefined;
539
561
  };
540
562
  };
563
+ apps: {
564
+ installed: undefined;
565
+ };
541
566
  domains: {
542
567
  allowLocalhost: undefined;
543
568
  };
@@ -566,8 +591,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
566
591
  autoPay: {
567
592
  interval: undefined;
568
593
  };
569
- groups: undefined;
570
- offers: undefined;
594
+ testMode: undefined;
595
+ catalogs: undefined;
596
+ products: undefined;
571
597
  items: undefined;
572
598
  };
573
599
  dataVault: {
@@ -579,7 +605,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
579
605
  }>, "oauth"> & {
580
606
  oauth: Omit<NonNullable<Omit<Omit<{
581
607
  sourceOfTruth: undefined;
582
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
608
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
583
609
  rbac: {
584
610
  permissions: undefined;
585
611
  defaultPermissions: {
@@ -601,6 +627,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
601
627
  user: undefined;
602
628
  };
603
629
  };
630
+ apps: {
631
+ installed: undefined;
632
+ };
604
633
  domains: {
605
634
  allowLocalhost: undefined;
606
635
  };
@@ -629,8 +658,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
629
658
  autoPay: {
630
659
  interval: undefined;
631
660
  };
632
- groups: undefined;
633
- offers: undefined;
661
+ testMode: undefined;
662
+ catalogs: undefined;
663
+ products: undefined;
634
664
  items: undefined;
635
665
  };
636
666
  dataVault: {
@@ -645,7 +675,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
645
675
  };
646
676
  emails: Omit<NonNullable<Omit<Omit<{
647
677
  sourceOfTruth: undefined;
648
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
678
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
649
679
  rbac: {
650
680
  permissions: undefined;
651
681
  defaultPermissions: {
@@ -667,6 +697,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
667
697
  user: undefined;
668
698
  };
669
699
  };
700
+ apps: {
701
+ installed: undefined;
702
+ };
670
703
  domains: {
671
704
  allowLocalhost: undefined;
672
705
  };
@@ -695,8 +728,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
695
728
  autoPay: {
696
729
  interval: undefined;
697
730
  };
698
- groups: undefined;
699
- offers: undefined;
731
+ testMode: undefined;
732
+ catalogs: undefined;
733
+ products: undefined;
700
734
  items: undefined;
701
735
  };
702
736
  dataVault: {
@@ -719,7 +753,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
719
753
  };
720
754
  domains: Omit<NonNullable<Omit<Omit<{
721
755
  sourceOfTruth: undefined;
722
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
756
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
723
757
  rbac: {
724
758
  permissions: undefined;
725
759
  defaultPermissions: {
@@ -741,6 +775,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
741
775
  user: undefined;
742
776
  };
743
777
  };
778
+ apps: {
779
+ installed: undefined;
780
+ };
744
781
  domains: {
745
782
  allowLocalhost: undefined;
746
783
  };
@@ -769,8 +806,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
769
806
  autoPay: {
770
807
  interval: undefined;
771
808
  };
772
- groups: undefined;
773
- offers: undefined;
809
+ testMode: undefined;
810
+ catalogs: undefined;
811
+ products: undefined;
774
812
  items: undefined;
775
813
  };
776
814
  dataVault: {
@@ -793,14 +831,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
793
831
  type: "postgres";
794
832
  connectionString: string;
795
833
  };
796
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
797
- domains: {
798
- allowLocalhost?: boolean | undefined;
799
- };
800
- teams: {
801
- createPersonalTeamOnSignUp?: boolean | undefined;
802
- allowClientTeamCreation?: boolean | undefined;
803
- };
834
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
804
835
  rbac: {
805
836
  permissions: Record<string, {
806
837
  description?: string | undefined;
@@ -819,6 +850,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
819
850
  user?: boolean | undefined;
820
851
  };
821
852
  };
853
+ apps: {
854
+ installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
855
+ enabled?: boolean | undefined;
856
+ }>;
857
+ };
858
+ domains: {
859
+ allowLocalhost?: boolean | undefined;
860
+ };
822
861
  auth: {
823
862
  allowSignUp?: boolean | undefined;
824
863
  password: {
@@ -833,7 +872,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
833
872
  oauth: {
834
873
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
835
874
  providers: Record<string, {
836
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
875
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
837
876
  allowSignIn?: boolean | undefined;
838
877
  allowConnectedAccounts?: boolean | undefined;
839
878
  }>;
@@ -843,22 +882,26 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
843
882
  autoPay?: {
844
883
  interval?: DayInterval | undefined;
845
884
  } | undefined;
885
+ testMode?: boolean | undefined;
846
886
  items: Record<string, {
847
887
  displayName?: string | undefined;
848
888
  customerType?: "team" | "user" | "custom" | undefined;
849
889
  }>;
850
- groups: Record<string, {
890
+ catalogs: Record<string, {
851
891
  displayName?: string | undefined;
852
892
  }>;
853
- offers: Record<string, {
893
+ products: Record<string, {
854
894
  displayName?: string | undefined;
855
- serverOnly?: boolean | undefined;
856
- freeTrial?: DayInterval | undefined;
857
- groupId?: string | undefined;
895
+ catalogId?: string | undefined;
858
896
  isAddOnTo?: false | Record<string, true> | undefined;
897
+ freeTrial?: DayInterval | undefined;
898
+ serverOnly?: boolean | undefined;
859
899
  stackable?: boolean | undefined;
860
900
  customerType: "team" | "user" | "custom";
861
901
  prices: "include-by-default" | Record<string, {
902
+ interval?: DayInterval | undefined;
903
+ freeTrial?: DayInterval | undefined;
904
+ serverOnly?: boolean | undefined;
862
905
  USD?: string | undefined;
863
906
  EUR?: string | undefined;
864
907
  GBP?: string | undefined;
@@ -866,9 +909,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
866
909
  INR?: string | undefined;
867
910
  AUD?: string | undefined;
868
911
  CAD?: string | undefined;
869
- interval?: DayInterval | undefined;
870
- serverOnly?: boolean | undefined;
871
- freeTrial?: DayInterval | undefined;
872
912
  }>;
873
913
  includedItems: Record<string, {
874
914
  repeat?: "never" | DayInterval | undefined;
@@ -879,11 +919,15 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
879
919
  };
880
920
  workflows: {
881
921
  availableWorkflows: Record<string, {
882
- displayName?: string | undefined;
883
922
  enabled?: boolean | undefined;
923
+ displayName?: string | undefined;
884
924
  tsSource?: string | undefined;
885
925
  }>;
886
926
  };
927
+ teams: {
928
+ createPersonalTeamOnSignUp?: boolean | undefined;
929
+ allowClientTeamCreation?: boolean | undefined;
930
+ };
887
931
  users: {
888
932
  allowClientUserDeletion?: boolean | undefined;
889
933
  };
@@ -927,7 +971,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
927
971
  oauth: {
928
972
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
929
973
  providers: Record<string, {
930
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
974
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
931
975
  allowSignIn?: boolean | undefined;
932
976
  allowConnectedAccounts?: boolean | undefined;
933
977
  }>;
@@ -936,18 +980,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
936
980
  oauth: Omit<{
937
981
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
938
982
  providers: Record<string, {
939
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
983
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
940
984
  allowSignIn?: boolean | undefined;
941
985
  allowConnectedAccounts?: boolean | undefined;
942
986
  }>;
943
987
  }, "providers"> & {
944
988
  providers: Record<string, {
945
- type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
946
- clientId?: string | undefined;
947
- clientSecret?: string | undefined;
989
+ type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
948
990
  allowSignIn?: boolean | undefined;
949
991
  allowConnectedAccounts?: boolean | undefined;
950
992
  isShared?: boolean | undefined;
993
+ clientId?: string | undefined;
994
+ clientSecret?: string | undefined;
951
995
  facebookConfigId?: string | undefined;
952
996
  microsoftTenantId?: string | undefined;
953
997
  }>;
@@ -966,19 +1010,19 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
966
1010
  }>;
967
1011
  }, "server"> & {
968
1012
  server: {
969
- host?: string | undefined;
970
- port?: number | undefined;
971
- username?: string | undefined;
972
1013
  password?: string | undefined;
973
1014
  isShared?: boolean | undefined;
974
1015
  provider?: "resend" | "smtp" | undefined;
1016
+ host?: string | undefined;
1017
+ port?: number | undefined;
1018
+ username?: string | undefined;
975
1019
  senderName?: string | undefined;
976
1020
  senderEmail?: string | undefined;
977
1021
  };
978
1022
  };
979
1023
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
980
1024
  sourceOfTruth: undefined;
981
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
1025
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
982
1026
  rbac: {
983
1027
  permissions: undefined;
984
1028
  defaultPermissions: {
@@ -1000,6 +1044,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1000
1044
  user: undefined;
1001
1045
  };
1002
1046
  };
1047
+ apps: {
1048
+ installed: undefined;
1049
+ };
1003
1050
  domains: {
1004
1051
  allowLocalhost: undefined;
1005
1052
  };
@@ -1028,8 +1075,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1028
1075
  autoPay: {
1029
1076
  interval: undefined;
1030
1077
  };
1031
- groups: undefined;
1032
- offers: undefined;
1078
+ testMode: undefined;
1079
+ catalogs: undefined;
1080
+ products: undefined;
1033
1081
  items: undefined;
1034
1082
  };
1035
1083
  dataVault: {
@@ -1041,7 +1089,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1041
1089
  }>, "domains" | "auth" | "emails"> & {
1042
1090
  auth: Omit<NonNullable<Omit<Omit<{
1043
1091
  sourceOfTruth: undefined;
1044
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
1092
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1045
1093
  rbac: {
1046
1094
  permissions: undefined;
1047
1095
  defaultPermissions: {
@@ -1063,6 +1111,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1063
1111
  user: undefined;
1064
1112
  };
1065
1113
  };
1114
+ apps: {
1115
+ installed: undefined;
1116
+ };
1066
1117
  domains: {
1067
1118
  allowLocalhost: undefined;
1068
1119
  };
@@ -1091,8 +1142,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1091
1142
  autoPay: {
1092
1143
  interval: undefined;
1093
1144
  };
1094
- groups: undefined;
1095
- offers: undefined;
1145
+ testMode: undefined;
1146
+ catalogs: undefined;
1147
+ products: undefined;
1096
1148
  items: undefined;
1097
1149
  };
1098
1150
  dataVault: {
@@ -1104,7 +1156,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1104
1156
  }>, "oauth"> & {
1105
1157
  oauth: Omit<NonNullable<Omit<Omit<{
1106
1158
  sourceOfTruth: undefined;
1107
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
1159
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1108
1160
  rbac: {
1109
1161
  permissions: undefined;
1110
1162
  defaultPermissions: {
@@ -1126,6 +1178,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1126
1178
  user: undefined;
1127
1179
  };
1128
1180
  };
1181
+ apps: {
1182
+ installed: undefined;
1183
+ };
1129
1184
  domains: {
1130
1185
  allowLocalhost: undefined;
1131
1186
  };
@@ -1154,8 +1209,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1154
1209
  autoPay: {
1155
1210
  interval: undefined;
1156
1211
  };
1157
- groups: undefined;
1158
- offers: undefined;
1212
+ testMode: undefined;
1213
+ catalogs: undefined;
1214
+ products: undefined;
1159
1215
  items: undefined;
1160
1216
  };
1161
1217
  dataVault: {
@@ -1170,7 +1226,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1170
1226
  };
1171
1227
  emails: Omit<NonNullable<Omit<Omit<{
1172
1228
  sourceOfTruth: undefined;
1173
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
1229
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1174
1230
  rbac: {
1175
1231
  permissions: undefined;
1176
1232
  defaultPermissions: {
@@ -1192,6 +1248,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1192
1248
  user: undefined;
1193
1249
  };
1194
1250
  };
1251
+ apps: {
1252
+ installed: undefined;
1253
+ };
1195
1254
  domains: {
1196
1255
  allowLocalhost: undefined;
1197
1256
  };
@@ -1220,8 +1279,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1220
1279
  autoPay: {
1221
1280
  interval: undefined;
1222
1281
  };
1223
- groups: undefined;
1224
- offers: undefined;
1282
+ testMode: undefined;
1283
+ catalogs: undefined;
1284
+ products: undefined;
1225
1285
  items: undefined;
1226
1286
  };
1227
1287
  dataVault: {
@@ -1244,7 +1304,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1244
1304
  };
1245
1305
  domains: Omit<NonNullable<Omit<Omit<{
1246
1306
  sourceOfTruth: undefined;
1247
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "workflows" | "users" | "emails" | "dataVault"> & {
1307
+ }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1248
1308
  rbac: {
1249
1309
  permissions: undefined;
1250
1310
  defaultPermissions: {
@@ -1266,6 +1326,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1266
1326
  user: undefined;
1267
1327
  };
1268
1328
  };
1329
+ apps: {
1330
+ installed: undefined;
1331
+ };
1269
1332
  domains: {
1270
1333
  allowLocalhost: undefined;
1271
1334
  };
@@ -1294,8 +1357,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1294
1357
  autoPay: {
1295
1358
  interval: undefined;
1296
1359
  };
1297
- groups: undefined;
1298
- offers: undefined;
1360
+ testMode: undefined;
1361
+ catalogs: undefined;
1362
+ products: undefined;
1299
1363
  items: undefined;
1300
1364
  };
1301
1365
  dataVault: {
@@ -1337,6 +1401,11 @@ declare const organizationConfigDefaults: {
1337
1401
  readonly user: false;
1338
1402
  };
1339
1403
  };
1404
+ readonly apps: {
1405
+ readonly installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
1406
+ enabled: false;
1407
+ }>;
1408
+ };
1340
1409
  readonly teams: {
1341
1410
  readonly createPersonalTeamOnSignUp: false;
1342
1411
  readonly allowClientTeamCreation: false;
@@ -1434,13 +1503,14 @@ declare const organizationConfigDefaults: {
1434
1503
  };
1435
1504
  };
1436
1505
  readonly payments: {
1506
+ readonly testMode: true;
1437
1507
  readonly autoPay: undefined;
1438
- readonly groups: (key: string) => {
1508
+ readonly catalogs: (key: string) => {
1439
1509
  displayName: undefined;
1440
1510
  };
1441
- readonly offers: (key: string) => {
1511
+ readonly products: (key: string) => {
1442
1512
  readonly displayName: string;
1443
- readonly groupId: undefined;
1513
+ readonly catalogId: undefined;
1444
1514
  readonly customerType: "user";
1445
1515
  readonly freeTrial: undefined;
1446
1516
  readonly serverOnly: false;
@@ -1571,20 +1641,23 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1571
1641
  };
1572
1642
  };
1573
1643
  server: {
1574
- host: string | undefined;
1575
- port: number | undefined;
1576
- username: string | undefined;
1577
1644
  password: string | undefined;
1578
1645
  isShared: boolean;
1579
1646
  provider: "resend" | "smtp";
1647
+ host: string | undefined;
1648
+ port: number | undefined;
1649
+ username: string | undefined;
1580
1650
  senderName: string | undefined;
1581
1651
  senderEmail: string | undefined;
1582
1652
  };
1583
1653
  };
1584
1654
  payments: {
1585
- offers: Record<string, {
1655
+ products: Record<string, {
1586
1656
  isAddOnTo: false | Record<string, true>;
1587
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;
1588
1661
  USD?: string | undefined;
1589
1662
  EUR?: string | undefined;
1590
1663
  GBP?: string | undefined;
@@ -1592,19 +1665,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1592
1665
  INR?: string | undefined;
1593
1666
  AUD?: string | undefined;
1594
1667
  CAD?: string | undefined;
1595
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1596
- serverOnly: boolean;
1597
- freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
1598
1668
  }>;
1599
1669
  displayName: string;
1600
- serverOnly: boolean;
1601
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1602
- groupId: string | undefined;
1670
+ catalogId: string | undefined;
1603
1671
  customerType: "team" | "user" | "custom";
1672
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1673
+ serverOnly: boolean;
1604
1674
  stackable: boolean | undefined;
1605
1675
  includedItems: {
1606
1676
  [x: string]: {
1607
- repeat: "never" | [number, "day" | "week" | "year" | "month"];
1677
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
1608
1678
  quantity: number;
1609
1679
  expires: "never" | "when-purchase-expires" | "when-repeated";
1610
1680
  };
@@ -1617,9 +1687,10 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1617
1687
  };
1618
1688
  };
1619
1689
  autoPay: {
1620
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1690
+ interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1621
1691
  } | undefined;
1622
- groups: {
1692
+ testMode: boolean;
1693
+ catalogs: {
1623
1694
  [x: string]: {
1624
1695
  displayName: string | undefined;
1625
1696
  };
@@ -1646,19 +1717,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1646
1717
  readonly connectionStrings?: undefined;
1647
1718
  readonly connectionString?: undefined;
1648
1719
  });
1649
- domains: {
1650
- allowLocalhost: boolean;
1651
- trustedDomains: {
1652
- [x: string]: {
1653
- baseUrl: string | undefined;
1654
- handlerPath: string;
1655
- };
1656
- };
1657
- };
1658
- teams: {
1659
- createPersonalTeamOnSignUp: boolean;
1660
- allowClientTeamCreation: boolean;
1661
- };
1662
1720
  rbac: {
1663
1721
  permissions: {
1664
1722
  [x: string]: {
@@ -1687,11 +1745,69 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1687
1745
  user: boolean;
1688
1746
  };
1689
1747
  };
1748
+ apps: {
1749
+ installed: {
1750
+ neon: {
1751
+ enabled: boolean;
1752
+ };
1753
+ rbac: {
1754
+ enabled: boolean;
1755
+ };
1756
+ payments: {
1757
+ enabled: boolean;
1758
+ };
1759
+ workflows: {
1760
+ enabled: boolean;
1761
+ };
1762
+ teams: {
1763
+ enabled: boolean;
1764
+ };
1765
+ authentication: {
1766
+ enabled: boolean;
1767
+ };
1768
+ "api-keys": {
1769
+ enabled: boolean;
1770
+ };
1771
+ emails: {
1772
+ enabled: boolean;
1773
+ };
1774
+ "email-api": {
1775
+ enabled: boolean;
1776
+ };
1777
+ "data-vault": {
1778
+ enabled: boolean;
1779
+ };
1780
+ webhooks: {
1781
+ enabled: boolean;
1782
+ };
1783
+ "tv-mode": {
1784
+ enabled: boolean;
1785
+ };
1786
+ "launch-checklist": {
1787
+ enabled: boolean;
1788
+ };
1789
+ catalyst: {
1790
+ enabled: boolean;
1791
+ };
1792
+ convex: {
1793
+ enabled: boolean;
1794
+ };
1795
+ };
1796
+ };
1797
+ domains: {
1798
+ allowLocalhost: boolean;
1799
+ trustedDomains: {
1800
+ [x: string]: {
1801
+ baseUrl: string | undefined;
1802
+ handlerPath: string;
1803
+ };
1804
+ };
1805
+ };
1690
1806
  auth: {
1807
+ allowSignUp: boolean;
1691
1808
  password: {
1692
1809
  allowSignIn: boolean;
1693
1810
  };
1694
- allowSignUp: boolean;
1695
1811
  otp: {
1696
1812
  allowSignIn: boolean;
1697
1813
  };
@@ -1702,12 +1818,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1702
1818
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1703
1819
  providers: {
1704
1820
  [x: string]: {
1705
- type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1706
- clientId: string | undefined;
1707
- clientSecret: string | undefined;
1821
+ type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1708
1822
  allowSignIn: boolean;
1709
1823
  allowConnectedAccounts: boolean;
1710
1824
  isShared: boolean;
1825
+ clientId: string | undefined;
1826
+ clientSecret: string | undefined;
1711
1827
  facebookConfigId: string | undefined;
1712
1828
  microsoftTenantId: string | undefined;
1713
1829
  };
@@ -1717,12 +1833,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1717
1833
  workflows: {
1718
1834
  availableWorkflows: {
1719
1835
  [x: string]: {
1720
- displayName: string;
1721
1836
  enabled: boolean;
1837
+ displayName: string;
1722
1838
  tsSource: string;
1723
1839
  };
1724
1840
  };
1725
1841
  };
1842
+ teams: {
1843
+ createPersonalTeamOnSignUp: boolean;
1844
+ allowClientTeamCreation: boolean;
1845
+ };
1726
1846
  users: {
1727
1847
  allowClientUserDeletion: boolean;
1728
1848
  };
@@ -1793,4 +1913,4 @@ type EnvironmentRenderedConfig = Expand<Awaited<ReturnType<typeof sanitizeEnviro
1793
1913
  type OrganizationRenderedConfig = Expand<Awaited<ReturnType<typeof sanitizeOrganizationConfig>>>;
1794
1914
  type CompleteConfig = OrganizationRenderedConfig;
1795
1915
 
1796
- export { type BranchConfigOverride, type BranchConfigOverrideOverride, type BranchIncompleteConfig, type BranchRenderedConfig, type CompleteConfig, type ConfigLevel, type EnvironmentConfigOverride, type EnvironmentConfigOverrideOverride, type EnvironmentIncompleteConfig, type EnvironmentRenderedConfig, type OrganizationConfigOverride, type OrganizationConfigOverrideOverride, type OrganizationIncompleteConfig, type OrganizationRenderedConfig, type ProjectConfigOverride, type ProjectConfigOverrideOverride, type ProjectIncompleteConfig, type ProjectRenderedConfig, type ValidatedToHaveNoConfigOverrideErrors, type ValidatedToHaveNoIncompleteConfigWarnings, applyBranchDefaults, applyEnvironmentDefaults, applyOrganizationDefaults, applyProjectDefaults, assertNoConfigOverrideErrors, branchConfigSchema, branchPaymentsSchema, configLevels, environmentConfigSchema, getConfigOverrideErrors, getIncompleteConfigWarnings, migrateConfigOverride, organizationConfigSchema, projectConfigSchema, sanitizeBranchConfig, sanitizeEnvironmentConfig, sanitizeOrganizationConfig, sanitizeProjectConfig };
1916
+ export { type BranchConfigNormalizedOverride, type BranchConfigOverride, type BranchConfigOverrideOverride, type BranchIncompleteConfig, type BranchRenderedConfig, type CompleteConfig, type ConfigLevel, type EnvironmentConfigNormalizedOverride, type EnvironmentConfigOverride, type EnvironmentConfigOverrideOverride, type EnvironmentIncompleteConfig, type EnvironmentRenderedConfig, type OrganizationConfigNormalizedOverride, type OrganizationConfigOverride, type OrganizationConfigOverrideOverride, type OrganizationIncompleteConfig, type OrganizationRenderedConfig, type ProjectConfigNormalizedOverride, type ProjectConfigOverride, type ProjectConfigOverrideOverride, type ProjectIncompleteConfig, type ProjectRenderedConfig, type ValidatedToHaveNoConfigOverrideErrors, type ValidatedToHaveNoIncompleteConfigWarnings, applyBranchDefaults, applyEnvironmentDefaults, applyOrganizationDefaults, applyProjectDefaults, assertNoConfigOverrideErrors, branchConfigSchema, branchPaymentsSchema, configLevels, environmentConfigSchema, getConfigOverrideErrors, getIncompleteConfigWarnings, migrateConfigOverride, organizationConfigSchema, projectConfigSchema, sanitizeBranchConfig, sanitizeEnvironmentConfig, sanitizeOrganizationConfig, sanitizeProjectConfig };