@stndrds/schema 1.0.0-alpha.264 → 1.0.0-alpha.265

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 (59) hide show
  1. package/dist/{attributes-DUuaECJI.d.ts → attributes-_b3Db8vT.d.ts} +1 -1
  2. package/dist/{attributes-DCgZhISp.d.mts → attributes-lBLiOIY3.d.mts} +1 -1
  3. package/dist/chunk-NGGU6BSN.mjs +216 -0
  4. package/dist/chunk-NI3HCSYH.js +229 -0
  5. package/dist/{chunk-54WDPQ6R.mjs → chunk-QIWADKYA.mjs} +12 -216
  6. package/dist/{chunk-TS3PJOMZ.js → chunk-ZBQEMIAV.js} +11 -227
  7. package/dist/exceptions.d.mts +458 -0
  8. package/dist/exceptions.d.ts +458 -0
  9. package/dist/exceptions.js +154 -0
  10. package/dist/exceptions.mjs +1 -0
  11. package/dist/{helpers-B4qBjTd0.d.ts → helpers-eyrnPJEF.d.ts} +4 -39
  12. package/dist/{helpers-B_NlMAm2.d.mts → helpers-uKLet0kF.d.mts} +4 -39
  13. package/dist/index.d.mts +111 -450
  14. package/dist/index.d.ts +111 -450
  15. package/dist/index.js +127 -111
  16. package/dist/index.mjs +24 -7
  17. package/dist/migrations-BXd2ZGfM.d.mts +39 -0
  18. package/dist/migrations-DcuJZ8qO.d.ts +39 -0
  19. package/dist/{types-15lGDPlN.d.mts → types-DNz3ITS-.d.mts} +1 -1
  20. package/dist/{types-CqZZxm_V.d.ts → types-DqLi1tx1.d.ts} +1 -1
  21. package/dist/validation/all.d.mts +4 -3
  22. package/dist/validation/all.d.ts +4 -3
  23. package/dist/validation/all.js +10 -9
  24. package/dist/validation/all.mjs +4 -3
  25. package/dist/validation/complex/currency.d.mts +2 -2
  26. package/dist/validation/complex/currency.d.ts +2 -2
  27. package/dist/validation/complex/location.d.mts +2 -2
  28. package/dist/validation/complex/location.d.ts +2 -2
  29. package/dist/validation/complex/phone.d.mts +2 -2
  30. package/dist/validation/complex/phone.d.ts +2 -2
  31. package/dist/validation/complex/relation.d.mts +2 -2
  32. package/dist/validation/complex/relation.d.ts +2 -2
  33. package/dist/validation/complex/richtext.d.mts +2 -2
  34. package/dist/validation/complex/richtext.d.ts +2 -2
  35. package/dist/validation/complex/select.d.mts +2 -2
  36. package/dist/validation/complex/select.d.ts +2 -2
  37. package/dist/validation/complex/user.d.mts +2 -2
  38. package/dist/validation/complex/user.d.ts +2 -2
  39. package/dist/validation/computed/formula.d.mts +2 -2
  40. package/dist/validation/computed/formula.d.ts +2 -2
  41. package/dist/validation/computed/rollup.d.mts +2 -2
  42. package/dist/validation/computed/rollup.d.ts +2 -2
  43. package/dist/validation/config/index.d.mts +1 -1
  44. package/dist/validation/config/index.d.ts +1 -1
  45. package/dist/validation/core/index.d.mts +3 -3
  46. package/dist/validation/core/index.d.ts +3 -3
  47. package/dist/validation/object/index.d.mts +5 -4
  48. package/dist/validation/object/index.d.ts +5 -4
  49. package/dist/validation/object/index.js +16 -15
  50. package/dist/validation/object/index.mjs +4 -3
  51. package/dist/validation/primitives/checkbox.d.mts +2 -2
  52. package/dist/validation/primitives/checkbox.d.ts +2 -2
  53. package/dist/validation/primitives/date.d.mts +2 -2
  54. package/dist/validation/primitives/date.d.ts +2 -2
  55. package/dist/validation/primitives/number.d.mts +2 -2
  56. package/dist/validation/primitives/number.d.ts +2 -2
  57. package/dist/validation/primitives/text.d.mts +2 -2
  58. package/dist/validation/primitives/text.d.ts +2 -2
  59. package/package.json +7 -2
