@xnetjs/data 0.0.3 → 0.1.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 (151) hide show
  1. package/dist/account-MWNCH4GJ.js +12 -0
  2. package/dist/account-ledger-R2GAFJL6.js +38 -0
  3. package/dist/auth/index.d.ts +11 -4
  4. package/dist/auth/index.js +1 -1
  5. package/dist/budget-NN7P35XP.js +12 -0
  6. package/dist/canvas-6WYBNH53.js +10 -0
  7. package/dist/channel-AT3LQF4A.js +12 -0
  8. package/dist/chat-message-DSVO72B3.js +10 -0
  9. package/dist/{chunk-J6EDPPH4.js → chunk-2ZNJWIQG.js} +2 -2
  10. package/dist/{chunk-5FHJE7RC.js → chunk-3J3HILXO.js} +2 -2
  11. package/dist/{chunk-EZA5UT4Y.js → chunk-3RUDVTMH.js} +6 -6
  12. package/dist/{chunk-YEQ6LLUY.js → chunk-4EYKGTSQ.js} +2 -2
  13. package/dist/{chunk-L66WXPTW.js → chunk-53F4PRNC.js} +2 -2
  14. package/dist/{chunk-LGD72FVD.js → chunk-5EXHNXPL.js} +2 -2
  15. package/dist/{chunk-4U4KBCDN.js → chunk-5HC5NO57.js} +2 -2
  16. package/dist/{chunk-YWN27MLD.js → chunk-6KLGA6IR.js} +2 -2
  17. package/dist/{chunk-37267RSF.js → chunk-6OMG4I7M.js} +2 -2
  18. package/dist/{chunk-DOZJXPQ6.js → chunk-BQLQSWKZ.js} +2 -2
  19. package/dist/{chunk-V6HZ3LF3.js → chunk-BY5O6LNC.js} +1 -1
  20. package/dist/{chunk-64AM6JPM.js → chunk-DCTRX6II.js} +1 -1
  21. package/dist/{chunk-SPFKSTPT.js → chunk-DWEXKD6E.js} +2 -2
  22. package/dist/{chunk-O64EK5FK.js → chunk-EBNMV2VO.js} +11 -2
  23. package/dist/{chunk-J4IVJA5M.js → chunk-FVEACSKE.js} +2 -2
  24. package/dist/{chunk-XWA3CJQ6.js → chunk-GU6THOAB.js} +2 -2
  25. package/dist/{chunk-XTUGZSYQ.js → chunk-H4GA4BBK.js} +2 -2
  26. package/dist/{chunk-GR3NDMBY.js → chunk-IJ44LR7N.js} +2 -2
  27. package/dist/{chunk-E6S557NC.js → chunk-J4ANIXIV.js} +2 -2
  28. package/dist/{chunk-EIQX7INF.js → chunk-JDFNMFOZ.js} +2 -2
  29. package/dist/{chunk-PSUJEKVV.js → chunk-K7DOZWWT.js} +244 -155
  30. package/dist/{chunk-UDUPQKRB.js → chunk-KQAT4XBL.js} +2 -2
  31. package/dist/chunk-KQUALW4O.js +183 -0
  32. package/dist/{chunk-KPVBKKZS.js → chunk-LYSWLCOI.js} +2 -2
  33. package/dist/{chunk-YXZGYLKV.js → chunk-MBTUO3ZL.js} +2 -2
  34. package/dist/{chunk-7GMJOAPF.js → chunk-NI4FHG2K.js} +2 -2
  35. package/dist/{chunk-6OPZJ7MG.js → chunk-OCMSAKWV.js} +2 -2
  36. package/dist/{chunk-IP4BEVVD.js → chunk-OGJCRNGE.js} +2 -2
  37. package/dist/{chunk-6CN53PON.js → chunk-OPPHF3TF.js} +3 -3
  38. package/dist/{chunk-77UDLVQY.js → chunk-OSAWNZVM.js} +1 -1
  39. package/dist/{chunk-GWYVY2K4.js → chunk-PNESGUH5.js} +2 -2
  40. package/dist/{chunk-RSSZXCLL.js → chunk-Q3IEGH4B.js} +2 -2
  41. package/dist/{chunk-2DSDH2ZH.js → chunk-QJW5LDP4.js} +2 -2
  42. package/dist/{chunk-JESSJ5CZ.js → chunk-RL64OJJ5.js} +13 -3
  43. package/dist/{chunk-S4B5OPZU.js → chunk-S5RP5RKY.js} +1 -0
  44. package/dist/{chunk-4UQTURCD.js → chunk-S6U6TCMN.js} +2 -2
  45. package/dist/{chunk-C5IRSEEZ.js → chunk-SVNGSZZA.js} +2 -2
  46. package/dist/{chunk-ZICIXDEE.js → chunk-T5AZAOG5.js} +1 -1
  47. package/dist/{chunk-IJ675GJR.js → chunk-TCTZW4A6.js} +2 -2
  48. package/dist/{chunk-54Y7QRZN.js → chunk-U64CW73O.js} +2 -2
  49. package/dist/{chunk-QVZXXJSP.js → chunk-UDWKWTAX.js} +485 -81
  50. package/dist/{chunk-3RB2FMMO.js → chunk-UQM3G5A2.js} +2 -2
  51. package/dist/{chunk-ENTHVNOC.js → chunk-VQ7JHB67.js} +2 -2
  52. package/dist/{chunk-JO6Y4E5V.js → chunk-W7EBL7ZU.js} +2 -2
  53. package/dist/{chunk-WUR3WWQM.js → chunk-WEPK7SZF.js} +2 -2
  54. package/dist/{chunk-3JKW6TDE.js → chunk-XMSKJ5PV.js} +2 -2
  55. package/dist/{chunk-WMSCEBFH.js → chunk-XROI44ZP.js} +2 -2
  56. package/dist/{chunk-CHZUSBSB.js → chunk-Y3S5SRVM.js} +2 -2
  57. package/dist/{chunk-KTJLFJEQ.js → chunk-YEFKQYKA.js} +2 -2
  58. package/dist/{chunk-DTPSTMUD.js → chunk-YSUIXD2Y.js} +2 -2
  59. package/dist/{chunk-ZMCO3O2Z.js → chunk-ZCOFZY5M.js} +2 -2
  60. package/dist/{chunk-U6CBYDVZ.js → chunk-ZLU4Y3O2.js} +2 -2
  61. package/dist/{chunk-337E3ZOB.js → chunk-ZPZ7XDA6.js} +2 -2
  62. package/dist/{chunk-6GB7PBCR.js → chunk-ZZ6TWKGS.js} +2 -2
  63. package/dist/{clone-DpbVKLUu.d.ts → clone-C0Jhk2UN.d.ts} +2 -2
  64. package/dist/comment-QSWYAQVS.js +10 -0
  65. package/dist/{crm-AAJXYIJY.js → crm-L5RYAAF3.js} +5 -5
  66. package/dist/dashboard-JMKTTRA7.js +10 -0
  67. package/dist/database/index.d.ts +3 -3
  68. package/dist/database/index.js +11 -11
  69. package/dist/database-GIXSPZJW.js +10 -0
  70. package/dist/database-field-3EPAMZUR.js +10 -0
  71. package/dist/database-row-6Q6TRVE4.js +10 -0
  72. package/dist/database-select-option-BBBJFLLH.js +10 -0
  73. package/dist/database-view-5PLSOBI2.js +10 -0
  74. package/dist/experiment-DOVOZ34Y.js +10 -0
  75. package/dist/{external-item-D654PKLI.js → external-item-P2E5X7BZ.js} +5 -5
  76. package/dist/external-reference-7BSFF6SA.js +8 -0
  77. package/dist/feed-2IXHHP6O.js +12 -0
  78. package/dist/feed-item-DPE6LN7I.js +12 -0
  79. package/dist/{folder-ONKSWHUT.js → folder-6KM3KYD5.js} +3 -3
  80. package/dist/{game-BF7DP5JU.js → game-5AK5XWBR.js} +5 -5
  81. package/dist/grant-WTQSNT5A.js +8 -0
  82. package/dist/{grant-expiration-cleaner-DBiNTWbD.d.ts → grant-expiration-cleaner-CY6BcmlR.d.ts} +2 -2
  83. package/dist/import-batch-IXBJLQPJ.js +12 -0
  84. package/dist/{inbox-state-AN6FPCIY.js → inbox-state-E5NSVOGP.js} +3 -3
  85. package/dist/index.d.ts +7 -7
  86. package/dist/index.js +101 -55
  87. package/dist/map-RG5Y3CPC.js +10 -0
  88. package/dist/media-asset-QTCGLIZA.js +8 -0
  89. package/dist/{memory-NV6EVJBE.js → memory-PNRTMBZO.js} +3 -3
  90. package/dist/metric-65SVOX5C.js +10 -0
  91. package/dist/milestone-XEO6ZGDG.js +12 -0
  92. package/dist/{moderation-QSUVBCNS.js → moderation-FFHETMRB.js} +3 -3
  93. package/dist/observation-2Y3QKUXM.js +10 -0
  94. package/dist/page-2V27JGKJ.js +10 -0
  95. package/dist/posting-GBOSZCMZ.js +12 -0
  96. package/dist/profile-BLLDWIDK.js +8 -0
  97. package/dist/project-CQL5LN26.js +10 -0
  98. package/dist/{query-ast-CWo6_30h.d.ts → query-ast-C3m6kZYv.d.ts} +1 -1
  99. package/dist/reaction-T2DTJBBV.js +10 -0
  100. package/dist/{registry-CQoN_p8U.d.ts → registry-DunPv__d.d.ts} +1 -1
  101. package/dist/saved-view-4R2DBCL3.js +10 -0
  102. package/dist/schema/index.d.ts +320 -13
  103. package/dist/schema/index.js +98 -52
  104. package/dist/{schema-extension-5BUXRDPB.js → schema-extension-LNRF2YRD.js} +5 -5
  105. package/dist/{space-PZ737CIS.js → space-IJU24PBH.js} +6 -6
  106. package/dist/{space-membership-N35NRX6F.js → space-membership-DEUMM7NV.js} +3 -3
  107. package/dist/store/index.d.ts +131 -4
  108. package/dist/store/index.js +5 -5
  109. package/dist/{store-CvgiydME.d.ts → store-DtIDjk7c.d.ts} +18 -1
  110. package/dist/{system-Q5I6STDC.js → system-ILHCZOVO.js} +3 -3
  111. package/dist/{tag-C677GKQW.js → tag-SKCHM3U5.js} +3 -3
  112. package/dist/{task-WQLMPN5U.js → task-7AOBP7WC.js} +5 -5
  113. package/dist/task-view-NUGKELJP.js +10 -0
  114. package/dist/transaction-ZDSEGDIR.js +12 -0
  115. package/dist/transcription-PSCLDAGX.js +12 -0
  116. package/dist/{types-Def-5Nka.d.ts → types-S-BJAKyK.d.ts} +53 -2
  117. package/dist/user-widget-RLY2N46A.js +8 -0
  118. package/package.json +7 -7
  119. package/dist/account-BZHETMC4.js +0 -12
  120. package/dist/budget-WR2Q4YH3.js +0 -12
  121. package/dist/canvas-HFMMVQLD.js +0 -10
  122. package/dist/channel-DXDYJ3ZH.js +0 -12
  123. package/dist/chat-message-QUUQGXEW.js +0 -10
  124. package/dist/comment-Y2Y3QYYI.js +0 -10
  125. package/dist/dashboard-3DC6B4BJ.js +0 -10
  126. package/dist/database-DRGL5UYS.js +0 -10
  127. package/dist/database-field-F47FY3XX.js +0 -10
  128. package/dist/database-row-77OXW2NF.js +0 -10
  129. package/dist/database-select-option-6S3TTA7A.js +0 -10
  130. package/dist/database-view-YW7DQG5X.js +0 -10
  131. package/dist/experiment-TJOAL3OH.js +0 -10
  132. package/dist/external-reference-K5SUJIQN.js +0 -8
  133. package/dist/feed-L23XTNDI.js +0 -12
  134. package/dist/feed-item-GSO242J6.js +0 -12
  135. package/dist/grant-NNKMWXPX.js +0 -8
  136. package/dist/import-batch-JMESZ4VI.js +0 -12
  137. package/dist/map-AUV65YS3.js +0 -10
  138. package/dist/media-asset-4I5YPR4R.js +0 -8
  139. package/dist/metric-X7W55DLC.js +0 -10
  140. package/dist/milestone-JJGOGK4R.js +0 -12
  141. package/dist/observation-UZSXXGBC.js +0 -10
  142. package/dist/page-NI7XODS6.js +0 -10
  143. package/dist/posting-FZOYVGH2.js +0 -12
  144. package/dist/profile-42A43GES.js +0 -8
  145. package/dist/project-G2CTLDXY.js +0 -10
  146. package/dist/reaction-VAQBVDUD.js +0 -10
  147. package/dist/saved-view-AOQHGHNM.js +0 -10
  148. package/dist/task-view-T5S32V4L.js +0 -10
  149. package/dist/transaction-U3ITRGJP.js +0 -12
  150. package/dist/transcription-F3T23LLO.js +0 -12
  151. package/dist/user-widget-4SJJFPG5.js +0 -8
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,38 @@
1
+ import {
2
+ ACCOUNT_RECORD_SCHEMA_IRI,
3
+ AccountRecordSchema,
4
+ DEVICE_RECORD_SCHEMA_IRI,
5
+ DeviceRecordSchema,
6
+ RECOVERY_RECORD_SCHEMA_IRI,
7
+ REVOCATION_RECORD_SCHEMA_IRI,
8
+ RecoveryRecordSchema,
9
+ RevocationRecordSchema,
10
+ accountRecordId,
11
+ deviceRecipientExpander,
12
+ deviceRecordId,
13
+ isDeviceAuthorized,
14
+ recoveryRecordId,
15
+ resolveActiveDevices,
16
+ revocationRecordId,
17
+ revokedSubjects
18
+ } from "./chunk-KQUALW4O.js";
19
+ import "./chunk-EBNMV2VO.js";
20
+ import "./chunk-RL64OJJ5.js";
21
+ export {
22
+ ACCOUNT_RECORD_SCHEMA_IRI,
23
+ AccountRecordSchema,
24
+ DEVICE_RECORD_SCHEMA_IRI,
25
+ DeviceRecordSchema,
26
+ RECOVERY_RECORD_SCHEMA_IRI,
27
+ REVOCATION_RECORD_SCHEMA_IRI,
28
+ RecoveryRecordSchema,
29
+ RevocationRecordSchema,
30
+ accountRecordId,
31
+ deviceRecipientExpander,
32
+ deviceRecordId,
33
+ isDeviceAuthorized,
34
+ recoveryRecordId,
35
+ resolveActiveDevices,
36
+ revocationRecordId,
37
+ revokedSubjects
38
+ };
@@ -1,12 +1,12 @@
1
1
  import { AllowExpr, DenyExpr, AuthExpression, AndExpr, OrExpr, NotExpr, PublicExpr, AuthenticatedExpr, CreatorRoleResolver, PropertyRoleResolver, RelationRoleResolver, MembershipRoleResolver, AuthorizationDefinition, SerializedAuthorization, SerializedAuthExpression, DID } from '@xnetjs/core';
