@ai-matrx/records 0.98.7 → 0.98.9

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 (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{table-kind-CboiMJuE.d.cts → client-9fzhCPD5.d.cts} +2771 -4
  3. package/dist/{table-kind-B4sdlvHf.d.ts → client-DcWZjmg2.d.ts} +2771 -4
  4. package/dist/core/index.cjs +154 -3
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +109 -18
  7. package/dist/core/index.d.ts +109 -18
  8. package/dist/core/index.js +154 -3
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +52 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +11 -12
  13. package/dist/data/index.d.ts +11 -12
  14. package/dist/data/index.js +52 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-BIuPJ3Vj.d.ts → declareTable-B6ic3leL.d.ts} +3 -4
  17. package/dist/{declareTable-d-HxRmF0.d.cts → declareTable-_GwN-ERY.d.cts} +3 -4
  18. package/dist/{doors-Bx3Shs3z.d.cts → doors-Dm5q9H8Y.d.cts} +1 -1
  19. package/dist/{doors-BTifsjNv.d.ts → doors-t-Oc2l9E.d.ts} +1 -1
  20. package/dist/entity/index.d.cts +7 -7
  21. package/dist/entity/index.d.ts +7 -7
  22. package/dist/{field-CJtssH3q.d.ts → field-BIRNApm1.d.ts} +2 -2
  23. package/dist/{field-DoVl2I9K.d.cts → field-BLy8drjM.d.cts} +2 -2
  24. package/dist/forms/index.d.cts +3 -3
  25. package/dist/forms/index.d.ts +3 -3
  26. package/dist/index.cjs +45 -0
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +30 -13
  29. package/dist/index.d.ts +30 -13
  30. package/dist/index.js +45 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/memory/index.d.cts +7 -7
  33. package/dist/memory/index.d.ts +7 -7
  34. package/dist/{objectOrganization-Crk9gJUM.d.ts → objectOrganization-D5Ytjah7.d.ts} +1 -1
  35. package/dist/{objectOrganization-CUa6jjhV.d.cts → objectOrganization-zgpoUAH1.d.cts} +1 -1
  36. package/dist/{port-CRP5g9l9.d.cts → port-B9glCG2h.d.cts} +3 -3
  37. package/dist/{port-CtnELAJQ.d.ts → port-C-p-_lAu.d.ts} +3 -3
  38. package/dist/{portal-DW5NGBT0.d.ts → portal-B9HCNPTc.d.ts} +2 -2
  39. package/dist/{portal-C4N9ByaY.d.cts → portal-C_LgvDeh.d.cts} +2 -2
  40. package/dist/{ports-WwHHNwge.d.ts → ports-BE_5jz-c.d.ts} +2 -2
  41. package/dist/{ports-YIh9jrCZ.d.cts → ports-BIdYUS-C.d.cts} +2 -2
  42. package/dist/questions/index.d.cts +9 -10
  43. package/dist/questions/index.d.ts +9 -10
  44. package/dist/react/index.cjs +97 -0
  45. package/dist/react/index.cjs.map +1 -1
  46. package/dist/react/index.d.cts +86 -1
  47. package/dist/react/index.d.ts +86 -1
  48. package/dist/react/index.js +97 -0
  49. package/dist/react/index.js.map +1 -1
  50. package/dist/realtime/index.d.cts +3 -3
  51. package/dist/realtime/index.d.ts +3 -3
  52. package/dist/{record-CxGK1OEK.d.cts → record-BrJNCmH1.d.cts} +1 -1
  53. package/dist/{record-CxGK1OEK.d.ts → record-BrJNCmH1.d.ts} +1 -1
  54. package/dist/{relation-Dh-lCkkh.d.ts → relation-BxGXLRaG.d.ts} +3 -3
  55. package/dist/{relation-DSGhM3tO.d.cts → relation-R10qQyQU.d.cts} +3 -3
  56. package/dist/{rule-DQpC7WqT.d.cts → rule-BGtYd6Pf.d.cts} +2 -2
  57. package/dist/{rule-xNwJF6Qo.d.ts → rule-BtjrE42J.d.ts} +2 -2
  58. package/dist/scopes/index.d.cts +3 -3
  59. package/dist/scopes/index.d.ts +3 -3
  60. package/dist/search/index.d.cts +1 -1
  61. package/dist/search/index.d.ts +1 -1
  62. package/dist/setup/index.cjs +52 -0
  63. package/dist/setup/index.cjs.map +1 -1
  64. package/dist/setup/index.d.cts +12 -13
  65. package/dist/setup/index.d.ts +12 -13
  66. package/dist/setup/index.js +52 -0
  67. package/dist/setup/index.js.map +1 -1
  68. package/dist/{subscription-BVCn1PVe.d.cts → subscription-BEM4B4dR.d.cts} +3 -3
  69. package/dist/{subscription-DQzPVKBR.d.ts → subscription-Ca15Z7Gu.d.ts} +3 -3
  70. package/dist/templates/index.d.cts +10 -10
  71. package/dist/templates/index.d.ts +10 -10
  72. package/dist/typed-table/index.cjs +52 -0
  73. package/dist/typed-table/index.cjs.map +1 -1
  74. package/dist/typed-table/index.d.cts +10 -11
  75. package/dist/typed-table/index.d.ts +10 -11
  76. package/dist/typed-table/index.js +52 -0
  77. package/dist/typed-table/index.js.map +1 -1
  78. package/dist/{types-3lM5f6b0.d.cts → types-5ql9_q-o.d.cts} +2 -2
  79. package/dist/{types-04kFNi3-.d.ts → types-BALEbMc8.d.ts} +2 -2
  80. package/dist/{types-DKJO83lQ.d.cts → types-BhnjvJ8U.d.cts} +2 -2
  81. package/dist/{types-SUAmeBId.d.ts → types-CURw95qc.d.ts} +2 -2
  82. package/dist/{types-DKeGkHpE.d.cts → types-DRMeL0uW.d.cts} +2 -2
  83. package/dist/{types-DJVccwh0.d.ts → types-_odOqLOe.d.ts} +2 -2
  84. package/dist/use-cases/index.d.cts +5 -5
  85. package/dist/use-cases/index.d.ts +5 -5
  86. package/dist/{validate-BIJtP2KB.d.cts → validate-Cdtk0y18.d.cts} +1 -1
  87. package/dist/{validate--y-pPc-c.d.ts → validate-ChibJPPI.d.ts} +1 -1
  88. package/dist/views/index.d.cts +9 -10
  89. package/dist/views/index.d.ts +9 -10
  90. package/package.json +2 -2
  91. package/dist/client-C1B-MNzb.d.ts +0 -2704
  92. package/dist/client-D2jAgJNn.d.cts +0 -2704