package/dist/index.mjs CHANGED
@@ -3,21 +3,23 @@ export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY
3
3
  import './chunk-SP3PNHYF.mjs';
4
4
  import { parseComputedFormula } from './chunk-UXCJ3NI4.mjs';
5
5
  export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-UXCJ3NI4.mjs';
6
- import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError, NotFoundError, DuplicateError } from './chunk-54WDPQ6R.mjs';
7
- export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-54WDPQ6R.mjs';
6
+ import { createObjectValidator, createAttributeValidator } from './chunk-NGGU6BSN.mjs';
7
+ export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-NGGU6BSN.mjs';
8
+ import './chunk-OSSGN43B.mjs';
8
9
  import './chunk-Q44QKLN4.mjs';
9
10
  import './chunk-UANQJ2GH.mjs';
10
11
  import './chunk-U36ZIBEM.mjs';
12
+ import './chunk-QVLQPW3O.mjs';
11
13
  import './chunk-ZDQ5AP26.mjs';
12
14
  import './chunk-LV3FEUKU.mjs';
13
15
  import './chunk-UXAHLSWC.mjs';
14
16
  import './chunk-NS63SPNN.mjs';
15
- import './chunk-OSSGN43B.mjs';
17
+ import { SchemaError, SchemaErrorCode, ValidationError, NotFoundError, DuplicateError } from './chunk-QIWADKYA.mjs';
18
+ export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './chunk-QIWADKYA.mjs';
16
19
  import './chunk-AYVHMVKQ.mjs';
17
20
  import './chunk-YUFTHPOE.mjs';
18
21
  import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
19
22
  import './chunk-GO6LQADH.mjs';
20
- import './chunk-QVLQPW3O.mjs';
21
23
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
22
24
  import { ICONS, SKILL_NAME_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, MEMORY_NAME_MAX_LENGTH, MEMORY_DESCRIPTION_MAX_LENGTH, getCountryDisplayNameByIso3 } from '@stndrds/constants';
23
25
  import z3, { z } from 'zod';
@@ -1201,17 +1203,25 @@ var DEFAULT_ROLES = {
1201
1203
  /** Standard user - can work with business data and view people */
1202
1204
  MEMBER: "member",
1203
1205
  /** Default role for agent actors - CRUD on records + documents/files */
1204
- AGENT_DEFAULT: "agent_default"
1206
+ AGENT_DEFAULT: "agent_default",
1207
+ /**
1208
+ * Default role for reflex actors — deliberately NO record access (D22).
1209
+ * An agent is interactive, watched, and acts once; a reflex is unattended and
1210
+ * repeats. Real access is a per-reflex role derived from its first rehearsal.
1211
+ */
1212
+ REFLEX_DEFAULT: "reflex_default"
1205
1213
  };
1206
1214
  var DEFAULT_ROLE_LABELS = {
1207
1215
  owner: "Owner",
1208
1216
  member: "Member",
1209
- agent_default: "Agent Default"
1217
+ agent_default: "Agent Default",
1218
+ reflex_default: "Reflex Default"
1210
1219
  };
1211
1220
  var DEFAULT_ROLE_DESCRIPTIONS = {
1212
1221
  owner: "Full access to all platform features and data",
1213
1222
  member: "Can view, create, edit and delete business data",
1214
- agent_default: "Default role for AI agents \u2014 CRUD on records plus documents and files"
1223
+ agent_default: "Default role for AI agents \u2014 CRUD on records plus documents and files",
1224
+ reflex_default: "Default role for reflexes \u2014 no data access; each reflex is granted exactly what its rehearsal showed it uses"
1215
1225
  };
1216
1226
  var ALL_ACTIONS2 = ["read", "create", "update", "delete", "manage"];
1217
1227
  var MEMBER_CONNECTOR_ACTIONS = ["read", "create", "delete"];
@@ -1241,6 +1251,13 @@ var DEFAULT_ROLE_PERMISSIONS = {
1241
1251
  { target: "session", actions: ["observe"] }
1242
1252
  ],
1243
1253
  object: [{ target: "*", actions: ["read", "create", "update", "delete"] }]
1254
+ },
1255
+ reflex_default: {
1256
+ // Intentionally empty (D22): a reflex starts with no access at all. Real
1257
+ // access is a per-reflex role derived from its first rehearsal, not a
1258
+ // shared default.
1259
+ system: [],
1260
+ object: []
1244
1261
  }
