@hexclave/shared 1.0.17 → 1.0.18

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.
@@ -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" | "apiKeys" | "apps" | "domains" | "users" | "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?: {
@@ -134,9 +134,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
134
134
  otp: {
135
135
  allowSignIn?: boolean | undefined;
136
136
  };
137
- passkey: {
138
- allowSignIn?: boolean | undefined;
139
- };
140
137
  oauth: {
141
138
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
142
139
  providers: Record<string, {
@@ -145,10 +142,13 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
145
142
  allowConnectedAccounts?: boolean | undefined;
146
143
  }>;
147
144
  };
145
+ passkey: {
146
+ allowSignIn?: boolean | undefined;
147
+ };
148
148
  signUpRules: Record<string, {
149
149
  displayName?: string | undefined;
150
- enabled?: boolean | undefined;
151
150
  priority?: number | undefined;
151
+ enabled?: boolean | undefined;
152
152
  condition?: string | undefined;
153
153
  action: {
154
154
  message?: string | undefined;
@@ -187,6 +187,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
187
187
  tsxSource: string;
188
188
  }>;
189
189
  };
190
+ users: {
191
+ allowClientUserDeletion?: boolean | undefined;
192
+ };
190
193
  apiKeys: {
191
194
  enabled: {
192
195
  team?: boolean | undefined;
@@ -199,9 +202,6 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
199
202
  }>;
200
203
  };
201
204
  domains: {};
202
- users: {
203
- allowClientUserDeletion?: boolean | undefined;
204
- };
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" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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?: {
@@ -343,9 +343,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
343
343
  otp: {
344
344
  allowSignIn?: boolean | undefined;
345
345
  };
346
- passkey: {
347
- allowSignIn?: boolean | undefined;
348
- };
349
346
  oauth: {
350
347
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
351
348
  providers: Record<string, {
@@ -354,10 +351,13 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
354
351
  allowConnectedAccounts?: boolean | undefined;
355
352
  }>;
356
353
  };
354
+ passkey: {
355
+ allowSignIn?: boolean | undefined;
356
+ };
357
357
  signUpRules: Record<string, {
358
358
  displayName?: string | undefined;
359
- enabled?: boolean | undefined;
360
359
  priority?: number | undefined;
360
+ enabled?: boolean | undefined;
361
361
  condition?: string | undefined;
362
362
  action: {
363
363
  message?: string | undefined;
@@ -396,6 +396,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
396
396
  tsxSource: string;
397
397
  }>;
398
398
  };
399
+ users: {
400
+ allowClientUserDeletion?: boolean | undefined;
401
+ };
399
402
  apiKeys: {
400
403
  enabled: {
401
404
  team?: boolean | undefined;
@@ -408,9 +411,6 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
408
411
  }>;
409
412
  };
410
413
  domains: {};
411
- users: {
412
- allowClientUserDeletion?: boolean | undefined;
413
- };
414
414
  dbSync: {
415
415
  externalDatabases: Record<string, {
416
416
  connectionString?: 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;
@@ -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" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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?: {
@@ -1088,9 +1088,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1088
1088
  otp: {
1089
1089
  allowSignIn?: boolean | undefined;
1090
1090
  };
1091
- passkey: {
1092
- allowSignIn?: boolean | undefined;
1093
- };
1094
1091
  oauth: {
1095
1092
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
1096
1093
  providers: Record<string, {
@@ -1099,10 +1096,13 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1099
1096
  allowConnectedAccounts?: boolean | undefined;
1100
1097
  }>;
1101
1098
  };
1099
+ passkey: {
1100
+ allowSignIn?: boolean | undefined;
1101
+ };
1102
1102
  signUpRules: Record<string, {
1103
1103
  displayName?: string | undefined;
1104
- enabled?: boolean | undefined;
1105
1104
  priority?: number | undefined;
1105
+ enabled?: boolean | undefined;
1106
1106
  condition?: string | undefined;
1107
1107
  action: {
1108
1108
  message?: string | undefined;
@@ -1141,6 +1141,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1141
1141
  tsxSource: string;
1142
1142
  }>;
1143
1143
  };
1144
+ users: {
1145
+ allowClientUserDeletion?: boolean | undefined;
1146
+ };
1144
1147
  apiKeys: {
1145
1148
  enabled: {
1146
1149
  team?: boolean | undefined;
@@ -1153,9 +1156,6 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
1153
1156
  }>;
1154
1157
  };
1155
1158
  domains: {};
1156
- users: {
1157
- allowClientUserDeletion?: boolean | undefined;
1158
- };
1159
1159
  dbSync: {
1160
1160
  externalDatabases: Record<string, {
1161
1161
  connectionString?: 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;
@@ -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" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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>, "auth" | "onboarding" | "teams" | "rbac" | "payments" | "emails" | "apiKeys" | "apps" | "domains" | "users" | "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,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: {
@@ -2218,6 +2218,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2218
2218
  };
2219
2219
  };
2220
2220
  };
2221
+ users: {
2222
+ allowClientUserDeletion: boolean;
2223
+ };
2221
2224
  apiKeys: {
2222
2225
  enabled: {
2223
2226
  team: boolean;
@@ -2233,9 +2236,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
2233
2236
  };
2234
2237
  };
2235
2238
  };
2236
- users: {
2237
- allowClientUserDeletion: boolean;
2238
- };
2239
2239
  dbSync: {
2240
2240
  externalDatabases: {
2241
2241
  [x: string]: {