@xnetjs/data 0.12.0 → 2.0.0

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 (160) hide show
  1. package/dist/account-ZD3HMRY6.js +12 -0
  2. package/dist/{account-ledger-R2GAFJL6.js → account-ledger-ZHBNVREV.js} +3 -3
  3. package/dist/auth/index.d.ts +15 -5
  4. package/dist/auth/index.js +1 -1
  5. package/dist/budget-FTGZEXX6.js +12 -0
  6. package/dist/canvas-NQBTRNLS.js +10 -0
  7. package/dist/channel-474QAZGP.js +12 -0
  8. package/dist/chat-message-LGLCITLE.js +10 -0
  9. package/dist/checkpoint-MZHJ7PCZ.js +12 -0
  10. package/dist/{chunk-VQ7JHB67.js → chunk-22FKOLMX.js} +2 -2
  11. package/dist/{chunk-LYSWLCOI.js → chunk-26HTTVJN.js} +2 -2
  12. package/dist/{chunk-PH3PVAR6.js → chunk-3PV6QTKF.js} +2 -2
  13. package/dist/{chunk-KQUALW4O.js → chunk-4KJ4NAMC.js} +1 -1
  14. package/dist/{chunk-JFMLCFZJ.js → chunk-4S73XDWH.js} +585 -230
  15. package/dist/{chunk-U64CW73O.js → chunk-52DR23IW.js} +2 -2
  16. package/dist/{chunk-SVNGSZZA.js → chunk-57UZYV3L.js} +2 -2
  17. package/dist/{chunk-QVQVKZ3U.js → chunk-5UJMY3AH.js} +6 -5
  18. package/dist/chunk-6ZUJID52.js +41 -0
  19. package/dist/{chunk-3J3HILXO.js → chunk-7PCMTV6J.js} +2 -2
  20. package/dist/{chunk-YSUIXD2Y.js → chunk-C4CQH7UD.js} +2 -2
  21. package/dist/{chunk-PNESGUH5.js → chunk-D4EVJN2P.js} +2 -2
  22. package/dist/{chunk-RL64OJJ5.js → chunk-D4LUUZYD.js} +36 -9
  23. package/dist/{chunk-Q67VT5XL.js → chunk-DESSPQBS.js} +59 -10
  24. package/dist/{chunk-W7EBL7ZU.js → chunk-DP4Q2HMO.js} +2 -2
  25. package/dist/{chunk-5EXHNXPL.js → chunk-DPJ4T2LQ.js} +2 -2
  26. package/dist/{chunk-BQLQSWKZ.js → chunk-EN6XTVLZ.js} +2 -2
  27. package/dist/{chunk-TORDOOJ5.js → chunk-EYRZ6ZUB.js} +1 -1
  28. package/dist/{chunk-NI4FHG2K.js → chunk-EZTBWWMS.js} +2 -2
  29. package/dist/{chunk-UQM3G5A2.js → chunk-FWCM2TKJ.js} +2 -2
  30. package/dist/{chunk-OSAWNZVM.js → chunk-GCTONBF6.js} +1 -1
  31. package/dist/{chunk-2ZNJWIQG.js → chunk-HPUXHSKR.js} +2 -2
  32. package/dist/{chunk-ZPZ7XDA6.js → chunk-HTZTBXKL.js} +2 -2
  33. package/dist/{chunk-MCKP4F72.js → chunk-I7JMGCV6.js} +26 -5
  34. package/dist/{chunk-OGJCRNGE.js → chunk-IA23CLGV.js} +2 -2
  35. package/dist/{chunk-YEFKQYKA.js → chunk-IKGUBSZP.js} +2 -2
  36. package/dist/{chunk-XMSKJ5PV.js → chunk-IKI5FBNO.js} +2 -2
  37. package/dist/{chunk-OCMSAKWV.js → chunk-JA56EQJO.js} +15 -3
  38. package/dist/{chunk-TCTZW4A6.js → chunk-JLUFPUIL.js} +2 -2
  39. package/dist/{chunk-WEPK7SZF.js → chunk-KTPSQJ5L.js} +2 -2
  40. package/dist/{chunk-T5AZAOG5.js → chunk-LK5ZIAIE.js} +1 -1
  41. package/dist/{chunk-XROI44ZP.js → chunk-M4KGY2PC.js} +2 -2
  42. package/dist/chunk-MEAIGK3W.js +58 -0
  43. package/dist/{chunk-QJW5LDP4.js → chunk-NSMSOIEW.js} +2 -2
  44. package/dist/{chunk-FB63TZVI.js → chunk-OF6455OV.js} +2 -2
  45. package/dist/{chunk-6OMG4I7M.js → chunk-OIWW5TG3.js} +2 -2
  46. package/dist/{chunk-6KLGA6IR.js → chunk-Q6VTTPG4.js} +2 -2
  47. package/dist/{chunk-J4ANIXIV.js → chunk-QDLWTOII.js} +2 -2
  48. package/dist/{chunk-EBNMV2VO.js → chunk-RRXJNZX5.js} +1 -1
  49. package/dist/{chunk-FVEACSKE.js → chunk-RXBLWQQI.js} +2 -2
  50. package/dist/{chunk-L7NRPLE5.js → chunk-S6JWYPVW.js} +2 -2
  51. package/dist/{chunk-JDFNMFOZ.js → chunk-SOXXBQ4P.js} +2 -2
  52. package/dist/{chunk-4EYKGTSQ.js → chunk-T45PWXNA.js} +2 -2
  53. package/dist/{chunk-MD553LDL.js → chunk-TRPXLCND.js} +2 -2
  54. package/dist/{chunk-ZMZSBJBC.js → chunk-U223J425.js} +174 -170
  55. package/dist/{chunk-ZCOFZY5M.js → chunk-UUQVNDBG.js} +2 -2
  56. package/dist/{chunk-53F4PRNC.js → chunk-W3QOEPUN.js} +2 -2
  57. package/dist/{chunk-S6U6TCMN.js → chunk-WC7EDJHC.js} +2 -2
  58. package/dist/{chunk-KQAT4XBL.js → chunk-WWQO7QKV.js} +2 -2
  59. package/dist/{chunk-BY5O6LNC.js → chunk-XJBDESCX.js} +1 -1
  60. package/dist/{chunk-ZZ6TWKGS.js → chunk-XQDXQ7WG.js} +2 -2
  61. package/dist/{chunk-MBTUO3ZL.js → chunk-YD2ZPFT7.js} +2 -2
  62. package/dist/{chunk-ZLU4Y3O2.js → chunk-YHO7GNZK.js} +2 -2
  63. package/dist/{chunk-Y3S5SRVM.js → chunk-YSD4NSCE.js} +2 -2
  64. package/dist/chunk-Z5I2T75Z.js +70 -0
  65. package/dist/{chunk-IJ44LR7N.js → chunk-ZKJXGQCR.js} +2 -2
  66. package/dist/{chunk-GU6THOAB.js → chunk-ZKMWJNDQ.js} +2 -2
  67. package/dist/{chunk-OPPHF3TF.js → chunk-ZKVRGKLM.js} +3 -3
  68. package/dist/{clone-CbmoWwu4.d.ts → clone-DNcpkYAA.d.ts} +2 -2
  69. package/dist/comment-IAZJHG6G.js +10 -0
  70. package/dist/{crm-L5RYAAF3.js → crm-AFJSSPHK.js} +5 -5
  71. package/dist/dashboard-2DLFZM2J.js +10 -0
  72. package/dist/database/index.d.ts +3 -3
  73. package/dist/database/index.js +11 -11
  74. package/dist/database-5M7ZA33U.js +10 -0
  75. package/dist/database-field-IFUWOK7X.js +10 -0
  76. package/dist/database-row-C52KCOPB.js +10 -0
  77. package/dist/database-select-option-AEAPKXEE.js +10 -0
  78. package/dist/database-view-GUGJHS7J.js +10 -0
  79. package/dist/debug-report-BTNZAKX3.js +10 -0
  80. package/dist/draft-KGHITKX2.js +10 -0
  81. package/dist/experiment-JXHENWXV.js +10 -0
  82. package/dist/{external-item-P2E5X7BZ.js → external-item-ZVD33IXV.js} +5 -5
  83. package/dist/external-reference-LGFNVEKC.js +8 -0
  84. package/dist/feed-CLEHVA6Q.js +12 -0
  85. package/dist/feed-item-QXRIE6FU.js +12 -0
  86. package/dist/{folder-6KM3KYD5.js → folder-NU5TJFOT.js} +3 -3
  87. package/dist/{game-5AK5XWBR.js → game-7WW2JX6O.js} +5 -5
  88. package/dist/grant-W772T6FE.js +8 -0
  89. package/dist/{grant-expiration-cleaner-Bm1fSG42.d.ts → grant-expiration-cleaner-1by9wRlb.d.ts} +7 -2
  90. package/dist/import-batch-ZRU4FY6Y.js +12 -0
  91. package/dist/{inbox-state-E5NSVOGP.js → inbox-state-IO5C7HVE.js} +3 -3
  92. package/dist/index.d.ts +8 -7
  93. package/dist/index.js +175 -157
  94. package/dist/map-BZAVGCR6.js +10 -0
  95. package/dist/media-asset-VHFL65HI.js +8 -0
  96. package/dist/{meeting-LMUYTZBF.js → meeting-PVNKBGTI.js} +5 -5
  97. package/dist/{memory-PNRTMBZO.js → memory-5PD3XCKB.js} +3 -3
  98. package/dist/metric-6IGGFJMB.js +10 -0
  99. package/dist/milestone-MZAZCWGR.js +12 -0
  100. package/dist/{moderation-FFHETMRB.js → moderation-CXQB77CP.js} +3 -3
  101. package/dist/observation-O3DLKVIH.js +10 -0
  102. package/dist/page-UE5NPYEF.js +10 -0
  103. package/dist/posting-5VZZMOKS.js +12 -0
  104. package/dist/{profile-XBPZQA3C.js → profile-USKJ6PN7.js} +3 -3
  105. package/dist/project-UHGGEFLP.js +10 -0
  106. package/dist/{query-ast-Bvg0Wolx.d.ts → query-ast-NV5StnHo.d.ts} +1 -1
  107. package/dist/reaction-KD3G75UH.js +10 -0
  108. package/dist/{registry-_49rC6IG.d.ts → registry-s1fYgCSj.d.ts} +1 -1
  109. package/dist/saved-view-AZTUINZA.js +10 -0
  110. package/dist/schema/index.d.ts +173 -12
  111. package/dist/schema/index.js +96 -80
  112. package/dist/{schema-extension-LNRF2YRD.js → schema-extension-DV5D7JCQ.js} +5 -5
  113. package/dist/{space-IJU24PBH.js → space-THD2MWHR.js} +6 -6
  114. package/dist/{space-membership-DEUMM7NV.js → space-membership-M3QFMONE.js} +3 -3
  115. package/dist/store/index.d.ts +18 -5
  116. package/dist/store/index.js +4 -4
  117. package/dist/{store-DEWnip2G.d.ts → store-BIDKtpjW.d.ts} +56 -1
  118. package/dist/{system-ILHCZOVO.js → system-LFIMY3QQ.js} +3 -3
  119. package/dist/{tag-SKCHM3U5.js → tag-W7ZYPXHK.js} +3 -3
  120. package/dist/{task-7AOBP7WC.js → task-DHTPD66H.js} +5 -5
  121. package/dist/task-view-J2WRE62C.js +10 -0
  122. package/dist/transaction-ANNDXCJM.js +12 -0
  123. package/dist/transcription-DFTQ4FQ4.js +12 -0
  124. package/dist/{types-BB8-SLEa.d.ts → types-C64g-IXg.d.ts} +87 -2
  125. package/dist/user-widget-5IRVORF3.js +8 -0
  126. package/dist/workspace-RC4V4IF3.js +8 -0
  127. package/package.json +7 -7
  128. package/dist/account-MWNCH4GJ.js +0 -12
  129. package/dist/budget-NN7P35XP.js +0 -12
  130. package/dist/canvas-6WYBNH53.js +0 -10
  131. package/dist/channel-AT3LQF4A.js +0 -12
  132. package/dist/chat-message-47LETTYF.js +0 -10
  133. package/dist/comment-NIMFL4XB.js +0 -10
  134. package/dist/dashboard-JMKTTRA7.js +0 -10
  135. package/dist/database-GIXSPZJW.js +0 -10
  136. package/dist/database-field-3EPAMZUR.js +0 -10
  137. package/dist/database-row-5MEIOJ52.js +0 -10
  138. package/dist/database-select-option-BBBJFLLH.js +0 -10
  139. package/dist/database-view-DM7YCTZT.js +0 -10
  140. package/dist/experiment-DOVOZ34Y.js +0 -10
  141. package/dist/external-reference-7BSFF6SA.js +0 -8
  142. package/dist/feed-2IXHHP6O.js +0 -12
  143. package/dist/feed-item-DPE6LN7I.js +0 -12
  144. package/dist/grant-WTQSNT5A.js +0 -8
  145. package/dist/import-batch-IXBJLQPJ.js +0 -12
  146. package/dist/map-RG5Y3CPC.js +0 -10
  147. package/dist/media-asset-QTCGLIZA.js +0 -8
  148. package/dist/metric-65SVOX5C.js +0 -10
  149. package/dist/milestone-XEO6ZGDG.js +0 -12
  150. package/dist/observation-2Y3QKUXM.js +0 -10
  151. package/dist/page-2V27JGKJ.js +0 -10
  152. package/dist/posting-GBOSZCMZ.js +0 -12
  153. package/dist/project-CQL5LN26.js +0 -10
  154. package/dist/reaction-T2DTJBBV.js +0 -10
  155. package/dist/saved-view-4R2DBCL3.js +0 -10
  156. package/dist/task-view-NUGKELJP.js +0 -10
  157. package/dist/transaction-ZDSEGDIR.js +0 -12
  158. package/dist/transcription-PSCLDAGX.js +0 -12
  159. package/dist/user-widget-RLY2N46A.js +0 -8
  160. package/dist/workspace-WDKSQMOK.js +0 -8