2
2
  export { AUTH_ACTIONS, AllowExpr, AndExpr, AuthAction, AuthCheckInput, AuthDecision, AuthDenyReason, AuthExpression, AuthTrace, AuthTraceStep, AuthenticatedExpr, AuthorizationDefinition, CreatorRoleResolver, DenyExpr, MembershipRoleResolver, NotExpr, OrExpr, PolicyEvaluator, PropertyRoleResolver, PublicExpr, RelationRoleResolver, RoleRefExpr, RoleResolver, SerializedAuthExpression, SerializedAuthorization, SerializedRoleResolver } from '@xnetjs/core';
3
- import { E as PropertyDefinition, a as Schema, h as NodeState, S as SchemaIRI } from '../types-Def-5Nka.js';
4
- export { aX as DEFAULT_OFFLINE_POLICY, aV as GRANT_SCHEMA_IRI, b1 as Grant, w as GrantIndex, b6 as GrantIndexOptions, b5 as GrantIndexStore, b0 as GrantInput, b4 as GrantNode, aU as GrantRateLimiter, b9 as GrantRateLimiterOptions, O as OfflineAuthPolicy, b8 as RevocationConfig, b7 as RevocationConsistency, aT as StoreAuth, e as StoreAuthAPI, b2 as StoreAuthError, b3 as StoreAuthErrorCode, a$ as StoreAuthKeyManager, aZ as StoreAuthOptions, a_ as StoreAuthStore, aW as isGrantActive, aY as mergeOfflinePolicy } from '../types-Def-5Nka.js';
5
- export { A as ActionPermission, m as AuthDecisionEvent, b as DecisionCache, g as DecisionCacheOptions, D as DefaultPolicyEvaluator, j as DefaultPolicyEvaluatorOptions, a as DefaultRoleResolver, i as DefaultRoleResolverOptions, k as DefinedSchemaLike, G as GrantExpirationCleaner, o as GrantExpirationCleanerOptions, n as GrantExpirationStore, H as HubPolicy, N as NodeStoreReader, P as PermissionMatrix, l as RevalidationEvent, R as RoleSummary, S as SchemaRegistryReader, c as buildPermissionMatrix, f as createPolicyEvaluator, d as describeRoleResolver, e as evaluateExpression, h as hubActionsForSpaceRole, s as schemaToHubPolicy } from '../grant-expiration-cleaner-DBiNTWbD.js';
3
+ import { E as PropertyDefinition, a as Schema, h as NodeState, S as SchemaIRI } from '../types-S-BJAKyK.js';
4
+ export { aX as DEFAULT_OFFLINE_POLICY, aV as GRANT_SCHEMA_IRI, b1 as Grant, w as GrantIndex, b6 as GrantIndexOptions, b5 as GrantIndexStore, b0 as GrantInput, b4 as GrantNode, aU as GrantRateLimiter, b9 as GrantRateLimiterOptions, O as OfflineAuthPolicy, b8 as RevocationConfig, b7 as RevocationConsistency, aT as StoreAuth, e as StoreAuthAPI, b2 as StoreAuthError, b3 as StoreAuthErrorCode, a$ as StoreAuthKeyManager, aZ as StoreAuthOptions, a_ as StoreAuthStore, aW as isGrantActive, aY as mergeOfflinePolicy } from '../types-S-BJAKyK.js';
5
+ export { A as ActionPermission, m as AuthDecisionEvent, b as DecisionCache, g as DecisionCacheOptions, D as DefaultPolicyEvaluator, j as DefaultPolicyEvaluatorOptions, a as DefaultRoleResolver, i as DefaultRoleResolverOptions, k as DefinedSchemaLike, G as GrantExpirationCleaner, o as GrantExpirationCleanerOptions, n as GrantExpirationStore, H as HubPolicy, N as NodeStoreReader, P as PermissionMatrix, l as RevalidationEvent, R as RoleSummary, S as SchemaRegistryReader, c as buildPermissionMatrix, f as createPolicyEvaluator, d as describeRoleResolver, e as evaluateExpression, h as hubActionsForSpaceRole, s as schemaToHubPolicy } from '../grant-expiration-cleaner-CY6BcmlR.js';
6
6
  import { PublicKeyResolver } from '@xnetjs/crypto';
