@hexclave/shared 1.0.5 → 1.0.6

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 (38) hide show
  1. package/dist/config/schema.d.ts +70 -70
  2. package/dist/esm/config/schema.d.ts +70 -70
  3. package/dist/esm/hooks/use-async-callback.js +1 -1
  4. package/dist/esm/hooks/use-async-external-store.js +1 -1
  5. package/dist/esm/hooks/use-strict-memo.js +1 -1
  6. package/dist/esm/interface/admin-metrics.d.ts +6 -6
  7. package/dist/esm/interface/conversations.d.ts +29 -29
  8. package/dist/esm/interface/crud/current-user.d.ts +3 -3
  9. package/dist/esm/interface/crud/email-outbox.d.ts +154 -154
  10. package/dist/esm/interface/crud/products.d.ts +1 -1
  11. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  12. package/dist/esm/interface/crud/projects.d.ts +28 -28
  13. package/dist/esm/interface/crud/team-member-profiles.d.ts +4 -4
  14. package/dist/esm/interface/crud/users.d.ts +4 -4
  15. package/dist/esm/interface/webhooks.d.ts +2 -2
  16. package/dist/esm/known-errors.d.ts +1 -1
  17. package/dist/esm/known-errors.d.ts.map +1 -1
  18. package/dist/esm/known-errors.js +5 -1
  19. package/dist/esm/known-errors.js.map +1 -1
  20. package/dist/hooks/use-async-callback.js +1 -1
  21. package/dist/hooks/use-async-external-store.js +1 -1
  22. package/dist/hooks/use-strict-memo.js +1 -1
  23. package/dist/interface/admin-metrics.d.ts +8 -8
  24. package/dist/interface/conversations.d.ts +29 -29
  25. package/dist/interface/crud/current-user.d.ts +3 -3
  26. package/dist/interface/crud/email-outbox.d.ts +154 -154
  27. package/dist/interface/crud/products.d.ts +1 -1
  28. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  29. package/dist/interface/crud/projects.d.ts +28 -28
  30. package/dist/interface/crud/team-member-profiles.d.ts +4 -4
  31. package/dist/interface/crud/users.d.ts +4 -4
  32. package/dist/interface/webhooks.d.ts +2 -2
  33. package/dist/known-errors.d.ts +1 -1
  34. package/dist/known-errors.d.ts.map +1 -1
  35. package/dist/known-errors.js +5 -1
  36. package/dist/known-errors.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/known-errors.tsx +5 -2
@@ -84,7 +84,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
84
84
  sourceOfTruth: {
85
85
  type: "hosted";
86
86
  };