@@ -1,8 +1,8 @@
1
1
  import * as _ai_matrx_realtime from '@ai-matrx/realtime';
2
2
  import { RealtimeManager, ChannelSpec } from '@ai-matrx/realtime';
3
- import { O as OpLedger, R as RecordsRealtimePort } from '../ports-YIh9jrCZ.cjs';
4
- import '../field-DoVl2I9K.cjs';
5
- import '../record-CxGK1OEK.cjs';
3
+ import { O as OpLedger, R as RecordsRealtimePort } from '../ports-BIdYUS-C.cjs';
4
+ import '../field-BLy8drjM.cjs';
5
+ import '../record-BrJNCmH1.cjs';
6
6
 
7
7
  /**
8
8
  * The topic is a CONTRACT WITH THE DATABASE (a Postgres trigger writes it, an RLS policy parses it),
@@ -1,8 +1,8 @@
1
1
  import * as _ai_matrx_realtime from '@ai-matrx/realtime';
2
2
  import { RealtimeManager, ChannelSpec } from '@ai-matrx/realtime';
3
- import { O as OpLedger, R as RecordsRealtimePort } from '../ports-WwHHNwge.js';
4
- import '../field-CJtssH3q.js';
5
- import '../record-CxGK1OEK.js';
3
+ import { O as OpLedger, R as RecordsRealtimePort } from '../ports-BE_5jz-c.js';
4
+ import '../field-BIRNApm1.js';
5
+ import '../record-BrJNCmH1.js';
6
6
 
7
7
  /**
8
8
  * The topic is a CONTRACT WITH THE DATABASE (a Postgres trigger writes it, an RLS policy parses it),
@@ -6279,4 +6279,4 @@ interface RecordRead {
6279
6279
  version?: number | null;
6280
6280
  }
6281
6281
 
6282
- export { type Freshness as $, type Actor as A, type PredictedRefusal as B, type ComputeOn as C, type DeclarableFieldKind as D, ABSENCE_REASONS as E, type FieldSource as F, ACTOR_VOCABULARY as G, type HiddenFieldNotice as H, type AbsenceReason as I, COMPUTE_ON as J, CONTEXT_POLICIES as K, DECLARABLE_FIELD_KINDS as L, DELIVERIES as M, type Delivery as N, type OnDelete as O, type PgError as P, ENTITY_TOKENS as Q, type RecordsResult as R, type StorageMode as S, type TableType as T, type Uuid as U, type EntityToken as V, type WriteConflict as W, FIELD_SENSITIVITIES as X, FIELD_SOURCES as Y, FRESHNESS as Z, type ForbiddenEnvelopeWord as _, type RecordsError as a, KERNEL_TABLES as a0, type KernelTableName as a1, type KeysetRow as a2, MERGE_FIELD_MODIFIERS as a3, MERGE_FIELD_SEMANTIC_TYPES as a4, MERGE_FIELD_SOURCES as a5, type MergeFieldModifier as a6, type MergeFieldSemanticType as a7, type MergeFieldSource as a8, ON_DELETE as a9, type ValueAlternateKey as aA, type ValueEnvelope as aB, type ValueEnvelopeKey as aC, type ValueSource as aD, err as aE, isLockedStub as aF, isRecordsErr as aG, ok as aH, splitLockedRows as aI, unwrapRecords as aJ, OVERRIDE_POLICIES as aa, type OverridePolicy as ab, PARITY_FIELD_TYPES as ac, PER_VALUE_ACCESS_WORDS as ad, type PerValueAccessWord as ae, type ProvenancePointer as af, RELATION_BINDINGS as ag, RELATION_CARDINALITIES as ah, RELATION_FLAVORS as ai, RETIRED_ACTOR_WORDS as aj, RULE_NODE_KINDS as ak, RULE_USES as al, type RetiredActorWord as am, STORAGE_MODES as an, STORE_DOORS as ao, STORE_KNOBS as ap, STORE_REFUSAL_CODES as aq, type StoreDoorName as ar, type StoreRefusalCode as as, TABLE_DISPLAYS as at, TABLE_ORIGINS as au, TABLE_TYPES as av, type TableOrigin as aw, VALUE_ALTERNATE_KEYS as ax, VALUE_ENVELOPE_KEYS as ay, type ValueAlternate as az, type TableDisplay as b, type FieldSensitivity as c, type ContextPolicy as d, type RelationFlavor as e, type RelationCardinality as f, type RelationBinding as g, type Timestamp as h, type RuleNodeKind as i, type RuleUse as j, type RecordsErrorCode as k, type RecordDocument as l, type RecordChange as m, type RecordChangeResult as n, type RecordGraphWritten as o, type RecordRead as p, type ReadRow as q, type RecordPageSort as r, type RecordPage as s, type RecordKeysetPage as t, type StoredRecord as u, type RecordRevision as v, type ReadValue as w, type FieldBehavior as x, type ParityFieldType as y, type StaleWriteDetail as z };
6282
+ export { type MergeFieldSource as $, type Actor as A, type Delivery as B, type ComputeOn as C, type DeclarableFieldKind as D, ENTITY_TOKENS as E, type FieldSource as F, type EntityToken as G, type HiddenFieldNotice as H, FIELD_SENSITIVITIES as I, FIELD_SOURCES as J, FRESHNESS as K, type ForbiddenEnvelopeWord as L, type Freshness as M, KERNEL_TABLES as N, type OnDelete as O, type PgError as P, type KernelTableName as Q, type RecordsResult as R, type StorageMode as S, type TableType as T, type Uuid as U, type KeysetRow as V, MERGE_FIELD_MODIFIERS as W, MERGE_FIELD_SEMANTIC_TYPES as X, MERGE_FIELD_SOURCES as Y, type MergeFieldModifier as Z, type MergeFieldSemanticType as _, type RecordsError as a, ON_DELETE as a0, OVERRIDE_POLICIES as a1, type OverridePolicy as a2, PARITY_FIELD_TYPES as a3, PER_VALUE_ACCESS_WORDS as a4, type PerValueAccessWord as a5, type ProvenancePointer as a6, RELATION_BINDINGS as a7, RELATION_CARDINALITIES as a8, RELATION_FLAVORS as a9, type ValueEnvelope as aA, type ValueEnvelopeKey as aB, type ValueSource as aC, type WriteConflict as aD, err as aE, isLockedStub as aF, isRecordsErr as aG, ok as aH, splitLockedRows as aI, unwrapRecords as aJ, RETIRED_ACTOR_WORDS as aa, RULE_NODE_KINDS as ab, RULE_USES as ac, type RecordChange as ad, type RecordChangeResult as ae, type RecordGraphWritten as af, type RecordKeysetPage as ag, type RecordPage as ah, type RecordRead as ai, type RecordRevision as aj, type RetiredActorWord as ak, STORAGE_MODES as al, STORE_DOORS as am, STORE_KNOBS as an, STORE_REFUSAL_CODES as ao, type StoreDoorName as ap, type StoreRefusalCode as aq, type StoredRecord as ar, TABLE_DISPLAYS as as, TABLE_ORIGINS as at, TABLE_TYPES as au, type TableOrigin as av, VALUE_ALTERNATE_KEYS as aw, VALUE_ENVELOPE_KEYS as ax, type ValueAlternate as ay, type ValueAlternateKey as az, type TableDisplay as b, type FieldSensitivity as c, type ContextPolicy as d, type RelationFlavor as e, type RelationCardinality as f, type RelationBinding as g, type Timestamp as h, type RuleNodeKind as i, type RuleUse as j, type RecordPageSort as k, type ReadRow as l, type RecordsErrorCode as m, type RecordDocument as n, type FieldBehavior as o, type ParityFieldType as p, type StaleWriteDetail as q, type PredictedRefusal as r, type ReadValue as s, ABSENCE_REASONS as t, ACTOR_VOCABULARY as u, type AbsenceReason as v, COMPUTE_ON as w, CONTEXT_POLICIES as x, DECLARABLE_FIELD_KINDS as y, DELIVERIES as z };
@@ -6279,4 +6279,4 @@ interface RecordRead {
6279
6279
  version?: number | null;
6280
6280
  }
6281
6281
 
6282
- export { type Freshness as $, type Actor as A, type PredictedRefusal as B, type ComputeOn as C, type DeclarableFieldKind as D, ABSENCE_REASONS as E, type FieldSource as F, ACTOR_VOCABULARY as G, type HiddenFieldNotice as H, type AbsenceReason as I, COMPUTE_ON as J, CONTEXT_POLICIES as K, DECLARABLE_FIELD_KINDS as L, DELIVERIES as M, type Delivery as N, type OnDelete as O, type PgError as P, ENTITY_TOKENS as Q, type RecordsResult as R, type StorageMode as S, type TableType as T, type Uuid as U, type EntityToken as V, type WriteConflict as W, FIELD_SENSITIVITIES as X, FIELD_SOURCES as Y, FRESHNESS as Z, type ForbiddenEnvelopeWord as _, type RecordsError as a, KERNEL_TABLES as a0, type KernelTableName as a1, type KeysetRow as a2, MERGE_FIELD_MODIFIERS as a3, MERGE_FIELD_SEMANTIC_TYPES as a4, MERGE_FIELD_SOURCES as a5, type MergeFieldModifier as a6, type MergeFieldSemanticType as a7, type MergeFieldSource as a8, ON_DELETE as a9, type ValueAlternateKey as aA, type ValueEnvelope as aB, type ValueEnvelopeKey as aC, type ValueSource as aD, err as aE, isLockedStub as aF, isRecordsErr as aG, ok as aH, splitLockedRows as aI, unwrapRecords as aJ, OVERRIDE_POLICIES as aa, type OverridePolicy as ab, PARITY_FIELD_TYPES as ac, PER_VALUE_ACCESS_WORDS as ad, type PerValueAccessWord as ae, type ProvenancePointer as af, RELATION_BINDINGS as ag, RELATION_CARDINALITIES as ah, RELATION_FLAVORS as ai, RETIRED_ACTOR_WORDS as aj, RULE_NODE_KINDS as ak, RULE_USES as al, type RetiredActorWord as am, STORAGE_MODES as an, STORE_DOORS as ao, STORE_KNOBS as ap, STORE_REFUSAL_CODES as aq, type StoreDoorName as ar, type StoreRefusalCode as as, TABLE_DISPLAYS as at, TABLE_ORIGINS as au, TABLE_TYPES as av, type TableOrigin as aw, VALUE_ALTERNATE_KEYS as ax, VALUE_ENVELOPE_KEYS as ay, type ValueAlternate as az, type TableDisplay as b, type FieldSensitivity as c, type ContextPolicy as d, type RelationFlavor as e, type RelationCardinality as f, type RelationBinding as g, type Timestamp as h, type RuleNodeKind as i, type RuleUse as j, type RecordsErrorCode as k, type RecordDocument as l, type RecordChange as m, type RecordChangeResult as n, type RecordGraphWritten as o, type RecordRead as p, type ReadRow as q, type RecordPageSort as r, type RecordPage as s, type RecordKeysetPage as t, type StoredRecord as u, type RecordRevision as v, type ReadValue as w, type FieldBehavior as x, type ParityFieldType as y, type StaleWriteDetail as z };
6282
+ export { type MergeFieldSource as $, type Actor as A, type Delivery as B, type ComputeOn as C, type DeclarableFieldKind as D, ENTITY_TOKENS as E, type FieldSource as F, type EntityToken as G, type HiddenFieldNotice as H, FIELD_SENSITIVITIES as I, FIELD_SOURCES as J, FRESHNESS as K, type ForbiddenEnvelopeWord as L, type Freshness as M, KERNEL_TABLES as N, type OnDelete as O, type PgError as P, type KernelTableName as Q, type RecordsResult as R, type StorageMode as S, type TableType as T, type Uuid as U, type KeysetRow as V, MERGE_FIELD_MODIFIERS as W, MERGE_FIELD_SEMANTIC_TYPES as X, MERGE_FIELD_SOURCES as Y, type MergeFieldModifier as Z, type MergeFieldSemanticType as _, type RecordsError as a, ON_DELETE as a0, OVERRIDE_POLICIES as a1, type OverridePolicy as a2, PARITY_FIELD_TYPES as a3, PER_VALUE_ACCESS_WORDS as a4, type PerValueAccessWord as a5, type ProvenancePointer as a6, RELATION_BINDINGS as a7, RELATION_CARDINALITIES as a8, RELATION_FLAVORS as a9, type ValueEnvelope as aA, type ValueEnvelopeKey as aB, type ValueSource as aC, type WriteConflict as aD, err as aE, isLockedStub as aF, isRecordsErr as aG, ok as aH, splitLockedRows as aI, unwrapRecords as aJ, RETIRED_ACTOR_WORDS as aa, RULE_NODE_KINDS as ab, RULE_USES as ac, type RecordChange as ad, type RecordChangeResult as ae, type RecordGraphWritten as af, type RecordKeysetPage as ag, type RecordPage as ah, type RecordRead as ai, type RecordRevision as aj, type RetiredActorWord as ak, STORAGE_MODES as al, STORE_DOORS as am, STORE_KNOBS as an, STORE_REFUSAL_CODES as ao, type StoreDoorName as ap, type StoreRefusalCode as aq, type StoredRecord as ar, TABLE_DISPLAYS as as, TABLE_ORIGINS as at, TABLE_TYPES as au, type TableOrigin as av, VALUE_ALTERNATE_KEYS as aw, VALUE_ENVELOPE_KEYS as ax, type ValueAlternate as ay, type ValueAlternateKey as az, type TableDisplay as b, type FieldSensitivity as c, type ContextPolicy as d, type RelationFlavor as e, type RelationCardinality as f, type RelationBinding as g, type Timestamp as h, type RuleNodeKind as i, type RuleUse as j, type RecordPageSort as k, type ReadRow as l, type RecordsErrorCode as m, type RecordDocument as n, type FieldBehavior as o, type ParityFieldType as p, type StaleWriteDetail as q, type PredictedRefusal as r, type ReadValue as s, ABSENCE_REASONS as t, ACTOR_VOCABULARY as u, type AbsenceReason as v, COMPUTE_ON as w, CONTEXT_POLICIES as x, DECLARABLE_FIELD_KINDS as y, DELIVERIES as z };
@@ -1,5 +1,5 @@
1
- import { U as Uuid, e as RelationFlavor, O as OnDelete, g as RelationBinding, f as RelationCardinality, h as Timestamp, R as RecordsResult } from './record-CxGK1OEK.js';
2
- import { d as RecordsDataSource } from './ports-WwHHNwge.js';
1
+ import { U as Uuid, e as RelationFlavor, O as OnDelete, g as RelationBinding, f as RelationCardinality, h as Timestamp, R as RecordsResult } from './record-BrJNCmH1.js';
2
+ import { d as RecordsDataSource } from './ports-BE_5jz-c.js';
3
3
 
4
4
  /**
5
5
  * REL-6. Whether Visibility flows along this relation and the MAXIMUM access
@@ -227,4 +227,4 @@ interface SourceArchived {
227
227
  /** The typed "source archived" answer, when `value` is one; null for any other value. */