7
7
  import '@xnetjs/sqlite';
8
8
  import '@xnetjs/sync';
9
- import '../registry-CQoN_p8U.js';
9
+ import '../registry-DunPv__d.js';
10
10
 
11
11
  /**
12
12
  * Authorization expression builders for schema definitions.
@@ -350,6 +350,13 @@ interface RecipientDependencies {
350
350
  listNodes?: (schemaId: string) => Promise<NodeState[]>;
351
351
  grantIndex?: GrantIndexReader;
352
352
  maxDepth?: number;
353
+ /**
354
+ * Account/device re-wrap (exploration 0243, P2.3). When set, each DID recipient is
355
+ * expanded to every active device of the account it belongs to, so a user's content
356
+ * is decryptable on all their devices. Build it with `deviceRecipientExpander` from
357
+ * the ledger records. Omitted → recipients are exactly the resolved DIDs (no change).
358
+ */
359
+ expandDeviceRecipients?: (did: DID) => readonly string[];
353
360
  }
354
361
  declare function computeRecipients(schema: Schema, node: NodeState, dependencies: RecipientDependencies): Promise<Recipient[]>;
355
362
  declare function hasRecipientsChanged(previous: Recipient[], next: Recipient[]): boolean;
@@ -48,7 +48,7 @@ import {
48
48
  serializeAuthorization,
49
49
  validateAuthorization,
50
50
  warnLegacySchema
51
- } from "../chunk-JESSJ5CZ.js";
51
+ } from "../chunk-RL64OJJ5.js";
52
52
  export {
53
53
  AUTHENTICATED,
54
54
  AUTH_ACTIONS,
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,10 @@
1
+ import {
2
+ ChatMessageSchema
3
+ } from "./chunk-Q3IEGH4B.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,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  file,
@@ -8,7 +8,7 @@ import {
8
8
  relation,
9
9
  select,
10
10
  text
11
- } from "./chunk-O64EK5FK.js";
11
+ } from "./chunk-EBNMV2VO.js";
12
12
 
