@stackframe/stack-shared 2.8.34 → 2.8.36

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 (110) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/config/schema.d.mts +249 -236
  3. package/dist/config/schema.d.ts +249 -236
  4. package/dist/config/schema.js +76 -54
  5. package/dist/config/schema.js.map +1 -1
  6. package/dist/esm/config/schema.js +76 -54
  7. package/dist/esm/config/schema.js.map +1 -1
  8. package/dist/esm/helpers/vault/client-side.js +46 -0
  9. package/dist/esm/helpers/vault/client-side.js.map +1 -0
  10. package/dist/esm/helpers/vault/server-side.js +92 -0
  11. package/dist/esm/helpers/vault/server-side.js.map +1 -0
  12. package/dist/esm/hooks/use-hover.js +71 -0
  13. package/dist/esm/hooks/use-hover.js.map +1 -0
  14. package/dist/esm/interface/admin-interface.js +30 -8
  15. package/dist/esm/interface/admin-interface.js.map +1 -1
  16. package/dist/esm/interface/client-interface.js +18 -4
  17. package/dist/esm/interface/client-interface.js.map +1 -1
  18. package/dist/esm/interface/server-interface.js +57 -10
  19. package/dist/esm/interface/server-interface.js.map +1 -1
  20. package/dist/esm/known-errors.js +38 -1
  21. package/dist/esm/known-errors.js.map +1 -1
  22. package/dist/esm/schema-fields.js +22 -9
  23. package/dist/esm/schema-fields.js.map +1 -1
  24. package/dist/esm/utils/bytes.js +1 -2
  25. package/dist/esm/utils/bytes.js.map +1 -1
  26. package/dist/esm/utils/crypto.js +83 -2
  27. package/dist/esm/utils/crypto.js.map +1 -1
  28. package/dist/esm/utils/currencies.js +0 -38
  29. package/dist/esm/utils/currencies.js.map +1 -1
  30. package/dist/esm/utils/currency-constants.js +42 -0
  31. package/dist/esm/utils/currency-constants.js.map +1 -0
  32. package/dist/esm/utils/dates.js +30 -0
  33. package/dist/esm/utils/dates.js.map +1 -1
  34. package/dist/esm/utils/numbers.js.map +1 -1
  35. package/dist/esm/utils/react.js +7 -3
  36. package/dist/esm/utils/react.js.map +1 -1
  37. package/dist/esm/utils/strings.js +3 -0
  38. package/dist/esm/utils/strings.js.map +1 -1
  39. package/dist/esm/utils/types.js.map +1 -1
  40. package/dist/helpers/password.d.mts +5 -5
  41. package/dist/helpers/password.d.ts +5 -5
  42. package/dist/helpers/vault/client-side.d.mts +14 -0
  43. package/dist/helpers/vault/client-side.d.ts +14 -0
  44. package/dist/helpers/vault/client-side.js +73 -0
  45. package/dist/helpers/vault/client-side.js.map +1 -0
  46. package/dist/helpers/vault/server-side.d.mts +7 -0
  47. package/dist/helpers/vault/server-side.d.ts +7 -0
  48. package/dist/helpers/vault/server-side.js +111 -0
  49. package/dist/helpers/vault/server-side.js.map +1 -0
  50. package/dist/hooks/use-hover.d.mts +6 -0
  51. package/dist/hooks/use-hover.d.ts +6 -0
  52. package/dist/hooks/use-hover.js +96 -0
  53. package/dist/hooks/use-hover.js.map +1 -0
  54. package/dist/index.d.mts +4 -4
  55. package/dist/index.d.ts +4 -4
  56. package/dist/interface/admin-interface.d.mts +22 -9
  57. package/dist/interface/admin-interface.d.ts +22 -9
  58. package/dist/interface/admin-interface.js +30 -8
  59. package/dist/interface/admin-interface.js.map +1 -1
  60. package/dist/interface/client-interface.d.mts +11 -6
  61. package/dist/interface/client-interface.d.ts +11 -6
  62. package/dist/interface/client-interface.js +18 -4
  63. package/dist/interface/client-interface.js.map +1 -1
  64. package/dist/interface/crud/current-user.d.mts +1 -1
  65. package/dist/interface/crud/current-user.d.ts +1 -1
  66. package/dist/interface/crud/project-api-keys.d.mts +2 -2
  67. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  68. package/dist/interface/crud/team-member-profiles.d.mts +2 -2
  69. package/dist/interface/crud/team-member-profiles.d.ts +2 -2
  70. package/dist/interface/crud/users.d.mts +4 -4
  71. package/dist/interface/crud/users.d.ts +4 -4
  72. package/dist/interface/server-interface.d.mts +13 -2
  73. package/dist/interface/server-interface.d.ts +13 -2
  74. package/dist/interface/server-interface.js +57 -10
  75. package/dist/interface/server-interface.js.map +1 -1
  76. package/dist/known-errors.d.mts +12 -3
  77. package/dist/known-errors.d.ts +12 -3
  78. package/dist/known-errors.js +38 -1
  79. package/dist/known-errors.js.map +1 -1
  80. package/dist/schema-fields.d.mts +23 -7
  81. package/dist/schema-fields.d.ts +23 -7
  82. package/dist/schema-fields.js +25 -11
  83. package/dist/schema-fields.js.map +1 -1
  84. package/dist/utils/bytes.js +1 -2
  85. package/dist/utils/bytes.js.map +1 -1
  86. package/dist/utils/crypto.d.mts +31 -1
  87. package/dist/utils/crypto.d.ts +31 -1
  88. package/dist/utils/crypto.js +87 -2
  89. package/dist/utils/crypto.js.map +1 -1
  90. package/dist/utils/currencies.d.mts +3 -36
  91. package/dist/utils/currencies.d.ts +3 -36
  92. package/dist/utils/currencies.js +0 -39
  93. package/dist/utils/currencies.js.map +1 -1
  94. package/dist/utils/currency-constants.d.mts +37 -0
  95. package/dist/utils/currency-constants.d.ts +37 -0
  96. package/dist/utils/currency-constants.js +67 -0
  97. package/dist/utils/currency-constants.js.map +1 -0
  98. package/dist/utils/dates.d.mts +3 -1
  99. package/dist/utils/dates.d.ts +3 -1
  100. package/dist/utils/dates.js +32 -0
  101. package/dist/utils/dates.js.map +1 -1
  102. package/dist/utils/numbers.js.map +1 -1
  103. package/dist/utils/react.js +7 -3
  104. package/dist/utils/react.js.map +1 -1
  105. package/dist/utils/strings.js +3 -0
  106. package/dist/utils/strings.js.map +1 -1
  107. package/dist/utils/types.d.mts +5 -4
  108. package/dist/utils/types.d.ts +5 -4
  109. package/dist/utils/types.js.map +1 -1
  110. package/package.json +2 -1
