@hexclave/shared 1.0.24 → 1.0.26

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 (73) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/config/schema.d.ts +164 -164
  3. package/dist/config-authoring.d.ts +5 -2
  4. package/dist/config-authoring.d.ts.map +1 -1
  5. package/dist/config-authoring.js +3 -0
  6. package/dist/config-authoring.js.map +1 -1
  7. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  8. package/dist/esm/config/schema.d.ts +164 -164
  9. package/dist/esm/config-authoring.d.ts +5 -2
  10. package/dist/esm/config-authoring.d.ts.map +1 -1
  11. package/dist/esm/config-authoring.js +3 -0
  12. package/dist/esm/config-authoring.js.map +1 -1
  13. package/dist/esm/interface/admin-interface.d.ts +3 -1
  14. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  15. package/dist/esm/interface/admin-interface.js +3 -0
  16. package/dist/esm/interface/admin-interface.js.map +1 -1
  17. package/dist/esm/interface/admin-metrics.d.ts +14 -14
  18. package/dist/esm/interface/conversations.d.ts +1 -1
  19. package/dist/esm/interface/crud/current-user.d.ts +15 -15
  20. package/dist/esm/interface/crud/email-outbox.d.ts +158 -158
  21. package/dist/esm/interface/crud/products.d.ts +15 -15
  22. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  23. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  24. package/dist/esm/interface/crud/projects.d.ts +57 -7
  25. package/dist/esm/interface/crud/projects.d.ts.map +1 -1
  26. package/dist/esm/interface/crud/projects.js +6 -0
  27. package/dist/esm/interface/crud/projects.js.map +1 -1
  28. package/dist/esm/interface/crud/team-member-profiles.d.ts +42 -42
  29. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  30. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  31. package/dist/esm/interface/crud/users.d.ts +16 -16
  32. package/dist/esm/interface/plan-usage.d.ts +57 -0
  33. package/dist/esm/interface/plan-usage.d.ts.map +1 -0
  34. package/dist/esm/interface/plan-usage.js +35 -0
  35. package/dist/esm/interface/plan-usage.js.map +1 -0
  36. package/dist/esm/known-errors.d.ts +5 -5
  37. package/dist/esm/schema-fields.d.ts +5 -5
  38. package/dist/esm/sessions.d.ts +7 -7
  39. package/dist/{index-fQbeILq7.d.ts → index-nCRuFJTF.d.ts} +1 -1
  40. package/dist/{index-fQbeILq7.d.ts.map → index-nCRuFJTF.d.ts.map} +1 -1
  41. package/dist/interface/admin-interface.d.ts +3 -1
  42. package/dist/interface/admin-interface.d.ts.map +1 -1
  43. package/dist/interface/admin-interface.js +3 -0
  44. package/dist/interface/admin-interface.js.map +1 -1
  45. package/dist/interface/admin-metrics.d.ts +14 -14
  46. package/dist/interface/client-interface.d.ts +1 -1
  47. package/dist/interface/conversations.d.ts +1 -1
  48. package/dist/interface/crud/current-user.d.ts +15 -15
  49. package/dist/interface/crud/email-outbox.d.ts +158 -158
  50. package/dist/interface/crud/products.d.ts +15 -15
  51. package/dist/interface/crud/products.d.ts.map +1 -1
  52. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  53. package/dist/interface/crud/projects.d.ts +57 -7
  54. package/dist/interface/crud/projects.d.ts.map +1 -1
  55. package/dist/interface/crud/projects.js +6 -0
  56. package/dist/interface/crud/projects.js.map +1 -1
  57. package/dist/interface/crud/team-member-profiles.d.ts +42 -42
  58. package/dist/interface/crud/transactions.d.ts +21 -21
  59. package/dist/interface/crud/transactions.d.ts.map +1 -1
  60. package/dist/interface/crud/users.d.ts +16 -16
  61. package/dist/interface/plan-usage.d.ts +57 -0
  62. package/dist/interface/plan-usage.d.ts.map +1 -0
  63. package/dist/interface/plan-usage.js +39 -0
  64. package/dist/interface/plan-usage.js.map +1 -0
  65. package/dist/known-errors.d.ts +5 -5
  66. package/dist/schema-fields.d.ts +5 -5
  67. package/dist/sessions.d.ts +7 -7
  68. package/dist/utils/passkey.d.ts +1 -1
  69. package/package.json +1 -1
  70. package/src/config-authoring.ts +5 -3
  71. package/src/interface/admin-interface.ts +14 -0
  72. package/src/interface/crud/projects.ts +12 -0
  73. package/src/interface/plan-usage.ts +34 -0