13
13
  // src/schema/schemas/transcription.ts
14
14
  var TRANSCRIPTION_SCHEMA_IRI = "xnet://xnet.fyi/Transcription@1.0.0";
@@ -4,10 +4,10 @@ import {
4
4
  number,
5
5
  select,
6
6
  text
7
- } from "./chunk-O64EK5FK.js";
7
+ } from "./chunk-EBNMV2VO.js";
8
8
  import {
9
9
  presets
10
- } from "./chunk-JESSJ5CZ.js";
10
+ } from "./chunk-RL64OJJ5.js";
11
11
 
12
12
  // src/schema/schemas/media-asset.ts
13
13
  var MediaAssetSchema = defineSchema({
@@ -5,7 +5,7 @@ import {
5
5
  ExtensionFieldSchema,
6
6
  SchemaExtensionSchema,
7
7
  schemaExtensionId
8
- } from "./chunk-WUR3WWQM.js";
8
+ } from "./chunk-WEPK7SZF.js";
9
9
  import {
10
10
  MAX_KEY_LENGTH,
11
11
  compareSortKeys,
@@ -16,19 +16,19 @@ import {
16
16
  } from "./chunk-QWFTRZQT.js";
17
17
  import {
18
18
  DatabaseRowSchema
19
- } from "./chunk-SPFKSTPT.js";
19
+ } from "./chunk-DWEXKD6E.js";
20
20
  import {
21
21
  DatabaseFieldSchema
22
- } from "./chunk-UDUPQKRB.js";
22
+ } from "./chunk-KQAT4XBL.js";
23
23
  import {
24
24
  DatabaseSelectOptionSchema
25
- } from "./chunk-37267RSF.js";
25
+ } from "./chunk-6OMG4I7M.js";
26
26
  import {
27
27
  DatabaseViewSchema
28
- } from "./chunk-XTUGZSYQ.js";
28
+ } from "./chunk-H4GA4BBK.js";
29
29
  import {
30
30
  createNodeQueryDescriptor
31
- } from "./chunk-S4B5OPZU.js";
31
+ } from "./chunk-S5RP5RKY.js";
32
32
 
