@stackframe/stack-shared 2.8.31 → 2.8.34

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 (76) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/config/schema.d.mts +104 -104
  3. package/dist/config/schema.d.ts +104 -104
  4. package/dist/config/schema.js +1 -1
  5. package/dist/config/schema.js.map +1 -1
  6. package/dist/esm/config/schema.js +1 -1
  7. package/dist/esm/config/schema.js.map +1 -1
  8. package/dist/esm/helpers/production-mode.js +2 -1
  9. package/dist/esm/helpers/production-mode.js.map +1 -1
  10. package/dist/esm/interface/admin-interface.js +16 -19
  11. package/dist/esm/interface/admin-interface.js.map +1 -1
  12. package/dist/esm/interface/client-interface.js +36 -8
  13. package/dist/esm/interface/client-interface.js.map +1 -1
  14. package/dist/esm/interface/crud/items.js +22 -0
  15. package/dist/esm/interface/crud/items.js.map +1 -0
  16. package/dist/esm/interface/crud/users.js +1 -1
  17. package/dist/esm/interface/crud/users.js.map +1 -1
  18. package/dist/esm/interface/server-interface.js +21 -0
  19. package/dist/esm/interface/server-interface.js.map +1 -1
  20. package/dist/esm/known-errors.js +14 -5
  21. package/dist/esm/known-errors.js.map +1 -1
  22. package/dist/esm/schema-fields.js +31 -1
  23. package/dist/esm/schema-fields.js.map +1 -1
  24. package/dist/esm/utils/jwt.js +42 -37
  25. package/dist/esm/utils/jwt.js.map +1 -1
  26. package/dist/esm/utils/types.js.map +1 -1
  27. package/dist/esm/utils/urls.js +54 -0
  28. package/dist/esm/utils/urls.js.map +1 -1
  29. package/dist/helpers/password.d.mts +3 -0
  30. package/dist/helpers/password.d.ts +3 -0
  31. package/dist/helpers/production-mode.js +2 -1
  32. package/dist/helpers/production-mode.js.map +1 -1
  33. package/dist/index.d.mts +4 -0
  34. package/dist/index.d.ts +4 -0
  35. package/dist/interface/admin-interface.d.mts +5 -9
  36. package/dist/interface/admin-interface.d.ts +5 -9
  37. package/dist/interface/admin-interface.js +16 -19
  38. package/dist/interface/admin-interface.js.map +1 -1
  39. package/dist/interface/client-interface.d.mts +14 -8
  40. package/dist/interface/client-interface.d.ts +14 -8
  41. package/dist/interface/client-interface.js +36 -8
  42. package/dist/interface/client-interface.js.map +1 -1
  43. package/dist/interface/crud/items.d.mts +30 -0
  44. package/dist/interface/crud/items.d.ts +30 -0
  45. package/dist/interface/crud/items.js +47 -0
  46. package/dist/interface/crud/items.js.map +1 -0
  47. package/dist/interface/crud/project-api-keys.d.mts +4 -4
  48. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  49. package/dist/interface/crud/projects.d.mts +7 -7
  50. package/dist/interface/crud/projects.d.ts +7 -7
  51. package/dist/interface/crud/users.js +1 -1
  52. package/dist/interface/crud/users.js.map +1 -1
  53. package/dist/interface/server-interface.d.mts +6 -0
  54. package/dist/interface/server-interface.d.ts +6 -0
  55. package/dist/interface/server-interface.js +21 -0
  56. package/dist/interface/server-interface.js.map +1 -1
  57. package/dist/known-errors.d.mts +4 -1
  58. package/dist/known-errors.d.ts +4 -1
  59. package/dist/known-errors.js +14 -5
  60. package/dist/known-errors.js.map +1 -1
  61. package/dist/schema-fields.d.mts +6 -2
  62. package/dist/schema-fields.d.ts +6 -2
  63. package/dist/schema-fields.js +31 -0
  64. package/dist/schema-fields.js.map +1 -1
  65. package/dist/utils/jwt.d.mts +11 -11
  66. package/dist/utils/jwt.d.ts +11 -11
  67. package/dist/utils/jwt.js +44 -42
  68. package/dist/utils/jwt.js.map +1 -1
  69. package/dist/utils/types.d.mts +11 -1
  70. package/dist/utils/types.d.ts +11 -1
  71. package/dist/utils/types.js.map +1 -1
  72. package/dist/utils/urls.d.mts +3 -1
  73. package/dist/utils/urls.d.ts +3 -1
  74. package/dist/utils/urls.js +56 -0
  75. package/dist/utils/urls.js.map +1 -1
  76. package/package.json +1 -1