@@ -36,7 +36,7 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
36
36
  } | undefined;
37
37
  productLines: Record<string, {
38
38
  displayName?: string | undefined;
39
- customerType?: "user" | "team" | "custom" | undefined;
39
+ customerType?: "team" | "user" | "custom" | undefined;
40
40
  }>;
41
41
  products: Record<string, {
42
42
  displayName?: string | undefined;
@@ -45,7 +45,7 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
45
45
  productLineId?: string | undefined;
46
46
  isAddOnTo?: false | Record<string, true> | undefined;
47
47
  stackable?: boolean | undefined;
48
- customerType: "user" | "team" | "custom";
48
+ customerType: "team" | "user" | "custom";
49
49
  prices: Record<string, {
50
50
  USD?: string | undefined;
51
51
  EUR?: string | undefined;
@@ -66,7 +66,7 @@ declare const branchPaymentsSchema: yup$1.ObjectSchema<{
66
66
  }>;
67
67
  items: Record<string, {
68
68
  displayName?: string | undefined;
69
- customerType?: "user" | "team" | "custom" | undefined;
69
+ customerType?: "team" | "user" | "custom" | undefined;
70
70
  }>;
71
71
  } | undefined, yup$1.AnyObject, {
72
72
  blockNewPurchases: undefined;
@@ -84,7 +84,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
84
84
  sourceOfTruth: {
85
85
  type: "hosted";
86
86
  };
87
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
87
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
88
88
  payments?: {
89
89
  blockNewPurchases?: boolean | undefined;
90
90
  autoPay?: {
@@ -92,11 +92,11 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
92
92
  } | undefined;
93
93
  items: Record<string, {
94
94
  displayName?: string | undefined;
95
- customerType?: "user" | "team" | "custom" | undefined;
95
+ customerType?: "team" | "user" | "custom" | undefined;
96
96
  }>;
97
97
  productLines: Record<string, {
98
98
  displayName?: string | undefined;
99
- customerType?: "user" | "team" | "custom" | undefined;
99
+ customerType?: "team" | "user" | "custom" | undefined;
100
100
  }>;
101
101
  products: Record<string, {
102
102
  displayName?: string | undefined;
@@ -105,7 +105,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
105
105
  productLineId?: string | undefined;
106
106
  isAddOnTo?: false | Record<string, true> | undefined;
107
107
  stackable?: boolean | undefined;
108
- customerType: "user" | "team" | "custom";
108
+ customerType: "team" | "user" | "custom";
109
109
  prices: Record<string, {
110
110
  USD?: string | undefined;
111
111
  EUR?: string | undefined;
@@ -125,12 +125,27 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
125
125
  }>;
126
126
  }>;
127
127
  } | undefined;
128
+ emails: {
129
+ selectedThemeId?: string | undefined;
130
+ themes: Record<string, {
131
+ displayName: string;
132
+ tsxSource: string;
133
+ }>;
134
+ templates: Record<string, {
135
+ themeId?: string | false | undefined;
136
+ displayName: string;
137
+ tsxSource: string;
138
+ }>;
139
+ };
128
140
  auth: {
129
141
  allowSignUp?: boolean | undefined;
130
142
  signUpRulesDefaultAction?: string | undefined;
131
143
  password: {
132
144
  allowSignIn?: boolean | undefined;
133
145
  };
146
+ passkey: {
147
+ allowSignIn?: boolean | undefined;
148
+ };
134
149
  otp: {
135
150
  allowSignIn?: boolean | undefined;
136
151
  };
@@ -142,9 +157,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
142
157
  allowConnectedAccounts?: boolean | undefined;
143
158
  }>;
144
159
  };
145
- passkey: {
146
- allowSignIn?: boolean | undefined;
147
- };
148
160
  signUpRules: Record<string, {
149
161
  displayName?: string | undefined;
150
162
  enabled?: boolean | undefined;
@@ -166,7 +178,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
166
178
  rbac: {
167
179
  permissions: Record<string, {
168
180
  description?: string | undefined;
169
- scope?: "project" | "team" | undefined;
181
+ scope?: "team" | "project" | undefined;
170
182
  containedPermissionIds?: Record<string, true | undefined> | undefined;
171
183
  } | undefined>;
172
184
  defaultPermissions: {
@@ -175,30 +187,18 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
175
187
  signUp: Record<string, true | undefined>;
176
188
  };
177
189
  };
178
- emails: {
179
- selectedThemeId?: string | undefined;
180
- themes: Record<string, {
181
- displayName: string;
182
- tsxSource: string;
183
- }>;
184
- templates: Record<string, {
185
- themeId?: string | false | undefined;
186
- displayName: string;
187
- tsxSource: string;
188
- }>;
189
- };
190
+ domains: {};
190
191
  users: {
191
192
  allowClientUserDeletion?: boolean | undefined;
192
193
  };
193
- domains: {};
194
194
  apiKeys: {
195
195
  enabled: {
196
- user?: boolean | undefined;
197
196
  team?: boolean | undefined;
197
+ user?: boolean | undefined;
198
198
  };
199
199
  };
200
200
  apps: {
201
- installed: Record<"authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
201
+ installed: Record<"emails" | "authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
202
202
  enabled?: boolean | undefined;
203
203
  }>;
204
204
  };
@@ -218,7 +218,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
218
218
  project: {
219
219
  requirePublishableClientKey: undefined;
220
220
  };
221
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
221
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
222
222
  rbac: {
223
223
  permissions: undefined;
224
224
  defaultPermissions: {
@@ -293,7 +293,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
293
293
  sourceOfTruth: {
294
294
  type: "hosted";
295
295
  };
296
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
296
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
297
297
  payments?: {
298
298
  blockNewPurchases?: boolean | undefined;
299
299
  autoPay?: {
@@ -301,11 +301,11 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
301
301
  } | undefined;
302
302
  items: Record<string, {
303
303
  displayName?: string | undefined;
304
- customerType?: "user" | "team" | "custom" | undefined;
304
+ customerType?: "team" | "user" | "custom" | undefined;
305
305
  }>;
306
306
  productLines: Record<string, {
307
307
  displayName?: string | undefined;
308
- customerType?: "user" | "team" | "custom" | undefined;
308
+ customerType?: "team" | "user" | "custom" | undefined;
309
309
  }>;
310
310
  products: Record<string, {
311
311
  displayName?: string | undefined;
@@ -314,7 +314,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
314
314
  productLineId?: string | undefined;
315
315
  isAddOnTo?: false | Record<string, true> | undefined;
316
316
  stackable?: boolean | undefined;
317
- customerType: "user" | "team" | "custom";
317
+ customerType: "team" | "user" | "custom";
318
318
  prices: Record<string, {
319
319
  USD?: string | undefined;
320
320
  EUR?: string | undefined;
@@ -334,12 +334,27 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
334
334
  }>;
335
335
  }>;
336
336
  } | undefined;
337
+ emails: {
338
+ selectedThemeId?: string | undefined;
339
+ themes: Record<string, {
340
+ displayName: string;
341
+ tsxSource: string;
342
+ }>;
343
+ templates: Record<string, {
344
+ themeId?: string | false | undefined;
345
+ displayName: string;
346
+ tsxSource: string;
347
+ }>;
348
+ };
337
349
  auth: {
338
350
  allowSignUp?: boolean | undefined;
339
351
  signUpRulesDefaultAction?: string | undefined;
340
352
  password: {
341
353
  allowSignIn?: boolean | undefined;
342
354
  };
355
+ passkey: {
356
+ allowSignIn?: boolean | undefined;
357
+ };
343
358
  otp: {
344
359
  allowSignIn?: boolean | undefined;
345
360
  };
@@ -351,9 +366,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
351
366
  allowConnectedAccounts?: boolean | undefined;
352
367
  }>;
353
368
  };
354
- passkey: {
355
- allowSignIn?: boolean | undefined;
356
- };
357
369
  signUpRules: Record<string, {
358
370
  displayName?: string | undefined;
359
371
  enabled?: boolean | undefined;
@@ -375,7 +387,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
375
387
  rbac: {
376
388
  permissions: Record<string, {
377
389
  description?: string | undefined;
378
- scope?: "project" | "team" | undefined;
390
+ scope?: "team" | "project" | undefined;
379
391
  containedPermissionIds?: Record<string, true | undefined> | undefined;
380
392
  } | undefined>;
381
393
  defaultPermissions: {
@@ -384,30 +396,18 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
384
396
  signUp: Record<string, true | undefined>;
385
397
  };
386
398
  };
387
- emails: {
388
- selectedThemeId?: string | undefined;
389
- themes: Record<string, {
390
- displayName: string;
391
- tsxSource: string;
392
- }>;
393
- templates: Record<string, {
394
- themeId?: string | false | undefined;
395
- displayName: string;
396
- tsxSource: string;
397
- }>;
398
- };
399
+ domains: {};
399
400
  users: {
400
401
  allowClientUserDeletion?: boolean | undefined;
401
402
  };
402
- domains: {};
403
403
  apiKeys: {
404
404
  enabled: {
405
- user?: boolean | undefined;
406
405
  team?: boolean | undefined;
406
+ user?: boolean | undefined;
407
407
  };
408
408
  };
409
409
  apps: {
410
- installed: Record<"authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
410
+ installed: Record<"emails" | "authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
411
411
  enabled?: boolean | undefined;
412
412
  }>;
413
413
  };
@@ -422,7 +422,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
422
422
  displayName?: string | undefined;
423
423
  }>;
424
424
  };