33
33
  // src/database/cell-types.ts
34
34
  var CELL_PREFIX = "cell_";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  json,
7
7
  relation,
8
8
  select,
9
9
  text
10
- } from "./chunk-O64EK5FK.js";
10
+ } from "./chunk-EBNMV2VO.js";
11
11
 
12
12
  // src/schema/schemas/task-view.ts
13
13
  var TaskViewSchema = defineSchema({
@@ -2,10 +2,10 @@ import {
2
2
  defineSchema,
3
3
  json,
4
4
  text
5
- } from "./chunk-O64EK5FK.js";
5
+ } from "./chunk-EBNMV2VO.js";
6
6
  import {
7
7
  presets
8
- } from "./chunk-JESSJ5CZ.js";
8
+ } from "./chunk-RL64OJJ5.js";
9
9
 
10
10
  // src/schema/schemas/user-widget.ts
11
11
  var UserWidgetSchema = defineSchema({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  created,
6
6
  createdBy,
@@ -9,7 +9,7 @@ import {
9
9
  relation,
10
10
  text,
11
11
  url
12
- } from "./chunk-O64EK5FK.js";
12
+ } from "./chunk-EBNMV2VO.js";
13
13
 
14
14
  // src/schema/schemas/feed-item.ts
15
15
  var FEED_ITEM_SCHEMA_IRI = "xnet://xnet.fyi/FeedItem@1.0.0";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  checkbox,
6
6
  created,
@@ -13,7 +13,7 @@ import {
13
13
  relation,
14
14
  select,
15
15
  text
16
- } from "./chunk-O64EK5FK.js";
16
+ } from "./chunk-EBNMV2VO.js";
17
17
 
