@hexclave/shared 1.0.15 → 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 (35) hide show
  1. package/dist/config/schema.d.ts +55 -55
  2. package/dist/esm/config/schema.d.ts +55 -55
  3. package/dist/esm/interface/admin-metrics.d.ts +22 -22
  4. package/dist/esm/interface/conversations.d.ts +10 -10
  5. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  6. package/dist/esm/interface/crud/email-outbox.d.ts +160 -160
  7. package/dist/esm/interface/crud/products.d.ts +13 -13
  8. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  10. package/dist/esm/interface/crud/projects.d.ts +36 -36
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  12. package/dist/esm/interface/crud/transactions.d.ts +13 -13
  13. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  14. package/dist/esm/interface/crud/users.d.ts +14 -14
  15. package/dist/esm/interface/webhooks.d.ts +2 -2
  16. package/dist/esm/known-errors.d.ts +5 -5
  17. package/dist/esm/schema-fields.d.ts +5 -5
  18. package/dist/esm/sessions.d.ts +7 -7
  19. package/dist/interface/admin-metrics.d.ts +22 -22
  20. package/dist/interface/conversations.d.ts +10 -10
  21. package/dist/interface/crud/current-user.d.ts +14 -14
  22. package/dist/interface/crud/email-outbox.d.ts +160 -160
  23. package/dist/interface/crud/products.d.ts +13 -13
  24. package/dist/interface/crud/products.d.ts.map +1 -1
  25. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  26. package/dist/interface/crud/projects.d.ts +36 -36
  27. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  28. package/dist/interface/crud/transactions.d.ts +13 -13
  29. package/dist/interface/crud/transactions.d.ts.map +1 -1
  30. package/dist/interface/crud/users.d.ts +14 -14
  31. package/dist/interface/webhooks.d.ts +2 -2
  32. package/dist/known-errors.d.ts +5 -5
  33. package/dist/schema-fields.d.ts +5 -5
  34. package/dist/sessions.d.ts +7 -7
  35. package/package.json +1 -1
@@ -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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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;
@@ -190,10 +190,11 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
190
190
  tsxSource: string;
191
191
  }>;
192
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: {
@@ -201,7 +202,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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;
@@ -399,10 +399,11 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
399
399
  tsxSource: string;
400
400
  }>;
401
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: {
@@ -410,7 +411,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
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;
@@ -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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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;
@@ -1144,10 +1144,11 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1144
1144
  tsxSource: string;
1145
1145
  }>;
1146
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: {
@@ -1155,7 +1156,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
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;
@@ -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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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>, "users" | "teams" | "auth" | "onboarding" | "rbac" | "payments" | "emails" | "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: {
@@ -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,7 +2133,7 @@ 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]: {
@@ -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;
@@ -2213,20 +2213,14 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2213
2213
  sortOrder: number;
2214
2214
  queries: {
2215
2215
  [x: string]: {
2216
- description: string | undefined;
2217
2216
  displayName: string;
2217
+ description: string | undefined;
2218
2218
  sqlQuery: string;
2219
2219
  };
2220
2220
  };
2221
2221
  };
2222
2222
  };
2223
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]: {
@@ -150,16 +150,16 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
+ ok: number;
153
154
  error: number;
154
155
  date: string;
155
- ok: number;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
- status: string;
161
160
  id: string;
162
161
  subject: string;
162
+ status: string;
163
163
  created_at_millis: number;
164
164
  }[];