@@ -30,22 +30,21 @@ declare const projectConfigSchema: yup.ObjectSchema<{
30
30
  sourceOfTruth: undefined;
31
31
  }, "">;
32
32
  declare const branchPaymentsSchema: yup.ObjectSchema<{
33
- stripeAccountId: string | undefined;
34
- stripeAccountSetupComplete: boolean | undefined;
35
33
  autoPay: {
36
34
  interval?: DayInterval | undefined;
37
35
  } | undefined;
38
- exclusivityGroups: Record<string, Record<string, true | undefined>>;
36
+ groups: Record<string, {
37
+ displayName?: string | undefined;
38
+ }>;
39
39
  offers: Record<string, {
40
- customerType?: "team" | "user" | undefined;
41
40
  displayName?: string | undefined;
42
- freeTrial?: DayInterval | undefined;
43
41
  serverOnly?: boolean | undefined;
42
+ freeTrial?: DayInterval | undefined;
43
+ groupId?: string | undefined;
44
+ isAddOnTo?: false | Record<string, true> | undefined;
44
45
  stackable?: boolean | undefined;
45
- prices: Record<string, {
46
- interval?: DayInterval | undefined;
47
- freeTrial?: DayInterval | undefined;
48
- serverOnly?: boolean | undefined;
46
+ customerType: "team" | "user" | "custom";
47
+ prices: "include-by-default" | Record<string, {
49
48
  USD?: string | undefined;
50
49
  EUR?: string | undefined;
51
50
  GBP?: string | undefined;
@@ -53,29 +52,25 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
53
52
  INR?: string | undefined;
54
53
  AUD?: string | undefined;
55
54
  CAD?: string | undefined;
55
+ interval?: DayInterval | undefined;
56
+ serverOnly?: boolean | undefined;
57
+ freeTrial?: DayInterval | undefined;
56
58
  }>;
57
59
  includedItems: Record<string, {
58
60
  repeat?: "never" | DayInterval | undefined;
59
- quantity?: number | undefined;
60
61
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
62
+ quantity: number;
61
63
  }>;
62
64
  }>;
63
65
  items: Record<string, {
64
- customerType?: "team" | "user" | undefined;
65
66
  displayName?: string | undefined;
66
- default: {
67
- repeat?: "never" | DayInterval | undefined;
68
- quantity?: number | undefined;
69
- expires?: "never" | "when-repeated" | undefined;
70
- };
67
+ customerType?: "team" | "user" | "custom" | undefined;
71
68
  }>;
72
69
  }, yup.AnyObject, {
73
- stripeAccountId: undefined;
74
- stripeAccountSetupComplete: undefined;
75
70
  autoPay: {
76
71
  interval: undefined;
77
72
  };
78
- exclusivityGroups: undefined;
73
+ groups: undefined;
79
74
  offers: undefined;
80
75
  items: undefined;
81
76
  }, "">;
@@ -89,11 +84,18 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
89
84
  type: "postgres";
90
85
  connectionString: string;
91
86
  };
92
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
87
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
88
+ domains: {
89
+ allowLocalhost?: boolean | undefined;
90
+ };
91
+ teams: {
92
+ createPersonalTeamOnSignUp?: boolean | undefined;
93
+ allowClientTeamCreation?: boolean | undefined;
94
+ };
93
95
  rbac: {
94
96
  permissions: Record<string, {
95
97
  description?: string | undefined;
96
- scope?: "project" | "team" | undefined;
98
+ scope?: "team" | "project" | undefined;
97
99
  containedPermissionIds?: Record<string, true | undefined> | undefined;
98
100
  } | undefined>;
99
101
  defaultPermissions: {
@@ -108,9 +110,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
108
110
  user?: boolean | undefined;
109
111
  };
110
112
  };