18
18
  // src/schema/schemas/comment.ts
19
19
  var CommentSchema = defineSchema({
@@ -4,10 +4,10 @@ import {
4
4
  createdBy,
5
5
  defineSchema,
6
6
  text
7
- } from "./chunk-O64EK5FK.js";
7
+ } from "./chunk-EBNMV2VO.js";
8
8
  import {
9
9
  presets
10
- } from "./chunk-JESSJ5CZ.js";
10
+ } from "./chunk-RL64OJJ5.js";
11
11
 
12
12
  // src/schema/schemas/tag.ts
13
13
  var TAG_SCHEMA_IRI = "xnet://xnet.fyi/Tag@1.0.0";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  relation,
7
7
  text
8
- } from "./chunk-O64EK5FK.js";
8
+ } from "./chunk-EBNMV2VO.js";
9
9
 
10
10
  // src/schema/schemas/database-select-option.ts
11
11
  var DatabaseSelectOptionSchema = defineSchema({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  date,
6
6
  defineSchema,
@@ -11,7 +11,7 @@ import {
11
11
  relation,
12
12
  select,
13
13
  text
14
- } from "./chunk-O64EK5FK.js";
14
+ } from "./chunk-EBNMV2VO.js";
15
15
 
16
16
  // src/schema/schemas/game.ts
17
17
  var GAME_NAMESPACE = "xnet://xnet.fyi/";
@@ -5,7 +5,7 @@ import {
5
5
  person,
6
6
  select,
7
7
  text
8
- } from "./chunk-O64EK5FK.js";
8
+ } from "./chunk-EBNMV2VO.js";
9
9
 