87
- }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
87
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
88
88
  payments?: {
89
89
  blockNewPurchases?: boolean | undefined;
90
90
  autoPay?: {
@@ -125,13 +125,6 @@ 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
- };
135
128
  auth: {
136
129
  allowSignUp?: boolean | undefined;
137
130
  signUpRulesDefaultAction?: string | undefined;
@@ -141,6 +134,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
141
134
  otp: {
142
135
  allowSignIn?: boolean | undefined;
143
136
  };
137
+ passkey: {
138
+ allowSignIn?: boolean | undefined;
139
+ };
144
140
  oauth: {
145
141
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
146
142
  providers: Record<string, {
@@ -149,13 +145,10 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
149
145
  allowConnectedAccounts?: boolean | undefined;
150
146
  }>;
151
147
  };
152
- passkey: {
153
- allowSignIn?: boolean | undefined;
154
- };
155
148
  signUpRules: Record<string, {
156
149
  displayName?: string | undefined;
157
- priority?: number | undefined;
158
150
  enabled?: boolean | undefined;
151
+ priority?: number | undefined;
159
152
  condition?: string | undefined;
160
153
  action: {
161
154
  message?: string | undefined;
@@ -166,6 +159,10 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
166
159
  onboarding: {
167
160
  requireEmailVerification?: boolean | undefined;
168
161
  };
162
+ teams: {
163
+ createPersonalTeamOnSignUp?: boolean | undefined;
164
+ allowClientTeamCreation?: boolean | undefined;
165
+ };
169
166
  rbac: {
170
167
  permissions: Record<string, {
171
168
  description?: string | undefined;
@@ -190,6 +187,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
190
187
  tsxSource: string;
191
188
  }>;
192
189
  };
190
+ users: {
191
+ allowClientUserDeletion?: boolean | undefined;
192
+ };
193
193
  apiKeys: {
194
194
  enabled: {
195
195
  team?: boolean | undefined;
@@ -197,7 +197,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
197
197
  };
198
198
  };
199
199
  apps: {
200
- 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" | "session-replays", {
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
201
  enabled?: boolean | undefined;
202
202
  }>;
203
203
  };
@@ -218,7 +218,7 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
218
218
  project: {
219
219
  requirePublishableClientKey: undefined;
220
220
  };
221
- }, string>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
221
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
296
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
297
297
  payments?: {
298
298
  blockNewPurchases?: boolean | undefined;
299
299
  autoPay?: {
@@ -334,13 +334,6 @@ 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
- };
344
337
  auth: {
345
338
  allowSignUp?: boolean | undefined;
346
339
  signUpRulesDefaultAction?: string | undefined;
@@ -350,6 +343,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
350
343
  otp: {
351
344
  allowSignIn?: boolean | undefined;
352
345
  };
346
+ passkey: {
347
+ allowSignIn?: boolean | undefined;
348
+ };
353
349
  oauth: {
354
350
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
355
351
  providers: Record<string, {
@@ -358,13 +354,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
358
354
  allowConnectedAccounts?: boolean | undefined;
359
355
  }>;
360
356
  };
361
- passkey: {
362
- allowSignIn?: boolean | undefined;
363
- };
364
357
  signUpRules: Record<string, {
365
358
  displayName?: string | undefined;
366
- priority?: number | undefined;
367
359
  enabled?: boolean | undefined;
360
+ priority?: number | undefined;
368
361
  condition?: string | undefined;
369
362
  action: {
370
363
  message?: string | undefined;
@@ -375,6 +368,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
375
368
  onboarding: {
376
369
  requireEmailVerification?: boolean | undefined;
377
370
  };
371
+ teams: {
372
+ createPersonalTeamOnSignUp?: boolean | undefined;
373
+ allowClientTeamCreation?: boolean | undefined;
374
+ };
378
375
  rbac: {
379
376
  permissions: Record<string, {
380
377
  description?: string | undefined;
@@ -399,6 +396,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
399
396
  tsxSource: string;
400
397
  }>;
401
398
  };
399
+ users: {
400
+ allowClientUserDeletion?: boolean | undefined;
401
+ };
402
402
  apiKeys: {
403
403
  enabled: {
404
404
  team?: boolean | undefined;
@@ -406,7 +406,7 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
406
406
  };
407
407
  };
408
408
  apps: {
409
- 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" | "session-replays", {
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
410
  enabled?: boolean | undefined;
411
411
  }>;
412
412
  };
@@ -474,6 +474,9 @@ 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
+ };
477
480
  oauth: {
478
481
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
479
482
  providers: Record<string, {
@@ -482,13 +485,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
482
485
  allowConnectedAccounts?: boolean | undefined;
483
486
  }>;
484
487
  };
485
- passkey: {
486
- allowSignIn?: boolean | undefined;
487
- };
488
488
  signUpRules: Record<string, {
489
489
  displayName?: string | undefined;
490
- priority?: number | undefined;
491
490
  enabled?: boolean | undefined;
491
+ priority?: number | undefined;
492
492
  condition?: string | undefined;
493
493
  action: {
494
494
  message?: 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
- displayName?: string | undefined;
554
553
  description?: string | undefined;
554
+ displayName?: 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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
575
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
648
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
721
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
797
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
883
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
959
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1041
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1042
1042
  payments?: {
1043
1043
  blockNewPurchases?: boolean | undefined;
1044
1044
  autoPay?: {
@@ -1079,13 +1079,6 @@ 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
- };
1089
1082
  auth: {
1090
1083
  allowSignUp?: boolean | undefined;
1091
1084
  signUpRulesDefaultAction?: string | undefined;
@@ -1095,6 +1088,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1095
1088
  otp: {
1096
1089
  allowSignIn?: boolean | undefined;
1097
1090
  };
1091
+ passkey: {
1092
+ allowSignIn?: boolean | undefined;
1093
+ };
1098
1094
  oauth: {
1099
1095
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
1100
1096
  providers: Record<string, {
@@ -1103,13 +1099,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1103
1099
  allowConnectedAccounts?: boolean | undefined;
1104
1100
  }>;
1105
1101
  };
1106
- passkey: {
1107
- allowSignIn?: boolean | undefined;
1108
- };
1109
1102
  signUpRules: Record<string, {
1110
1103
  displayName?: string | undefined;
1111
- priority?: number | undefined;
1112
1104
  enabled?: boolean | undefined;
1105
+ priority?: number | undefined;
1113
1106
  condition?: string | undefined;
1114
1107
  action: {
1115
1108
  message?: string | undefined;
@@ -1120,6 +1113,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1120
1113
  onboarding: {
1121
1114
  requireEmailVerification?: boolean | undefined;
1122
1115
  };
1116
+ teams: {
1117
+ createPersonalTeamOnSignUp?: boolean | undefined;
1118
+ allowClientTeamCreation?: boolean | undefined;
1119
+ };
1123
1120
  rbac: {
1124
1121
  permissions: Record<string, {
1125
1122
  description?: string | undefined;
@@ -1144,6 +1141,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1144
1141
  tsxSource: string;
1145
1142
  }>;
1146
1143
  };
1144
+ users: {
1145
+ allowClientUserDeletion?: boolean | undefined;
1146
+ };
1147
1147
  apiKeys: {
1148
1148
  enabled: {
1149
1149
  team?: boolean | undefined;
@@ -1151,7 +1151,7 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1151
1151
  };
1152
1152
  };
1153
1153
  apps: {
1154
- 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" | "session-replays", {
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
1155
  enabled?: boolean | undefined;
1156
1156
  }>;
1157
1157
  };
@@ -1219,6 +1219,9 @@ 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
+ };
1222
1225
  oauth: {
1223
1226
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
1224
1227
  providers: Record<string, {
@@ -1227,13 +1230,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1227
1230
  allowConnectedAccounts?: boolean | undefined;
1228
1231
  }>;
1229
1232
  };
1230
- passkey: {
1231
- allowSignIn?: boolean | undefined;
1232
- };
1233
1233
  signUpRules: Record<string, {
1234
1234
  displayName?: string | undefined;
1235
- priority?: number | undefined;
1236
1235
  enabled?: boolean | undefined;
1236
+ priority?: number | undefined;
1237
1237
  condition?: string | undefined;
1238
1238
  action: {
1239
1239
  message?: 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
- displayName?: string | undefined;
1299
1298
  description?: string | undefined;
1299
+ displayName?: 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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1320
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1393
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1466
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1542
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1628
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1704
+ }, string>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "users" | "apiKeys" | "apps" | "domains" | "dbSync" | "dataVault"> & {
1705
1705
  rbac: {
1706
1706
  permissions: undefined;
1707
1707
  defaultPermissions: {
@@ -2064,14 +2064,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2064
2064
  };
2065
2065
  signUpRules: Record<string, {
2066
2066
  displayName: string | undefined;
2067
- priority: number;
2068
2067
  enabled: boolean;
2068
+ priority: number;
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;
2075
2076
  password: {
2076
2077
  allowSignIn: boolean;
2077
2078
  };
@@ -2081,7 +2082,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2081
2082
  passkey: {
2082
2083
  allowSignIn: boolean;
2083
2084
  };
2084
- allowSignUp: boolean;
2085
2085
  signUpRulesDefaultAction: string;
2086
2086
  };
2087
2087
  emails: {
@@ -2174,16 +2174,13 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2174
2174
  } & {
2175
2175
  readonly type: "hosted";
2176
2176
  };
2177
- users: {
2178
- allowClientUserDeletion: boolean;
2177
+ onboarding: {
2178
+ requireEmailVerification: boolean;
2179
2179
  };
2180
2180
  teams: {
2181
2181
  createPersonalTeamOnSignUp: boolean;
2182
2182
  allowClientTeamCreation: boolean;
2183
2183
  };
2184
- onboarding: {
2185
- requireEmailVerification: boolean;
2186
- };
2187
2184
  rbac: {
2188
2185
  permissions: {
2189
2186
  [x: string]: {
@@ -2213,14 +2210,17 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2213
2210
  sortOrder: number;
2214
2211
  queries: {
2215
2212
  [x: string]: {
2216
- displayName: string;
2217
2213
  description: string | undefined;
2214
+ displayName: string;
2218
2215
  sqlQuery: string;
2219
2216
  };
2220
2217
  };
2221
2218
  };
2222
2219
  };
2223
2220
  };
2221
+ users: {
2222
+ allowClientUserDeletion: boolean;
2223
+ };
2224
2224
  apiKeys: {
2225
2225
  enabled: {
2226
2226
  team: boolean;
@@ -1,5 +1,5 @@
1
- import { captureError } from "../utils/errors.js";
2
1
  import React from "react";
2
+ import { captureError } from "../utils/errors.js";
3
3
 
4
4
  //#region src/hooks/use-async-callback.tsx
5
5
  function useAsyncCallback(callback, deps) {
@@ -1,5 +1,5 @@
1
- import { AsyncResult } from "../utils/results.js";
2
1
  import { useEffect, useState } from "react";
2
+ import { AsyncResult } from "../utils/results.js";
3
3
 
4
4
  //#region src/hooks/use-async-external-store.tsx
5
5
  function useAsyncExternalStore(subscribe) {
@@ -1,5 +1,5 @@
1
- import { Result } from "../utils/results.js";
2
1
  import { useId, useInsertionEffect } from "react";
2
+ import { Result } from "../utils/results.js";
3
3
 
4
4
  //#region src/hooks/use-strict-memo.tsx
5
5
  const cached = /* @__PURE__ */ new Map();
@@ -164,9 +164,9 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
164
164
  }[];
165
165
  deliverability_status: {
166
166
  error: number;
167
+ bounced: number;
167
168
  in_progress: number;
168
169
  delivered: number;
169
- bounced: number;
170
170
  };
171
171
  deliverability_rate: number;
172
172
  bounce_rate: number;
@@ -311,8 +311,8 @@ declare const UserActivityResponseBodySchema: yup.ObjectSchema<{
311
311
  }, "">;
312
312
  declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
313
313
  primary_email: string | null;
314
- id: string;
315
314
  display_name: string | null;
315
+ id: string;
316
316
  profile_image_url: string | null;
317
317
  signed_up_at_millis: number;
318
318
  last_active_at_millis: number | null;
@@ -331,24 +331,24 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
331
331
  users_by_country: Record<string, number>;
332
332
  active_users_by_country: Record<string, {
333
333
  primary_email: string | null;
334
- id: string;
335
334
  display_name: string | null;
335
+ id: string;
336
336
  profile_image_url: string | null;
337
337
  signed_up_at_millis: number;
338
338
  last_active_at_millis: number | null;
339
339
  }[]>;
340
340
  recently_registered: {
341
341
  primary_email: string | null;
342
- id: string;
343
342
  display_name: string | null;
343
+ id: string;
344
344
  profile_image_url: string | null;
345
345
  signed_up_at_millis: number;
346
346
  last_active_at_millis: number | null;
347
347
  }[];
348
348
  recently_active: {
349
349
  primary_email: string | null;
350
- id: string;
351
350
  display_name: string | null;
351
+ id: string;
352
352
  profile_image_url: string | null;
353
353
  signed_up_at_millis: number;
354
354
  last_active_at_millis: number | null;
@@ -436,9 +436,9 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
436
436
  }[];
437
437
  deliverability_status: {
438
438
  error: number;
439
+ bounced: number;
439
440
  in_progress: number;
440
441
  delivered: number;
441
- bounced: number;
442
442
  };
443
443
  deliverability_rate: number;
444
444
  bounce_rate: number;
@@ -139,8 +139,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
139
139
  createdAt: string;
140
140
  sender: {
141
141
  type: "user" | "agent" | "system";
142
- id: string | null;
143
142
  displayName: string | null;
143
+ id: string | null;
144
144
  primaryEmail: string | null;
145
145
  };
146
146
  }, yup$1.AnyObject, {
@@ -174,18 +174,7 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
176
  status: "open" | "pending" | "closed";
177
- conversationId: string;
178
- userId: string | null;
179
- teamId: string | null;
180
- userDisplayName: string | null;
181
- userPrimaryEmail: string | null;
182
- userProfileImageUrl: string | null;
183
- subject: string;
184
- priority: "low" | "normal" | "high" | "urgent";
185
177
  source: "email" | "manual" | "chat" | "api";
186
- lastMessageType: "message" | "internal-note" | "status-change";
187
- preview: string | null;
188
- lastActivityAt: string;
189
178
  metadata: {
190
179
  assignedToUserId: string | null;
191
180
  assignedToDisplayName: string | null;
@@ -196,6 +185,17 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
196
185
  lastCustomerReplyAt: string | null;
197
186
  lastAgentReplyAt: string | null;
198
187
  };
188
+ priority: "low" | "normal" | "high" | "urgent";
189
+ conversationId: string;
190
+ userId: string | null;
191
+ teamId: string | null;
192
+ userDisplayName: string | null;
193
+ userPrimaryEmail: string | null;
194
+ userProfileImageUrl: string | null;
195
+ subject: string;
196
+ lastMessageType: "message" | "internal-note" | "status-change";
197
+ preview: string | null;
198
+ lastActivityAt: string;
199
199
  }[];
200
200
  hasMore: boolean;
201
201
  }, yup$1.AnyObject, {
@@ -212,18 +212,7 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
214
  status: "open" | "pending" | "closed";
215
- conversationId: string;
216
- userId: string | null;
217
- teamId: string | null;
218
- userDisplayName: string | null;
219
- userPrimaryEmail: string | null;
220
- userProfileImageUrl: string | null;
221
- subject: string;
222
- priority: "low" | "normal" | "high" | "urgent";
223
215
  source: "email" | "manual" | "chat" | "api";
224
- lastMessageType: "message" | "internal-note" | "status-change";
225
- preview: string | null;
226
- lastActivityAt: string;
227
216
  metadata: {
228
217
  assignedToUserId: string | null;
229
218
  assignedToDisplayName: string | null;
@@ -234,31 +223,42 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
234
223
  lastCustomerReplyAt: string | null;
235
224
  lastAgentReplyAt: string | null;
236
225
  };
226
+ priority: "low" | "normal" | "high" | "urgent";
227
+ conversationId: string;
228
+ userId: string | null;
229
+ teamId: string | null;
230
+ userDisplayName: string | null;
231
+ userPrimaryEmail: string | null;
232
+ userProfileImageUrl: string | null;
233
+ subject: string;
234
+ lastMessageType: "message" | "internal-note" | "status-change";
235
+ preview: string | null;
236
+ lastActivityAt: string;
237
237
  };
238
238
  messages: {
239
239
  status: "open" | "pending" | "closed";
240
+ body: string | null;
241
+ source: "email" | "manual" | "chat" | "api";
242
+ metadata: {} | null;
240
243
  id: string;
244
+ priority: "low" | "normal" | "high" | "urgent";
241
245
  conversationId: string;
242
246
  userId: string | null;
243
247
  teamId: string | null;
244
248
  subject: string;
245
- priority: "low" | "normal" | "high" | "urgent";
246
- source: "email" | "manual" | "chat" | "api";
247
- metadata: {} | null;
248
249
  createdAt: string;
249
250
  messageType: "message" | "internal-note" | "status-change";
250
- body: string | null;
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";
254
- id: string | null;
255
254
  displayName: string | null;
255
+ id: string | null;
256
256
  primaryEmail: string | null;
257
257
  };
258
258
  }[];
259
259
  entryPoints: {
260
- id: string;
261
260
  metadata: {} | null;
261
+ id: string;
262
262
  createdAt: string;
263
263
  updatedAt: string;
264
264
  channelType: string;