111
- domains: {
112
- allowLocalhost?: boolean | undefined;
113
- };
114
113
  auth: {
115
114
  allowSignUp?: boolean | undefined;
116
115
  password: {
@@ -125,38 +124,32 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
125
124
  oauth: {
126
125
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
127
126
  providers: Record<string, {
128
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
127
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
129
128
  allowSignIn?: boolean | undefined;
130
129
  allowConnectedAccounts?: boolean | undefined;
131
130
  }>;
132
131
  };
133
132
  };
134
133
  payments: {
135
- stripeAccountId?: string | undefined;
136
- stripeAccountSetupComplete?: boolean | undefined;
137
134
  autoPay?: {
138
135
  interval?: DayInterval | undefined;
139
136
  } | undefined;
140
137
  items: Record<string, {
141
- customerType?: "team" | "user" | undefined;
142
138
  displayName?: string | undefined;
143
- default: {
144
- repeat?: "never" | DayInterval | undefined;
145
- quantity?: number | undefined;
146
- expires?: "never" | "when-repeated" | undefined;
147
- };
139
+ customerType?: "team" | "user" | "custom" | undefined;
140
+ }>;
141
+ groups: Record<string, {
142
+ displayName?: string | undefined;
148
143
  }>;
149
- exclusivityGroups: Record<string, Record<string, true | undefined>>;
150
144
  offers: Record<string, {
151
- customerType?: "team" | "user" | undefined;
152
145
  displayName?: string | undefined;
153
- freeTrial?: DayInterval | undefined;
154
146
  serverOnly?: boolean | undefined;
147
+ freeTrial?: DayInterval | undefined;
148
+ groupId?: string | undefined;
149
+ isAddOnTo?: false | Record<string, true> | undefined;
155
150
  stackable?: boolean | undefined;
156
- prices: Record<string, {
157
- interval?: DayInterval | undefined;
158
- freeTrial?: DayInterval | undefined;
159
- serverOnly?: boolean | undefined;
151
+ customerType: "team" | "user" | "custom";
152
+ prices: "include-by-default" | Record<string, {
160
153
  USD?: string | undefined;
161
154
  EUR?: string | undefined;
162
155
  GBP?: string | undefined;
@@ -164,18 +157,17 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
164
157
  INR?: string | undefined;
165
158
  AUD?: string | undefined;
166
159
  CAD?: string | undefined;
160
+ interval?: DayInterval | undefined;
161
+ serverOnly?: boolean | undefined;
162
+ freeTrial?: DayInterval | undefined;
167
163
  }>;
168
164
  includedItems: Record<string, {
169
165
  repeat?: "never" | DayInterval | undefined;
170
- quantity?: number | undefined;
171
166
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
167
+ quantity: number;
172
168
  }>;
173
169
  }>;
174
170
  };
175
- teams: {
176
- createPersonalTeamOnSignUp?: boolean | undefined;
177
- allowClientTeamCreation?: boolean | undefined;
178
- };
179
171
  users: {
180
172
  allowClientUserDeletion?: boolean | undefined;
181
173
  };
@@ -191,9 +183,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
191
183
  tsxSource: string;
192
184
  }>;
193
185
  };