@@ -37,12 +37,15 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
37
37
  } | undefined;
38
38
  exclusivityGroups: Record<string, Record<string, true | undefined>>;
39
39
  offers: Record<string, {
40
+ customerType?: "team" | "user" | undefined;
40
41
  displayName?: string | undefined;
41
- serverOnly?: boolean | undefined;
42
42
  freeTrial?: DayInterval | undefined;
43
- customerType?: "user" | "team" | undefined;
43
+ serverOnly?: boolean | undefined;
44
44
  stackable?: boolean | undefined;
45
45
  prices: Record<string, {
46
+ interval?: DayInterval | undefined;
47
+ freeTrial?: DayInterval | undefined;
48
+ serverOnly?: boolean | undefined;
46
49
  USD?: string | undefined;
47
50
  EUR?: string | undefined;
48
51
  GBP?: string | undefined;
@@ -50,9 +53,6 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
50
53
  INR?: string | undefined;
51
54
  AUD?: string | undefined;
52
55
  CAD?: string | undefined;
53
- interval?: DayInterval | undefined;
54
- serverOnly?: boolean | undefined;
55
- freeTrial?: DayInterval | undefined;
56
56
  }>;
57
57
  includedItems: Record<string, {
58
58
  repeat?: "never" | DayInterval | undefined;
@@ -61,8 +61,8 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
61
61
  }>;
62
62
  }>;
