@xnetjs/data 0.0.3 → 0.1.1
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.
- package/dist/account-MWNCH4GJ.js +12 -0
- package/dist/account-ledger-R2GAFJL6.js +38 -0
- package/dist/auth/index.d.ts +11 -4
- package/dist/auth/index.js +1 -1
- package/dist/budget-NN7P35XP.js +12 -0
- package/dist/canvas-6WYBNH53.js +10 -0
- package/dist/channel-AT3LQF4A.js +12 -0
- package/dist/chat-message-DSVO72B3.js +10 -0
- package/dist/{chunk-J6EDPPH4.js → chunk-2ZNJWIQG.js} +2 -2
- package/dist/{chunk-5FHJE7RC.js → chunk-3J3HILXO.js} +2 -2
- package/dist/{chunk-EZA5UT4Y.js → chunk-3RUDVTMH.js} +6 -6
- package/dist/{chunk-YEQ6LLUY.js → chunk-4EYKGTSQ.js} +2 -2
- package/dist/{chunk-L66WXPTW.js → chunk-53F4PRNC.js} +2 -2
- package/dist/{chunk-LGD72FVD.js → chunk-5EXHNXPL.js} +2 -2
- package/dist/{chunk-4U4KBCDN.js → chunk-5HC5NO57.js} +2 -2
- package/dist/{chunk-YWN27MLD.js → chunk-6KLGA6IR.js} +2 -2
- package/dist/{chunk-37267RSF.js → chunk-6OMG4I7M.js} +2 -2
- package/dist/{chunk-DOZJXPQ6.js → chunk-BQLQSWKZ.js} +2 -2
- package/dist/{chunk-V6HZ3LF3.js → chunk-BY5O6LNC.js} +1 -1
- package/dist/{chunk-64AM6JPM.js → chunk-DCTRX6II.js} +1 -1
- package/dist/{chunk-SPFKSTPT.js → chunk-DWEXKD6E.js} +2 -2
- package/dist/{chunk-O64EK5FK.js → chunk-EBNMV2VO.js} +11 -2
- package/dist/{chunk-QVZXXJSP.js → chunk-EI5CY2FZ.js} +524 -82
- package/dist/{chunk-J4IVJA5M.js → chunk-FVEACSKE.js} +2 -2
- package/dist/{chunk-XWA3CJQ6.js → chunk-GU6THOAB.js} +2 -2
- package/dist/{chunk-XTUGZSYQ.js → chunk-H4GA4BBK.js} +2 -2
- package/dist/{chunk-GR3NDMBY.js → chunk-IJ44LR7N.js} +2 -2
- package/dist/{chunk-E6S557NC.js → chunk-J4ANIXIV.js} +2 -2
- package/dist/{chunk-EIQX7INF.js → chunk-JDFNMFOZ.js} +2 -2
- package/dist/{chunk-PSUJEKVV.js → chunk-K7DOZWWT.js} +244 -155
- package/dist/{chunk-UDUPQKRB.js → chunk-KQAT4XBL.js} +2 -2
- package/dist/chunk-KQUALW4O.js +183 -0
- package/dist/{chunk-KPVBKKZS.js → chunk-LYSWLCOI.js} +2 -2
- package/dist/{chunk-YXZGYLKV.js → chunk-MBTUO3ZL.js} +2 -2
- package/dist/{chunk-7GMJOAPF.js → chunk-NI4FHG2K.js} +2 -2
- package/dist/{chunk-6OPZJ7MG.js → chunk-OCMSAKWV.js} +2 -2
- package/dist/{chunk-IP4BEVVD.js → chunk-OGJCRNGE.js} +2 -2
- package/dist/{chunk-6CN53PON.js → chunk-OPPHF3TF.js} +3 -3
- package/dist/{chunk-77UDLVQY.js → chunk-OSAWNZVM.js} +1 -1
- package/dist/{chunk-GWYVY2K4.js → chunk-PNESGUH5.js} +2 -2
- package/dist/{chunk-RSSZXCLL.js → chunk-Q3IEGH4B.js} +2 -2
- package/dist/{chunk-2DSDH2ZH.js → chunk-QJW5LDP4.js} +2 -2
- package/dist/{chunk-JESSJ5CZ.js → chunk-RL64OJJ5.js} +13 -3
- package/dist/{chunk-S4B5OPZU.js → chunk-S5RP5RKY.js} +1 -0
- package/dist/{chunk-4UQTURCD.js → chunk-S6U6TCMN.js} +2 -2
- package/dist/{chunk-C5IRSEEZ.js → chunk-SVNGSZZA.js} +2 -2
- package/dist/{chunk-ZICIXDEE.js → chunk-T5AZAOG5.js} +1 -1
- package/dist/{chunk-IJ675GJR.js → chunk-TCTZW4A6.js} +2 -2
- package/dist/{chunk-54Y7QRZN.js → chunk-U64CW73O.js} +2 -2
- package/dist/{chunk-3RB2FMMO.js → chunk-UQM3G5A2.js} +2 -2
- package/dist/{chunk-ENTHVNOC.js → chunk-VQ7JHB67.js} +2 -2
- package/dist/{chunk-JO6Y4E5V.js → chunk-W7EBL7ZU.js} +2 -2
- package/dist/{chunk-WUR3WWQM.js → chunk-WEPK7SZF.js} +2 -2
- package/dist/{chunk-3JKW6TDE.js → chunk-XMSKJ5PV.js} +2 -2
- package/dist/{chunk-WMSCEBFH.js → chunk-XROI44ZP.js} +2 -2
- package/dist/{chunk-CHZUSBSB.js → chunk-Y3S5SRVM.js} +2 -2
- package/dist/{chunk-KTJLFJEQ.js → chunk-YEFKQYKA.js} +2 -2
- package/dist/{chunk-DTPSTMUD.js → chunk-YSUIXD2Y.js} +2 -2
- package/dist/{chunk-ZMCO3O2Z.js → chunk-ZCOFZY5M.js} +2 -2
- package/dist/{chunk-U6CBYDVZ.js → chunk-ZLU4Y3O2.js} +2 -2
- package/dist/{chunk-337E3ZOB.js → chunk-ZPZ7XDA6.js} +2 -2
- package/dist/{chunk-6GB7PBCR.js → chunk-ZZ6TWKGS.js} +2 -2
- package/dist/{clone-DpbVKLUu.d.ts → clone-C0Jhk2UN.d.ts} +2 -2
- package/dist/comment-QSWYAQVS.js +10 -0
- package/dist/{crm-AAJXYIJY.js → crm-L5RYAAF3.js} +5 -5
- package/dist/dashboard-JMKTTRA7.js +10 -0
- package/dist/database/index.d.ts +3 -3
- package/dist/database/index.js +11 -11
- package/dist/database-GIXSPZJW.js +10 -0
- package/dist/database-field-3EPAMZUR.js +10 -0
- package/dist/database-row-6Q6TRVE4.js +10 -0
- package/dist/database-select-option-BBBJFLLH.js +10 -0
- package/dist/database-view-5PLSOBI2.js +10 -0
- package/dist/experiment-DOVOZ34Y.js +10 -0
- package/dist/{external-item-D654PKLI.js → external-item-P2E5X7BZ.js} +5 -5
- package/dist/external-reference-7BSFF6SA.js +8 -0
- package/dist/feed-2IXHHP6O.js +12 -0
- package/dist/feed-item-DPE6LN7I.js +12 -0
- package/dist/{folder-ONKSWHUT.js → folder-6KM3KYD5.js} +3 -3
- package/dist/{game-BF7DP5JU.js → game-5AK5XWBR.js} +5 -5
- package/dist/grant-WTQSNT5A.js +8 -0
- package/dist/{grant-expiration-cleaner-DBiNTWbD.d.ts → grant-expiration-cleaner-CY6BcmlR.d.ts} +2 -2
- package/dist/import-batch-IXBJLQPJ.js +12 -0
- package/dist/{inbox-state-AN6FPCIY.js → inbox-state-E5NSVOGP.js} +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +101 -55
- package/dist/map-RG5Y3CPC.js +10 -0
- package/dist/media-asset-QTCGLIZA.js +8 -0
- package/dist/{memory-NV6EVJBE.js → memory-PNRTMBZO.js} +3 -3
- package/dist/metric-65SVOX5C.js +10 -0
- package/dist/milestone-XEO6ZGDG.js +12 -0
- package/dist/{moderation-QSUVBCNS.js → moderation-FFHETMRB.js} +3 -3
- package/dist/observation-2Y3QKUXM.js +10 -0
- package/dist/page-2V27JGKJ.js +10 -0
- package/dist/posting-GBOSZCMZ.js +12 -0
- package/dist/profile-BLLDWIDK.js +8 -0
- package/dist/project-CQL5LN26.js +10 -0
- package/dist/{query-ast-CWo6_30h.d.ts → query-ast-C3m6kZYv.d.ts} +1 -1
- package/dist/reaction-T2DTJBBV.js +10 -0
- package/dist/{registry-CQoN_p8U.d.ts → registry-DunPv__d.d.ts} +1 -1
- package/dist/saved-view-4R2DBCL3.js +10 -0
- package/dist/schema/index.d.ts +320 -13
- package/dist/schema/index.js +98 -52
- package/dist/{schema-extension-5BUXRDPB.js → schema-extension-LNRF2YRD.js} +5 -5
- package/dist/{space-PZ737CIS.js → space-IJU24PBH.js} +6 -6
- package/dist/{space-membership-N35NRX6F.js → space-membership-DEUMM7NV.js} +3 -3
- package/dist/store/index.d.ts +153 -7
- package/dist/store/index.js +5 -5
- package/dist/{store-CvgiydME.d.ts → store-DtIDjk7c.d.ts} +18 -1
- package/dist/{system-Q5I6STDC.js → system-ILHCZOVO.js} +3 -3
- package/dist/{tag-C677GKQW.js → tag-SKCHM3U5.js} +3 -3
- package/dist/{task-WQLMPN5U.js → task-7AOBP7WC.js} +5 -5
- package/dist/task-view-NUGKELJP.js +10 -0
- package/dist/transaction-ZDSEGDIR.js +12 -0
- package/dist/transcription-PSCLDAGX.js +12 -0
- package/dist/{types-Def-5Nka.d.ts → types-S-BJAKyK.d.ts} +53 -2
- package/dist/user-widget-RLY2N46A.js +8 -0
- package/package.json +7 -7
- package/dist/account-BZHETMC4.js +0 -12
- package/dist/budget-WR2Q4YH3.js +0 -12
- package/dist/canvas-HFMMVQLD.js +0 -10
- package/dist/channel-DXDYJ3ZH.js +0 -12
- package/dist/chat-message-QUUQGXEW.js +0 -10
- package/dist/comment-Y2Y3QYYI.js +0 -10
- package/dist/dashboard-3DC6B4BJ.js +0 -10
- package/dist/database-DRGL5UYS.js +0 -10
- package/dist/database-field-F47FY3XX.js +0 -10
- package/dist/database-row-77OXW2NF.js +0 -10
- package/dist/database-select-option-6S3TTA7A.js +0 -10
- package/dist/database-view-YW7DQG5X.js +0 -10
- package/dist/experiment-TJOAL3OH.js +0 -10
- package/dist/external-reference-K5SUJIQN.js +0 -8
- package/dist/feed-L23XTNDI.js +0 -12
- package/dist/feed-item-GSO242J6.js +0 -12
- package/dist/grant-NNKMWXPX.js +0 -8
- package/dist/import-batch-JMESZ4VI.js +0 -12
- package/dist/map-AUV65YS3.js +0 -10
- package/dist/media-asset-4I5YPR4R.js +0 -8
- package/dist/metric-X7W55DLC.js +0 -10
- package/dist/milestone-JJGOGK4R.js +0 -12
- package/dist/observation-UZSXXGBC.js +0 -10
- package/dist/page-NI7XODS6.js +0 -10
- package/dist/posting-FZOYVGH2.js +0 -12
- package/dist/profile-42A43GES.js +0 -8
- package/dist/project-G2CTLDXY.js +0 -10
- package/dist/reaction-VAQBVDUD.js +0 -10
- package/dist/saved-view-AOQHGHNM.js +0 -10
- package/dist/task-view-T5S32V4L.js +0 -10
- package/dist/transaction-U3ITRGJP.js +0 -12
- package/dist/transcription-F3T23LLO.js +0 -12
- 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
|
+
};
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
package/dist/auth/index.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spaceCascadeAuthorization
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
7
|
+
} from "./chunk-EBNMV2VO.js";
|
|
8
8
|
import {
|
|
9
9
|
presets
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
19
|
+
} from "./chunk-DWEXKD6E.js";
|
|
20
20
|
import {
|
|
21
21
|
DatabaseFieldSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KQAT4XBL.js";
|
|
23
23
|
import {
|
|
24
24
|
DatabaseSelectOptionSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6OMG4I7M.js";
|
|
26
26
|
import {
|
|
27
27
|
DatabaseViewSchema
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-H4GA4BBK.js";
|
|
29
29
|
import {
|
|
30
30
|
createNodeQueryDescriptor
|
|
31
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
+
} from "./chunk-EBNMV2VO.js";
|
|
6
6
|
import {
|
|
7
7
|
presets
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
+
} from "./chunk-EBNMV2VO.js";
|
|
8
8
|
import {
|
|
9
9
|
presets
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-OCMSAKWV.js";
|
|
4
4
|
import {
|
|
5
5
|
defineSchema,
|
|
6
6
|
relation,
|
|
7
7
|
text
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
14
|
+
} from "./chunk-EBNMV2VO.js";
|
|
15
15
|
|
|
16
16
|
// src/schema/schemas/game.ts
|
|
17
17
|
var GAME_NAMESPACE = "xnet://xnet.fyi/";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spaceCascadeAuthorization
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OCMSAKWV.js";
|
|
4
4
|
import {
|
|
5
5
|
defineSchema,
|
|
6
6
|
relation,
|
|
7
7
|
text
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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);
|