1245
1262
  };
1246
1263
  function isDefaultRole(roleName) {
@@ -0,0 +1,39 @@
1
+ import { A as Attribute, f as AttributeType } from './attributes-lBLiOIY3.mjs';
2
+
3
+ type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
4
+ type SchemaOperation = {
5
+ type: "add_attribute";
6
+ attribute: Attribute;
7
+ } | {
8
+ type: "remove_attribute";
9
+ name: string;
10
+ backup_config: Attribute;
11
+ } | {
12
+ type: "rename_attribute";
13
+ from: string;
14
+ to: string;
15
+ } | {
16
+ type: "change_type";
17
+ name: string;
18
+ from: AttributeType;
19
+ to: AttributeType;
20
+ transform?: BuiltInTransform;
21
+ } | {
22
+ type: "update_config";
23
+ name: string;
24
+ from: Partial<Record<string, unknown>>;
25
+ to: Partial<Record<string, unknown>>;
26
+ } | {
27
+ type: "remove_object";
28
+ backup: Record<string, unknown>;
29
+ } | {
30
+ type: "rename_object";
31
+ from: string;
32
+ to: string;
33
+ };
34
+ interface MigrationDefinition {
35
+ version: number;
36
+ operations: SchemaOperation[];
37
+ }
38
+
39
+ export type { BuiltInTransform as B, MigrationDefinition as M, SchemaOperation as S };
@@ -0,0 +1,39 @@
1
+ import { A as Attribute, f as AttributeType } from './attributes-_b3Db8vT.js';
2
+
3
+ type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
4
+ type SchemaOperation = {
5
+ type: "add_attribute";
6
+ attribute: Attribute;
7
+ } | {
8
+ type: "remove_attribute";
9
+ name: string;
10
+ backup_config: Attribute;
11
+ } | {
12
+ type: "rename_attribute";
13
+ from: string;
14
+ to: string;
15
+ } | {
16
+ type: "change_type";
17
+ name: string;
18
+ from: AttributeType;
19
+ to: AttributeType;
20
+ transform?: BuiltInTransform;
21
+ } | {
22
+ type: "update_config";
23
+ name: string;
24
+ from: Partial<Record<string, unknown>>;
25
+ to: Partial<Record<string, unknown>>;
26
+ } | {
27
+ type: "remove_object";
28
+ backup: Record<string, unknown>;
29
+ } | {
30
+ type: "rename_object";
31
+ from: string;
32
+ to: string;
33
+ };
34
+ interface MigrationDefinition {
35
+ version: number;
36
+ operations: SchemaOperation[];
37
+ }
38
+
39
+ export type { BuiltInTransform as B, MigrationDefinition as M, SchemaOperation as S };
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-DCgZhISp.mjs';
1
+ import { A as Attribute } from './attributes-lBLiOIY3.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-DUuaECJI.js';
1
+ import { A as Attribute } from './attributes-_b3Db8vT.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,9 @@
1
- export { V as ValidationMessages } from '../types-15lGDPlN.mjs';
1
+ export { V as ValidationMessages } from '../types-DNz3ITS-.mjs';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
3
3
  export { parseAttributeConfig } from './config/index.mjs';
4
- export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-B_NlMAm2.mjs';
5
- import '../attributes-DCgZhISp.mjs';
4
+ export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-uKLet0kF.mjs';
5
+ import '../attributes-lBLiOIY3.mjs';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.mjs';
8
8
  import 'zod';
9
+ import '../migrations-BXd2ZGfM.mjs';
@@ -1,8 +1,9 @@
1
- export { V as ValidationMessages } from '../types-CqZZxm_V.js';
1
+ export { V as ValidationMessages } from '../types-DqLi1tx1.js';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
3
3
  export { parseAttributeConfig } from './config/index.js';
4
- export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-B4qBjTd0.js';
5
- import '../attributes-DUuaECJI.js';
4
+ export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-eyrnPJEF.js';
5
+ import '../attributes-_b3Db8vT.js';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.js';
8
8
  import 'zod';
9
+ import '../migrations-DcuJZ8qO.js';
@@ -2,20 +2,21 @@
2
2
 
3
3
  require('../chunk-PGERPYDR.js');
4
4
  var chunkL4U5QEQL_js = require('../chunk-L4U5QEQL.js');
5
- var chunkTS3PJOMZ_js = require('../chunk-TS3PJOMZ.js');
5
+ var chunkNI3HCSYH_js = require('../chunk-NI3HCSYH.js');
6
+ require('../chunk-5WATIVCA.js');
6
7
  require('../chunk-SI34M4IC.js');
7
8
  require('../chunk-YIP5FJ5H.js');
8
9
  require('../chunk-QAF3HNKQ.js');
10
+ require('../chunk-EW5XR2X3.js');
9
11
  require('../chunk-QWKLQRBX.js');
10
12
  require('../chunk-KNGWHQLR.js');
11
13
  require('../chunk-HTSTPTNZ.js');
12
14
  require('../chunk-V2UA2D4E.js');
13
- require('../chunk-5WATIVCA.js');
15
+ require('../chunk-ZBQEMIAV.js');
14
16
  require('../chunk-ACKMC6FL.js');
15
17
  require('../chunk-E6JUYGJX.js');
16
18
  require('../chunk-EBGRZUIH.js');
17
19
  require('../chunk-EEH4XQ7W.js');
18
- require('../chunk-EW5XR2X3.js');
19
20
  var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
20
21
 
21
22
 
@@ -26,27 +27,27 @@ Object.defineProperty(exports, "parseAttributeConfig", {
26
27
  });
27
28
  Object.defineProperty(exports, "createFormAttributeValidator", {
28
29
  enumerable: true,
29
- get: function () { return chunkTS3PJOMZ_js.createFormAttributeValidator; }
30
+ get: function () { return chunkNI3HCSYH_js.createFormAttributeValidator; }
30
31
  });
31
32
  Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
32
33
  enumerable: true,
33
- get: function () { return chunkTS3PJOMZ_js.rejectUnknownAttributesOrThrow; }
34
+ get: function () { return chunkNI3HCSYH_js.rejectUnknownAttributesOrThrow; }
34
35
  });