165
165
  deliverability_status: {
@@ -292,16 +292,16 @@ declare const MetricsAnalyticsOverviewSchema: yup.ObjectSchema<{
292
292
  activity: number;
293
293
  }[];
294
294
  top_browsers: {
295
- name: string;
296
295
  visitors: number;
296
+ name: string;
297
297
  }[];
298
298
  top_operating_systems: {
299
- name: string;
300
299
  visitors: number;
300
+ name: string;
301
301
  }[];
302
302
  top_devices: {
303
- name: string;
304
303
  visitors: number;
304
+ name: string;
305
305
  }[];
306
306
  conversion_rate: number | undefined;
307
307
  deltas: {} | undefined;
@@ -392,8 +392,8 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
392
392
  kind: "team_user_hour_of_week" | "session_replay_clicks";
393
393
  cells: {
394
394
  value: number;
395
- hour: number;
396
395
  weekday: number;
396
+ hour: number;
397
397
  }[];
398
398
  sampling: number;
399
399
  routes: {
@@ -403,19 +403,19 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- primary_email: string | null;
407
- display_name: string | null;
408
406
  id: string;
407
+ display_name: string | null;
408
+ primary_email: string | null;
409
409
  profile_image_url: string | null;
410
410
  clicks: number;
411
411
  replays: number;
412
412
  last_event_at_millis: number;
413
413
  }[];
414
414
  replays: {
415
- user_id: string | null;
416
415
  id: string;
417
416
  clicks: number;
418
417
  last_event_at_millis: number;
418
+ user_id: string | null;
419
419
  route_path: string | null;
420
420
  viewport_width: number | null;
421
421
  viewport_height: number | null;
@@ -443,9 +443,9 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
443
443
  elements: never[];
444
444
  }, "">;
445
445
  declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
446
- primary_email: string | null;
447
- display_name: string | null;
448
446
  id: string;
447
+ display_name: string | null;
448
+ primary_email: string | null;
449
449
  profile_image_url: string | null;
450
450
  signed_up_at_millis: number;
451
451
  last_active_at_millis: number | null;
@@ -471,25 +471,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
471
471
  }[];
472
472
  users_by_country: Record<string, number>;
473
473
  active_users_by_country: Record<string, {
474
- primary_email: string | null;
475
- display_name: string | null;
476
474
  id: string;
475
+ display_name: string | null;
476
+ primary_email: string | null;
477
477
  profile_image_url: string | null;
478
478
  signed_up_at_millis: number;
479
479
  last_active_at_millis: number | null;
480
480
  }[]>;
481
481
  recently_registered: {
482
- primary_email: string | null;
483
- display_name: string | null;
484
482
  id: string;
483
+ display_name: string | null;
484
+ primary_email: string | null;
485
485
  profile_image_url: string | null;
486
486
  signed_up_at_millis: number;
487
487
  last_active_at_millis: number | null;
488
488
  }[];
489
489
  recently_active: {
490
- primary_email: string | null;
491
- display_name: string | null;
492
490
  id: string;
491
+ display_name: string | null;
492
+ primary_email: string | null;
493
493
  profile_image_url: string | null;
494
494
  signed_up_at_millis: number;
495
495
  last_active_at_millis: number | null;
@@ -563,16 +563,16 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
563
563
  emails_by_status: Record<string, number>;
564
564
  total_emails: number;
565
565
  daily_emails_by_status: {
566
+ ok: number;
566
567
  error: number;
567
568
  date: string;
568
- ok: number;
569
569
  in_progress: number;
570
570
  }[];
571
571
  emails_sent: number;
572
572
  recent_emails: {
573
- status: string;
574
573
  id: string;
575
574
  subject: string;
575
+ status: string;
576
576
  created_at_millis: number;
577
577
  }[];
578
578
  deliverability_status: {
@@ -652,16 +652,16 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
652
652
  activity: number;
653
653
  }[];
654
654
  top_browsers: {
655
- name: string;
656
655
  visitors: number;
656
+ name: string;
657
657
  }[];
658
658
  top_operating_systems: {
659
- name: string;
660
659
  visitors: number;
660
+ name: string;
661
661
  }[];
662
662
  top_devices: {
663
- name: string;
664
663
  visitors: number;
664
+ name: string;
665
665
  }[];
666
666
  };
667
667
  }, yup.AnyObject, {