10
10
  // src/schema/schemas/system.ts
11
11
  import { base64ToBytes, hashHex, verify } from "@xnetjs/crypto";
@@ -4,7 +4,7 @@ import {
4
4
  defineSchema,
5
5
  person,
6
6
  text
7
- } from "./chunk-O64EK5FK.js";
7
+ } from "./chunk-EBNMV2VO.js";
8
8
 
9
9
  // src/schema/schemas/profile.ts
10
10
  var ProfileSchema = defineSchema({
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  relation,
7
7
  text
8
- } from "./chunk-O64EK5FK.js";
8
+ } from "./chunk-EBNMV2VO.js";
9
9
 
10
10
  // src/schema/schemas/database-row.ts
11
11
  var DatabaseRowSchema = defineSchema({
@@ -2,7 +2,7 @@ import {
2
2
  serializeAuthorization,
3
3
  validateAuthorization,
4
4
  warnLegacySchema
5
- } from "./chunk-JESSJ5CZ.js";
5
+ } from "./chunk-RL64OJJ5.js";
6
6
 
7
7
  // src/schema/node.ts
8
8
  import { nanoid } from "nanoid";
@@ -73,7 +73,16 @@ var AUTH_EXEMPT_SCHEMA_IRIS = /* @__PURE__ */ new Set([
73
73
  "xnet://xnet.fyi/SyncPolicy@1.0.0",
74
74
  "xnet://xnet.fyi/SyncPolicy",
75
75
  "xnet://xnet.fyi/PresenceSummary@1.0.0",
76
- "xnet://xnet.fyi/PresenceSummary"
76
+ "xnet://xnet.fyi/PresenceSummary",
77
+ // Account/device ledger (0149/0243) — controller-signed + epoch-gated, hub-enforced.
78
+ "xnet://xnet.fyi/AccountRecord@1.0.0",
79
+ "xnet://xnet.fyi/AccountRecord",
80
+ "xnet://xnet.fyi/DeviceRecord@1.0.0",
81
+ "xnet://xnet.fyi/DeviceRecord",
82
+ "xnet://xnet.fyi/RecoveryRecord@1.0.0",
83
+ "xnet://xnet.fyi/RecoveryRecord",
84
+ "xnet://xnet.fyi/RevocationRecord@1.0.0",
85
+ "xnet://xnet.fyi/RevocationRecord"
77
86
  ]);
78
87
  function isAuthExemptSchema(schemaId) {
79
88
  return AUTH_EXEMPT_SCHEMA_IRIS.has(schemaId);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  date,
6
6
  defineSchema,
@@ -8,7 +8,7 @@ import {
8
8
  relation,
9
9
  select,
10
10
  text
11
- } from "./chunk-O64EK5FK.js";
11
+ } from "./chunk-EBNMV2VO.js";
12
12
 
13
13
  // src/schema/schemas/experiment.ts
14
14
  var ExperimentSchema = defineSchema({
@@ -5,10 +5,10 @@ import {
5
5
  relation,
6
6
  select,
7
7
  text
8
- } from "./chunk-O64EK5FK.js";
8
+ } from "./chunk-EBNMV2VO.js";
9
9
  import {
10
10
  presets
11
- } from "./chunk-JESSJ5CZ.js";
11
+ } from "./chunk-RL64OJJ5.js";
12
12
 
13
13
  // src/schema/schemas/memory.ts
14
14
  var MEMORY_ITEM_SCHEMA_IRI = "xnet://xnet.fyi/MemoryItem@1.0.0";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  json,
7
7
  relation,
8
8
  select,
9
9
  text
10
- } from "./chunk-O64EK5FK.js";
10
+ } from "./chunk-EBNMV2VO.js";
11
11
 