228
228
  declare function sourceArchivedOf(value: unknown): SourceArchived | null;
229
229
 
230
- export { type EntityRefWithWords as E, type RelationCoordinate as R, type SourceArchived as S, type RelationWordsManyArgs as a, type RelationIcons as b, type ReverseColumn as c, type ReverseLinksManyArgs as d, type ReverseLinks as e, type ReverseLinksFieldsArgs as f, type EntityRef as g, type EntityReferenceKind as h, REVERSE_LINKS_PAGE_MAX as i, REVERSE_LINKS_RECORDS_PER_CALL as j, type Relation as k, type RelationCarries as l, type RelationProperties as m, type RelationTarget as n, type ReverseLink as o, entityReferenceKinds as p, entityReferenceSearch as q, entityReferenceWords as r, entityRefsOf as s, entityRefsToWrite as t, isReverseField as u, sourceArchivedOf as v };
230
+ export { type EntityRefWithWords as E, REVERSE_LINKS_PAGE_MAX as R, type SourceArchived as S, type EntityRef as a, type EntityReferenceKind as b, REVERSE_LINKS_RECORDS_PER_CALL as c, type Relation as d, type RelationCarries as e, type RelationCoordinate as f, type RelationIcons as g, type RelationProperties as h, type RelationTarget as i, type RelationWordsManyArgs as j, type ReverseColumn as k, type ReverseLink as l, type ReverseLinks as m, type ReverseLinksFieldsArgs as n, type ReverseLinksManyArgs as o, entityReferenceKinds as p, entityReferenceSearch as q, entityReferenceWords as r, entityRefsOf as s, entityRefsToWrite as t, isReverseField as u, sourceArchivedOf as v };
@@ -1,5 +1,5 @@
1
- import { U as Uuid, e as RelationFlavor, O as OnDelete, g as RelationBinding, f as RelationCardinality, h as Timestamp, R as RecordsResult } from './record-CxGK1OEK.cjs';
2
- import { d as RecordsDataSource } from './ports-YIh9jrCZ.cjs';
1
+ import { U as Uuid, e as RelationFlavor, O as OnDelete, g as RelationBinding, f as RelationCardinality, h as Timestamp, R as RecordsResult } from './record-BrJNCmH1.cjs';
2
+ import { d as RecordsDataSource } from './ports-BIdYUS-C.cjs';
3
3
 