425
- }>, "auth" | "analytics" | "payments" | "emails" | "domains" | "customDashboards"> & {
425
+ }>, "emails" | "auth" | "analytics" | "payments" | "domains" | "customDashboards"> & {
426
426
  payments?: (Omit<{
427
427
  blockNewPurchases?: boolean | undefined;
428
428
  autoPay?: {
@@ -430,11 +430,11 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
430
430
  } | undefined;
431
431
  items: Record<string, {
432
432
  displayName?: string | undefined;
433
- customerType?: "user" | "team" | "custom" | undefined;
433
+ customerType?: "team" | "user" | "custom" | undefined;
434
434
  }>;
435
435
  productLines: Record<string, {
436
436
  displayName?: string | undefined;
437
- customerType?: "user" | "team" | "custom" | undefined;
437
+ customerType?: "team" | "user" | "custom" | undefined;
438
438
  }>;
439
439
  products: Record<string, {
440
440
  displayName?: string | undefined;
@@ -443,7 +443,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
443
443
  productLineId?: string | undefined;
444
444
  isAddOnTo?: false | Record<string, true> | undefined;
445
445
  stackable?: boolean | undefined;
446
- customerType: "user" | "team" | "custom";
446
+ customerType: "team" | "user" | "custom";
447
447
  prices: Record<string, {
448
448
  USD?: string | undefined;
449
449
  EUR?: string | undefined;
@@ -465,12 +465,40 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
465
465
  }, "testMode"> & {
466
466
  testMode?: boolean | undefined;
467
467
  }) | undefined;
468
+ emails: Omit<{
469
+ selectedThemeId?: string | undefined;
470
+ themes: Record<string, {
471
+ displayName: string;
472
+ tsxSource: string;
473
+ }>;
474
+ templates: Record<string, {
475
+ themeId?: string | false | undefined;
476
+ displayName: string;
477
+ tsxSource: string;
478
+ }>;
479
+ }, "server"> & {
480
+ server: {
481
+ provider?: "resend" | "smtp" | "managed" | undefined;
482
+ password?: string | undefined;
483
+ host?: string | undefined;
484
+ port?: number | undefined;
485
+ username?: string | undefined;
486
+ isShared?: boolean | undefined;
487
+ senderName?: string | undefined;
488
+ senderEmail?: string | undefined;
489
+ managedSubdomain?: string | undefined;
490
+ managedSenderLocalPart?: string | undefined;
491
+ };
492
+ };
468
493
  auth: Omit<{
469
494
  allowSignUp?: boolean | undefined;
470
495
  signUpRulesDefaultAction?: string | undefined;
471
496
  password: {
472
497
  allowSignIn?: boolean | undefined;
473
498
  };
499
+ passkey: {
500
+ allowSignIn?: boolean | undefined;
501
+ };
474
502
  otp: {
475
503
  allowSignIn?: boolean | undefined;
476
504
  };
@@ -482,9 +510,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
482
510
  allowConnectedAccounts?: boolean | undefined;
483
511
  }>;
484
512
  };
485
- passkey: {
486
- allowSignIn?: boolean | undefined;
487
- };
488
513
  signUpRules: Record<string, {
489
514
  displayName?: string | undefined;
490
515
  enabled?: boolean | undefined;
@@ -534,31 +559,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
534
559
  }>;
535
560
  }>;
536
561
  };