12
12
  // src/schema/schemas/database-view.ts
13
13
  var DatabaseViewSchema = defineSchema({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  file,
@@ -8,7 +8,7 @@ import {
8
8
  relation,
9
9
  select,
10
10
  text
11
- } from "./chunk-O64EK5FK.js";
11
+ } from "./chunk-EBNMV2VO.js";
12
12
 
13
13
  // src/schema/schemas/database.ts
14
14
  var DatabaseSchema = defineSchema({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  checkbox,
6
6
  date,
@@ -13,7 +13,7 @@ import {
13
13
  select,
14
14
  text,
15
15
  url
16
- } from "./chunk-O64EK5FK.js";
16
+ } from "./chunk-EBNMV2VO.js";
17
17
 
18
18
  // src/schema/schemas/crm.ts
19
19
  var CRM_NAMESPACE = "xnet://xnet.fyi/";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  spaceCascadeAuthorization
3
- } from "./chunk-6OPZJ7MG.js";
3
+ } from "./chunk-OCMSAKWV.js";
4
4
  import {
5
5
  defineSchema,
6
6
  money,
7
7
  relation,
8
8
  select,
9
9
  text
10
- } from "./chunk-O64EK5FK.js";
10
+ } from "./chunk-EBNMV2VO.js";
11
11
 
12
12
  // src/schema/schemas/posting.ts
13
13
  var POSTING_SCHEMA_IRI = "xnet://xnet.fyi/Posting@1.0.0";