4
4
  /**
5
5
  * REL-6. Whether Visibility flows along this relation and the MAXIMUM access
@@ -227,4 +227,4 @@ interface SourceArchived {
227
227
  /** The typed "source archived" answer, when `value` is one; null for any other value. */
228
228
  declare function sourceArchivedOf(value: unknown): SourceArchived | null;
229
229
 
230
- export { type EntityRefWithWords as E, type RelationCoordinate as R, type SourceArchived as S, type RelationWordsManyArgs as a, type RelationIcons as b, type ReverseColumn as c, type ReverseLinksManyArgs as d, type ReverseLinks as e, type ReverseLinksFieldsArgs as f, type EntityRef as g, type EntityReferenceKind as h, REVERSE_LINKS_PAGE_MAX as i, REVERSE_LINKS_RECORDS_PER_CALL as j, type Relation as k, type RelationCarries as l, type RelationProperties as m, type RelationTarget as n, type ReverseLink as o, entityReferenceKinds as p, entityReferenceSearch as q, entityReferenceWords as r, entityRefsOf as s, entityRefsToWrite as t, isReverseField as u, sourceArchivedOf as v };
230
+ export { type EntityRefWithWords as E, REVERSE_LINKS_PAGE_MAX as R, type SourceArchived as S, type EntityRef as a, type EntityReferenceKind as b, REVERSE_LINKS_RECORDS_PER_CALL as c, type Relation as d, type RelationCarries as e, type RelationCoordinate as f, type RelationIcons as g, type RelationProperties as h, type RelationTarget as i, type RelationWordsManyArgs as j, type ReverseColumn as k, type ReverseLink as l, type ReverseLinks as m, type ReverseLinksFieldsArgs as n, type ReverseLinksManyArgs as o, entityReferenceKinds as p, entityReferenceSearch as q, entityReferenceWords as r, entityRefsOf as s, entityRefsToWrite as t, isReverseField as u, sourceArchivedOf as v };
@@ -1,4 +1,4 @@
1
- import { U as Uuid, i as RuleNodeKind, j as RuleUse, h as Timestamp } from './record-CxGK1OEK.cjs';
1
+ import { U as Uuid, i as RuleNodeKind, j as RuleUse, h as Timestamp } from './record-BrJNCmH1.cjs';
2
2
 