63
63
  items: Record<string, {
64
+ customerType?: "team" | "user" | undefined;
64
65
  displayName?: string | undefined;
65
- customerType?: "user" | "team" | undefined;
66
66
  default: {
67
67
  repeat?: "never" | DayInterval | undefined;
68
68
  quantity?: number | undefined;
@@ -89,18 +89,11 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
89
89
  type: "postgres";
90
90
  connectionString: string;
91
91
  };
92
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
93
- domains: {
94
- allowLocalhost?: boolean | undefined;
95
- };
96
- teams: {
97
- createPersonalTeamOnSignUp?: boolean | undefined;
98
- allowClientTeamCreation?: boolean | undefined;
99
- };
92
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
100
93
  rbac: {
101
94
  permissions: Record<string, {
102
95
  description?: string | undefined;
103
- scope?: "team" | "project" | undefined;
96
+ scope?: "project" | "team" | undefined;
104
97
  containedPermissionIds?: Record<string, true | undefined> | undefined;
105
98
  } | undefined>;
106
99
  defaultPermissions: {
@@ -111,10 +104,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
111
104
  };
112
105
  apiKeys: {
113
106
  enabled: {
114
- user?: boolean | undefined;
115
107
  team?: boolean | undefined;
108
+ user?: boolean | undefined;
116
109
  };
117
110
  };
111
+ domains: {
112
+ allowLocalhost?: boolean | undefined;
113
+ };
118
114
  auth: {
119
115
  allowSignUp?: boolean | undefined;
120
116
  password: {
@@ -142,8 +138,8 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
142
138
  interval?: DayInterval | undefined;
143
139
  } | undefined;
144
140
  items: Record<string, {
141
+ customerType?: "team" | "user" | undefined;
145
142
  displayName?: string | undefined;
146
- customerType?: "user" | "team" | undefined;
147
143
  default: {
148
144
  repeat?: "never" | DayInterval | undefined;
149
145
  quantity?: number | undefined;
@@ -152,12 +148,15 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
152
148
  }>;
153
149
  exclusivityGroups: Record<string, Record<string, true | undefined>>;
154
150
  offers: Record<string, {
151
+ customerType?: "team" | "user" | undefined;
155
152
  displayName?: string | undefined;
156
- serverOnly?: boolean | undefined;
157
153
  freeTrial?: DayInterval | undefined;
158
- customerType?: "user" | "team" | undefined;
154
+ serverOnly?: boolean | undefined;
159
155
  stackable?: boolean | undefined;
160
156
  prices: Record<string, {
157
+ interval?: DayInterval | undefined;
158
+ freeTrial?: DayInterval | undefined;
159
+ serverOnly?: boolean | undefined;
161
160
  USD?: string | undefined;
162
161
  EUR?: string | undefined;
163
162
  GBP?: string | undefined;
@@ -165,9 +164,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
165
164
  INR?: string | undefined;
166
165
  AUD?: string | undefined;
167
166
  CAD?: string | undefined;
168
- interval?: DayInterval | undefined;
169
- serverOnly?: boolean | undefined;
170
- freeTrial?: DayInterval | undefined;
171
167
  }>;
172
168
  includedItems: Record<string, {
173
169
  repeat?: "never" | DayInterval | undefined;
@@ -176,6 +172,10 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
176
172
  }>;
177
173
  }>;
178
174
  };
175
+ teams: {
176
+ createPersonalTeamOnSignUp?: boolean | undefined;
177
+ allowClientTeamCreation?: boolean | undefined;
178
+ };
179
179
  users: {
180
180
  allowClientUserDeletion?: boolean | undefined;
181
181
  };
@@ -193,7 +193,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
193
193
  };
194
194
  }, yup.AnyObject, Omit<Omit<{
195
195
  sourceOfTruth: undefined;
196
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
196
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
197
197
  rbac: {
198
198
  permissions: undefined;
199
199
  defaultPermissions: {
@@ -260,18 +260,11 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
260
260
  type: "postgres";
261
261
  connectionString: string;
262
262
  };
263
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
264
- domains: {
265
- allowLocalhost?: boolean | undefined;
266
- };
267
- teams: {
268
- createPersonalTeamOnSignUp?: boolean | undefined;
269
- allowClientTeamCreation?: boolean | undefined;
270
- };
263
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
271
264
  rbac: {
272
265
  permissions: Record<string, {
273
266
  description?: string | undefined;
274
- scope?: "team" | "project" | undefined;
267
+ scope?: "project" | "team" | undefined;
275
268
  containedPermissionIds?: Record<string, true | undefined> | undefined;
276
269
  } | undefined>;
277
270
  defaultPermissions: {
@@ -282,10 +275,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
282
275
  };
283
276
  apiKeys: {
284
277
  enabled: {
285
- user?: boolean | undefined;
286
278
  team?: boolean | undefined;
279
+ user?: boolean | undefined;
287
280
  };
288
281
  };
282
+ domains: {
283
+ allowLocalhost?: boolean | undefined;
284
+ };
289
285
  auth: {
290
286
  allowSignUp?: boolean | undefined;
291
287
  password: {
@@ -313,8 +309,8 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
313
309
  interval?: DayInterval | undefined;
314
310
  } | undefined;
315
311
  items: Record<string, {
312
+ customerType?: "team" | "user" | undefined;
316
313
  displayName?: string | undefined;
317
- customerType?: "user" | "team" | undefined;
318
314
  default: {
319
315
  repeat?: "never" | DayInterval | undefined;
320
316
  quantity?: number | undefined;
@@ -323,12 +319,15 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
323
319
  }>;
324
320
  exclusivityGroups: Record<string, Record<string, true | undefined>>;
325
321
  offers: Record<string, {
322
+ customerType?: "team" | "user" | undefined;
326
323
  displayName?: string | undefined;
327
- serverOnly?: boolean | undefined;
328
324
  freeTrial?: DayInterval | undefined;
329
- customerType?: "user" | "team" | undefined;
325
+ serverOnly?: boolean | undefined;
330
326
  stackable?: boolean | undefined;
331
327
  prices: Record<string, {
328
+ interval?: DayInterval | undefined;
329
+ freeTrial?: DayInterval | undefined;
330
+ serverOnly?: boolean | undefined;
332
331
  USD?: string | undefined;
333
332
  EUR?: string | undefined;
334
333
  GBP?: string | undefined;
@@ -336,9 +335,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
336
335
  INR?: string | undefined;
337
336
  AUD?: string | undefined;
338
337
  CAD?: string | undefined;
339
- interval?: DayInterval | undefined;
340
- serverOnly?: boolean | undefined;
341
- freeTrial?: DayInterval | undefined;
342
338
  }>;
343
339
  includedItems: Record<string, {
344
340
  repeat?: "never" | DayInterval | undefined;
@@ -347,6 +343,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
347
343
  }>;
348
344
  }>;
349
345
  };
346
+ teams: {
347
+ createPersonalTeamOnSignUp?: boolean | undefined;
348
+ allowClientTeamCreation?: boolean | undefined;
349
+ };
350
350
  users: {
351
351
  allowClientUserDeletion?: boolean | undefined;
352
352
  };
@@ -401,11 +401,11 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
401
401
  }, "providers"> & {
402
402
  providers: Record<string, {
403
403
  type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
404
- clientId?: string | undefined;
405
- clientSecret?: string | undefined;
406
404
  allowSignIn?: boolean | undefined;
407
405
  allowConnectedAccounts?: boolean | undefined;
408
406
  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;
427
429
  host?: string | undefined;
428
430
  port?: number | undefined;
429
431
  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>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
438
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
439
439
  rbac: {
440
440
  permissions: undefined;
441
441
  defaultPermissions: {
@@ -494,7 +494,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
494
494
  }>, "domains" | "auth" | "emails"> & {
495
495
  auth: Omit<NonNullable<Omit<Omit<{
496
496
  sourceOfTruth: undefined;
497
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
497
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
498
498
  rbac: {
499
499
  permissions: undefined;
500
500
  defaultPermissions: {
@@ -553,7 +553,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
553
553
  }>, "oauth"> & {
554
554
  oauth: Omit<NonNullable<Omit<Omit<{
555
555
  sourceOfTruth: undefined;
556
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
556
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
557
557
  rbac: {
558
558
  permissions: undefined;
559
559
  defaultPermissions: {
@@ -615,7 +615,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
615
615
  };
616
616
  emails: Omit<NonNullable<Omit<Omit<{
617
617
  sourceOfTruth: undefined;
618
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
618
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
619
619
  rbac: {
620
620
  permissions: undefined;
621
621
  defaultPermissions: {
@@ -684,7 +684,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
684
684
  };
685
685
  domains: Omit<NonNullable<Omit<Omit<{
686
686
  sourceOfTruth: undefined;
687
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
687
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
688
688
  rbac: {
689
689
  permissions: undefined;
690
690
  defaultPermissions: {
@@ -754,18 +754,11 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
754
754
  type: "postgres";
755
755
  connectionString: string;
756
756
  };
757
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
758
- domains: {
759
- allowLocalhost?: boolean | undefined;
760
- };
761
- teams: {
762
- createPersonalTeamOnSignUp?: boolean | undefined;
763
- allowClientTeamCreation?: boolean | undefined;
764
- };
757
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
765
758
  rbac: {
766
759
  permissions: Record<string, {
767
760
  description?: string | undefined;
768
- scope?: "team" | "project" | undefined;
761
+ scope?: "project" | "team" | undefined;
769
762
  containedPermissionIds?: Record<string, true | undefined> | undefined;
770
763
  } | undefined>;
771
764
  defaultPermissions: {
@@ -776,10 +769,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
776
769
  };
777
770
  apiKeys: {
778
771
  enabled: {
779
- user?: boolean | undefined;
780
772
  team?: boolean | undefined;
773
+ user?: boolean | undefined;
781
774
  };
782
775
  };
776
+ domains: {
777
+ allowLocalhost?: boolean | undefined;
778
+ };
783
779
  auth: {
784
780
  allowSignUp?: boolean | undefined;
785
781
  password: {
@@ -807,8 +803,8 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
807
803
  interval?: DayInterval | undefined;
808
804
  } | undefined;
809
805
  items: Record<string, {
806
+ customerType?: "team" | "user" | undefined;
810
807
  displayName?: string | undefined;
811
- customerType?: "user" | "team" | undefined;
812
808
  default: {
813
809
  repeat?: "never" | DayInterval | undefined;
814
810
  quantity?: number | undefined;
@@ -817,12 +813,15 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
817
813
  }>;
818
814
  exclusivityGroups: Record<string, Record<string, true | undefined>>;
819
815
  offers: Record<string, {
816
+ customerType?: "team" | "user" | undefined;
820
817
  displayName?: string | undefined;
821
- serverOnly?: boolean | undefined;
822
818
  freeTrial?: DayInterval | undefined;
823
- customerType?: "user" | "team" | undefined;
819
+ serverOnly?: boolean | undefined;
824
820
  stackable?: boolean | undefined;
825
821
  prices: Record<string, {
822
+ interval?: DayInterval | undefined;
823
+ freeTrial?: DayInterval | undefined;
824
+ serverOnly?: boolean | undefined;
826
825
  USD?: string | undefined;
827
826
  EUR?: string | undefined;
828
827
  GBP?: string | undefined;
@@ -830,9 +829,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
830
829
  INR?: string | undefined;
831
830
  AUD?: string | undefined;
832
831
  CAD?: string | undefined;
833
- interval?: DayInterval | undefined;
834
- serverOnly?: boolean | undefined;
835
- freeTrial?: DayInterval | undefined;
836
832
  }>;
837
833
  includedItems: Record<string, {
838
834
  repeat?: "never" | DayInterval | undefined;
@@ -841,6 +837,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
841
837
  }>;
842
838
  }>;
843
839
  };
840
+ teams: {
841
+ createPersonalTeamOnSignUp?: boolean | undefined;
842
+ allowClientTeamCreation?: boolean | undefined;
843
+ };
844
844
  users: {
845
845
  allowClientUserDeletion?: boolean | undefined;
846
846
  };
@@ -895,11 +895,11 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
895
895
  }, "providers"> & {
896
896
  providers: Record<string, {
897
897
  type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
898
- clientId?: string | undefined;
899
- clientSecret?: string | undefined;
900
898
  allowSignIn?: boolean | undefined;
901
899
  allowConnectedAccounts?: boolean | undefined;
902
900
  isShared?: boolean | undefined;
901
+ clientId?: string | undefined;
902
+ clientSecret?: string | undefined;
903
903
  facebookConfigId?: string | undefined;
904
904
  microsoftTenantId?: string | undefined;
905
905
  }>;
@@ -918,18 +918,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
918
918
  }>;
919
919
  }, "server"> & {
920
920
  server: {
921
+ password?: string | undefined;
922
+ isShared?: boolean | undefined;
921
923
  host?: string | undefined;
922
924
  port?: number | undefined;
923
925
  username?: string | undefined;
924
- password?: string | undefined;
925
- isShared?: boolean | undefined;
926
926
  senderName?: string | undefined;
927
927
  senderEmail?: string | undefined;
928
928
  };
929
929
  };
930
930
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
931
931
  sourceOfTruth: undefined;
932
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
932
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
933
933
  rbac: {
934
934
  permissions: undefined;
935
935
  defaultPermissions: {
@@ -988,7 +988,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
988
988
  }>, "domains" | "auth" | "emails"> & {
989
989
  auth: Omit<NonNullable<Omit<Omit<{
990
990
  sourceOfTruth: undefined;
991
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
991
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
992
992
  rbac: {
993
993
  permissions: undefined;
994
994
  defaultPermissions: {
@@ -1047,7 +1047,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1047
1047
  }>, "oauth"> & {
1048
1048
  oauth: Omit<NonNullable<Omit<Omit<{
1049
1049
  sourceOfTruth: undefined;
1050
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
1050
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1051
1051
  rbac: {
1052
1052
  permissions: undefined;
1053
1053
  defaultPermissions: {
@@ -1109,7 +1109,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1109
1109
  };
1110
1110
  emails: Omit<NonNullable<Omit<Omit<{
1111
1111
  sourceOfTruth: undefined;
1112
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
1112
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1113
1113
  rbac: {
1114
1114
  permissions: undefined;
1115
1115
  defaultPermissions: {
@@ -1178,7 +1178,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1178
1178
  };
1179
1179
  domains: Omit<NonNullable<Omit<Omit<{
1180
1180
  sourceOfTruth: undefined;
1181
- }, string>, "domains" | "teams" | "rbac" | "apiKeys" | "auth" | "payments" | "users" | "emails"> & {
1181
+ }, string>, "rbac" | "apiKeys" | "domains" | "auth" | "payments" | "teams" | "users" | "emails"> & {
1182
1182
  rbac: {
1183
1183
  permissions: undefined;
1184
1184
  defaultPermissions: {
@@ -1490,11 +1490,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1490
1490
  };
1491
1491
  };
1492
1492
  server: {
1493
+ password: string | undefined;
1494
+ isShared: boolean;
1493
1495
  host: string | undefined;
1494
1496
  port: number | undefined;
1495
1497
  username: string | undefined;
1496
- password: string | undefined;
1497
- isShared: boolean;
1498
1498
  senderName: string | undefined;
1499
1499
  senderEmail: string | undefined;
1500
1500
  };
@@ -1520,24 +1520,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1520
1520
  readonly connectionStrings?: undefined;
1521
1521
  readonly connectionString?: undefined;
1522
1522
  });
1523
- domains: {
1524
- allowLocalhost: boolean;
1525
- trustedDomains: {
1526
- [x: string]: {
1527
- baseUrl: string | undefined;
1528
- handlerPath: string;
1529
- };
1530
- };
1531
- };
1532
- teams: {
1533
- createPersonalTeamOnSignUp: boolean;
1534
- allowClientTeamCreation: boolean;
1535
- };
1536
1523
  rbac: {
1537
1524
  permissions: {
1538
1525
  [x: string]: {
1539
1526
  description: string | undefined;
1540
- scope: "team" | "project" | undefined;
1527
+ scope: "project" | "team" | undefined;
1541
1528
  containedPermissionIds: {
1542
1529
  [x: string]: true | undefined;
1543
1530
  };
@@ -1557,15 +1544,24 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1557
1544
  };
1558
1545
  apiKeys: {
1559
1546
  enabled: {
1560
- user: boolean;
1561
1547
  team: boolean;
1548
+ user: boolean;
1549
+ };
1550
+ };
1551
+ domains: {
1552
+ allowLocalhost: boolean;
1553
+ trustedDomains: {
1554
+ [x: string]: {
1555
+ baseUrl: string | undefined;
1556
+ handlerPath: string;
1557
+ };
1562
1558
  };
1563
1559
  };
1564
1560
  auth: {
1561
+ allowSignUp: boolean;
1565
1562
  password: {
1566
1563
  allowSignIn: boolean;
1567
1564
  };
1568
- allowSignUp: boolean;
1569
1565
  otp: {
1570
1566
  allowSignIn: boolean;
1571
1567
  };
@@ -1577,11 +1573,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1577
1573
  providers: {
1578
1574
  [x: string]: {
1579
1575
  type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1580
- clientId: string | undefined;
1581
- clientSecret: string | undefined;
1582
1576
  allowSignIn: boolean;
1583
1577
  allowConnectedAccounts: boolean;
1584
1578
  isShared: boolean;
1579
+ clientId: string | undefined;
1580
+ clientSecret: string | undefined;
1585
1581
  facebookConfigId: string | undefined;
1586
1582
  microsoftTenantId: string | undefined;
1587
1583
  };
@@ -1589,21 +1585,21 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1589
1585
  };
1590
1586
  };
1591
1587
  payments: {
1588
+ stripeAccountId: string | undefined;
1589
+ stripeAccountSetupComplete: boolean;
1592
1590
  items: {
1593
1591
  [x: string]: {
1594
- customerType?: "user" | "team" | undefined;
1592
+ customerType?: "team" | "user" | undefined;
1595
1593
  default: {
1596
- repeat: "never" | [number, "day" | "week" | "year" | "month"];
1594
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
1597
1595
  quantity: number;
1598
1596
  expires: "never" | "when-repeated";
1599
1597
  };
1600
1598
  displayName: string;
1601
1599
  };
1602
1600
  };
1603
- stripeAccountId: string | undefined;
1604
- stripeAccountSetupComplete: boolean;
1605
1601
  autoPay: {
1606
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1602
+ interval?: [number, "day" | "week" | "month" | "year"] | undefined;
1607
1603
  } | undefined;
1608
1604
  exclusivityGroups: {
1609
1605
  [x: string]: {
@@ -1612,13 +1608,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1612
1608
  };
1613
1609
  offers: {
1614
1610
  [x: string]: {
1611
+ customerType: "team" | "user" | undefined;
1615
1612
  displayName: string;
1613
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1616
1614
  serverOnly: boolean;
1617
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1618
- customerType: "user" | "team" | undefined;
1619
1615
  stackable: boolean | undefined;
1620
1616
  prices: {
1621
1617
  [x: string]: {
1618
+ interval: [number, "day" | "week" | "month" | "year"] | undefined;
1619
+ freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1620
+ serverOnly: boolean;
1622
1621
  USD: string | undefined;
1623
1622
  EUR: string | undefined;
1624
1623
  GBP: string | undefined;
@@ -1626,14 +1625,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1626
1625
  INR: string | undefined;
1627
1626
  AUD: string | undefined;
1628
1627
  CAD: string | undefined;
1629
- interval: [number, "day" | "week" | "year" | "month"] | undefined;
1630
- serverOnly: boolean;
1631
- freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1632
1628
  };
1633
1629
  };
1634
1630
  includedItems: {
1635
1631
  [x: string]: {
1636
- repeat: "never" | [number, "day" | "week" | "year" | "month"];
1632
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
1637
1633
  quantity: number | undefined;
1638
1634
  expires: "never" | "when-purchase-expires" | "when-repeated";
1639
1635
  };
@@ -1641,6 +1637,10 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1641
1637
  };
1642
1638
  };
1643
1639
  };
1640
+ teams: {
1641
+ createPersonalTeamOnSignUp: boolean;
1642
+ allowClientTeamCreation: boolean;
1643
+ };
1644
1644
  users: {
1645
1645
  allowClientUserDeletion: boolean;
1646
1646
  };
@@ -227,7 +227,7 @@ var environmentConfigSchema = branchConfigSchema.concat((0, import_schema_fields
227
227
  trustedDomains: (0, import_schema_fields.yupRecord)(
228
228
  (0, import_schema_fields.userSpecifiedIdSchema)("trustedDomainId"),
229
229
  (0, import_schema_fields.yupObject)({
230
- baseUrl: schemaFields.urlSchema,
230
+ baseUrl: schemaFields.wildcardUrlSchema,
231
231
  handlerPath: schemaFields.handlerPathSchema
232
232
  })
233
233
  )