@hexclave/shared 1.0.14 → 1.0.16

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 (122) hide show
  1. package/dist/apps/apps-config.d.ts +6 -0
  2. package/dist/apps/apps-config.js +6 -0
  3. package/dist/apps/apps-config.js.map +1 -1
  4. package/dist/config/schema.d.ts +107 -107
  5. package/dist/config-authoring.d.ts.map +1 -1
  6. package/dist/config-authoring.js.map +1 -1
  7. package/dist/config-authoring.test.js +1 -1
  8. package/dist/config-authoring.test.js.map +1 -1
  9. package/dist/config-rendering.d.ts +2 -2
  10. package/dist/config-rendering.js +16 -0
  11. package/dist/config-rendering.js.map +1 -1
  12. package/dist/esm/apps/apps-config.d.ts +6 -0
  13. package/dist/esm/apps/apps-config.js +6 -0
  14. package/dist/esm/apps/apps-config.js.map +1 -1
  15. package/dist/esm/config/schema.d.ts +107 -107
  16. package/dist/esm/config-authoring.d.ts.map +1 -1
  17. package/dist/esm/config-authoring.js.map +1 -1
  18. package/dist/esm/config-authoring.test.js +1 -1
  19. package/dist/esm/config-authoring.test.js.map +1 -1
  20. package/dist/esm/config-rendering.d.ts +2 -2
  21. package/dist/esm/config-rendering.js +16 -2
  22. package/dist/esm/config-rendering.js.map +1 -1
  23. package/dist/esm/hexclave-config-file.d.ts +24 -1
  24. package/dist/esm/hexclave-config-file.d.ts.map +1 -1
  25. package/dist/esm/hexclave-config-file.js +69 -2
  26. package/dist/esm/hexclave-config-file.js.map +1 -1
  27. package/dist/esm/interface/admin-interface.d.ts +19 -1
  28. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  29. package/dist/esm/interface/admin-interface.js +14 -0
  30. package/dist/esm/interface/admin-interface.js.map +1 -1
  31. package/dist/esm/interface/admin-metrics.d.ts +115 -21
  32. package/dist/esm/interface/admin-metrics.d.ts.map +1 -1
  33. package/dist/esm/interface/admin-metrics.js +61 -1
  34. package/dist/esm/interface/admin-metrics.js.map +1 -1
  35. package/dist/esm/interface/conversations.d.ts +42 -42
  36. package/dist/esm/interface/crud/current-user.d.ts +15 -15
  37. package/dist/esm/interface/crud/email-outbox.d.ts +220 -220
  38. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  39. package/dist/esm/interface/crud/products.d.ts +17 -17
  40. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  41. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  42. package/dist/esm/interface/crud/projects.d.ts +59 -59
  43. package/dist/esm/interface/crud/team-member-profiles.d.ts +26 -26
  44. package/dist/esm/interface/crud/transactions.d.ts +15 -15
  45. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  46. package/dist/esm/interface/crud/users.d.ts +18 -18
  47. package/dist/esm/interface/webhooks.d.ts +4 -4
  48. package/dist/esm/known-errors.d.ts +5 -5
  49. package/dist/esm/schema-fields.d.ts +8 -8
  50. package/dist/esm/sessions.d.ts +7 -7
  51. package/dist/esm/utils/analytics-clickmap-overlay.d.ts +18 -0
  52. package/dist/esm/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  53. package/dist/esm/utils/analytics-clickmap-overlay.js +19 -0
  54. package/dist/esm/utils/analytics-clickmap-overlay.js.map +1 -0
  55. package/dist/esm/utils/dev-tool.d.ts +31 -0
  56. package/dist/esm/utils/dev-tool.d.ts.map +1 -0
  57. package/dist/esm/utils/dev-tool.js +32 -0
  58. package/dist/esm/utils/dev-tool.js.map +1 -0
  59. package/dist/esm/utils/dom.d.ts +7 -1
  60. package/dist/esm/utils/dom.d.ts.map +1 -1
  61. package/dist/esm/utils/dom.js +20 -1
  62. package/dist/esm/utils/dom.js.map +1 -1
  63. package/dist/esm/utils/elements-chain.d.ts +38 -0
  64. package/dist/esm/utils/elements-chain.d.ts.map +1 -0
  65. package/dist/esm/utils/elements-chain.js +297 -0
  66. package/dist/esm/utils/elements-chain.js.map +1 -0
  67. package/dist/hexclave-config-file.d.ts +24 -1
  68. package/dist/hexclave-config-file.d.ts.map +1 -1
  69. package/dist/hexclave-config-file.js +71 -1
  70. package/dist/hexclave-config-file.js.map +1 -1
  71. package/dist/interface/admin-interface.d.ts +19 -1
  72. package/dist/interface/admin-interface.d.ts.map +1 -1
  73. package/dist/interface/admin-interface.js +14 -0
  74. package/dist/interface/admin-interface.js.map +1 -1
  75. package/dist/interface/admin-metrics.d.ts +115 -21
  76. package/dist/interface/admin-metrics.d.ts.map +1 -1
  77. package/dist/interface/admin-metrics.js +65 -0
  78. package/dist/interface/admin-metrics.js.map +1 -1
  79. package/dist/interface/conversations.d.ts +42 -42
  80. package/dist/interface/crud/current-user.d.ts +15 -15
  81. package/dist/interface/crud/email-outbox.d.ts +220 -220
  82. package/dist/interface/crud/invoices.d.ts +2 -2
  83. package/dist/interface/crud/products.d.ts +17 -17
  84. package/dist/interface/crud/products.d.ts.map +1 -1
  85. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  86. package/dist/interface/crud/projects.d.ts +59 -59
  87. package/dist/interface/crud/team-member-profiles.d.ts +26 -26
  88. package/dist/interface/crud/transactions.d.ts +15 -15
  89. package/dist/interface/crud/transactions.d.ts.map +1 -1
  90. package/dist/interface/crud/users.d.ts +18 -18
  91. package/dist/interface/webhooks.d.ts +4 -4
  92. package/dist/known-errors.d.ts +5 -5
  93. package/dist/schema-fields.d.ts +8 -8
  94. package/dist/sessions.d.ts +7 -7
  95. package/dist/utils/analytics-clickmap-overlay.d.ts +18 -0
  96. package/dist/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  97. package/dist/utils/analytics-clickmap-overlay.js +23 -0
  98. package/dist/utils/analytics-clickmap-overlay.js.map +1 -0
  99. package/dist/utils/dev-tool.d.ts +31 -0
  100. package/dist/utils/dev-tool.d.ts.map +1 -0
  101. package/dist/utils/dev-tool.js +37 -0
  102. package/dist/utils/dev-tool.js.map +1 -0
  103. package/dist/utils/dom.d.ts +7 -1
  104. package/dist/utils/dom.d.ts.map +1 -1
  105. package/dist/utils/dom.js +20 -0
  106. package/dist/utils/dom.js.map +1 -1
  107. package/dist/utils/elements-chain.d.ts +38 -0
  108. package/dist/utils/elements-chain.d.ts.map +1 -0
  109. package/dist/utils/elements-chain.js +304 -0
  110. package/dist/utils/elements-chain.js.map +1 -0
  111. package/package.json +1 -1
  112. package/src/apps/apps-config.ts +6 -0
  113. package/src/config-authoring.test.ts +1 -1
  114. package/src/config-authoring.ts +6 -6
  115. package/src/config-rendering.ts +24 -2
  116. package/src/hexclave-config-file.ts +90 -1
  117. package/src/interface/admin-interface.ts +43 -1
  118. package/src/interface/admin-metrics.ts +92 -4
  119. package/src/utils/analytics-clickmap-overlay.tsx +15 -0
  120. package/src/utils/dev-tool.tsx +30 -0
  121. package/src/utils/dom.tsx +42 -0
  122. package/src/utils/elements-chain.tsx +349 -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?: "team" | "user" | "custom" | undefined;