3
3
  /**
4
4
  * A rule expression as `custom.rule_eval` ACTUALLY evaluates it — read off the
@@ -247,4 +247,4 @@ declare function bookingPath(formId: string): string;
247
247
  */
248
248
  declare function publicFormPath(formId: string): string;
249
249
 
250
- export { type BookingSummary as B, type FormSummary as F, type RuleExpression as R, type BookingAvailability as a, type BookingDeclared as b, type FormRoute as c, type FormResults as d, type BookingWindow as e, type Rule as f, type RuleAnswer as g, bookingPath as h, publicFormPath as p };
250
+ export { type BookingAvailability as B, type FormSummary as F, type RuleExpression as R, type BookingDeclared as a, type BookingSummary as b, type BookingWindow as c, type FormResults as d, type FormRoute as e, type Rule as f, type RuleAnswer as g, bookingPath as h, publicFormPath as p };
@@ -1,4 +1,4 @@
1
- import { U as Uuid, i as RuleNodeKind, j as RuleUse, h as Timestamp } from './record-CxGK1OEK.js';
1
+ import { U as Uuid, i as RuleNodeKind, j as RuleUse, h as Timestamp } from './record-BrJNCmH1.js';
2
2
 
3
3
  /**
4
4
  * A rule expression as `custom.rule_eval` ACTUALLY evaluates it — read off the
@@ -247,4 +247,4 @@ declare function bookingPath(formId: string): string;
247
247
  */