@@ -231,7 +231,7 @@ interface NodeQueryDescriptor {
231
231
  authFingerprint?: string;
232
232
  }
233
233
  interface NodeQueryPlanMetadata {
234
- strategy: 'storage-query' | 'list-fallback' | 'auth-pushdown-candidates';
234
+ strategy: 'storage-query' | 'list-fallback' | 'auth-pushdown-candidates' | 'draft-overlay';
235
235
  candidateNodeCount: number;
236
236
  hydratedNodeCount: number;
237
237
  returnedNodeCount: number;
@@ -444,6 +444,12 @@ interface StoreAuthAPI {
444
444
  action: AuthAction;
445
445
  nodeId: string;
446
446
  patch?: Record<string, unknown>;
447
+ /** Draft node for create checks (0304) — evaluated when nodeId is not stored. */
448
+ node?: {
449
+ schemaId: SchemaIRI;
450
+ createdBy?: DID$1;
451
+ properties?: Record<string, unknown>;
452
+ };
447
453
  }): Promise<AuthDecision>;
448
454
  explain(input: {
449
455
  action: AuthAction;
@@ -546,6 +552,11 @@ declare class StoreAuth implements StoreAuthAPI {
546
552
  action: AuthAction;
547
553
  nodeId: string;
548
554
  patch?: Record<string, unknown>;
555
+ node?: {
556
+ schemaId: SchemaIRI;
557
+ createdBy?: DID$1;
558
+ properties?: Record<string, unknown>;
559
+ };
549
560
  }): Promise<AuthDecision>;
550
561
  explain(input: {
551
562
  action: AuthAction;
@@ -777,6 +788,12 @@ interface PropertyTimestamp {
777
788
  author: DID$1;
778
789
  /** Wall clock time (for display) */
779
790
  wallTime: number;
791
+ /**
792
+ * Grinding-resistant LWW tiebreak key (exploration 0305;
793
+ * `computeLwwTiebreakKey`). Present only for protocol v4+ writes; absent
794
+ * (legacy) timestamps fall back to the author-DID tiebreak.
795
+ */
796
+ tiebreakKey?: string;
780
797
  }
781
798
  /**
782
799
  * Materialized Node state with LWW metadata.
@@ -942,6 +959,74 @@ interface NodeStorageAdapter {
942
959
  setAppState?(key: string, value: string): Promise<void>;
943
960
  getDocumentContent(nodeId: NodeId): Promise<Uint8Array | null>;
944
961
  setDocumentContent(nodeId: NodeId, content: Uint8Array): Promise<void>;
962
+ /**
963
+ * Pin registry (exploration 0329): keys pinned here are exempt from history
964
+ * pruning and Yjs snapshot eviction. A key is either a change hash or a
965
+ * `yjs:<nodeId>@<timestamp>` snapshot ref; owners (checkpoints, drafts)
966
+ * release all their pins in one call when they are deleted. Blobs are NOT
967
+ * pinned — referenced blobs past retention are an explicit blob horizon.
968
+ * Optional: without it, pruning behaves as before (nothing is protected).
969
+ */
970
+ pins?: PinRegistry;
971
+ }
972
+ /**
973
+ * Checked-out draft overlay (exploration 0329): while set on a NodeStore,
974
+ * reads of an original member id return its clone's content (under the
975
+ * original id — MV id lists and grid ordering never see clone ids), writes
976
+ * to members redirect to their clones, and the first write to a not-yet-
977
+ * forked member triggers `onMissingMember` (lazy copy-on-write, wired to
978
+ * `forkNodeIntoDraft`). Only ids in `members` are overlay-managed — all
979
+ * other reads/writes pass through untouched, so bookkeeping writes (the
980
+ * draft node itself, profiles, unrelated content) never fork.
981
+ */
982
+ interface CheckedOutDraftOverlay {
983
+ /** The Draft node that owns this checkout. */
984
+ draftId: NodeId;
985
+ /**
986
+ * The draft's declared scope: ids eligible for overlay + lazy COW.
987
+ * `'dynamic'` (agent-PR sessions, 0329 P4) makes EVERY written id a
988
+ * candidate — `onMissingMember` decides per id (never-fork schemas and
989
+ * bookkeeping decline by returning null).
990
+ */
991
+ members: readonly NodeId[] | 'dynamic';
992
+ /** originalId -> cloneId for members already forked. */
993
+ clones: Record<NodeId, NodeId>;
994
+ /**
995
+ * Schema IRIs the members span. Queries against OTHER schemas keep their
996
+ * indexed fast path (nothing to overlay); queries against these take the
997
+ * draft-aware path (clone values drive filter/sort — a JS re-apply over
998
+ * unpaginated candidates, the accepted transient-session cost). Omitted =
999
+ * conservative: every query takes the draft-aware path.
1000
+ */
1001
+ memberSchemaIds?: readonly string[];
1002
+ /**
1003
+ * Lazy copy-on-write: fork `originalId` into the draft and return the
1004
+ * clone id (or null to decline — the write then targets the original).
1005
+ */
1006
+ onMissingMember?: (originalId: NodeId) => Promise<NodeId | null>;
1007
+ /**
1008
+ * Fired when a NEW node is created while this draft is checked out
1009
+ * (draft-born; promoted to a fresh main node on merge). Agent-PR sessions
1010
+ * wire this to `markCreatedInDraft`.
1011
+ */
1012
+ onNodeCreated?: (nodeId: NodeId, schemaId: string) => void;
1013
+ }
1014
+ /** One pinned key: a change hash or a `yjs:`-prefixed snapshot ref. */
1015
+ interface PinEntry {
1016
+ key: string;
1017
+ ownerId: string;
1018
+ reason: string;
1019
+ }
1020
+ /** Pin registry capability on a storage adapter (exploration 0329). */
1021
+ interface PinRegistry {
1022
+ /** Add pins (idempotent per (key, ownerId)). */
1023
+ addPins(pins: readonly PinEntry[]): Promise<void>;
1024
+ /** Release every pin held by an owner (checkpoint/draft deletion). */
1025
+ removePinsByOwner(ownerId: string): Promise<void>;
1026
+ /** Of the given keys, return the subset pinned by any owner. */
1027
+ getPinnedKeysAmong(keys: readonly string[]): Promise<Set<string>>;
1028
+ /** Total number of pins (diagnostics). */
1029
+ countPins(): Promise<number>;
945
1030
  }
946
1031
  interface SetNodeOptions {
947
1032
  /**
@@ -1588,4 +1673,4 @@ type InferNode<P extends Record<string, PropertyBuilder>> = {
1588
1673
  createdBy: DID;
1589
1674
  } & InferProperties<P>;
1590
1675
 
1591
- export { type PropertyKey as $, createNodeId as A, type PropertyType as B, type CreateNodeOptions$1 as C, type DefinedSchema as D, type PropertyDefinition as E, type ValidationError as F, type GetWithMigrationOptions as G, type CreateNodeOptions as H, type InferCreateProps as I, type InferPropertyType as J, type InferProperties as K, type ListNodesOptions as L, type MigratedNodeState as M, type NodeQueryPageCountMode as N, type OfflineAuthPolicy as O, type PropertyBuilder as P, type InferNode as Q, type SchemaLens as R, type SchemaIRI as S, type TransactionOperation as T, type UpdateNodeOptions as U, type ValidationResult as V, type LensOperation as W, type MigrationResult as X, MigrationError as Y, LensRegistry as Z, lensRegistry as _, type Schema as a, type StoreAuthKeyManager as a$, type NodePayload as a0, type PropertyTimestamp as a1, type SetNodeOptions as a2, type ImportNodesOptions as a3, type RebuildNodeIndexesOptions as a4, type ApplyNodeBatchInput as a5, type ApplyNodeBatchResult as a6, type NodeBatchIndexMode as a7, type NodeBatchNotificationMode as a8, type NodeBatchSyncMode as a9, createNodeQueryDescriptor as aA, encodeNodeQueryCursor as aB, decodeNodeQueryCursor as aC, nodeQueryDescriptorToOptions as aD, serializeNodeQueryDescriptor as aE, matchesNodeQueryDescriptor as aF, filterNodeQueryResults as aG, sortNodeQueryResults as aH, applyNodeQueryDescriptor as aI, getNodeQuerySearchTokens as aJ, nodeQueryDescriptorNeedsBoundedReload as aK, withoutNodeQueryPagination as aL, withoutNodeQueryMaterializedView as aM, isTempId as aN, TEMP_ID_PREFIX as aO, resolveTempIds as aP, createSchemaLookup as aQ, type SchemaLookup as aR, type TempIdResolution as aS, StoreAuth as aT, GrantRateLimiter as aU, GRANT_SCHEMA_IRI as aV, isGrantActive as aW, DEFAULT_OFFLINE_POLICY as aX, mergeOfflinePolicy as aY, type StoreAuthOptions as aZ, type StoreAuthStore as a_, type NodeBatchPreflightResult as aa, type DeterministicNodeBatchWriteInput as ab, type NodeBatchWritePolicy as ac, type NodeBatchWriteTimings as ad, type CountNodesOptions as ae, type NodeQuerySpatialPoint as af, type NodeQuerySpatialRect as ag, type NodeQuerySpatialPointFields as ah, type NodeQuerySpatialRectFields as ai, type NodeQuerySpatialWindow as aj, type NodeQuerySpatialRadius as ak, type NodeQuerySpatialFilter as al, type NodeQuerySearchField as am, type NodeQuerySearchFilter as an, type NodeQueryMaterializedViewOptions as ao, type NodeQueryPageOptions as ap, type NodeQueryCursorOrderEntry as aq, type NodeQueryCursor as ar, type NodeQueryOptions as as, type NodeQueryPlanMetadata as at, type NodeQueryParityCheckMetadata as au, type ConflictResult as av, type NodeBatchChangeEvent as aw, type NodeContentCipher as ax, type ContentKeyCache as ay, type MigrationInfo as az, type ParsedSchemaIRI as b, type GrantInput as b0, type Grant as b1, StoreAuthError as b2, type StoreAuthErrorCode as b3, type GrantNode as b4, type GrantIndexStore as b5, type GrantIndexOptions as b6, type RevocationConsistency as b7, type RevocationConfig as b8, type GrantRateLimiterOptions as b9, type DocumentType as ba, DEFAULT_SCHEMA_VERSION as bb, parseSchemaIRI as bc, buildSchemaIRI as bd, normalizeSchemaIRI as be, getBaseSchemaIRI as bf, isSameSchema as bg, getSchemaVersion as bh, type NodeReadAuthorizer as bi, type AuthorizationStateVersion as bj, type OperationNodeBatchWriteInput as bk, type PropertyLookup as bl, createPropertyLookup as bm, type SortDirection as c, type SystemOrderField as d, type StoreAuthAPI as e, type NodeStoreOptions as f, type NodeStorageAdapter as g, type NodeState as h, type NodeId as i, type NodeQueryDescriptor as j, type NodeQueryResult as k, type TransactionResult as l, type DeterministicNodeImportDraft as m, type ImportDeterministicNodesOptions as n, type ImportDeterministicNodesResult as o, type NodeBatchWriteInput as p, type NodeBatchWriteResult as q, type NodeChange as r, type MergeConflict as s, type NodeChangeListener as t, type NodeBatchChangeListener as u, type NodeChangeEvent as v, GrantIndex as w, type Node as x, type DID as y, isNode as z };
1676
+ export { lensRegistry as $, isNode as A, createNodeId as B, type CreateNodeOptions$1 as C, type DefinedSchema as D, type PropertyType as E, type PropertyDefinition as F, type GetWithMigrationOptions as G, type ValidationError as H, type InferCreateProps as I, type CreateNodeOptions as J, type InferPropertyType as K, type ListNodesOptions as L, type MigratedNodeState as M, type NodeQueryPageCountMode as N, type OfflineAuthPolicy as O, type PropertyBuilder as P, type InferProperties as Q, type InferNode as R, type SchemaIRI as S, type TransactionOperation as T, type UpdateNodeOptions as U, type ValidationResult as V, type SchemaLens as W, type LensOperation as X, type MigrationResult as Y, MigrationError as Z, LensRegistry as _, type Schema as a, mergeOfflinePolicy as a$, type PropertyKey as a0, type NodePayload as a1, type PropertyTimestamp as a2, type PinEntry as a3, type PinRegistry as a4, type SetNodeOptions as a5, type ImportNodesOptions as a6, type RebuildNodeIndexesOptions as a7, type ApplyNodeBatchInput as a8, type ApplyNodeBatchResult as a9, type NodeContentCipher as aA, type ContentKeyCache as aB, type MigrationInfo as aC, createNodeQueryDescriptor as aD, encodeNodeQueryCursor as aE, decodeNodeQueryCursor as aF, nodeQueryDescriptorToOptions as aG, serializeNodeQueryDescriptor as aH, matchesNodeQueryDescriptor as aI, filterNodeQueryResults as aJ, sortNodeQueryResults as aK, applyNodeQueryDescriptor as aL, getNodeQuerySearchTokens as aM, nodeQueryDescriptorNeedsBoundedReload as aN, withoutNodeQueryPagination as aO, withoutNodeQueryMaterializedView as aP, isTempId as aQ, TEMP_ID_PREFIX as aR, resolveTempIds as aS, createSchemaLookup as aT, type SchemaLookup as aU, type TempIdResolution as aV, StoreAuth as aW, GrantRateLimiter as aX, GRANT_SCHEMA_IRI as aY, isGrantActive as aZ, DEFAULT_OFFLINE_POLICY as a_, type NodeBatchIndexMode as aa, type NodeBatchNotificationMode as ab, type NodeBatchSyncMode as ac, type NodeBatchPreflightResult as ad, type DeterministicNodeBatchWriteInput as ae, type NodeBatchWritePolicy as af, type NodeBatchWriteTimings as ag, type CountNodesOptions as ah, type NodeQuerySpatialPoint as ai, type NodeQuerySpatialRect as aj, type NodeQuerySpatialPointFields as ak, type NodeQuerySpatialRectFields as al, type NodeQuerySpatialWindow as am, type NodeQuerySpatialRadius as an, type NodeQuerySpatialFilter as ao, type NodeQuerySearchField as ap, type NodeQuerySearchFilter as aq, type NodeQueryMaterializedViewOptions as ar, type NodeQueryPageOptions as as, type NodeQueryCursorOrderEntry as at, type NodeQueryCursor as au, type NodeQueryOptions as av, type NodeQueryPlanMetadata as aw, type NodeQueryParityCheckMetadata as ax, type ConflictResult as ay, type NodeBatchChangeEvent as az, type ParsedSchemaIRI as b, type StoreAuthOptions as b0, type StoreAuthStore as b1, type StoreAuthKeyManager as b2, type GrantInput as b3, type Grant as b4, StoreAuthError as b5, type StoreAuthErrorCode as b6, type GrantNode as b7, type GrantIndexStore as b8, type GrantIndexOptions as b9, type RevocationConsistency as ba, type RevocationConfig as bb, type GrantRateLimiterOptions as bc, type NodeReadAuthorizer as bd, type AuthorizationStateVersion as be, type OperationNodeBatchWriteInput as bf, type PropertyLookup as bg, createPropertyLookup as bh, type DocumentType as bi, DEFAULT_SCHEMA_VERSION as bj, parseSchemaIRI as bk, buildSchemaIRI as bl, normalizeSchemaIRI as bm, getBaseSchemaIRI as bn, isSameSchema as bo, getSchemaVersion as bp, type SortDirection as c, type SystemOrderField as d, type StoreAuthAPI as e, type NodeStoreOptions as f, type NodeStorageAdapter as g, type NodeState as h, type NodeId as i, type CheckedOutDraftOverlay as j, type NodeQueryDescriptor as k, type NodeQueryResult as l, type TransactionResult as m, type DeterministicNodeImportDraft as n, type ImportDeterministicNodesOptions as o, type ImportDeterministicNodesResult as p, type NodeBatchWriteInput as q, type NodeBatchWriteResult as r, type NodeChange as s, type MergeConflict as t, type NodeChangeListener as u, type NodeBatchChangeListener as v, type NodeChangeEvent as w, GrantIndex as x, type Node as y, type DID as z };
@@ -0,0 +1,8 @@
1
+ import {
2
+ UserWidgetSchema
3
+ } from "./chunk-W3QOEPUN.js";
4
+ import "./chunk-RRXJNZX5.js";
5
+ import "./chunk-D4LUUZYD.js";
6
+ export {
7
+ UserWidgetSchema
8
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ WorkspaceSchema
3
+ } from "./chunk-3PV6QTKF.js";
4
+ import "./chunk-RRXJNZX5.js";
5
+ import "./chunk-D4LUUZYD.js";
6
+ export {
7
+ WorkspaceSchema
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnetjs/data",
3
- "version": "0.12.0",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,12 +57,12 @@
57
57
  "nanoid": "^5.1.6",
58
58
  "y-protocols": "^1.0.6",
59
59
  "yjs": "^13.6.24",
60
- "@xnetjs/core": "0.12.0",
61
- "@xnetjs/crypto": "0.12.0",
62
- "@xnetjs/identity": "0.12.0",
63
- "@xnetjs/sqlite": "0.12.0",
64
- "@xnetjs/storage": "0.12.0",
65
- "@xnetjs/sync": "0.12.0"
60
+ "@xnetjs/core": "2.0.0",
61
+ "@xnetjs/crypto": "2.0.0",
62
+ "@xnetjs/identity": "2.0.0",
63
+ "@xnetjs/sqlite": "2.0.0",
64
+ "@xnetjs/storage": "2.0.0",
65
+ "@xnetjs/sync": "2.0.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "tsup": "^8.0.0",
@@ -1,12 +0,0 @@
1
- import {
2
- ACCOUNT_SCHEMA_IRI,
3
- AccountSchema
4
- } from "./chunk-XMSKJ5PV.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- ACCOUNT_SCHEMA_IRI,
11
- AccountSchema
12
- };
@@ -1,12 +0,0 @@
1
- import {
2
- BUDGET_SCHEMA_IRI,
3
- BudgetSchema
4
- } from "./chunk-ZPZ7XDA6.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- BUDGET_SCHEMA_IRI,
11
- BudgetSchema
12
- };
@@ -1,10 +0,0 @@
1
- import {
2
- CanvasSchema
3
- } from "./chunk-LYSWLCOI.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- CanvasSchema
10
- };
@@ -1,12 +0,0 @@
1
- import {
2
- CHANNEL_KINDS,
3
- ChannelSchema
4
- } from "./chunk-ZCOFZY5M.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- CHANNEL_KINDS,
11
- ChannelSchema
12
- };
@@ -1,10 +0,0 @@
1
- import {
2
- ChatMessageSchema
3
- } from "./chunk-QVQVKZ3U.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- ChatMessageSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- CommentSchema
3
- } from "./chunk-MCKP4F72.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- CommentSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DashboardSchema
3
- } from "./chunk-QJW5LDP4.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DashboardSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DatabaseSchema
3
- } from "./chunk-IJ44LR7N.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DatabaseSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DatabaseFieldSchema
3
- } from "./chunk-KQAT4XBL.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DatabaseFieldSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DatabaseRowSchema
3
- } from "./chunk-FB63TZVI.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DatabaseRowSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DatabaseSelectOptionSchema
3
- } from "./chunk-6OMG4I7M.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DatabaseSelectOptionSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- DatabaseViewSchema
3
- } from "./chunk-MD553LDL.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- DatabaseViewSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- ExperimentSchema
3
- } from "./chunk-FVEACSKE.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- ExperimentSchema
10
- };
@@ -1,8 +0,0 @@
1
- import {
2
- ExternalReferenceSchema
3
- } from "./chunk-SVNGSZZA.js";
4
- import "./chunk-EBNMV2VO.js";
5
- import "./chunk-RL64OJJ5.js";
6
- export {
7
- ExternalReferenceSchema
8
- };
@@ -1,12 +0,0 @@
1
- import {
2
- FEED_SCHEMA_IRI,
3
- FeedSchema
4
- } from "./chunk-TCTZW4A6.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- FEED_SCHEMA_IRI,
11
- FeedSchema
12
- };
@@ -1,12 +0,0 @@
1
- import {
2
- FEED_ITEM_SCHEMA_IRI,
3
- FeedItemSchema
4
- } from "./chunk-5EXHNXPL.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- FEED_ITEM_SCHEMA_IRI,
11
- FeedItemSchema
12
- };
@@ -1,8 +0,0 @@
1
- import {
2
- GrantSchema
3
- } from "./chunk-OSAWNZVM.js";
4
- import "./chunk-EBNMV2VO.js";
5
- import "./chunk-RL64OJJ5.js";
6
- export {
7
- GrantSchema
8
- };
@@ -1,12 +0,0 @@
1
- import {
2
- IMPORT_BATCH_SCHEMA_IRI,
3
- ImportBatchSchema
4
- } from "./chunk-VQ7JHB67.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- IMPORT_BATCH_SCHEMA_IRI,
11
- ImportBatchSchema
12
- };
@@ -1,10 +0,0 @@
1
- import {
2
- MapSchema
3
- } from "./chunk-NI4FHG2K.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- MapSchema
10
- };
@@ -1,8 +0,0 @@
1
- import {
2
- MediaAssetSchema
3
- } from "./chunk-3J3HILXO.js";
4
- import "./chunk-EBNMV2VO.js";
5
- import "./chunk-RL64OJJ5.js";
6
- export {
7
- MediaAssetSchema
8
- };
@@ -1,10 +0,0 @@
1
- import {
2
- MetricSchema
3
- } from "./chunk-U64CW73O.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- MetricSchema
10
- };
@@ -1,12 +0,0 @@
1
- import {
2
- MILESTONE_SCHEMA_IRI,
3
- MilestoneSchema
4
- } from "./chunk-OGJCRNGE.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- MILESTONE_SCHEMA_IRI,
11
- MilestoneSchema
12
- };
@@ -1,10 +0,0 @@
1
- import {
2
- ObservationSchema
3
- } from "./chunk-W7EBL7ZU.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- ObservationSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- PageSchema
3
- } from "./chunk-ZLU4Y3O2.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- PageSchema
10
- };
@@ -1,12 +0,0 @@
1
- import {
2
- POSTING_SCHEMA_IRI,
3
- PostingSchema
4
- } from "./chunk-JDFNMFOZ.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- POSTING_SCHEMA_IRI,
11
- PostingSchema
12
- };
@@ -1,10 +0,0 @@
1
- import {
2
- ProjectSchema
3
- } from "./chunk-XROI44ZP.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- ProjectSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- ReactionSchema
3
- } from "./chunk-Y3S5SRVM.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- ReactionSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- SavedViewSchema
3
- } from "./chunk-ZZ6TWKGS.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- SavedViewSchema
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- TaskViewSchema
3
- } from "./chunk-4EYKGTSQ.js";
4
- import "./chunk-OCMSAKWV.js";
5
- import "./chunk-T5AZAOG5.js";
6
- import "./chunk-EBNMV2VO.js";
7
- import "./chunk-RL64OJJ5.js";
8
- export {
9
- TaskViewSchema
10
- };
@@ -1,12 +0,0 @@
1
- import {
2
- TRANSACTION_SCHEMA_IRI,
3
- TransactionSchema
4
- } from "./chunk-MBTUO3ZL.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- TRANSACTION_SCHEMA_IRI,
11
- TransactionSchema
12
- };
@@ -1,12 +0,0 @@
1
- import {
2
- TRANSCRIPTION_SCHEMA_IRI,
3
- TranscriptionSchema
4
- } from "./chunk-2ZNJWIQG.js";
5
- import "./chunk-OCMSAKWV.js";
6
- import "./chunk-T5AZAOG5.js";
7
- import "./chunk-EBNMV2VO.js";
8
- import "./chunk-RL64OJJ5.js";
9
- export {
10
- TRANSCRIPTION_SCHEMA_IRI,
11
- TranscriptionSchema
12
- };
@@ -1,8 +0,0 @@
1
- import {
2
- UserWidgetSchema
3
- } from "./chunk-53F4PRNC.js";
4
- import "./chunk-EBNMV2VO.js";
5
- import "./chunk-RL64OJJ5.js";
6
- export {
7
- UserWidgetSchema
8
- };
@@ -1,8 +0,0 @@
1
- import {
2
- WorkspaceSchema
3
- } from "./chunk-PH3PVAR6.js";
4
- import "./chunk-EBNMV2VO.js";
5
- import "./chunk-RL64OJJ5.js";
6
- export {
7
- WorkspaceSchema
8
- };