186
+ dataVault: {
187
+ stores: Record<string, {
188
+ displayName?: string | undefined;
189
+ }>;
190
+ };
194
191
  }, yup.AnyObject, Omit<Omit<{
195
192
  sourceOfTruth: undefined;
196
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
193
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
197
194
  rbac: {
198
195
  permissions: undefined;
199
196
  defaultPermissions: {
@@ -240,15 +237,16 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
240
237
  templates: undefined;
241
238
  };
242
239
  payments: {
243
- stripeAccountId: undefined;
244
- stripeAccountSetupComplete: undefined;
245
240
  autoPay: {
246
241
  interval: undefined;
247
242
  };
248
- exclusivityGroups: undefined;
243
+ groups: undefined;
249
244
  offers: undefined;
250
245
  items: undefined;
251
246
  };
247
+ dataVault: {
248
+ stores: undefined;
249
+ };
252
250
  }, "">;
253
251
  declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
254
252
  sourceOfTruth: {
@@ -260,11 +258,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
260
258
  type: "postgres";
261
259
  connectionString: string;
262
260
  };
263
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
261
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
262
+ domains: {
263
+ allowLocalhost?: boolean | undefined;
264
+ };
265
+ teams: {
266
+ createPersonalTeamOnSignUp?: boolean | undefined;
267
+ allowClientTeamCreation?: boolean | undefined;
268
+ };
264
269
  rbac: {
265
270
  permissions: Record<string, {
266
271
  description?: string | undefined;
267
- scope?: "project" | "team" | undefined;
272
+ scope?: "team" | "project" | undefined;
268
273
  containedPermissionIds?: Record<string, true | undefined> | undefined;
269
274
  } | undefined>;
270
275
  defaultPermissions: {
@@ -279,9 +284,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
279
284
  user?: boolean | undefined;
280
285
  };
281
286
  };
282
- domains: {
283
- allowLocalhost?: boolean | undefined;
284
- };
285
287
  auth: {
286
288
  allowSignUp?: boolean | undefined;
287
289
  password: {
@@ -296,38 +298,32 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
296
298
  oauth: {
297
299
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
298
300
  providers: Record<string, {
299
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
301
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
300
302
  allowSignIn?: boolean | undefined;
301
303
  allowConnectedAccounts?: boolean | undefined;
302
304
  }>;
303
305
  };
304
306
  };
305
307
  payments: {
306
- stripeAccountId?: string | undefined;
307
- stripeAccountSetupComplete?: boolean | undefined;
308
308
  autoPay?: {
309
309
  interval?: DayInterval | undefined;
310
310
  } | undefined;
311
311
  items: Record<string, {
312
- customerType?: "team" | "user" | undefined;
313
312
  displayName?: string | undefined;
314
- default: {
315
- repeat?: "never" | DayInterval | undefined;
316
- quantity?: number | undefined;
317
- expires?: "never" | "when-repeated" | undefined;
318
- };
313
+ customerType?: "team" | "user" | "custom" | undefined;
314
+ }>;
315
+ groups: Record<string, {
316
+ displayName?: string | undefined;
319
317
  }>;
320
- exclusivityGroups: Record<string, Record<string, true | undefined>>;
321
318
  offers: Record<string, {
322
- customerType?: "team" | "user" | undefined;
323
319
  displayName?: string | undefined;
324
- freeTrial?: DayInterval | undefined;
325
320
  serverOnly?: boolean | undefined;
321
+ freeTrial?: DayInterval | undefined;
322
+ groupId?: string | undefined;
323
+ isAddOnTo?: false | Record<string, true> | undefined;
326
324
  stackable?: boolean | undefined;
327
- prices: Record<string, {
328
- interval?: DayInterval | undefined;
329
- freeTrial?: DayInterval | undefined;
330
- serverOnly?: boolean | undefined;
325
+ customerType: "team" | "user" | "custom";
326
+ prices: "include-by-default" | Record<string, {
331
327
  USD?: string | undefined;
332
328
  EUR?: string | undefined;
333
329
  GBP?: string | undefined;
@@ -335,18 +331,17 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
335
331
  INR?: string | undefined;
336
332
  AUD?: string | undefined;
337
333
  CAD?: string | undefined;
334
+ interval?: DayInterval | undefined;
335
+ serverOnly?: boolean | undefined;
336
+ freeTrial?: DayInterval | undefined;
338
337
  }>;
339
338
  includedItems: Record<string, {
340
339
  repeat?: "never" | DayInterval | undefined;
341
- quantity?: number | undefined;
342
340
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
341
+ quantity: number;
343
342
  }>;
344
343
  }>;
345
344
  };
346
- teams: {
347
- createPersonalTeamOnSignUp?: boolean | undefined;
348
- allowClientTeamCreation?: boolean | undefined;
349
- };
350
345
  users: {
351
346
  allowClientUserDeletion?: boolean | undefined;
352
347
  };
@@ -362,6 +357,11 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
362
357
  tsxSource: string;
363
358
  }>;
364
359
  };
360
+ dataVault: {
361
+ stores: Record<string, {
362
+ displayName?: string | undefined;
363
+ }>;
364
+ };
365
365
  }>, "domains" | "auth" | "emails"> & {
366
366
  domains: Omit<{
367
367
  allowLocalhost?: boolean | undefined;
@@ -385,7 +385,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
385
385
  oauth: {
386
386
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
387
387
  providers: Record<string, {
388
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
388
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
389
389
  allowSignIn?: boolean | undefined;
390
390
  allowConnectedAccounts?: boolean | undefined;
391
391
  }>;
@@ -394,18 +394,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
394
394
  oauth: Omit<{
395
395
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
396
396
  providers: Record<string, {
397
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
397
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
398
398
  allowSignIn?: boolean | undefined;
399
399
  allowConnectedAccounts?: boolean | undefined;
400
400
  }>;
401
401
  }, "providers"> & {
402
402
  providers: Record<string, {
403
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
403
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
404
+ clientId?: string | undefined;
405
+ clientSecret?: string | undefined;
404
406
  allowSignIn?: boolean | undefined;
405
407
  allowConnectedAccounts?: boolean | undefined;
406
408
  isShared?: boolean | undefined;
407
- clientId?: string | undefined;
408
- clientSecret?: string | undefined;
409
409
  facebookConfigId?: string | undefined;
410
410
  microsoftTenantId?: string | undefined;
411
411
  }>;
@@ -424,18 +424,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
424
424
  }>;
425
425
  }, "server"> & {
426
426
  server: {
427
- password?: string | undefined;
428
- isShared?: boolean | undefined;
429
427
  host?: string | undefined;
430
428
  port?: number | undefined;
431
429
  username?: string | undefined;
430
+ password?: string | undefined;
431
+ isShared?: boolean | undefined;
432
432
  senderName?: string | undefined;
433
433
  senderEmail?: string | undefined;
434
434
  };
435
435
  };
436
436
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
437
437
  sourceOfTruth: undefined;
438
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
438
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
439
439
  rbac: {
440
440
  permissions: undefined;
441
441
  defaultPermissions: {
@@ -482,19 +482,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
482
482
  templates: undefined;
483
483
  };
484
484
  payments: {
485
- stripeAccountId: undefined;
486
- stripeAccountSetupComplete: undefined;
487
485
  autoPay: {
488
486
  interval: undefined;
489
487
  };
490
- exclusivityGroups: undefined;
488
+ groups: undefined;
491
489
  offers: undefined;
492
490
  items: undefined;
493
491
  };
492
+ dataVault: {
493
+ stores: undefined;
494
+ };
494
495
  }>, "domains" | "auth" | "emails"> & {
495
496
  auth: Omit<NonNullable<Omit<Omit<{
496
497
  sourceOfTruth: undefined;
497
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
498
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
498
499
  rbac: {
499
500
  permissions: undefined;
500
501
  defaultPermissions: {
@@ -541,19 +542,20 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
541
542
  templates: undefined;
542
543
  };
543
544
  payments: {
544
- stripeAccountId: undefined;
545
- stripeAccountSetupComplete: undefined;
546
545
  autoPay: {
547
546
  interval: undefined;
548
547
  };
549
- exclusivityGroups: undefined;
548
+ groups: undefined;
550
549
  offers: undefined;
551
550
  items: undefined;
552
551
  };
552
+ dataVault: {
553
+ stores: undefined;
554
+ };
553
555
  }>, "oauth"> & {
554
556
  oauth: Omit<NonNullable<Omit<Omit<{
555
557
  sourceOfTruth: undefined;
556
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
558
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
557
559
  rbac: {
558
560
  permissions: undefined;
559
561
  defaultPermissions: {
@@ -600,22 +602,23 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
600
602
  templates: undefined;
601
603
  };
602
604
  payments: {
603
- stripeAccountId: undefined;
604
- stripeAccountSetupComplete: undefined;
605
605
  autoPay: {
606
606
  interval: undefined;
607
607
  };
608
- exclusivityGroups: undefined;
608
+ groups: undefined;
609
609
  offers: undefined;
610
610
  items: undefined;
611
611
  };
612
+ dataVault: {
613
+ stores: undefined;
614
+ };
612
615
  }>, "providers"> & {
613
616
  providers: undefined;
614
617
  };
615
618
  };
616
619
  emails: Omit<NonNullable<Omit<Omit<{
617
620
  sourceOfTruth: undefined;
618
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
621
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
619
622
  rbac: {
620
623
  permissions: undefined;
621
624
  defaultPermissions: {
@@ -662,15 +665,16 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
662
665
  templates: undefined;
663
666
  };
664
667
  payments: {
665
- stripeAccountId: undefined;
666
- stripeAccountSetupComplete: undefined;
667
668
  autoPay: {
668
669
  interval: undefined;
669
670
  };
670
- exclusivityGroups: undefined;
671
+ groups: undefined;
671
672
  offers: undefined;
672
673
  items: undefined;
673
674
  };
675
+ dataVault: {
676
+ stores: undefined;
677
+ };
674
678
  }>, "server"> & {
675
679
  server: {
676
680
  isShared: undefined;
@@ -684,7 +688,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
684
688
  };
685
689
  domains: Omit<NonNullable<Omit<Omit<{
686
690
  sourceOfTruth: undefined;
687
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
691
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
688
692
  rbac: {
689
693
  permissions: undefined;
690
694
  defaultPermissions: {
@@ -731,15 +735,16 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
731
735
  templates: undefined;
732
736
  };
733
737
  payments: {
734
- stripeAccountId: undefined;
735
- stripeAccountSetupComplete: undefined;
736
738
  autoPay: {
737
739
  interval: undefined;
738
740
  };
739
- exclusivityGroups: undefined;
741
+ groups: undefined;
740
742
  offers: undefined;
741
743
  items: undefined;
742
744
  };
745
+ dataVault: {
746
+ stores: undefined;
747
+ };
743
748
  }>, "trustedDomains"> & {
744
749
  trustedDomains: undefined;
745
750
  };
@@ -754,11 +759,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
754
759
  type: "postgres";
755
760
  connectionString: string;
756
761
  };
757
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
762
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
763
+ domains: {
764
+ allowLocalhost?: boolean | undefined;
765
+ };
766
+ teams: {
767
+ createPersonalTeamOnSignUp?: boolean | undefined;
768
+ allowClientTeamCreation?: boolean | undefined;
769
+ };
758
770
  rbac: {
759
771
  permissions: Record<string, {
760
772
  description?: string | undefined;
761
- scope?: "project" | "team" | undefined;
773
+ scope?: "team" | "project" | undefined;
762
774
  containedPermissionIds?: Record<string, true | undefined> | undefined;
763
775
  } | undefined>;
764
776
  defaultPermissions: {
@@ -773,9 +785,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
773
785
  user?: boolean | undefined;
774
786
  };
775
787
  };
776
- domains: {
777
- allowLocalhost?: boolean | undefined;
778
- };
779
788
  auth: {
780
789
  allowSignUp?: boolean | undefined;
781
790
  password: {
@@ -790,38 +799,32 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
790
799
  oauth: {
791
800
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
792
801
  providers: Record<string, {
793
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
802
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
794
803
  allowSignIn?: boolean | undefined;
795
804
  allowConnectedAccounts?: boolean | undefined;
796
805
  }>;
797
806
  };
798
807
  };
799
808
  payments: {
800
- stripeAccountId?: string | undefined;
801
- stripeAccountSetupComplete?: boolean | undefined;
802
809
  autoPay?: {
803
810
  interval?: DayInterval | undefined;
804
811
  } | undefined;
805
812
  items: Record<string, {
806
- customerType?: "team" | "user" | undefined;
807
813
  displayName?: string | undefined;
808
- default: {
809
- repeat?: "never" | DayInterval | undefined;
810
- quantity?: number | undefined;
811
- expires?: "never" | "when-repeated" | undefined;
812
- };
814
+ customerType?: "team" | "user" | "custom" | undefined;
815
+ }>;
816
+ groups: Record<string, {
817
+ displayName?: string | undefined;
813
818
  }>;
814
- exclusivityGroups: Record<string, Record<string, true | undefined>>;
815
819
  offers: Record<string, {
816
- customerType?: "team" | "user" | undefined;
817
820
  displayName?: string | undefined;
818
- freeTrial?: DayInterval | undefined;
819
821
  serverOnly?: boolean | undefined;
822
+ freeTrial?: DayInterval | undefined;
823
+ groupId?: string | undefined;
824
+ isAddOnTo?: false | Record<string, true> | undefined;
820
825
  stackable?: boolean | undefined;
821
- prices: Record<string, {
822
- interval?: DayInterval | undefined;
823
- freeTrial?: DayInterval | undefined;
824
- serverOnly?: boolean | undefined;
826
+ customerType: "team" | "user" | "custom";
827
+ prices: "include-by-default" | Record<string, {
825
828
  USD?: string | undefined;
826
829
  EUR?: string | undefined;
827
830
  GBP?: string | undefined;
@@ -829,18 +832,17 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
829
832
  INR?: string | undefined;
830
833
  AUD?: string | undefined;
831
834
  CAD?: string | undefined;
835
+ interval?: DayInterval | undefined;
836
+ serverOnly?: boolean | undefined;
837
+ freeTrial?: DayInterval | undefined;
832
838
  }>;
833
839
  includedItems: Record<string, {
834
840
  repeat?: "never" | DayInterval | undefined;
835
- quantity?: number | undefined;
836
841
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
842
+ quantity: number;
837
843
  }>;
838
844
  }>;
839
845
  };
840
- teams: {
841
- createPersonalTeamOnSignUp?: boolean | undefined;
842
- allowClientTeamCreation?: boolean | undefined;
843
- };
844
846
  users: {
845
847
  allowClientUserDeletion?: boolean | undefined;
846
848
  };
@@ -856,6 +858,11 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
856
858
  tsxSource: string;
857
859
  }>;
858
860
  };
861
+ dataVault: {
862
+ stores: Record<string, {
863
+ displayName?: string | undefined;
864
+ }>;
865
+ };
859
866
  }>, "domains" | "auth" | "emails"> & {
860
867
  domains: Omit<{
861
868
  allowLocalhost?: boolean | undefined;
@@ -879,7 +886,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
879
886
  oauth: {
880
887
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
881
888
  providers: Record<string, {
882
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
889
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
883
890
  allowSignIn?: boolean | undefined;
884
891
  allowConnectedAccounts?: boolean | undefined;
885
892
  }>;
@@ -888,18 +895,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
888
895
  oauth: Omit<{
889
896
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
890
897
  providers: Record<string, {
891
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
898
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
892
899
  allowSignIn?: boolean | undefined;
893
900
  allowConnectedAccounts?: boolean | undefined;
894
901
  }>;
895
902
  }, "providers"> & {
896
903
  providers: Record<string, {
897
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
904
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
905
+ clientId?: string | undefined;
906
+ clientSecret?: string | undefined;
898
907
  allowSignIn?: boolean | undefined;
899
908
  allowConnectedAccounts?: boolean | undefined;
900
909
  isShared?: boolean | undefined;
901
- clientId?: string | undefined;
902
- clientSecret?: string | undefined;
903
910
  facebookConfigId?: string | undefined;
904
911
  microsoftTenantId?: string | undefined;
905
912
  }>;
@@ -918,18 +925,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
918
925
  }>;
919
926
  }, "server"> & {
920
927
  server: {
921
- password?: string | undefined;
922
- isShared?: boolean | undefined;
923
928
  host?: string | undefined;
924
929
  port?: number | undefined;
925
930
  username?: string | undefined;
931
+ password?: string | undefined;
932
+ isShared?: boolean | undefined;
926
933
  senderName?: string | undefined;
927
934
  senderEmail?: string | undefined;
928
935
  };
929
936
  };
930
937
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
931
938
  sourceOfTruth: undefined;
932
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
939
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
933
940
  rbac: {
934
941
  permissions: undefined;
935
942
  defaultPermissions: {
@@ -976,19 +983,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
976
983
  templates: undefined;
977
984
  };
978
985
  payments: {
979
- stripeAccountId: undefined;
980
- stripeAccountSetupComplete: undefined;
981
986
  autoPay: {
982
987
  interval: undefined;
983
988
  };
984
- exclusivityGroups: undefined;
989
+ groups: undefined;
985
990
  offers: undefined;
986
991
  items: undefined;
987
992
  };
993
+ dataVault: {
994
+ stores: undefined;
995
+ };
988
996
  }>, "domains" | "auth" | "emails"> & {
989
997
  auth: Omit<NonNullable<Omit<Omit<{
990
998
  sourceOfTruth: undefined;
991
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
999
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
992
1000
  rbac: {
993
1001
  permissions: undefined;
994
1002
  defaultPermissions: {
@@ -1035,19 +1043,20 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1035
1043
  templates: undefined;
1036
1044
  };
1037
1045
  payments: {
1038
- stripeAccountId: undefined;
1039
- stripeAccountSetupComplete: undefined;
1040
1046
  autoPay: {
1041
1047
  interval: undefined;
1042
1048
  };
1043
- exclusivityGroups: undefined;
1049
+ groups: undefined;
1044
1050
  offers: undefined;
1045
1051
  items: undefined;
1046
1052
  };
1053
+ dataVault: {
1054
+ stores: undefined;
1055
+ };
1047
1056
  }>, "oauth"> & {
1048
1057
  oauth: Omit<NonNullable<Omit<Omit<{
1049
1058
  sourceOfTruth: undefined;
1050
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1059
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
1051
1060
  rbac: {
1052
1061
  permissions: undefined;
1053
1062
  defaultPermissions: {
@@ -1094,22 +1103,23 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1094
1103
  templates: undefined;
1095
1104
  };
1096
1105
  payments: {
1097
- stripeAccountId: undefined;
1098
- stripeAccountSetupComplete: undefined;
1099
1106
  autoPay: {
1100
1107
  interval: undefined;
1101
1108
  };
1102
- exclusivityGroups: undefined;
1109
+ groups: undefined;
1103
1110
  offers: undefined;
1104
1111
  items: undefined;
1105
1112
  };
1113
+ dataVault: {
1114
+ stores: undefined;
1115
+ };
1106
1116
  }>, "providers"> & {
1107
1117
  providers: undefined;
1108
1118
  };
1109
1119
  };
1110
1120
  emails: Omit<NonNullable<Omit<Omit<{
1111
1121
  sourceOfTruth: undefined;
1112
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1122
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
1113
1123
  rbac: {
1114
1124
  permissions: undefined;
1115
1125
  defaultPermissions: {
@@ -1156,15 +1166,16 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1156
1166
  templates: undefined;
1157
1167
  };
1158
1168
  payments: {
1159
- stripeAccountId: undefined;
1160
- stripeAccountSetupComplete: undefined;
1161
1169
  autoPay: {
1162
1170
  interval: undefined;
1163
1171
  };
1164
- exclusivityGroups: undefined;
1172
+ groups: undefined;
1165
1173
  offers: undefined;
1166
1174
  items: undefined;
1167
1175
  };
1176
+ dataVault: {
1177
+ stores: undefined;
1178
+ };
1168
1179
  }>, "server"> & {
1169
1180
  server: {
1170
1181
  isShared: undefined;
@@ -1178,7 +1189,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1178
1189
  };
1179
1190
  domains: Omit<NonNullable<Omit<Omit<{
1180
1191
  sourceOfTruth: undefined;
1181
- }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1192
+ }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails" | "dataVault"> & {
1182
1193
  rbac: {
1183
1194
  permissions: undefined;
1184
1195
  defaultPermissions: {
@@ -1225,15 +1236,16 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1225
1236
  templates: undefined;
1226
1237
  };
1227
1238
  payments: {
1228
- stripeAccountId: undefined;
1229
- stripeAccountSetupComplete: undefined;
1230
1239
  autoPay: {
1231
1240
  interval: undefined;
1232
1241
  };
1233
- exclusivityGroups: undefined;
1242
+ groups: undefined;
1234
1243
  offers: undefined;
1235
1244
  items: undefined;
1236
1245
  };
1246
+ dataVault: {
1247
+ stores: undefined;
1248
+ };
1237
1249
  }>, "trustedDomains"> & {
1238
1250
  trustedDomains: undefined;
1239
1251
  };
@@ -1363,16 +1375,18 @@ declare const organizationConfigDefaults: {
1363
1375
  };
1364
1376
  };
1365
1377
  readonly payments: {
1366
- readonly stripeAccountId: undefined;
1367
- readonly stripeAccountSetupComplete: false;
1368
1378
  readonly autoPay: undefined;
1369
- readonly exclusivityGroups: (key: string) => (key: string) => undefined;
1379
+ readonly groups: (key: string) => {
1380
+ displayName: undefined;
1381
+ };
1370
1382
  readonly offers: (key: string) => {
1371
1383
  readonly displayName: string;
1372
- readonly customerType: undefined;
1384
+ readonly groupId: undefined;
1385
+ readonly customerType: "user";
1373
1386
  readonly freeTrial: undefined;
1374
1387
  readonly serverOnly: false;
1375
1388
  readonly stackable: undefined;
1389
+ readonly isAddOnTo: false;
1376
1390
  readonly prices: (key: string) => {
1377
1391
  interval: undefined;
1378
1392
  serverOnly: false;
@@ -1386,18 +1400,19 @@ declare const organizationConfigDefaults: {
1386
1400
  CAD: undefined;
1387
1401
  };
1388
1402
  readonly includedItems: (key: string) => {
1389
- quantity: undefined;
1403
+ quantity: number;
1390
1404
  repeat: "never";
1391
1405
  expires: "when-repeated";
1392
1406
  };
1393
1407
  };
1394
1408
  readonly items: (key: string) => {
1395
1409
  readonly displayName: string;
1396
- readonly default: {
1397
- readonly quantity: 0;
1398
- readonly expires: "when-repeated";
1399
- readonly repeat: "never";
1400
- };
1410
+ readonly customerType: "user";
1411
+ };
1412
+ };
1413
+ readonly dataVault: {
1414
+ readonly stores: (key: string) => {
1415
+ displayName: string;
1401
1416
  };
1402
1417
  };
1403
1418
  };
@@ -1490,15 +1505,59 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1490
1505
  };
1491
1506
  };
1492
1507
  server: {
1493
- password: string | undefined;
1494
- isShared: boolean;
1495
1508
  host: string | undefined;
1496
1509
  port: number | undefined;
1497
1510
  username: string | undefined;
1511
+ password: string | undefined;
1512
+ isShared: boolean;
1498
1513
  senderName: string | undefined;
1499
1514
  senderEmail: string | undefined;
1500
1515
  };
1501
1516
  };
1517
+ payments: {
1518
+ offers: Record<string, {
1519
+ isAddOnTo: false | Record<string, true>;
1520
+ prices: "include-by-default" | Record<string, {
1521
+ USD?: string | undefined;
1522
+ EUR?: string | undefined;
1523
+ GBP?: string | undefined;
1524
+ JPY?: string | undefined;
1525
+ INR?: string | undefined;
1526
+ AUD?: string | undefined;
1527
+ CAD?: string | undefined;
1528
+ interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1529
+ serverOnly: boolean;
1530
+ freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
1531
+ }>;
1532
+ displayName: string;
1533
+ serverOnly: boolean;
1534
+ freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1535
+ groupId: string | undefined;
1536
+ customerType: "team" | "user" | "custom";
1537
+ stackable: boolean | undefined;
1538
+ includedItems: {
1539
+ [x: string]: {
1540
+ repeat: "never" | [number, "day" | "week" | "year" | "month"];
1541
+ quantity: number;
1542
+ expires: "never" | "when-purchase-expires" | "when-repeated";
1543
+ };
1544
+ };
1545
+ }>;
1546
+ items: {
1547
+ [x: string]: {
1548
+ displayName: string;
1549
+ customerType: "team" | "user" | "custom";
1550
+ };
1551
+ };
1552
+ autoPay: {
1553
+ interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1554
+ } | undefined;
1555
+ groups: {
1556
+ [x: string]: {
1557
+ displayName: string | undefined;
1558
+ };
1559
+ };
1560
+ };
1502
1561
  sourceOfTruth: {
1503
1562
  type: "hosted" | "neon" | "postgres";
1504
1563
  connectionStrings: {
@@ -1520,11 +1579,24 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1520
1579
  readonly connectionStrings?: undefined;
1521
1580
  readonly connectionString?: undefined;
1522
1581
  });
1582
+ domains: {
1583
+ allowLocalhost: boolean;
1584
+ trustedDomains: {
1585
+ [x: string]: {
1586
+ baseUrl: string | undefined;
1587
+ handlerPath: string;
1588
+ };
1589
+ };
1590
+ };
1591
+ teams: {
1592
+ createPersonalTeamOnSignUp: boolean;
1593
+ allowClientTeamCreation: boolean;
1594
+ };
1523
1595
  rbac: {
1524
1596
  permissions: {
1525
1597
  [x: string]: {
1526
1598
  description: string | undefined;
1527
- scope: "project" | "team" | undefined;
1599
+ scope: "team" | "project" | undefined;
1528
1600
  containedPermissionIds: {
1529
1601
  [x: string]: true | undefined;
1530
1602
  };
@@ -1548,20 +1620,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1548
1620
  user: boolean;
1549
1621
  };
1550
1622
  };
1551
- domains: {
1552
- allowLocalhost: boolean;
1553
- trustedDomains: {
1554
- [x: string]: {
1555
- baseUrl: string | undefined;
1556
- handlerPath: string;
1557
- };
1558
- };
1559
- };
1560
1623
  auth: {
1561
- allowSignUp: boolean;
1562
1624
  password: {
1563
1625
  allowSignIn: boolean;
1564
1626
  };
1627
+ allowSignUp: boolean;
1565
1628
  otp: {
1566
1629
  allowSignIn: boolean;
1567
1630
  };
@@ -1572,78 +1635,28 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1572
1635
  accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1573
1636
  providers: {
1574
1637
  [x: string]: {
1575
- type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1638
+ type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1639
+ clientId: string | undefined;
1640
+ clientSecret: string | undefined;
1576
1641
  allowSignIn: boolean;
1577
1642
  allowConnectedAccounts: boolean;
1578
1643
  isShared: boolean;
1579
- clientId: string | undefined;
1580
- clientSecret: string | undefined;
1581
1644
  facebookConfigId: string | undefined;
1582
1645
  microsoftTenantId: string | undefined;
1583
1646
  };
1584
1647
  };
1585
1648
  };
1586
1649
  };
1587
- payments: {
1588
- stripeAccountId: string | undefined;
1589
- stripeAccountSetupComplete: boolean;
1590
- items: {
1591
- [x: string]: {
1592
- customerType?: "team" | "user" | undefined;
1593
- default: {
1594
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
1595
- quantity: number;
1596
- expires: "never" | "when-repeated";
1597
- };
1598
- displayName: string;
1599
- };
1600
- };
1601
- autoPay: {
1602
- interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1603
- } | undefined;
1604
- exclusivityGroups: {
1605
- [x: string]: {
1606
- [x: string]: true | undefined;
1607
- };
1608
- };
1609
- offers: {
1650
+ users: {
1651
+ allowClientUserDeletion: boolean;
1652
+ };
1653
+ dataVault: {
1654
+ stores: {
1610
1655
  [x: string]: {
1611
- customerType: "team" | "user" | undefined;
1612
1656
  displayName: string;
1613
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1614
- serverOnly: boolean;
1615
- stackable: boolean | undefined;
1616
- prices: {
1617
- [x: string]: {
1618
- interval: [number, "day" | "week" | "month" | "year"] | undefined;
1619
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1620
- serverOnly: boolean;
1621
- USD: string | undefined;
1622
- EUR: string | undefined;
1623
- GBP: string | undefined;
1624
- JPY: string | undefined;
1625
- INR: string | undefined;
1626
- AUD: string | undefined;
1627
- CAD: string | undefined;
1628
- };
1629
- };
1630
- includedItems: {
1631
- [x: string]: {
1632
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
1633
- quantity: number | undefined;
1634
- expires: "never" | "when-purchase-expires" | "when-repeated";
1635
- };
1636
- };
1637
1657
  };
1638
1658
  };
1639
1659
  };
1640
- teams: {
1641
- createPersonalTeamOnSignUp: boolean;
1642
- allowClientTeamCreation: boolean;
1643
- };
1644
- users: {
1645
- allowClientUserDeletion: boolean;
1646
- };
1647
1660
  }>;
1648
1661
  /**
1649
1662
  * Does not require a base config, and hence solely relies on the override itself to validate the config. If it returns