248
248
  declare function publicFormPath(formId: string): string;
249
249
 
250
- export { type BookingSummary as B, type FormSummary as F, type RuleExpression as R, type BookingAvailability as a, type BookingDeclared as b, type FormRoute as c, type FormResults as d, type BookingWindow as e, type Rule as f, type RuleAnswer as g, bookingPath as h, publicFormPath as p };
250
+ export { type BookingAvailability as B, type FormSummary as F, type RuleExpression as R, type BookingDeclared as a, type BookingSummary as b, type BookingWindow as c, type FormResults as d, type FormRoute as e, type Rule as f, type RuleAnswer as g, bookingPath as h, publicFormPath as p };
@@ -1,6 +1,6 @@
1
- import { S as Scope, C as ContextValue, a as ContextField, b as ContextFieldKind, c as ContextReference } from '../doors-Bx3Shs3z.cjs';
2
- export { A as ARCHIVED_SCOPES_PAGE, d as ArchivedScope, e as ArchivedScopeType, f as CONTEXT_FIELD_KINDS, g as ContextFieldSpec, h as ContextPolicy, i as ContextSensitivity, j as ContextValueWrite, k as ContextValueWritten, F as FIELD_KERNEL_ID, l as FILE_KERNEL_ID, I as INCOMPLETE_SAVE_REFUSAL, m as IncompleteValue, R as ReadContextFileText, n as SCOPES_PER_CALL, o as SCOPES_PER_VALUES_CALL, p as SCOPE_TYPES_PER_FIELDS_CALL, q as SYSTEM_CONTEXT_TYPE_ID, r as ScopeDoorCall, s as ScopeDoors, t as ScopePage, u as ScopeSpec, v as ScopeTemplate, w as ScopeType, x as ScopeTypeLabel, y as ScopeTypeSkeleton, z as ScopeTypeSpec, B as ScopeTypeWithScopes, D as ScopeWithType, E as StoreSystemItemRow, G as StoreWholeValue, H as SystemContextField, J as SystemContextItemClass, T as TYPE_SCOPES_PAGE, K as TableTemplate, L as TableTemplateField, M as completeWholeValues, N as contextFieldFromStore, O as contextFieldKind, P as contextValueFromStore, Q as contextValueWrite, U as createScopeDoors, V as incompleteSaveRefusal, W as referenceFence, X as referencesFromFence, Y as referencesOf, Z as scopeFromStore, _ as scopeTypeFromStore, $ as scopeWithTypeFromStore, a0 as settingFromStore, a1 as systemContextFieldFromStore } from '../doors-Bx3Shs3z.cjs';
3
- import { U as Uuid, R as RecordsResult } from '../record-CxGK1OEK.cjs';
1
+ import { S as Scope, C as ContextValue, a as ContextField, b as ContextFieldKind, c as ContextReference } from '../doors-Dm5q9H8Y.cjs';
2
+ export { A as ARCHIVED_SCOPES_PAGE, d as ArchivedScope, e as ArchivedScopeType, f as CONTEXT_FIELD_KINDS, g as ContextFieldSpec, h as ContextPolicy, i as ContextSensitivity, j as ContextValueWrite, k as ContextValueWritten, F as FIELD_KERNEL_ID, l as FILE_KERNEL_ID, I as INCOMPLETE_SAVE_REFUSAL, m as IncompleteValue, R as ReadContextFileText, n as SCOPES_PER_CALL, o as SCOPES_PER_VALUES_CALL, p as SCOPE_TYPES_PER_FIELDS_CALL, q as SYSTEM_CONTEXT_TYPE_ID, r as ScopeDoorCall, s as ScopeDoors, t as ScopePage, u as ScopeSpec, v as ScopeTemplate, w as ScopeType, x as ScopeTypeLabel, y as ScopeTypeSkeleton, z as ScopeTypeSpec, B as ScopeTypeWithScopes, D as ScopeWithType, E as StoreSystemItemRow, G as StoreWholeValue, H as SystemContextField, J as SystemContextItemClass, T as TYPE_SCOPES_PAGE, K as TableTemplate, L as TableTemplateField, M as completeWholeValues, N as contextFieldFromStore, O as contextFieldKind, P as contextValueFromStore, Q as contextValueWrite, U as createScopeDoors, V as incompleteSaveRefusal, W as referenceFence, X as referencesFromFence, Y as referencesOf, Z as scopeFromStore, _ as scopeTypeFromStore, $ as scopeWithTypeFromStore, a0 as settingFromStore, a1 as systemContextFieldFromStore } from '../doors-Dm5q9H8Y.cjs';
3
+ import { U as Uuid, R as RecordsResult } from '../record-BrJNCmH1.cjs';
4
4
 