35
36
  Object.defineProperty(exports, "validateDraft", {
36
37
  enumerable: true,
37
- get: function () { return chunkTS3PJOMZ_js.validateDraft; }
38
+ get: function () { return chunkNI3HCSYH_js.validateDraft; }
38
39
  });
39
40
  Object.defineProperty(exports, "validateDraftOrThrow", {
40
41
  enumerable: true,
41
- get: function () { return chunkTS3PJOMZ_js.validateDraftOrThrow; }
42
+ get: function () { return chunkNI3HCSYH_js.validateDraftOrThrow; }
42
43
  });
43
44
  Object.defineProperty(exports, "validateObject", {
44
45
  enumerable: true,
45
- get: function () { return chunkTS3PJOMZ_js.validateObject; }
46
+ get: function () { return chunkNI3HCSYH_js.validateObject; }
46
47
  });
47
48
  Object.defineProperty(exports, "validateObjectOrThrow", {
48
49
  enumerable: true,
49
- get: function () { return chunkTS3PJOMZ_js.validateObjectOrThrow; }
50
+ get: function () { return chunkNI3HCSYH_js.validateObjectOrThrow; }
50
51
  });
51
52
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
52
53
  enumerable: true,
@@ -1,17 +1,18 @@
1
1
  import '../chunk-SP3PNHYF.mjs';
2
2
  export { parseAttributeConfig } from '../chunk-UXCJ3NI4.mjs';
3
- export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-54WDPQ6R.mjs';
3
+ export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-NGGU6BSN.mjs';
4
+ import '../chunk-OSSGN43B.mjs';
4
5
  import '../chunk-Q44QKLN4.mjs';
5
6
  import '../chunk-UANQJ2GH.mjs';
6
7
  import '../chunk-U36ZIBEM.mjs';
8
+ import '../chunk-QVLQPW3O.mjs';
7
9
  import '../chunk-ZDQ5AP26.mjs';
8
10
  import '../chunk-LV3FEUKU.mjs';
9
11
  import '../chunk-UXAHLSWC.mjs';
10
12
  import '../chunk-NS63SPNN.mjs';
11
- import '../chunk-OSSGN43B.mjs';
13
+ import '../chunk-QIWADKYA.mjs';
12
14
  import '../chunk-AYVHMVKQ.mjs';