537
- emails: Omit<{
538
- selectedThemeId?: string | undefined;
539
- themes: Record<string, {
540
- displayName: string;
541
- tsxSource: string;
542
- }>;
543
- templates: Record<string, {
544
- themeId?: string | false | undefined;
545
- displayName: string;
546
- tsxSource: string;
547
- }>;
548
- }, "server"> & {
549
- server: {
550
- provider?: "resend" | "smtp" | "managed" | undefined;
551
- password?: string | undefined;
552
- host?: string | undefined;
553
- port?: number | undefined;
554
- username?: string | undefined;
555
- isShared?: boolean | undefined;
556
- senderName?: string | undefined;
557
- senderEmail?: string | undefined;
558
- managedSubdomain?: string | undefined;
559
- managedSenderLocalPart?: string | undefined;
560
- };
561
- };
562
562
  domains: Omit<{}, "allowLocalhost" | "trustedDomains"> & {
563
563
  allowLocalhost?: boolean | undefined;
564
564
  trustedDomains: Record<string, {
@@ -575,7 +575,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
575
575
  project: {
576
576
  requirePublishableClientKey: undefined;
577
577
  };
578
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
578
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
579
579
  rbac: {
580
580
  permissions: undefined;
581
581
  defaultPermissions: {
@@ -642,13 +642,13 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
642
642
  dataVault: {
643
643
  stores: undefined;
644
644
  };
645
- }>, "auth" | "analytics" | "payments" | "emails" | "domains" | "customDashboards"> & {
645
+ }>, "emails" | "auth" | "analytics" | "payments" | "domains" | "customDashboards"> & {
646
646
  auth: Omit<NonNullable<Omit<Omit<{
647
647
  sourceOfTruth: undefined;
648
648
  project: {
649
649
  requirePublishableClientKey: undefined;
650
650
  };
651
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
651
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
652
652
  rbac: {
653
653
  permissions: undefined;
654
654
  defaultPermissions: {
@@ -721,7 +721,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
721
721
  project: {
722
722
  requirePublishableClientKey: undefined;
723
723
  };
724
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
724
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
725
725
  rbac: {
726
726
  permissions: undefined;
727
727
  defaultPermissions: {
@@ -797,7 +797,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
797
797
  project: {
798
798
  requirePublishableClientKey: undefined;
799
799
  };
800
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
800
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
801
801
  rbac: {
802
802
  permissions: undefined;
803
803
  defaultPermissions: {
@@ -883,7 +883,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
883
883
  project: {
884
884
  requirePublishableClientKey: undefined;
885
885
  };
886
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
886
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
887
887
  rbac: {
888
888
  permissions: undefined;
889
889
  defaultPermissions: {
@@ -959,7 +959,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
959
959
  project: {
960
960
  requirePublishableClientKey: undefined;
961
961
  };
962
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
962
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
963
963
  rbac: {
964
964
  permissions: undefined;
965
965
  defaultPermissions: {
@@ -1041,7 +1041,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1041
1041
  sourceOfTruth: {
1042
1042
  type: "hosted";
1043
1043
  };
1044
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1044
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1045
1045
  payments?: {
1046
1046
  blockNewPurchases?: boolean | undefined;
1047
1047
  autoPay?: {
@@ -1049,11 +1049,11 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1049
1049
  } | undefined;
1050
1050
  items: Record<string, {
1051
1051
  displayName?: string | undefined;
1052
- customerType?: "user" | "team" | "custom" | undefined;
1052
+ customerType?: "team" | "user" | "custom" | undefined;
1053
1053
  }>;
1054
1054
  productLines: Record<string, {
1055
1055
  displayName?: string | undefined;
1056
- customerType?: "user" | "team" | "custom" | undefined;
1056
+ customerType?: "team" | "user" | "custom" | undefined;
1057
1057
  }>;
1058
1058
  products: Record<string, {
1059
1059
  displayName?: string | undefined;
@@ -1062,7 +1062,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1062
1062
  productLineId?: string | undefined;
1063
1063
  isAddOnTo?: false | Record<string, true> | undefined;
1064
1064
  stackable?: boolean | undefined;
1065
- customerType: "user" | "team" | "custom";
1065
+ customerType: "team" | "user" | "custom";
1066
1066
  prices: Record<string, {
1067
1067
  USD?: string | undefined;
1068
1068
  EUR?: string | undefined;
@@ -1082,12 +1082,27 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1082
1082
  }>;
1083
1083
  }>;
1084
1084
  } | undefined;
1085
+ emails: {
1086
+ selectedThemeId?: string | undefined;
1087
+ themes: Record<string, {
1088
+ displayName: string;
1089
+ tsxSource: string;
1090
+ }>;
1091
+ templates: Record<string, {
1092
+ themeId?: string | false | undefined;
1093
+ displayName: string;
1094
+ tsxSource: string;
1095
+ }>;
1096
+ };
1085
1097
  auth: {
1086
1098
  allowSignUp?: boolean | undefined;
1087
1099
  signUpRulesDefaultAction?: string | undefined;
1088
1100
  password: {
1089
1101
  allowSignIn?: boolean | undefined;
1090
1102
  };
1103
+ passkey: {
1104
+ allowSignIn?: boolean | undefined;
1105
+ };
1091
1106
  otp: {
1092
1107
  allowSignIn?: boolean | undefined;
1093
1108
  };
@@ -1099,9 +1114,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1099
1114
  allowConnectedAccounts?: boolean | undefined;
1100
1115
  }>;
1101
1116
  };
1102
- passkey: {
1103
- allowSignIn?: boolean | undefined;
1104
- };
1105
1117
  signUpRules: Record<string, {
1106
1118
  displayName?: string | undefined;
1107
1119
  enabled?: boolean | undefined;
@@ -1123,7 +1135,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1123
1135
  rbac: {
1124
1136
  permissions: Record<string, {
1125
1137
  description?: string | undefined;
1126
- scope?: "project" | "team" | undefined;
1138
+ scope?: "team" | "project" | undefined;
1127
1139
  containedPermissionIds?: Record<string, true | undefined> | undefined;
1128
1140
  } | undefined>;
1129
1141
  defaultPermissions: {
@@ -1132,30 +1144,18 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1132
1144
  signUp: Record<string, true | undefined>;
1133
1145
  };
1134
1146
  };
1135
- emails: {
1136
- selectedThemeId?: string | undefined;
1137
- themes: Record<string, {
1138
- displayName: string;
1139
- tsxSource: string;
1140
- }>;
1141
- templates: Record<string, {
1142
- themeId?: string | false | undefined;
1143
- displayName: string;
1144
- tsxSource: string;
1145
- }>;
1146
- };
1147
+ domains: {};
1147
1148
  users: {
1148
1149
  allowClientUserDeletion?: boolean | undefined;
1149
1150
  };
1150
- domains: {};
1151
1151
  apiKeys: {
1152
1152
  enabled: {
1153
- user?: boolean | undefined;
1154
1153
  team?: boolean | undefined;
1154
+ user?: boolean | undefined;
1155
1155
  };
1156
1156
  };
1157
1157
  apps: {
1158
- installed: Record<"authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
1158
+ installed: Record<"emails" | "authentication" | "fraud-protection" | "analytics" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "clickmaps" | "session-replays", {
1159
1159
  enabled?: boolean | undefined;
1160
1160
  }>;
1161
1161
  };
@@ -1170,7 +1170,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1170
1170
  displayName?: string | undefined;
1171
1171
  }>;
1172
1172
  };
1173
- }>, "auth" | "analytics" | "payments" | "emails" | "domains" | "customDashboards"> & {
1173
+ }>, "emails" | "auth" | "analytics" | "payments" | "domains" | "customDashboards"> & {
1174
1174
  payments?: (Omit<{
1175
1175
  blockNewPurchases?: boolean | undefined;
1176
1176
  autoPay?: {
@@ -1178,11 +1178,11 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1178
1178
  } | undefined;
1179
1179
  items: Record<string, {
1180
1180
  displayName?: string | undefined;
1181
- customerType?: "user" | "team" | "custom" | undefined;
1181
+ customerType?: "team" | "user" | "custom" | undefined;
1182
1182
  }>;
1183
1183
  productLines: Record<string, {
1184
1184
  displayName?: string | undefined;
1185
- customerType?: "user" | "team" | "custom" | undefined;
1185
+ customerType?: "team" | "user" | "custom" | undefined;
1186
1186
  }>;
1187
1187
  products: Record<string, {
1188
1188
  displayName?: string | undefined;
@@ -1191,7 +1191,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1191
1191
  productLineId?: string | undefined;
1192
1192
  isAddOnTo?: false | Record<string, true> | undefined;
1193
1193
  stackable?: boolean | undefined;
1194
- customerType: "user" | "team" | "custom";
1194
+ customerType: "team" | "user" | "custom";
1195
1195
  prices: Record<string, {
1196
1196
  USD?: string | undefined;
1197
1197
  EUR?: string | undefined;
@@ -1213,12 +1213,40 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1213
1213
  }, "testMode"> & {
1214
1214
  testMode?: boolean | undefined;
1215
1215
  }) | undefined;
1216
+ emails: Omit<{
1217
+ selectedThemeId?: string | undefined;
1218
+ themes: Record<string, {
1219
+ displayName: string;
1220
+ tsxSource: string;
1221
+ }>;
1222
+ templates: Record<string, {
1223
+ themeId?: string | false | undefined;
1224
+ displayName: string;
1225
+ tsxSource: string;
1226
+ }>;
1227
+ }, "server"> & {
1228
+ server: {
1229
+ provider?: "resend" | "smtp" | "managed" | undefined;
1230
+ password?: string | undefined;
1231
+ host?: string | undefined;
1232
+ port?: number | undefined;
1233
+ username?: string | undefined;
1234
+ isShared?: boolean | undefined;
1235
+ senderName?: string | undefined;
1236
+ senderEmail?: string | undefined;
1237
+ managedSubdomain?: string | undefined;
1238
+ managedSenderLocalPart?: string | undefined;
1239
+ };
1240
+ };
1216
1241
  auth: Omit<{
1217
1242
  allowSignUp?: boolean | undefined;
1218
1243
  signUpRulesDefaultAction?: string | undefined;
1219
1244
  password: {
1220
1245
  allowSignIn?: boolean | undefined;
1221
1246
  };
1247
+ passkey: {
1248
+ allowSignIn?: boolean | undefined;
1249
+ };
1222
1250
  otp: {
1223
1251
  allowSignIn?: boolean | undefined;
1224
1252
  };
@@ -1230,9 +1258,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1230
1258
  allowConnectedAccounts?: boolean | undefined;
1231
1259
  }>;
1232
1260
  };
1233
- passkey: {
1234
- allowSignIn?: boolean | undefined;
1235
- };
1236
1261
  signUpRules: Record<string, {
1237
1262
  displayName?: string | undefined;
1238
1263
  enabled?: boolean | undefined;
@@ -1282,31 +1307,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1282
1307
  }>;
1283
1308
  }>;
1284
1309
  };
1285
- emails: Omit<{
1286
- selectedThemeId?: string | undefined;
1287
- themes: Record<string, {
1288
- displayName: string;
1289
- tsxSource: string;
1290
- }>;
1291
- templates: Record<string, {
1292
- themeId?: string | false | undefined;
1293
- displayName: string;
1294
- tsxSource: string;
1295
- }>;
1296
- }, "server"> & {
1297
- server: {
1298
- provider?: "resend" | "smtp" | "managed" | undefined;
1299
- password?: string | undefined;
1300
- host?: string | undefined;
1301
- port?: number | undefined;
1302
- username?: string | undefined;
1303
- isShared?: boolean | undefined;
1304
- senderName?: string | undefined;
1305
- senderEmail?: string | undefined;
1306
- managedSubdomain?: string | undefined;
1307
- managedSenderLocalPart?: string | undefined;
1308
- };
1309
- };
1310
1310
  domains: Omit<{}, "allowLocalhost" | "trustedDomains"> & {
1311
1311
  allowLocalhost?: boolean | undefined;
1312
1312
  trustedDomains: Record<string, {
@@ -1323,7 +1323,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1323
1323
  project: {
1324
1324
  requirePublishableClientKey: undefined;
1325
1325
  };
1326
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1326
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1327
1327
  rbac: {
1328
1328
  permissions: undefined;
1329
1329
  defaultPermissions: {
@@ -1390,13 +1390,13 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1390
1390
  dataVault: {
1391
1391
  stores: undefined;
1392
1392
  };
1393
- }>, "auth" | "analytics" | "payments" | "emails" | "domains" | "customDashboards"> & {
1393
+ }>, "emails" | "auth" | "analytics" | "payments" | "domains" | "customDashboards"> & {
1394
1394
  auth: Omit<NonNullable<Omit<Omit<{
1395
1395
  sourceOfTruth: undefined;
1396
1396
  project: {
1397
1397
  requirePublishableClientKey: undefined;
1398
1398
  };
1399
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1399
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1400
1400
  rbac: {
1401
1401
  permissions: undefined;
1402
1402
  defaultPermissions: {
@@ -1469,7 +1469,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1469
1469
  project: {
1470
1470
  requirePublishableClientKey: undefined;
1471
1471
  };
1472
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1472
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1473
1473
  rbac: {
1474
1474
  permissions: undefined;
1475
1475
  defaultPermissions: {
@@ -1545,7 +1545,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1545
1545
  project: {
1546
1546
  requirePublishableClientKey: undefined;
1547
1547
  };
1548
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1548
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1549
1549
  rbac: {
1550
1550
  permissions: undefined;
1551
1551
  defaultPermissions: {
@@ -1631,7 +1631,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1631
1631
  project: {
1632
1632
  requirePublishableClientKey: undefined;
1633
1633
  };
1634
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1634
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1635
1635
  rbac: {
1636
1636
  permissions: undefined;
1637
1637
  defaultPermissions: {
@@ -1707,7 +1707,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1707
1707
  project: {
1708
1708
  requirePublishableClientKey: undefined;
1709
1709
  };
1710
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1710
+ }, string>, "emails" | "auth" | "onboarding" | "teams" | "rbac" | "payments" | "domains" | "users" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1711
1711
  rbac: {
1712
1712
  permissions: undefined;
1713
1713
  defaultPermissions: {
@@ -2077,20 +2077,20 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2077
2077
  priority: number;
2078
2078
  condition: string | undefined;
2079
2079
  action: {
2080
- type: "allow" | "reject" | "restrict" | "log";
2081
2080
  message: string | undefined;
2081
+ type: "allow" | "reject" | "restrict" | "log";
2082
2082
  };
2083
2083
  }>;
2084
2084
  password: {
2085
2085
  allowSignIn: boolean;
2086
2086
  };
2087
- otp: {
2088
- allowSignIn: boolean;
2089
- };
2090
2087
  passkey: {
2091
2088
  allowSignIn: boolean;
2092
2089
  };
2093
2090
  allowSignUp: boolean;
2091
+ otp: {
2092
+ allowSignIn: boolean;
2093
+ };
2094
2094
  signUpRulesDefaultAction: string;
2095
2095
  };
2096
2096
  emails: {
@@ -2142,12 +2142,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2142
2142
  serverOnly: boolean;
2143
2143
  freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2144
2144
  productLineId: string | undefined;
2145
- customerType: "user" | "team" | "custom";
2145
+ customerType: "team" | "user" | "custom";
2146
2146
  stackable: boolean | undefined;
2147
2147
  includedItems: {
2148
2148
  [x: string]: {
2149
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
2150
2149
  quantity: number;
2150
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
2151
2151
  expires: "never" | "when-purchase-expires" | "when-repeated";
2152
2152
  };
2153
2153
  };
@@ -2155,7 +2155,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2155
2155
  items: {
2156
2156
  [x: string]: {
2157
2157
  displayName: string;
2158
- customerType: "user" | "team" | "custom";
2158
+ customerType: "team" | "user" | "custom";
2159
2159
  };
2160
2160
  };
2161
2161
  blockNewPurchases: boolean;
@@ -2165,7 +2165,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2165
2165
  productLines: {
2166
2166
  [x: string]: {
2167
2167
  displayName: string | undefined;
2168
- customerType: "user" | "team" | "custom" | undefined;
2168
+ customerType: "team" | "user" | "custom" | undefined;
2169
2169
  };
2170
2170
  };
2171
2171
  testMode: boolean;
@@ -2209,7 +2209,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2209
2209
  permissions: {
2210
2210
  [x: string]: {
2211
2211
  description: string | undefined;
2212
- scope: "project" | "team" | undefined;
2212
+ scope: "team" | "project" | undefined;
2213
2213
  containedPermissionIds: {
2214
2214
  [x: string]: true | undefined;
2215
2215
  };
@@ -2227,9 +2227,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2227
2227
  };
2228
2228
  };
2229
2229
  };
2230
- users: {
2231
- allowClientUserDeletion: boolean;
2232
- };
2233
2230
  domains: {
2234
2231
  allowLocalhost: boolean;
2235
2232
  trustedDomains: {
@@ -2239,10 +2236,13 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2239
2236
  };
2240
2237
  };
2241
2238
  };
2239
+ users: {
2240
+ allowClientUserDeletion: boolean;
2241
+ };
2242
2242
  apiKeys: {
2243
2243
  enabled: {
2244
- user: boolean;
2245
2244
  team: boolean;
2245
+ user: boolean;
2246
2246
  };
2247
2247
  };
2248
2248
  dbSync: {