5
5
  /** An organization role, as `iam.organization_member` holds it. */
6
6
  type ScopeSeatRole = "owner" | "admin" | "member" | string;
@@ -1,6 +1,6 @@
1
- import { S as Scope, C as ContextValue, a as ContextField, b as ContextFieldKind, c as ContextReference } from '../doors-BTifsjNv.js';
2
- export { A as ARCHIVED_SCOPES_PAGE, d as ArchivedScope, e as ArchivedScopeType, f as CONTEXT_FIELD_KINDS, g as ContextFieldSpec, h as ContextPolicy, i as ContextSensitivity, j as ContextValueWrite, k as ContextValueWritten, F as FIELD_KERNEL_ID, l as FILE_KERNEL_ID, I as INCOMPLETE_SAVE_REFUSAL, m as IncompleteValue, R as ReadContextFileText, n as SCOPES_PER_CALL, o as SCOPES_PER_VALUES_CALL, p as SCOPE_TYPES_PER_FIELDS_CALL, q as SYSTEM_CONTEXT_TYPE_ID, r as ScopeDoorCall, s as ScopeDoors, t as ScopePage, u as ScopeSpec, v as ScopeTemplate, w as ScopeType, x as ScopeTypeLabel, y as ScopeTypeSkeleton, z as ScopeTypeSpec, B as ScopeTypeWithScopes, D as ScopeWithType, E as StoreSystemItemRow, G as StoreWholeValue, H as SystemContextField, J as SystemContextItemClass, T as TYPE_SCOPES_PAGE, K as TableTemplate, L as TableTemplateField, M as completeWholeValues, N as contextFieldFromStore, O as contextFieldKind, P as contextValueFromStore, Q as contextValueWrite, U as createScopeDoors, V as incompleteSaveRefusal, W as referenceFence, X as referencesFromFence, Y as referencesOf, Z as scopeFromStore, _ as scopeTypeFromStore, $ as scopeWithTypeFromStore, a0 as settingFromStore, a1 as systemContextFieldFromStore } from '../doors-BTifsjNv.js';
3
- import { U as Uuid, R as RecordsResult } from '../record-CxGK1OEK.js';
1
+ import { S as Scope, C as ContextValue, a as ContextField, b as ContextFieldKind, c as ContextReference } from '../doors-t-Oc2l9E.js';
2
+ export { A as ARCHIVED_SCOPES_PAGE, d as ArchivedScope, e as ArchivedScopeType, f as CONTEXT_FIELD_KINDS, g as ContextFieldSpec, h as ContextPolicy, i as ContextSensitivity, j as ContextValueWrite, k as ContextValueWritten, F as FIELD_KERNEL_ID, l as FILE_KERNEL_ID, I as INCOMPLETE_SAVE_REFUSAL, m as IncompleteValue, R as ReadContextFileText, n as SCOPES_PER_CALL, o as SCOPES_PER_VALUES_CALL, p as SCOPE_TYPES_PER_FIELDS_CALL, q as SYSTEM_CONTEXT_TYPE_ID, r as ScopeDoorCall, s as ScopeDoors, t as ScopePage, u as ScopeSpec, v as ScopeTemplate, w as ScopeType, x as ScopeTypeLabel, y as ScopeTypeSkeleton, z as ScopeTypeSpec, B as ScopeTypeWithScopes, D as ScopeWithType, E as StoreSystemItemRow, G as StoreWholeValue, H as SystemContextField, J as SystemContextItemClass, T as TYPE_SCOPES_PAGE, K as TableTemplate, L as TableTemplateField, M as completeWholeValues, N as contextFieldFromStore, O as contextFieldKind, P as contextValueFromStore, Q as contextValueWrite, U as createScopeDoors, V as incompleteSaveRefusal, W as referenceFence, X as referencesFromFence, Y as referencesOf, Z as scopeFromStore, _ as scopeTypeFromStore, $ as scopeWithTypeFromStore, a0 as settingFromStore, a1 as systemContextFieldFromStore } from '../doors-t-Oc2l9E.js';
3
+ import { U as Uuid, R as RecordsResult } from '../record-BrJNCmH1.js';
4
4
 