13
15
  import '../chunk-YUFTHPOE.mjs';
14
16
  import '../chunk-JUKLL5RJ.mjs';
15
17
  import '../chunk-GO6LQADH.mjs';
16
- import '../chunk-QVLQPW3O.mjs';
17
18
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../chunk-HRQEZUAA.mjs';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { C as CurrencyAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { C as CurrencyAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { L as LocationAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { P as PhoneAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { a as RichtextAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { a as RichtextAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { U as UserAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { U as UserAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FormulaAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { F as FormulaAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FormulaAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { F as FormulaAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as RollupAttribute } from '../../attributes-DCgZhISp.mjs';
3
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
+ import { e as RollupAttribute } from '../../attributes-lBLiOIY3.mjs';
3
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as RollupAttribute } from '../../attributes-DUuaECJI.js';
3
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
+ import { e as RollupAttribute } from '../../attributes-_b3Db8vT.js';
3
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { g as AttributeType } from '../../attributes-DCgZhISp.mjs';
2
+ import { f as AttributeType } from '../../attributes-lBLiOIY3.mjs';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { g as AttributeType } from '../../attributes-DUuaECJI.js';
2
+ import { f as AttributeType } from '../../attributes-_b3Db8vT.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-15lGDPlN.mjs';
2
- export { a as ValidationResult } from '../../types-15lGDPlN.mjs';
1
+ import { V as ValidationMessages } from '../../types-DNz3ITS-.mjs';
2
+ export { a as ValidationResult } from '../../types-DNz3ITS-.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DCgZhISp.mjs';
4
+ import '../../attributes-lBLiOIY3.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-CqZZxm_V.js';
2
- export { a as ValidationResult } from '../../types-CqZZxm_V.js';
1
+ import { V as ValidationMessages } from '../../types-DqLi1tx1.js';
2
+ export { a as ValidationResult } from '../../types-DqLi1tx1.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DUuaECJI.js';
4
+ import '../../attributes-_b3Db8vT.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,10 +1,11 @@
1
- import { O as ObjectDefinition } from '../../helpers-B_NlMAm2.mjs';
2
- export { e as createAttributeValidator, c as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, f as validateAttribute, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../../helpers-B_NlMAm2.mjs';
1
+ import { O as ObjectDefinition } from '../../helpers-uKLet0kF.mjs';
2
+ export { e as createAttributeValidator, c as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, f as validateAttribute, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../../helpers-uKLet0kF.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DCgZhISp.mjs';
4
+ import '../../attributes-lBLiOIY3.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
- import '../../types-15lGDPlN.mjs';
7
+ import '../../types-DNz3ITS-.mjs';
8
+ import '../../migrations-BXd2ZGfM.mjs';
8
9
 
9
10
  /**
10
11
  * Create a Zod schema for an entire object
@@ -1,10 +1,11 @@
1
- import { O as ObjectDefinition } from '../../helpers-B4qBjTd0.js';
2
- export { e as createAttributeValidator, c as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, f as validateAttribute, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../../helpers-B4qBjTd0.js';
1
+ import { O as ObjectDefinition } from '../../helpers-eyrnPJEF.js';
2
+ export { e as createAttributeValidator, c as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, f as validateAttribute, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../../helpers-eyrnPJEF.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DUuaECJI.js';
4
+ import '../../attributes-_b3Db8vT.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
- import '../../types-CqZZxm_V.js';
7
+ import '../../types-DqLi1tx1.js';
8
+ import '../../migrations-DcuJZ8qO.js';
8
9
 
9
10
  /**
10
11
  * Create a Zod schema for an entire object
@@ -1,68 +1,69 @@
1
1
  'use strict';
2
2
 
3
- var chunkTS3PJOMZ_js = require('../../chunk-TS3PJOMZ.js');
3
+ var chunkNI3HCSYH_js = require('../../chunk-NI3HCSYH.js');
4
+ require('../../chunk-5WATIVCA.js');
4
5
  require('../../chunk-SI34M4IC.js');
5
6
  require('../../chunk-YIP5FJ5H.js');
6
7
  require('../../chunk-QAF3HNKQ.js');
8
+ require('../../chunk-EW5XR2X3.js');
7
9
  require('../../chunk-QWKLQRBX.js');
8
10
  require('../../chunk-KNGWHQLR.js');
9
11
  require('../../chunk-HTSTPTNZ.js');
10
12
  require('../../chunk-V2UA2D4E.js');
11
- require('../../chunk-5WATIVCA.js');
13
+ require('../../chunk-ZBQEMIAV.js');
12
14
  require('../../chunk-ACKMC6FL.js');
13
15
  require('../../chunk-E6JUYGJX.js');
14
16
  require('../../chunk-EBGRZUIH.js');
15
17
  require('../../chunk-EEH4XQ7W.js');
16
- require('../../chunk-EW5XR2X3.js');
17
18
  require('../../chunk-YKWSHBT5.js');
18
19
 
19
20
 
20
21
 
21
22
  Object.defineProperty(exports, "createAttributeValidator", {
22
23
  enumerable: true,
23
- get: function () { return chunkTS3PJOMZ_js.createAttributeValidator; }
24
+ get: function () { return chunkNI3HCSYH_js.createAttributeValidator; }
24
25
  });
25
26
  Object.defineProperty(exports, "createDraftValidator", {
26
27
  enumerable: true,
27
- get: function () { return chunkTS3PJOMZ_js.createDraftValidator; }
28
+ get: function () { return chunkNI3HCSYH_js.createDraftValidator; }
28
29
  });
29
30
  Object.defineProperty(exports, "createFormAttributeValidator", {
30
31
  enumerable: true,
31
- get: function () { return chunkTS3PJOMZ_js.createFormAttributeValidator; }
32
+ get: function () { return chunkNI3HCSYH_js.createFormAttributeValidator; }
32
33
  });
33
34
  Object.defineProperty(exports, "createObjectValidator", {
34
35
  enumerable: true,
35
- get: function () { return chunkTS3PJOMZ_js.createObjectValidator; }
36
+ get: function () { return chunkNI3HCSYH_js.createObjectValidator; }
36
37
  });
37
38
  Object.defineProperty(exports, "getMissingRequiredAttributes", {
38
39
  enumerable: true,
39
- get: function () { return chunkTS3PJOMZ_js.getMissingRequiredAttributes; }
40
+ get: function () { return chunkNI3HCSYH_js.getMissingRequiredAttributes; }
40
41
  });
41
42
  Object.defineProperty(exports, "isRecordComplete", {
42
43
  enumerable: true,
43
- get: function () { return chunkTS3PJOMZ_js.isRecordComplete; }
44
+ get: function () { return chunkNI3HCSYH_js.isRecordComplete; }
44
45
  });
45
46
  Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
46
47
  enumerable: true,
47
- get: function () { return chunkTS3PJOMZ_js.rejectUnknownAttributesOrThrow; }
48
+ get: function () { return chunkNI3HCSYH_js.rejectUnknownAttributesOrThrow; }
48
49
  });
49
50
  Object.defineProperty(exports, "validateAttribute", {
50
51
  enumerable: true,
51
- get: function () { return chunkTS3PJOMZ_js.validateAttribute; }
52
+ get: function () { return chunkNI3HCSYH_js.validateAttribute; }
52
53
  });
53
54
  Object.defineProperty(exports, "validateDraft", {
54
55
  enumerable: true,
55
- get: function () { return chunkTS3PJOMZ_js.validateDraft; }
56
+ get: function () { return chunkNI3HCSYH_js.validateDraft; }
56
57
  });
57
58
  Object.defineProperty(exports, "validateDraftOrThrow", {
58
59
  enumerable: true,
59
- get: function () { return chunkTS3PJOMZ_js.validateDraftOrThrow; }
60
+ get: function () { return chunkNI3HCSYH_js.validateDraftOrThrow; }
60
61
  });
61
62
  Object.defineProperty(exports, "validateObject", {
62
63
  enumerable: true,
63
- get: function () { return chunkTS3PJOMZ_js.validateObject; }
64
+ get: function () { return chunkNI3HCSYH_js.validateObject; }
64
65
  });
65
66
  Object.defineProperty(exports, "validateObjectOrThrow", {
66
67
  enumerable: true,
67
- get: function () { return chunkTS3PJOMZ_js.validateObjectOrThrow; }
68
+ get: function () { return chunkNI3HCSYH_js.validateObjectOrThrow; }
68
69
  });