39
+ customerType?: "user" | "team" | "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: "team" | "user" | "custom";
48
+ customerType: "user" | "team" | "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?: "team" | "user" | "custom" | undefined;
69
+ customerType?: "user" | "team" | "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" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
87
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "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?: "team" | "user" | "custom" | undefined;
95
+ customerType?: "user" | "team" | "custom" | undefined;
96
96
  }>;
97
97
  productLines: Record<string, {
98
98
  displayName?: string | undefined;
99
- customerType?: "team" | "user" | "custom" | undefined;
99
+ customerType?: "user" | "team" | "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: "team" | "user" | "custom";
108
+ customerType: "user" | "team" | "custom";
109
109
  prices: Record<string, {
110
110
  USD?: string | undefined;
111
111
  EUR?: string | undefined;
@@ -125,6 +125,13 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
125
125
  }>;
126
126
  }>;
127
127
  } | undefined;
128
+ users: {
129
+ allowClientUserDeletion?: boolean | undefined;
130
+ };
131
+ teams: {
132
+ createPersonalTeamOnSignUp?: boolean | undefined;
133
+ allowClientTeamCreation?: boolean | undefined;
134
+ };
128
135
  auth: {
129
136
  allowSignUp?: boolean | undefined;
130
137
  signUpRulesDefaultAction?: string | undefined;
@@ -134,9 +141,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
134
141
  otp: {
135
142
  allowSignIn?: boolean | undefined;
136
143
  };
137
- passkey: {
138
- allowSignIn?: boolean | undefined;
139
- };
140
144
  oauth: {
141
145
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
142
146
  providers: Record<string, {
@@ -145,10 +149,13 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
145
149
  allowConnectedAccounts?: boolean | undefined;
146
150
  }>;
147
151
  };
152
+ passkey: {
153
+ allowSignIn?: boolean | undefined;
154
+ };
148
155
  signUpRules: Record<string, {
149
156
  displayName?: string | undefined;
150
- enabled?: boolean | undefined;
151
157
  priority?: number | undefined;
158
+ enabled?: boolean | undefined;
152
159
  condition?: string | undefined;
153
160
  action: {
154
161
  message?: string | undefined;
@@ -159,10 +166,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
159
166
  onboarding: {
160
167
  requireEmailVerification?: boolean | undefined;
161
168
  };
162
- teams: {
163
- createPersonalTeamOnSignUp?: boolean | undefined;
164
- allowClientTeamCreation?: boolean | undefined;
165
- };
166
169
  rbac: {
167
170
  permissions: Record<string, {
168
171
  description?: string | undefined;
@@ -187,21 +190,18 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
187
190
  tsxSource: string;
188
191
  }>;
189
192
  };
190
- users: {
191
- allowClientUserDeletion?: boolean | undefined;
192
- };
193
+ domains: {};
193
194
  apiKeys: {
194
195
  enabled: {
195
- team?: boolean | undefined;
196
196
  user?: boolean | undefined;
197
+ team?: boolean | undefined;
197
198
  };
198
199
  };
199
200
  apps: {
200
- installed: Record<"authentication" | "fraud-protection" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "session-replays", {
201
+ installed: Record<"teams" | "authentication" | "fraud-protection" | "onboarding" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "clickmaps" | "session-replays", {
201
202
  enabled?: boolean | undefined;
202
203
  }>;
203
204
  };
204
- domains: {};
205
205
  dbSync: {
206
206
  externalDatabases: Record<string, {
207
207
  connectionString?: string | undefined;
@@ -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" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
221
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "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" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
296
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "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?: "team" | "user" | "custom" | undefined;
304
+ customerType?: "user" | "team" | "custom" | undefined;
305
305
  }>;
306
306
  productLines: Record<string, {
307
307
  displayName?: string | undefined;
308
- customerType?: "team" | "user" | "custom" | undefined;
308
+ customerType?: "user" | "team" | "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: "team" | "user" | "custom";
317
+ customerType: "user" | "team" | "custom";
318
318
  prices: Record<string, {
319
319
  USD?: string | undefined;
320
320
  EUR?: string | undefined;
@@ -334,6 +334,13 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
334
334
  }>;
335
335
  }>;
336
336
  } | undefined;
337
+ users: {
338
+ allowClientUserDeletion?: boolean | undefined;
339
+ };
340
+ teams: {
341
+ createPersonalTeamOnSignUp?: boolean | undefined;
342
+ allowClientTeamCreation?: boolean | undefined;
343
+ };
337
344
  auth: {
338
345
  allowSignUp?: boolean | undefined;
339
346
  signUpRulesDefaultAction?: string | undefined;
@@ -343,9 +350,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
343
350
  otp: {
344
351
  allowSignIn?: boolean | undefined;
345
352
  };
346
- passkey: {
347
- allowSignIn?: boolean | undefined;
348
- };
349
353
  oauth: {
350
354
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
351
355
  providers: Record<string, {
@@ -354,10 +358,13 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
354
358
  allowConnectedAccounts?: boolean | undefined;
355
359
  }>;
356
360
  };
361
+ passkey: {
362
+ allowSignIn?: boolean | undefined;
363
+ };
357
364
  signUpRules: Record<string, {
358
365
  displayName?: string | undefined;
359
- enabled?: boolean | undefined;
360
366
  priority?: number | undefined;
367
+ enabled?: boolean | undefined;
361
368
  condition?: string | undefined;
362
369
  action: {
363
370
  message?: string | undefined;
@@ -368,10 +375,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
368
375
  onboarding: {
369
376
  requireEmailVerification?: boolean | undefined;
370
377
  };
371
- teams: {
372
- createPersonalTeamOnSignUp?: boolean | undefined;
373
- allowClientTeamCreation?: boolean | undefined;
374
- };
375
378
  rbac: {
376
379
  permissions: Record<string, {
377
380
  description?: string | undefined;
@@ -396,21 +399,18 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
396
399
  tsxSource: string;
397
400
  }>;
398
401
  };
399
- users: {
400
- allowClientUserDeletion?: boolean | undefined;
401
- };
402
+ domains: {};
402
403
  apiKeys: {
403
404
  enabled: {
404
- team?: boolean | undefined;
405
405
  user?: boolean | undefined;
406
+ team?: boolean | undefined;
406
407
  };
407
408
  };
408
409
  apps: {
409
- installed: Record<"authentication" | "fraud-protection" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "session-replays", {
410
+ installed: Record<"teams" | "authentication" | "fraud-protection" | "onboarding" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "clickmaps" | "session-replays", {
410
411
  enabled?: boolean | undefined;
411
412
  }>;
412
413
  };
413
- domains: {};
414
414
  dbSync: {
415
415
  externalDatabases: Record<string, {
416
416
  connectionString?: string | undefined;
@@ -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?: "team" | "user" | "custom" | undefined;
433
+ customerType?: "user" | "team" | "custom" | undefined;
434
434
  }>;
435
435
  productLines: Record<string, {
436
436
  displayName?: string | undefined;
437
- customerType?: "team" | "user" | "custom" | undefined;
437
+ customerType?: "user" | "team" | "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: "team" | "user" | "custom";
446
+ customerType: "user" | "team" | "custom";
447
447
  prices: Record<string, {
448
448
  USD?: string | undefined;
449
449
  EUR?: string | undefined;
@@ -474,9 +474,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
474
474
  otp: {
475
475
  allowSignIn?: boolean | undefined;
476
476
  };
477
- passkey: {
478
- allowSignIn?: boolean | undefined;
479
- };
480
477
  oauth: {
481
478
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
482
479
  providers: Record<string, {
@@ -485,10 +482,13 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
485
482
  allowConnectedAccounts?: boolean | undefined;
486
483
  }>;
487
484
  };
485
+ passkey: {
486
+ allowSignIn?: boolean | undefined;
487
+ };
488
488
  signUpRules: Record<string, {
489
489
  displayName?: string | undefined;
490
- enabled?: boolean | undefined;
491
490
  priority?: number | undefined;
491
+ enabled?: boolean | undefined;
492
492
  condition?: string | undefined;
493
493
  action: {
494
494
  message?: string | undefined;
@@ -535,10 +535,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
535
535
  server: {
536
536
  provider?: "resend" | "smtp" | "managed" | undefined;
537
537
  password?: string | undefined;
538
- isShared?: boolean | undefined;
539
538
  host?: string | undefined;
540
539
  port?: number | undefined;
541
540
  username?: string | undefined;
541
+ isShared?: boolean | undefined;
542
542
  senderName?: string | undefined;
543
543
  senderEmail?: string | undefined;
544
544
  managedSubdomain?: string | undefined;
@@ -550,8 +550,8 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
550
550
  displayName?: string | undefined;
551
551
  sortOrder?: number | undefined;
552
552
  queries: Record<string, {
553
- description?: string | undefined;
554
553
  displayName?: string | undefined;
554
+ description?: string | undefined;
555
555
  sqlQuery?: string | undefined;
556
556
  }>;
557
557
  }>;
@@ -572,7 +572,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
572
572
  project: {
573
573
  requirePublishableClientKey: undefined;
574
574
  };
575
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
575
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
576
576
  rbac: {
577
577
  permissions: undefined;
578
578
  defaultPermissions: {
@@ -645,7 +645,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
645
645
  project: {
646
646
  requirePublishableClientKey: undefined;
647
647
  };
648
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
648
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
649
649
  rbac: {
650
650
  permissions: undefined;
651
651
  defaultPermissions: {
@@ -718,7 +718,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
718
718
  project: {
719
719
  requirePublishableClientKey: undefined;
720
720
  };
721
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
721
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
722
722
  rbac: {
723
723
  permissions: undefined;
724
724
  defaultPermissions: {
@@ -794,7 +794,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
794
794
  project: {
795
795
  requirePublishableClientKey: undefined;
796
796
  };
797
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
797
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
798
798
  rbac: {
799
799
  permissions: undefined;
800
800
  defaultPermissions: {
@@ -880,7 +880,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
880
880
  project: {
881
881
  requirePublishableClientKey: undefined;
882
882
  };
883
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
883
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
884
884
  rbac: {
885
885
  permissions: undefined;
886
886
  defaultPermissions: {
@@ -956,7 +956,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
956
956
  project: {
957
957
  requirePublishableClientKey: undefined;
958
958
  };
959
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
959
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
960
960
  rbac: {
961
961
  permissions: undefined;
962
962
  defaultPermissions: {
@@ -1038,7 +1038,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1038
1038
  sourceOfTruth: {
1039
1039
  type: "hosted";
1040
1040
  };
1041
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1041
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1042
1042
  payments?: {
1043
1043
  blockNewPurchases?: boolean | undefined;
1044
1044
  autoPay?: {
@@ -1046,11 +1046,11 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1046
1046
  } | undefined;
1047
1047
  items: Record<string, {
1048
1048
  displayName?: string | undefined;
1049
- customerType?: "team" | "user" | "custom" | undefined;
1049
+ customerType?: "user" | "team" | "custom" | undefined;
1050
1050
  }>;
1051
1051
  productLines: Record<string, {
1052
1052
  displayName?: string | undefined;
1053
- customerType?: "team" | "user" | "custom" | undefined;
1053
+ customerType?: "user" | "team" | "custom" | undefined;
1054
1054
  }>;
1055
1055
  products: Record<string, {
1056
1056
  displayName?: string | undefined;
@@ -1059,7 +1059,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1059
1059
  productLineId?: string | undefined;
1060
1060
  isAddOnTo?: false | Record<string, true> | undefined;
1061
1061
  stackable?: boolean | undefined;
1062
- customerType: "team" | "user" | "custom";
1062
+ customerType: "user" | "team" | "custom";
1063
1063
  prices: Record<string, {
1064
1064
  USD?: string | undefined;
1065
1065
  EUR?: string | undefined;
@@ -1079,6 +1079,13 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1079
1079
  }>;
1080
1080
  }>;
1081
1081
  } | undefined;
1082
+ users: {
1083
+ allowClientUserDeletion?: boolean | undefined;
1084
+ };
1085
+ teams: {
1086
+ createPersonalTeamOnSignUp?: boolean | undefined;
1087
+ allowClientTeamCreation?: boolean | undefined;
1088
+ };
1082
1089
  auth: {
1083
1090
  allowSignUp?: boolean | undefined;
1084
1091
  signUpRulesDefaultAction?: string | undefined;
@@ -1088,9 +1095,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1088
1095
  otp: {
1089
1096
  allowSignIn?: boolean | undefined;
1090
1097
  };
1091
- passkey: {
1092
- allowSignIn?: boolean | undefined;
1093
- };
1094
1098
  oauth: {
1095
1099
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
1096
1100
  providers: Record<string, {
@@ -1099,10 +1103,13 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1099
1103
  allowConnectedAccounts?: boolean | undefined;
1100
1104
  }>;
1101
1105
  };
1106
+ passkey: {
1107
+ allowSignIn?: boolean | undefined;
1108
+ };
1102
1109
  signUpRules: Record<string, {
1103
1110
  displayName?: string | undefined;
1104
- enabled?: boolean | undefined;
1105
1111
  priority?: number | undefined;
1112
+ enabled?: boolean | undefined;
1106
1113
  condition?: string | undefined;
1107
1114
  action: {
1108
1115
  message?: string | undefined;
@@ -1113,10 +1120,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1113
1120
  onboarding: {
1114
1121
  requireEmailVerification?: boolean | undefined;
1115
1122
  };
1116
- teams: {
1117
- createPersonalTeamOnSignUp?: boolean | undefined;
1118
- allowClientTeamCreation?: boolean | undefined;
1119
- };
1120
1123
  rbac: {
1121
1124
  permissions: Record<string, {
1122
1125
  description?: string | undefined;
@@ -1141,21 +1144,18 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1141
1144
  tsxSource: string;
1142
1145
  }>;
1143
1146
  };
1144
- users: {
1145
- allowClientUserDeletion?: boolean | undefined;
1146
- };
1147
+ domains: {};
1147
1148
  apiKeys: {
1148
1149
  enabled: {
1149
- team?: boolean | undefined;
1150
1150
  user?: boolean | undefined;
1151
+ team?: boolean | undefined;
1151
1152
  };
1152
1153
  };
1153
1154
  apps: {
1154
- installed: Record<"authentication" | "fraud-protection" | "onboarding" | "teams" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "session-replays", {
1155
+ installed: Record<"teams" | "authentication" | "fraud-protection" | "onboarding" | "rbac" | "api-keys" | "payments" | "emails" | "support" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel" | "tanstack-start" | "analytics" | "clickmaps" | "session-replays", {
1155
1156
  enabled?: boolean | undefined;
1156
1157
  }>;
1157
1158
  };
1158
- domains: {};
1159
1159
  dbSync: {
1160
1160
  externalDatabases: Record<string, {
1161
1161
  connectionString?: string | undefined;
@@ -1175,11 +1175,11 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1175
1175
  } | undefined;
1176
1176
  items: Record<string, {
1177
1177
  displayName?: string | undefined;
1178
- customerType?: "team" | "user" | "custom" | undefined;
1178
+ customerType?: "user" | "team" | "custom" | undefined;
1179
1179
  }>;
1180
1180
  productLines: Record<string, {
1181
1181
  displayName?: string | undefined;
1182
- customerType?: "team" | "user" | "custom" | undefined;
1182
+ customerType?: "user" | "team" | "custom" | undefined;
1183
1183
  }>;
1184
1184
  products: Record<string, {
1185
1185
  displayName?: string | undefined;
@@ -1188,7 +1188,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1188
1188
  productLineId?: string | undefined;
1189
1189
  isAddOnTo?: false | Record<string, true> | undefined;
1190
1190
  stackable?: boolean | undefined;
1191
- customerType: "team" | "user" | "custom";
1191
+ customerType: "user" | "team" | "custom";
1192
1192
  prices: Record<string, {
1193
1193
  USD?: string | undefined;
1194
1194
  EUR?: string | undefined;
@@ -1219,9 +1219,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1219
1219
  otp: {
1220
1220
  allowSignIn?: boolean | undefined;
1221
1221
  };
1222
- passkey: {
1223
- allowSignIn?: boolean | undefined;
1224
- };
1225
1222
  oauth: {
1226
1223
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
1227
1224
  providers: Record<string, {
@@ -1230,10 +1227,13 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1230
1227
  allowConnectedAccounts?: boolean | undefined;
1231
1228
  }>;
1232
1229
  };
1230
+ passkey: {
1231
+ allowSignIn?: boolean | undefined;
1232
+ };
1233
1233
  signUpRules: Record<string, {
1234
1234
  displayName?: string | undefined;
1235
- enabled?: boolean | undefined;
1236
1235
  priority?: number | undefined;
1236
+ enabled?: boolean | undefined;
1237
1237
  condition?: string | undefined;
1238
1238
  action: {
1239
1239
  message?: string | undefined;
@@ -1280,10 +1280,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1280
1280
  server: {
1281
1281
  provider?: "resend" | "smtp" | "managed" | undefined;
1282
1282
  password?: string | undefined;
1283
- isShared?: boolean | undefined;
1284
1283
  host?: string | undefined;
1285
1284
  port?: number | undefined;
1286
1285
  username?: string | undefined;
1286
+ isShared?: boolean | undefined;
1287
1287
  senderName?: string | undefined;
1288
1288
  senderEmail?: string | undefined;
1289
1289
  managedSubdomain?: string | undefined;
@@ -1295,8 +1295,8 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1295
1295
  displayName?: string | undefined;
1296
1296
  sortOrder?: number | undefined;
1297
1297
  queries: Record<string, {
1298
- description?: string | undefined;
1299
1298
  displayName?: string | undefined;
1299
+ description?: string | undefined;
1300
1300
  sqlQuery?: string | undefined;
1301
1301
  }>;
1302
1302
  }>;
@@ -1317,7 +1317,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1317
1317
  project: {
1318
1318
  requirePublishableClientKey: undefined;
1319
1319
  };
1320
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1320
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1321
1321
  rbac: {
1322
1322
  permissions: undefined;
1323
1323
  defaultPermissions: {
@@ -1390,7 +1390,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1390
1390
  project: {
1391
1391
  requirePublishableClientKey: undefined;
1392
1392
  };
1393
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1393
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1394
1394
  rbac: {
1395
1395
  permissions: undefined;
1396
1396
  defaultPermissions: {
@@ -1463,7 +1463,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1463
1463
  project: {
1464
1464
  requirePublishableClientKey: undefined;
1465
1465
  };
1466
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1466
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1467
1467
  rbac: {
1468
1468
  permissions: undefined;
1469
1469
  defaultPermissions: {
@@ -1539,7 +1539,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1539
1539
  project: {
1540
1540
  requirePublishableClientKey: undefined;
1541
1541
  };
1542
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1542
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1543
1543
  rbac: {
1544
1544
  permissions: undefined;
1545
1545
  defaultPermissions: {
@@ -1625,7 +1625,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1625
1625
  project: {
1626
1626
  requirePublishableClientKey: undefined;
1627
1627
  };
1628
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1628
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1629
1629
  rbac: {
1630
1630
  permissions: undefined;
1631
1631
  defaultPermissions: {
@@ -1701,7 +1701,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1701
1701
  project: {
1702
1702
  requirePublishableClientKey: undefined;
1703
1703
  };
1704
- }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1704
+ }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "domains" | "apiKeys" | "apps" | "dbSync" | "dataVault"> & {
1705
1705
  rbac: {
1706
1706
  permissions: undefined;
1707
1707
  defaultPermissions: {
@@ -2064,15 +2064,14 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2064
2064
  };
2065
2065
  signUpRules: Record<string, {
2066
2066
  displayName: string | undefined;
2067
- enabled: boolean;
2068
2067
  priority: number;
2068
+ enabled: boolean;
2069
2069
  condition: string | undefined;
2070
2070
  action: {
2071
2071
  message: string | undefined;
2072
2072
  type: "allow" | "reject" | "restrict" | "log";
2073
2073
  };
2074
2074
  }>;
2075
- allowSignUp: boolean;
2076
2075
  password: {
2077
2076
  allowSignIn: boolean;
2078
2077
  };
@@ -2082,6 +2081,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2082
2081
  passkey: {
2083
2082
  allowSignIn: boolean;
2084
2083
  };
2084
+ allowSignUp: boolean;
2085
2085
  signUpRulesDefaultAction: string;
2086
2086
  };
2087
2087
  emails: {
@@ -2102,10 +2102,10 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2102
2102
  server: {
2103
2103
  provider: "resend" | "smtp" | "managed";
2104
2104
  password: string | undefined;
2105
- isShared: boolean;
2106
2105
  host: string | undefined;
2107
2106
  port: number | undefined;
2108
2107
  username: string | undefined;
2108
+ isShared: boolean;
2109
2109
  senderName: string | undefined;
2110
2110
  senderEmail: string | undefined;
2111
2111
  managedSubdomain: string | undefined;
@@ -2133,12 +2133,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2133
2133
  serverOnly: boolean;
2134
2134
  freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
2135
2135
  productLineId: string | undefined;
2136
- customerType: "team" | "user" | "custom";
2136
+ customerType: "user" | "team" | "custom";
2137
2137
  stackable: boolean | undefined;
2138
2138
  includedItems: {
2139
2139
  [x: string]: {
2140
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
2141
2140
  quantity: number;
2141
+ repeat: "never" | [number, "day" | "week" | "month" | "year"];
2142
2142
  expires: "never" | "when-purchase-expires" | "when-repeated";
2143
2143
  };
2144
2144
  };
@@ -2146,7 +2146,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2146
2146
  items: {
2147
2147
  [x: string]: {
2148
2148
  displayName: string;
2149
- customerType: "team" | "user" | "custom";
2149
+ customerType: "user" | "team" | "custom";
2150
2150
  };
2151
2151
  };
2152
2152
  blockNewPurchases: boolean;
@@ -2156,7 +2156,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2156
2156
  productLines: {
2157
2157
  [x: string]: {
2158
2158
  displayName: string | undefined;
2159
- customerType: "team" | "user" | "custom" | undefined;
2159
+ customerType: "user" | "team" | "custom" | undefined;
2160
2160
  };
2161
2161
  };
2162
2162
  testMode: boolean;
@@ -2174,13 +2174,16 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2174
2174
  } & {
2175
2175
  readonly type: "hosted";
2176
2176
  };
2177
- onboarding: {
2178
- requireEmailVerification: boolean;
2177
+ users: {
2178
+ allowClientUserDeletion: boolean;
2179
2179
  };
2180
2180
  teams: {
2181
2181
  createPersonalTeamOnSignUp: boolean;
2182
2182
  allowClientTeamCreation: boolean;
2183
2183
  };
2184
+ onboarding: {
2185
+ requireEmailVerification: boolean;
2186
+ };
2184
2187
  rbac: {
2185
2188
  permissions: {
2186
2189
  [x: string]: {
@@ -2210,23 +2213,14 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2210
2213
  sortOrder: number;
2211
2214
  queries: {
2212
2215
  [x: string]: {
2213
- description: string | undefined;
2214
2216
  displayName: string;
2217
+ description: string | undefined;
2215
2218
  sqlQuery: string;
2216
2219
  };
2217
2220
  };
2218
2221
  };
2219
2222
  };
2220
2223
  };
2221
- users: {
2222
- allowClientUserDeletion: boolean;
2223
- };
2224
- apiKeys: {
2225
- enabled: {
2226
- team: boolean;
2227
- user: boolean;
2228
- };
2229
- };
2230
2224
  domains: {
2231
2225
  allowLocalhost: boolean;
2232
2226
  trustedDomains: {
@@ -2236,6 +2230,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2236
2230
  };
2237
2231
  };
2238
2232
  };
2233
+ apiKeys: {
2234
+ enabled: {
2235
+ user: boolean;
2236
+ team: boolean;
2237
+ };
2238
+ };
2239
2239
  dbSync: {
2240
2240
  externalDatabases: {
2241
2241
  [x: string]: {