5
5
  /** An organization role, as `iam.organization_member` holds it. */
6
6
  type ScopeSeatRole = "owner" | "admin" | "member" | string;
@@ -1,4 +1,4 @@
1
- import { U as Uuid, R as RecordsResult } from '../record-CxGK1OEK.cjs';
1
+ import { U as Uuid, R as RecordsResult } from '../record-BrJNCmH1.cjs';
2
2
 
3
3
  declare const STORE_RECORD_SEARCH_MIN_CHARS = 2;
4
4
  /** One record the search door found. */
@@ -1,4 +1,4 @@
1
- import { U as Uuid, R as RecordsResult } from '../record-CxGK1OEK.js';
1
+ import { U as Uuid, R as RecordsResult } from '../record-BrJNCmH1.js';
2
2
 
3
3
  declare const STORE_RECORD_SEARCH_MIN_CHARS = 2;
4
4
  /** One record the search door found. */
@@ -2543,6 +2543,14 @@ var DOORS = {
2543
2543
  // archived and aliased), and put any recorded Migration back.
2544
2544
  migrateMerge: "migrate_merge",
2545
2545
  migrateUndo: "migrate_undo",
2546
+ // CORE-VISION (2026-10-10): the structural Migrations a person runs on ONE record from its menu.
2547
+ // Split moves the named values to a new record of the same Table (the original keeps its id);
2548
+ // extract parent copies the named values up into a new record of another Table and puts this
2549
+ // record under it. Both answer a `migration_id` that `migrateUndo` takes. `migrations` lists
2550
+ // the Migration log for one target, newest first.
2551
+ migrateSplit: "migrate_split",
2552
+ migrateExtractParent: "migrate_extract_parent",
2553
+ migrations: "migrations",
2546
2554
  recordValues: "record_values",
2547
2555
  recordValuesVersioned: "record_values_versioned",
2548
2556
  valueRead: "value_read",
@@ -4465,6 +4473,49 @@ function createRecordsClient(given) {
4465
4473
  }
4466
4474
  return result;
4467
4475
  },
4476
+ async migrateSplit({ record_id, moved_keys, note }) {
4477
+ const result = await callDoor(
4478
+ DOORS.migrateSplit,
4479
+ { p_organization_id: org, p_record_id: record_id, p_moved_keys: moved_keys, p_note: note ?? null },
4480
+ "migrateSplit"
4481
+ );
4482
+ if (result.ok) {
4483
+ announceRecordChanged(record_id);
4484
+ announceRecordChanged(result.data.new_record);
4485
+ }
4486
+ return result;
4487
+ },
4488
+ async migrateExtractParent({ record_id, parent_table_id, moved_keys, note }) {
4489
+ const result = await callDoor(
4490
+ DOORS.migrateExtractParent,
4491
+ { p_organization_id: org, p_id: record_id, p_parent_table_id: parent_table_id, p_moved_keys: moved_keys, p_note: note ?? null },
4492
+ "migrateExtractParent"
4493
+ );
4494
+ if (result.ok) {
4495
+ announceRecordChanged(record_id);
4496
+ announceRecordChanged(result.data.parent);
4497
+ }
4498
+ return result;
4499
+ },
4500
+ async migrations({ target_id, limit }) {
4501
+ return callDoor(
4502
+ DOORS.migrations,
4503
+ { p_organization_id: org, p_target_id: target_id ?? null, p_limit: limit ?? 100 },
4504
+ "migrations"
4505
+ );
4506
+ },
4507
+ async recordAsOf({ record_id, recorded_at, world_on }) {
4508
+ return callDoor(
4509
+ DOORS.queryRecordAsOf,
4510
+ {
4511
+ p_organization_id: org,
4512
+ p_record_id: record_id,
4513
+ ...recorded_at ? { p_recorded_at: recorded_at } : {},
4514
+ ...world_on ? { p_world_on: world_on.slice(0, 10) } : {}
4515
+ },
4516
+ "recordAsOf"
4517
+ );
4518
+ },
4468
4519
  async migrateUndo({ migration_id }) {
4469
4520
  const result = await callDoor(
4470
4521
  DOORS.migrateUndo,
@@ -4472,6 +4523,7 @@ function createRecordsClient(given) {
4472
4523
  "migrateUndo"
4473
4524
  );
4474
4525
  if (result.ok && result.data.record_id) announceRecordChanged(result.data.record_id);
4526
+ if (result.ok && result.data.removed) announceRecordChanged(result.data.removed);
4475
4527
  return result;
4476
4528
  },
4477
4529
  async fieldUpdate({ field_id, patch }) {