@xnetjs/data 0.9.0 → 0.11.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.
- package/dist/{chat-message-DSVO72B3.js → chat-message-47LETTYF.js} +1 -1
- package/dist/{chunk-Y7UC2V5U.js → chunk-3L73ZALR.js} +27 -12
- package/dist/{chunk-5HC5NO57.js → chunk-MCKP4F72.js} +2 -0
- package/dist/{chunk-Q3IEGH4B.js → chunk-QVQVKZ3U.js} +2 -0
- package/dist/{chunk-DCTRX6II.js → chunk-TORDOOJ5.js} +18 -3
- package/dist/{comment-QSWYAQVS.js → comment-NIMFL4XB.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +310 -300
- package/dist/profile-XBPZQA3C.js +12 -0
- package/dist/schema/index.d.ts +58 -2
- package/dist/schema/index.js +33 -23
- package/dist/store/index.js +2 -2
- package/package.json +7 -7
- package/dist/profile-BLLDWIDK.js +0 -8
- package/dist/{chunk-AIENVDXA.js → chunk-QN334DU7.js} +5 -5
|
@@ -8,12 +8,6 @@ import {
|
|
|
8
8
|
revocationRecordId,
|
|
9
9
|
revokedSubjects
|
|
10
10
|
} from "./chunk-KQUALW4O.js";
|
|
11
|
-
import {
|
|
12
|
-
PresenceSummarySchema,
|
|
13
|
-
SchemaDefinitionSchema,
|
|
14
|
-
buildSystemNodeId,
|
|
15
|
-
validateSchemaDefinitionNode
|
|
16
|
-
} from "./chunk-BY5O6LNC.js";
|
|
17
11
|
import {
|
|
18
12
|
extKey
|
|
19
13
|
} from "./chunk-PMUQACPY.js";
|
|
@@ -21,6 +15,12 @@ import {
|
|
|
21
15
|
EXTENSION_FIELD_SCHEMA_IRI,
|
|
22
16
|
SCHEMA_EXTENSION_SCHEMA_IRI
|
|
23
17
|
} from "./chunk-WEPK7SZF.js";
|
|
18
|
+
import {
|
|
19
|
+
PresenceSummarySchema,
|
|
20
|
+
SchemaDefinitionSchema,
|
|
21
|
+
buildSystemNodeId,
|
|
22
|
+
validateSchemaDefinitionNode
|
|
23
|
+
} from "./chunk-BY5O6LNC.js";
|
|
24
24
|
import {
|
|
25
25
|
checkbox,
|
|
26
26
|
createNodeId,
|
|
@@ -95,6 +95,18 @@ function isValidMentions(value) {
|
|
|
95
95
|
return raw.dids.every((d) => typeof d === "string" && DID_PATTERN.test(d));
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
// src/schema/schemas/link-preview.ts
|
|
99
|
+
var MAX_LINK_PREVIEWS_PER_MESSAGE = 3;
|
|
100
|
+
function isMessageLinkPreview(value) {
|
|
101
|
+
if (!value || typeof value !== "object") return false;
|
|
102
|
+
const preview = value;
|
|
103
|
+
return typeof preview.url === "string" && (preview.kind === "share" || preview.kind === "external") && typeof preview.title === "string" && typeof preview.domain === "string" && typeof preview.resolvedAt === "number";
|
|
104
|
+
}
|
|
105
|
+
function sanitizeLinkPreviews(value) {
|
|
106
|
+
if (!Array.isArray(value)) return [];
|
|
107
|
+
return value.filter(isMessageLinkPreview).slice(0, MAX_LINK_PREVIEWS_PER_MESSAGE);
|
|
108
|
+
}
|
|
109
|
+
|
|
98
110
|
// src/schema/schemas/account-ledger-ops.ts
|
|
99
111
|
function createAccountRecord(args) {
|
|
100
112
|
return {
|
|
@@ -384,11 +396,11 @@ var builtInSchemas = {
|
|
|
384
396
|
"xnet://xnet.fyi/MeetingTranscript@1.0.0": () => import("./meeting-LMUYTZBF.js").then((m) => m.MeetingTranscriptSchema),
|
|
385
397
|
"xnet://xnet.fyi/Canvas@1.0.0": () => import("./canvas-6WYBNH53.js").then((m) => m.CanvasSchema),
|
|
386
398
|
"xnet://xnet.fyi/Map@1.0.0": () => import("./map-RG5Y3CPC.js").then((m) => m.MapSchema),
|
|
387
|
-
"xnet://xnet.fyi/Comment@1.0.0": () => import("./comment-
|
|
399
|
+
"xnet://xnet.fyi/Comment@1.0.0": () => import("./comment-NIMFL4XB.js").then((m) => m.CommentSchema),
|
|
388
400
|
"xnet://xnet.fyi/Reaction@1.0.0": () => import("./reaction-T2DTJBBV.js").then((m) => m.ReactionSchema),
|
|
389
|
-
"xnet://xnet.fyi/Profile@1.0.0": () => import("./profile-
|
|
401
|
+
"xnet://xnet.fyi/Profile@1.0.0": () => import("./profile-XBPZQA3C.js").then((m) => m.ProfileSchema),
|
|
390
402
|
"xnet://xnet.fyi/Channel@1.0.0": () => import("./channel-AT3LQF4A.js").then((m) => m.ChannelSchema),
|
|
391
|
-
"xnet://xnet.fyi/ChatMessage@1.0.0": () => import("./chat-message-
|
|
403
|
+
"xnet://xnet.fyi/ChatMessage@1.0.0": () => import("./chat-message-47LETTYF.js").then((m) => m.ChatMessageSchema),
|
|
392
404
|
// Integration schema pack (exploration 0213)
|
|
393
405
|
"xnet://xnet.fyi/Feed@1.0.0": () => import("./feed-2IXHHP6O.js").then((m) => m.FeedSchema),
|
|
394
406
|
"xnet://xnet.fyi/FeedItem@1.0.0": () => import("./feed-item-DPE6LN7I.js").then((m) => m.FeedItemSchema),
|
|
@@ -471,11 +483,11 @@ var builtInSchemas = {
|
|
|
471
483
|
"xnet://xnet.fyi/MeetingTranscript": () => import("./meeting-LMUYTZBF.js").then((m) => m.MeetingTranscriptSchema),
|
|
472
484
|
"xnet://xnet.fyi/Canvas": () => import("./canvas-6WYBNH53.js").then((m) => m.CanvasSchema),
|
|
473
485
|
"xnet://xnet.fyi/Map": () => import("./map-RG5Y3CPC.js").then((m) => m.MapSchema),
|
|
474
|
-
"xnet://xnet.fyi/Comment": () => import("./comment-
|
|
486
|
+
"xnet://xnet.fyi/Comment": () => import("./comment-NIMFL4XB.js").then((m) => m.CommentSchema),
|
|
475
487
|
"xnet://xnet.fyi/Reaction": () => import("./reaction-T2DTJBBV.js").then((m) => m.ReactionSchema),
|
|
476
|
-
"xnet://xnet.fyi/Profile": () => import("./profile-
|
|
488
|
+
"xnet://xnet.fyi/Profile": () => import("./profile-XBPZQA3C.js").then((m) => m.ProfileSchema),
|
|
477
489
|
"xnet://xnet.fyi/Channel": () => import("./channel-AT3LQF4A.js").then((m) => m.ChannelSchema),
|
|
478
|
-
"xnet://xnet.fyi/ChatMessage": () => import("./chat-message-
|
|
490
|
+
"xnet://xnet.fyi/ChatMessage": () => import("./chat-message-47LETTYF.js").then((m) => m.ChatMessageSchema),
|
|
479
491
|
"xnet://xnet.fyi/Feed": () => import("./feed-2IXHHP6O.js").then((m) => m.FeedSchema),
|
|
480
492
|
"xnet://xnet.fyi/FeedItem": () => import("./feed-item-DPE6LN7I.js").then((m) => m.FeedItemSchema),
|
|
481
493
|
"xnet://xnet.fyi/ExternalItem": () => import("./external-item-P2E5X7BZ.js").then((m) => m.ExternalItemSchema),
|
|
@@ -1760,6 +1772,9 @@ export {
|
|
|
1760
1772
|
normalizeMentions,
|
|
1761
1773
|
mentionsInclude,
|
|
1762
1774
|
isValidMentions,
|
|
1775
|
+
MAX_LINK_PREVIEWS_PER_MESSAGE,
|
|
1776
|
+
isMessageLinkPreview,
|
|
1777
|
+
sanitizeLinkPreviews,
|
|
1763
1778
|
createAccountRecord,
|
|
1764
1779
|
admitDeviceRecord,
|
|
1765
1780
|
nextEpoch,
|
|
@@ -58,6 +58,8 @@ var CommentSchema = defineSchema({
|
|
|
58
58
|
* legacy text-parsed mentions (commentReferences.ts) remain as fallback.
|
|
59
59
|
*/
|
|
60
60
|
mentions: json({}),
|
|
61
|
+
/** Composer-resolved URL previews (0295) — never parsed from content */
|
|
62
|
+
linkPreviews: json({}),
|
|
61
63
|
// ─── Pseudo Reply-To (for UI, not structural threading) ────────────────────
|
|
62
64
|
/** DID of user being replied to (UI hint) */
|
|
63
65
|
replyToUser: person({}),
|
|
@@ -38,6 +38,8 @@ var ChatMessageSchema = defineSchema({
|
|
|
38
38
|
tags: relation({ target: "xnet://xnet.fyi/Tag@1.0.0", multiple: true }),
|
|
39
39
|
/** Node ids from the composer's [[ link picks (exploration 0170) */
|
|
40
40
|
links: relation({ multiple: true }),
|
|
41
|
+
/** Composer-resolved URL previews (0295) — never parsed from content */
|
|
42
|
+
linkPreviews: json({}),
|
|
41
43
|
createdAt: created(),
|
|
42
44
|
createdBy: createdBy()
|
|
43
45
|
},
|
|
@@ -23,8 +23,14 @@ var ProfileSchema = defineSchema({
|
|
|
23
23
|
* scope — the DID remains the source of truth.
|
|
24
24
|
*/
|
|
25
25
|
handle: text({ maxLength: 32 }),
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Avatar image: an https URL or a small inline `data:image/*` URL.
|
|
28
|
+
* Inline data URLs keep the picture inside the Profile node itself, so it
|
|
29
|
+
* reaches share recipients through the same sync path as the name — no
|
|
30
|
+
* separate blob authorization. Uploads are downscaled/re-encoded
|
|
31
|
+
* client-side (which also strips EXIF metadata) to fit this budget.
|
|
32
|
+
*/
|
|
33
|
+
avatar: text({ maxLength: 65536 }),
|
|
28
34
|
/** Short status emoji (e.g. 🔴, 🌴) */
|
|
29
35
|
statusEmoji: text({ maxLength: 32 }),
|
|
30
36
|
/** Free-form status message */
|
|
@@ -34,7 +40,16 @@ var ProfileSchema = defineSchema({
|
|
|
34
40
|
},
|
|
35
41
|
document: void 0
|
|
36
42
|
});
|
|
43
|
+
function profileNodeId(did) {
|
|
44
|
+
return `profile-${did}`;
|
|
45
|
+
}
|
|
46
|
+
function didFromProfileNodeId(nodeId) {
|
|
47
|
+
if (!nodeId.startsWith("profile-did:")) return null;
|
|
48
|
+
return nodeId.slice("profile-".length);
|
|
49
|
+
}
|
|
37
50
|
|
|
38
51
|
export {
|
|
39
|
-
ProfileSchema
|
|
52
|
+
ProfileSchema,
|
|
53
|
+
profileNodeId,
|
|
54
|
+
didFromProfileNodeId
|
|
40
55
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { a5 as ApplyNodeBatchInput, a6 as ApplyNodeBatchResult, b1 as AuthGrant, av as ConflictResult, ay as ContentKeyCache, ae as CountNodesOptions, H as CreateNodeOptions, C as CreateNodeStoreOptions, aX as DEFAULT_OFFLINE_POLICY, y as DID, D as DefinedSchema, ab as DeterministicNodeBatchWriteInput, m as DeterministicNodeImportDraft, aV as GRANT_SCHEMA_IRI, G as GetWithMigrationOptions, w as GrantIndex, b0 as GrantInput, aU as GrantRateLimiter, n as ImportDeterministicNodesOptions, o as ImportDeterministicNodesResult, a3 as ImportNodesOptions, I as InferCreateProps, Q as InferNode, K as InferProperties, J as InferPropertyType, W as LensOperation, Z as LensRegistry, L as ListNodesOptions, s as MergeConflict, M as MigratedNodeState, Y as MigrationError, az as MigrationInfo, X as MigrationResult, x as Node, aw as NodeBatchChangeEvent, u as NodeBatchChangeListener, a7 as NodeBatchIndexMode, a8 as NodeBatchNotificationMode, aa as NodeBatchPreflightResult, a9 as NodeBatchSyncMode, p as NodeBatchWriteInput, ac as NodeBatchWritePolicy, q as NodeBatchWriteResult, ad as NodeBatchWriteTimings, r as NodeChange, v as NodeChangeEvent, t as NodeChangeListener, ax as NodeContentCipher, i as NodeId, a0 as NodePayload, ar as NodeQueryCursor, aq as NodeQueryCursorOrderEntry, j as NodeQueryDescriptor, ao as NodeQueryMaterializedViewOptions, as as NodeQueryOptions, N as NodeQueryPageCountMode, ap as NodeQueryPageOptions, au as NodeQueryParityCheckMetadata, at as NodeQueryPlanMetadata, k as NodeQueryResult, am as NodeQuerySearchField, an as NodeQuerySearchFilter, al as NodeQuerySpatialFilter, af as NodeQuerySpatialPoint, ah as NodeQuerySpatialPointFields, ak as NodeQuerySpatialRadius, ag as NodeQuerySpatialRect, ai as NodeQuerySpatialRectFields, aj as NodeQuerySpatialWindow, h as NodeState, g as NodeStorageAdapter, f as NodeStoreOptions, O as OfflineAuthPolicy, P as PropertyBuilder, E as PropertyDefinition, $ as PropertyKey, a1 as PropertyTimestamp, B as PropertyType, a4 as RebuildNodeIndexesOptions, a as Schema, S as SchemaIRI, R as SchemaLens, aR as SchemaLookup, a2 as SetNodeOptions, c as SortDirection, aT as StoreAuth, e as StoreAuthAPI, b2 as StoreAuthError, b3 as StoreAuthErrorCode, a$ as StoreAuthKeyManager, aZ as StoreAuthOptions, a_ as StoreAuthStore, d as SystemOrderField, aO as TEMP_ID_PREFIX, aS as TempIdResolution, T as TransactionOperation, l as TransactionResult, U as UpdateNodeOptions, F as ValidationError, V as ValidationResult, aI as applyNodeQueryDescriptor, A as createNodeId, aA as createNodeQueryDescriptor, aQ as createSchemaLookup, aC as decodeNodeQueryCursor, aB as encodeNodeQueryCursor, aG as filterNodeQueryResults, aJ as getNodeQuerySearchTokens, aW as isGrantActive, z as isNode, aN as isTempId, _ as lensRegistry, aF as matchesNodeQueryDescriptor, aY as mergeOfflinePolicy, aK as nodeQueryDescriptorNeedsBoundedReload, aD as nodeQueryDescriptorToOptions, aP as resolveTempIds, aE as serializeNodeQueryDescriptor, aH as sortNodeQueryResults, aM as withoutNodeQueryMaterializedView, aL as withoutNodeQueryPagination } from './types-BB8-SLEa.js';
|
|
2
2
|
import { FileRef } from './schema/index.js';
|
|
3
|
-
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, AbuseReport, AbuseReportSchema, Account, AccountClassId, AccountRecord, AccountRecordSchema, AccountSchema, Achievement, AchievementSchema, Activity, ActivityKind, ActivitySchema, AnchorData, AnchorType, Appeal, AppealSchema, BUDGET_SCHEMA_IRI, Budget, BudgetPeriod, BudgetSchema, BuiltInSchemaIRI, CHANNEL_KINDS, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, CRM_NAMESPACE, Canvas, CanvasObjectAnchor, CanvasObjectAnchorPlacement, CanvasPositionAnchor, CanvasSchema, CellAnchor, Channel, ChannelKind, ChannelNotifyTier, ChannelSchema, ChatMessage, ChatMessageSchema, CheckboxOptions, ColumnAnchor, Comment, CommentSchema, CommunityNote, CommunityNoteSchema, Contact, ContactLifecycle, ContactSchema, ContentProvenance, ContentProvenanceSchema, CoreSchemaResolver, CreatedByOptions, CreatedOptions, CrmVisibility, DEAL_CONTACT_ROLES, DEAL_CONTACT_ROLE_SCHEMA_IRI, DEAL_SCHEMA_IRI, DEAL_SOURCES, DEFAULT_CHANNEL_TIER, DEVICE_RECORD_SCHEMA_IRI, Dashboard, DashboardBreakpointId, DashboardLayoutItem, DashboardLayouts, DashboardSchema, DashboardTimeRange, DashboardVariablesState, DashboardWidgetInstance, DashboardWidgetRefresh, Database, DatabaseField, DatabaseFieldSchema, DatabaseRow, DatabaseRowSchema, DatabaseSchema, DatabaseSelectOption, DatabaseSelectOptionSchema, DatabaseView, DatabaseViewSchema, DateOptions, DateRange, DateRangeOptions, Deal, DealContactRole, DealContactRoleKind, DealContactRoleSchema, DealSchema, DealSource, DefineSchemaOptions, DeviceLike, DeviceRecord, DeviceRecordSchema, EXTENSION_FIELD_SCHEMA_IRI, EXTERNAL_ITEM_SCHEMA_IRI, EXTERNAL_ITEM_SOURCES, EXT_PREFIX, EffectiveExtensionField, EmailOptions, Experiment, ExperimentDesign, ExperimentPhase, ExperimentSchema, ExperimentStatus, ExtensionField, ExtensionFieldRecord, ExtensionFieldSchema, ExtensionRecord, ExternalItem, ExternalItemSchema, ExternalReference, ExternalReferenceSchema, FEED_ITEM_SCHEMA_IRI, FEED_SCHEMA_IRI, FOLDER_SCHEMA_IRI, FORECAST_CATEGORIES, Feed, FeedItem, FeedItemSchema, FeedSchema, FileOptions, Folder, FolderLike, FolderSchema, FolderTreeNode, ForecastCategory, GAME_ASSET_FORMATS, GAME_ASSET_MIME_TYPES, GAME_ASSET_SCHEMA_IRI, GAME_ECONOMY_ENTRY_SCHEMA_IRI, GAME_ITEM_SCHEMA_IRI, GAME_NAMESPACE, GAME_SCHEMA_IRIS, GameAsset, GameAssetFormat, GameAssetSchema, GameEconomyEntry, GameEconomyEntrySchema, GameItem, GameItemSchema, GameVisibility, GeoFeature, GeoFeatureCollection, GeoGeometry, GeoPosition, Grant, GrantSchema, IMPORT_BATCH_SCHEMA_IRI, INVENTORY_SCHEMA_IRI, ITEM_RARITIES, ImportBatch, ImportBatchSchema, ImportSource, InboxItemTriage, InboxState, InboxStateSchema, InboxWatermark, Inventory, InventorySchema, ItemRarity, JsonOptions, LINE_ITEM_SCHEMA_IRI, LedgerNodeIntent, LineItem, LineItemSchema, MATCH_RESULTS, MATCH_SESSION_SCHEMA_IRI, MAX_MENTION_DIDS, MAX_TAG_NAME_LENGTH, MEETING_CHANNELS, MEETING_SCHEMA_IRI, MEETING_TEMPLATE_IDS, MEETING_TRANSCRIPT_SCHEMA_IRI, MEMORY_ITEM_SCHEMA_IRI, MEMORY_KINDS, MILESTONE_SCHEMA_IRI, Map, MapBasemapId, MapLayerGeometry, MapLayerSource, MapLayerSpec, MapLayerStyle, MapSchema, MapViewport, MatchResult, MatchSession, MatchSessionSchema, MediaAsset, MediaAssetSchema, Meeting, MeetingChannel, MeetingSchema, MeetingSegment, MeetingTemplateId, MeetingTranscript, MeetingTranscriptSchema, MemoryItem, MemoryItemSchema, MemoryKind, Mention, MessageMentions, MessageRequest, MessageRequestSchema, Metric, MetricKind, MetricPolarity, MetricScheduleId, MetricSchema, Milestone, MilestoneSchema, ModerationLabel, ModerationLabelSchema, MoneyOptions, MoneyValue, MultiSelectOptions, NODE_VISIBILITY, NodeAnchor, NodeVisibility, NoteRating, NoteRatingSchema, NotificationPrefs, NumberOptions, ORGANIZATION_SCHEMA_IRI, ORGANIZATION_SIZES, Observation, ObservationPhase, ObservationSchema, Organization, OrganizationSchema, OrganizationSize, OrphanReason, OrphanResolvers, OrphanStatus, PIPELINE_SCHEMA_IRI, PLAYER_IDENTITY_SCHEMA_IRI, POSTING_SCHEMA_IRI, PRODUCT_KINDS, PRODUCT_SCHEMA_IRI, Page, PageSchema, ParsedSystemNamespaceResource, ParsedTaskShortId, PersonOptions, PhoneOptions, Pipeline, PipelineSchema, PlayerIdentity, PlayerIdentitySchema, PolicyList, PolicyListSchema, PolicySubscription, PolicySubscriptionSchema, Posting, PostingSchema, PresenceAggregator, PresenceAggregatorOptions, PresenceAggregatorStore, PresenceCountBucket, PresenceSummary, PresenceSummaryDescriptor, PresenceSummarySchema, PresenceVisibility, PresenceVisibilityResolver, Product, ProductKind, ProductSchema, Profile, ProfileSchema, Project, ProjectSchema, PublicInteractionPolicy, PublicInteractionPolicySchema, QualitySignal, QualitySignalSchema, RECOVERY_RECORD_SCHEMA_IRI, RELATIONSHIP_KINDS, RELATIONSHIP_SCHEMA_IRI, REVOCATION_RECORD_SCHEMA_IRI, Reaction, ReactionSchema, RecoveryRecord, RecoveryRecordSchema, RelationOptions, Relationship, RelationshipKind, RelationshipSchema, ReviewTask, ReviewTaskSchema, RevocationLike, RevocationRecord, RevocationRecordSchema, RowAnchor, SCHEMA_EXTENSION_SCHEMA_IRI, SIDECAR_PREFIX, SPACE_KINDS, SPACE_MEMBERSHIP_SCHEMA_IRI, SPACE_ROLES, SPACE_SCHEMA_IRI, SPACE_VISIBILITY, STAGE_SCHEMA_IRI, SYSTEM_NAMESPACE_KINDS, SYSTEM_SCHEMA_BASE_IRIS, SYSTEM_SCHEMA_IRIS, SavedView, SavedViewSchema, SchemaAuthorityResolution, SchemaAuthorityResolutionKind, SchemaAuthorityResolutionOptions, SchemaCompatibility, SchemaCompatibilityMode, SchemaCompatibilitySchema, SchemaDefinition, SchemaDefinitionSchema, SchemaDefinitionSigningInput, SchemaDefinitionStatus, SchemaExtension, SchemaExtensionSchema, SelectOption, SelectOptions, SidecarOverlay, Space, SpaceKind, SpaceLike, SpaceMembership, SpaceMembershipSchema, SpaceRole, SpaceSchema, SpaceTreeNode, SpaceVisibility, Stage, StageSchema, SyncPolicy, SyncPolicySchema, SyncPolicyStatus, SystemFederationErrorCode, SystemNamespaceKind, SystemSchemaDefinitionRecord, SystemSchemaIndex, SystemSchemaIndexDiagnostic, SystemSchemaIndexOptions, SystemSchemaIndexStore, TAG_SCHEMA_IRI, TASK_SHORT_ID_PATTERN, TASK_STATUS_CATEGORIES, TRANSACTION_SCHEMA_IRI, TRANSCRIPTION_SCHEMA_IRI, Tag, TagSchema, Task, TaskSchema, TaskShortIdBlock, TaskStatusCategory, TaskStatusId, TaskView, TaskViewSchema, TextAnchor, TextOptions, Transaction, TransactionSchema, TransactionStatus, Transcription, TranscriptionSchema, TranscriptionSourceId, UpdatedOptions, UrlOptions, UserWidget, UserWidgetConfigField, UserWidgetSchema, UserWidgetSize, ValidateSchemaDefinitionNodeOptions, Workspace, WorkspaceSchema, WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, bucketPresenceCount, buildEffectiveSchema, buildFolderTree, buildSpaceTree, buildSystemNamespace, buildSystemNodeId, builtInSchemas, canManageSpace, canModifyColumn, checkOrphanStatus, checkbox, compareSpaceRoles, composeLens, computeSchemaDefinitionContentHash, convert, copy, createAccountRecord, createNodeGraphSchemaResolver, createOperations, createSchemaDefinitionSigningPayload, created, createdBy, crmSchemas, date, dateRange, decodeAnchor, defineSchema, deviceRecipientExpander, deviceRecordId, effectiveSpaceRole, email, encodeAnchor, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, promoteOverlay, recoveryRecordId, relation, remove, rename, resolveActiveDevices, resolveEffectiveSchema, resolveSchemaAuthority, revocationRecordId, revokeDeviceRecord, revokeSubjectRecord, revokedSubjects, schemaExtensionId, select, selectExtensionFields, shortIdsFromBlock, sidecarId, sidecarOverlayKeys, spaceAncestorIds, spaceMembershipId, spacePathIds, spaceRoleGrantActions, spaceRoleToShareRole, summarizePresenceNodes, taskBranchName, text, transform, updated, url, validateSchemaDefinitionNode, when, wouldCreateFolderCycle, wouldCreateSpaceCycle } from './schema/index.js';
|
|
3
|
+
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, AbuseReport, AbuseReportSchema, Account, AccountClassId, AccountRecord, AccountRecordSchema, AccountSchema, Achievement, AchievementSchema, Activity, ActivityKind, ActivitySchema, AnchorData, AnchorType, Appeal, AppealSchema, BUDGET_SCHEMA_IRI, Budget, BudgetPeriod, BudgetSchema, BuiltInSchemaIRI, CHANNEL_KINDS, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, CRM_NAMESPACE, Canvas, CanvasObjectAnchor, CanvasObjectAnchorPlacement, CanvasPositionAnchor, CanvasSchema, CellAnchor, Channel, ChannelKind, ChannelNotifyTier, ChannelSchema, ChatMessage, ChatMessageSchema, CheckboxOptions, ColumnAnchor, Comment, CommentSchema, CommunityNote, CommunityNoteSchema, Contact, ContactLifecycle, ContactSchema, ContentProvenance, ContentProvenanceSchema, CoreSchemaResolver, CreatedByOptions, CreatedOptions, CrmVisibility, DEAL_CONTACT_ROLES, DEAL_CONTACT_ROLE_SCHEMA_IRI, DEAL_SCHEMA_IRI, DEAL_SOURCES, DEFAULT_CHANNEL_TIER, DEVICE_RECORD_SCHEMA_IRI, Dashboard, DashboardBreakpointId, DashboardLayoutItem, DashboardLayouts, DashboardSchema, DashboardTimeRange, DashboardVariablesState, DashboardWidgetInstance, DashboardWidgetRefresh, Database, DatabaseField, DatabaseFieldSchema, DatabaseRow, DatabaseRowSchema, DatabaseSchema, DatabaseSelectOption, DatabaseSelectOptionSchema, DatabaseView, DatabaseViewSchema, DateOptions, DateRange, DateRangeOptions, Deal, DealContactRole, DealContactRoleKind, DealContactRoleSchema, DealSchema, DealSource, DefineSchemaOptions, DeviceLike, DeviceRecord, DeviceRecordSchema, EXTENSION_FIELD_SCHEMA_IRI, EXTERNAL_ITEM_SCHEMA_IRI, EXTERNAL_ITEM_SOURCES, EXT_PREFIX, EffectiveExtensionField, EmailOptions, Experiment, ExperimentDesign, ExperimentPhase, ExperimentSchema, ExperimentStatus, ExtensionField, ExtensionFieldRecord, ExtensionFieldSchema, ExtensionRecord, ExternalItem, ExternalItemSchema, ExternalReference, ExternalReferenceSchema, FEED_ITEM_SCHEMA_IRI, FEED_SCHEMA_IRI, FOLDER_SCHEMA_IRI, FORECAST_CATEGORIES, Feed, FeedItem, FeedItemSchema, FeedSchema, FileOptions, Folder, FolderLike, FolderSchema, FolderTreeNode, ForecastCategory, GAME_ASSET_FORMATS, GAME_ASSET_MIME_TYPES, GAME_ASSET_SCHEMA_IRI, GAME_ECONOMY_ENTRY_SCHEMA_IRI, GAME_ITEM_SCHEMA_IRI, GAME_NAMESPACE, GAME_SCHEMA_IRIS, GameAsset, GameAssetFormat, GameAssetSchema, GameEconomyEntry, GameEconomyEntrySchema, GameItem, GameItemSchema, GameVisibility, GeoFeature, GeoFeatureCollection, GeoGeometry, GeoPosition, Grant, GrantSchema, IMPORT_BATCH_SCHEMA_IRI, INVENTORY_SCHEMA_IRI, ITEM_RARITIES, ImportBatch, ImportBatchSchema, ImportSource, InboxItemTriage, InboxState, InboxStateSchema, InboxWatermark, Inventory, InventorySchema, ItemRarity, JsonOptions, LINE_ITEM_SCHEMA_IRI, LedgerNodeIntent, LineItem, LineItemSchema, MATCH_RESULTS, MATCH_SESSION_SCHEMA_IRI, MAX_LINK_PREVIEWS_PER_MESSAGE, MAX_MENTION_DIDS, MAX_TAG_NAME_LENGTH, MEETING_CHANNELS, MEETING_SCHEMA_IRI, MEETING_TEMPLATE_IDS, MEETING_TRANSCRIPT_SCHEMA_IRI, MEMORY_ITEM_SCHEMA_IRI, MEMORY_KINDS, MILESTONE_SCHEMA_IRI, Map, MapBasemapId, MapLayerGeometry, MapLayerSource, MapLayerSpec, MapLayerStyle, MapSchema, MapViewport, MatchResult, MatchSession, MatchSessionSchema, MediaAsset, MediaAssetSchema, Meeting, MeetingChannel, MeetingSchema, MeetingSegment, MeetingTemplateId, MeetingTranscript, MeetingTranscriptSchema, MemoryItem, MemoryItemSchema, MemoryKind, Mention, MessageLinkPreview, MessageMentions, MessageRequest, MessageRequestSchema, Metric, MetricKind, MetricPolarity, MetricScheduleId, MetricSchema, Milestone, MilestoneSchema, ModerationLabel, ModerationLabelSchema, MoneyOptions, MoneyValue, MultiSelectOptions, NODE_VISIBILITY, NodeAnchor, NodeVisibility, NoteRating, NoteRatingSchema, NotificationPrefs, NumberOptions, ORGANIZATION_SCHEMA_IRI, ORGANIZATION_SIZES, Observation, ObservationPhase, ObservationSchema, Organization, OrganizationSchema, OrganizationSize, OrphanReason, OrphanResolvers, OrphanStatus, PIPELINE_SCHEMA_IRI, PLAYER_IDENTITY_SCHEMA_IRI, POSTING_SCHEMA_IRI, PRODUCT_KINDS, PRODUCT_SCHEMA_IRI, Page, PageSchema, ParsedSystemNamespaceResource, ParsedTaskShortId, PersonOptions, PhoneOptions, Pipeline, PipelineSchema, PlayerIdentity, PlayerIdentitySchema, PolicyList, PolicyListSchema, PolicySubscription, PolicySubscriptionSchema, Posting, PostingSchema, PresenceAggregator, PresenceAggregatorOptions, PresenceAggregatorStore, PresenceCountBucket, PresenceSummary, PresenceSummaryDescriptor, PresenceSummarySchema, PresenceVisibility, PresenceVisibilityResolver, Product, ProductKind, ProductSchema, Profile, ProfileSchema, Project, ProjectSchema, PublicInteractionPolicy, PublicInteractionPolicySchema, QualitySignal, QualitySignalSchema, RECOVERY_RECORD_SCHEMA_IRI, RELATIONSHIP_KINDS, RELATIONSHIP_SCHEMA_IRI, REVOCATION_RECORD_SCHEMA_IRI, Reaction, ReactionSchema, RecoveryRecord, RecoveryRecordSchema, RelationOptions, Relationship, RelationshipKind, RelationshipSchema, ReviewTask, ReviewTaskSchema, RevocationLike, RevocationRecord, RevocationRecordSchema, RowAnchor, SCHEMA_EXTENSION_SCHEMA_IRI, SIDECAR_PREFIX, SPACE_KINDS, SPACE_MEMBERSHIP_SCHEMA_IRI, SPACE_ROLES, SPACE_SCHEMA_IRI, SPACE_VISIBILITY, STAGE_SCHEMA_IRI, SYSTEM_NAMESPACE_KINDS, SYSTEM_SCHEMA_BASE_IRIS, SYSTEM_SCHEMA_IRIS, SavedView, SavedViewSchema, SchemaAuthorityResolution, SchemaAuthorityResolutionKind, SchemaAuthorityResolutionOptions, SchemaCompatibility, SchemaCompatibilityMode, SchemaCompatibilitySchema, SchemaDefinition, SchemaDefinitionSchema, SchemaDefinitionSigningInput, SchemaDefinitionStatus, SchemaExtension, SchemaExtensionSchema, SelectOption, SelectOptions, SidecarOverlay, Space, SpaceKind, SpaceLike, SpaceMembership, SpaceMembershipSchema, SpaceRole, SpaceSchema, SpaceTreeNode, SpaceVisibility, Stage, StageSchema, SyncPolicy, SyncPolicySchema, SyncPolicyStatus, SystemFederationErrorCode, SystemNamespaceKind, SystemSchemaDefinitionRecord, SystemSchemaIndex, SystemSchemaIndexDiagnostic, SystemSchemaIndexOptions, SystemSchemaIndexStore, TAG_SCHEMA_IRI, TASK_SHORT_ID_PATTERN, TASK_STATUS_CATEGORIES, TRANSACTION_SCHEMA_IRI, TRANSCRIPTION_SCHEMA_IRI, Tag, TagSchema, Task, TaskSchema, TaskShortIdBlock, TaskStatusCategory, TaskStatusId, TaskView, TaskViewSchema, TextAnchor, TextOptions, Transaction, TransactionSchema, TransactionStatus, Transcription, TranscriptionSchema, TranscriptionSourceId, UpdatedOptions, UrlOptions, UserWidget, UserWidgetConfigField, UserWidgetSchema, UserWidgetSize, ValidateSchemaDefinitionNodeOptions, Workspace, WorkspaceSchema, WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, bucketPresenceCount, buildEffectiveSchema, buildFolderTree, buildSpaceTree, buildSystemNamespace, buildSystemNodeId, builtInSchemas, canManageSpace, canModifyColumn, checkOrphanStatus, checkbox, compareSpaceRoles, composeLens, computeSchemaDefinitionContentHash, convert, copy, createAccountRecord, createNodeGraphSchemaResolver, createOperations, createSchemaDefinitionSigningPayload, created, createdBy, crmSchemas, date, dateRange, decodeAnchor, defineSchema, deviceRecipientExpander, deviceRecordId, didFromProfileNodeId, effectiveSpaceRole, email, encodeAnchor, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isMessageLinkPreview, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, profileNodeId, promoteOverlay, recoveryRecordId, relation, remove, rename, resolveActiveDevices, resolveEffectiveSchema, resolveSchemaAuthority, revocationRecordId, revokeDeviceRecord, revokeSubjectRecord, revokedSubjects, sanitizeLinkPreviews, schemaExtensionId, select, selectExtensionFields, shortIdsFromBlock, sidecarId, sidecarOverlayKeys, spaceAncestorIds, spaceMembershipId, spacePathIds, spaceRoleGrantActions, spaceRoleToShareRole, summarizePresenceNodes, taskBranchName, text, transform, updated, url, validateSchemaDefinitionNode, when, wouldCreateFolderCycle, wouldCreateSpaceCycle } from './schema/index.js';
|
|
4
4
|
export { S as SchemaRegistry, s as schemaRegistry } from './registry-_49rC6IG.js';
|
|
5
5
|
export { SignUpdateOptions, applySignedUpdate, captureUpdate, getMissingUpdates, mergeDocuments, signUpdate, verifyUpdate } from './updates.js';
|
|
6
6
|
import * as Y from 'yjs';
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,225 @@ import {
|
|
|
6
6
|
signUpdate,
|
|
7
7
|
verifyUpdate
|
|
8
8
|
} from "./chunk-XHEA5UER.js";
|
|
9
|
+
import {
|
|
10
|
+
CELL_PREFIX,
|
|
11
|
+
DATABASE_SCHEMA_NAMESPACE,
|
|
12
|
+
DATABASE_SCHEMA_PREFIX,
|
|
13
|
+
DEFAULT_DATABASE_SCHEMA_VERSION,
|
|
14
|
+
DEFAULT_ROW_HEIGHT,
|
|
15
|
+
FIELD_TYPES,
|
|
16
|
+
FormulaService,
|
|
17
|
+
MAX_VERSION_HISTORY,
|
|
18
|
+
OPERATORS_BY_TYPE,
|
|
19
|
+
OPERATOR_LABELS,
|
|
20
|
+
PUBLIC_SAFE_FORM_FIELD_TYPES,
|
|
21
|
+
RICHTEXT_PREFIX,
|
|
22
|
+
ROW_HEIGHTS,
|
|
23
|
+
ROW_HEIGHT_PX,
|
|
24
|
+
SELECT_COLORS,
|
|
25
|
+
SUMMARY_FUNCTIONS_BY_TYPE,
|
|
26
|
+
addDefaultTableView,
|
|
27
|
+
addDefaultTitleColumn,
|
|
28
|
+
addOrToggleSort,
|
|
29
|
+
addViewSort,
|
|
30
|
+
aggregate,
|
|
31
|
+
asRowHeight,
|
|
32
|
+
autoColor,
|
|
33
|
+
batchComputeRollups,
|
|
34
|
+
buildDatabaseSchema,
|
|
35
|
+
buildPublicFormDefinition,
|
|
36
|
+
buildSchemaFromFields,
|
|
37
|
+
buildSchemaIRI,
|
|
38
|
+
bumpSchemaVersion,
|
|
39
|
+
cellKey,
|
|
40
|
+
cellValueToText,
|
|
41
|
+
checkNeedsRebalancing,
|
|
42
|
+
clearViewFilters,
|
|
43
|
+
clearViewSorts,
|
|
44
|
+
cloneColumns,
|
|
45
|
+
cloneSampleRows,
|
|
46
|
+
cloneSchema,
|
|
47
|
+
collapseAllGroups,
|
|
48
|
+
columnIdFromKey,
|
|
49
|
+
combineFiltersAnd,
|
|
50
|
+
combineFiltersOr,
|
|
51
|
+
computeColumnSummary,
|
|
52
|
+
computeRollup,
|
|
53
|
+
convertCellValue,
|
|
54
|
+
createAnyOfFilter,
|
|
55
|
+
createColumn,
|
|
56
|
+
createCsvBlob,
|
|
57
|
+
createDatabaseSchemaResolver,
|
|
58
|
+
createEqualsFilter,
|
|
59
|
+
createExtensionField,
|
|
60
|
+
createField,
|
|
61
|
+
createFilterQuery,
|
|
62
|
+
createFormulaService,
|
|
63
|
+
createInitialSchemaMetadata,
|
|
64
|
+
createJsonBlob,
|
|
65
|
+
createNodeDatabaseSchemaResolver,
|
|
66
|
+
createPaginatedQuery,
|
|
67
|
+
createRow,
|
|
68
|
+
createSelectOption,
|
|
69
|
+
createSort,
|
|
70
|
+
createSortQuery,
|
|
71
|
+
createVersionEntry,
|
|
72
|
+
createView,
|
|
73
|
+
createView2,
|
|
74
|
+
deleteColumn,
|
|
75
|
+
deleteExtensionField,
|
|
76
|
+
deleteField,
|
|
77
|
+
deleteMeta,
|
|
78
|
+
deleteRichTextCell,
|
|
79
|
+
deleteRow,
|
|
80
|
+
deleteSelectOption,
|
|
81
|
+
deleteView,
|
|
82
|
+
deleteView2,
|
|
83
|
+
downloadCsv,
|
|
84
|
+
downloadJson,
|
|
85
|
+
duplicateColumn,
|
|
86
|
+
duplicateField,
|
|
87
|
+
duplicateView,
|
|
88
|
+
duplicateView2,
|
|
89
|
+
effectiveFieldSortKey,
|
|
90
|
+
ensureSchemaExtension,
|
|
91
|
+
escapeCSV,
|
|
92
|
+
executeQuery,
|
|
93
|
+
expandAllGroups,
|
|
94
|
+
exportToCsv,
|
|
95
|
+
exportToJson,
|
|
96
|
+
exportToJsonArray,
|
|
97
|
+
exportToNdjson,
|
|
98
|
+
extractSchemaFromDoc,
|
|
99
|
+
fieldsToStoredColumns,
|
|
100
|
+
filterRows,
|
|
101
|
+
flattenGroups,
|
|
102
|
+
formatValue,
|
|
103
|
+
fromCellProperties,
|
|
104
|
+
generateColumnIdMap,
|
|
105
|
+
getColumn,
|
|
106
|
+
getColumnIndex,
|
|
107
|
+
getColumns,
|
|
108
|
+
getDatabaseDocumentModel,
|
|
109
|
+
getDatabaseSchemaIRI,
|
|
110
|
+
getDatabaseSelectOptions,
|
|
111
|
+
getField,
|
|
112
|
+
getFields,
|
|
113
|
+
getMeta,
|
|
114
|
+
getOperatorLabel,
|
|
115
|
+
getOperatorsForType,
|
|
116
|
+
getRichTextCell,
|
|
117
|
+
getRichTextColumnIds,
|
|
118
|
+
getRichTextPlainText,
|
|
119
|
+
getRow,
|
|
120
|
+
getSchemaIRIFromDoc,
|
|
121
|
+
getSelectOptions,
|
|
122
|
+
getTitleColumn,
|
|
123
|
+
getTitleField,
|
|
124
|
+
getTotalFromGroups,
|
|
125
|
+
getVersionBumpType,
|
|
126
|
+
getView,
|
|
127
|
+
getView2,
|
|
128
|
+
getViewByType,
|
|
129
|
+
getViews,
|
|
130
|
+
getViews2,
|
|
131
|
+
groupRows,
|
|
132
|
+
guessColumnType,
|
|
133
|
+
hasRichTextColumns,
|
|
134
|
+
hasRichTextContent,
|
|
135
|
+
hideColumn,
|
|
136
|
+
inferColumnTypes,
|
|
137
|
+
inferColumnsFromRows,
|
|
138
|
+
inferTypeFromValues,
|
|
139
|
+
initializeDatabaseDoc,
|
|
140
|
+
isAutoColumnType,
|
|
141
|
+
isAutoFieldType,
|
|
142
|
+
isCellKey,
|
|
143
|
+
isCellValue,
|
|
144
|
+
isComputedColumnType,
|
|
145
|
+
isComputedFieldType,
|
|
146
|
+
isDatabaseDocInitialized,
|
|
147
|
+
isDatabaseSchemaIRI,
|
|
148
|
+
isDateRange,
|
|
149
|
+
isFieldType,
|
|
150
|
+
isFileRef,
|
|
151
|
+
isFilledValue,
|
|
152
|
+
isFilterCondition,
|
|
153
|
+
isFilterGroup,
|
|
154
|
+
isFormFieldTypeAllowed,
|
|
155
|
+
isFormQuestionVisible,
|
|
156
|
+
isNodeStoreColumnType,
|
|
157
|
+
isNodeStoreFieldType,
|
|
158
|
+
isSelectColor,
|
|
159
|
+
isValidOperator,
|
|
160
|
+
isYDocColumnType,
|
|
161
|
+
isYDocFieldType,
|
|
162
|
+
moveField,
|
|
163
|
+
moveRow,
|
|
164
|
+
moveSelectOption,
|
|
165
|
+
moveView,
|
|
166
|
+
operatorRequiresValue,
|
|
167
|
+
parseCSV,
|
|
168
|
+
parseCSVLine,
|
|
169
|
+
parseDatabaseSchemaIRI,
|
|
170
|
+
parseJSON,
|
|
171
|
+
parseRow,
|
|
172
|
+
parseValue,
|
|
173
|
+
parseVersion,
|
|
174
|
+
pruneVersionHistory,
|
|
175
|
+
queryRows,
|
|
176
|
+
rebalanceDatabase,
|
|
177
|
+
remapViewColumnIds,
|
|
178
|
+
removeSort,
|
|
179
|
+
removeViewSort,
|
|
180
|
+
renameExtensionField,
|
|
181
|
+
reorderColumn,
|
|
182
|
+
reorderViewColumns,
|
|
183
|
+
requiresDateColumn,
|
|
184
|
+
resolveRowHeightPx,
|
|
185
|
+
rowHeightLabel,
|
|
186
|
+
setColumnWidth,
|
|
187
|
+
setFieldHidden,
|
|
188
|
+
setMeta,
|
|
189
|
+
setViewFieldOrder,
|
|
190
|
+
setViewFieldWidth,
|
|
191
|
+
setViewFilters,
|
|
192
|
+
setViewFilters2,
|
|
193
|
+
setViewGroupBy,
|
|
194
|
+
setViewGroupBy2,
|
|
195
|
+
setViewSorts,
|
|
196
|
+
setViewSorts2,
|
|
197
|
+
setVisibleColumns,
|
|
198
|
+
setupDatabase,
|
|
199
|
+
setupNewDatabase,
|
|
200
|
+
showColumn,
|
|
201
|
+
sortRows,
|
|
202
|
+
submissionRowId,
|
|
203
|
+
summaryFunctionLabel,
|
|
204
|
+
supportsGrouping,
|
|
205
|
+
toCellProperties,
|
|
206
|
+
toColumnDefinitions,
|
|
207
|
+
toFieldNode,
|
|
208
|
+
toSelectOptionNode,
|
|
209
|
+
toggleGroupCollapsed,
|
|
210
|
+
toggleGroupCollapsed2,
|
|
211
|
+
toggleSortDirection,
|
|
212
|
+
toggleViewGroupCollapsed,
|
|
213
|
+
updateCell,
|
|
214
|
+
updateCells,
|
|
215
|
+
updateColumn,
|
|
216
|
+
updateField,
|
|
217
|
+
updateSelectOption,
|
|
218
|
+
updateView,
|
|
219
|
+
updateView2,
|
|
220
|
+
validateFormSubmission,
|
|
221
|
+
validateJsonData,
|
|
222
|
+
validateRollupConfig,
|
|
223
|
+
visibleFormQuestions
|
|
224
|
+
} from "./chunk-Q67VT5XL.js";
|
|
9
225
|
import {
|
|
10
226
|
LensRegistry,
|
|
227
|
+
MAX_LINK_PREVIEWS_PER_MESSAGE,
|
|
11
228
|
MAX_MENTION_DIDS,
|
|
12
229
|
MigrationError,
|
|
13
230
|
PresenceAggregator,
|
|
@@ -42,6 +259,7 @@ import {
|
|
|
42
259
|
isCanvasPositionAnchor,
|
|
43
260
|
isCellAnchor,
|
|
44
261
|
isColumnAnchor,
|
|
262
|
+
isMessageLinkPreview,
|
|
45
263
|
isNodeAnchor,
|
|
46
264
|
isRowAnchor,
|
|
47
265
|
isSchemaDefinitionNode,
|
|
@@ -62,6 +280,7 @@ import {
|
|
|
62
280
|
resolveEffectiveSchema,
|
|
63
281
|
revokeDeviceRecord,
|
|
64
282
|
revokeSubjectRecord,
|
|
283
|
+
sanitizeLinkPreviews,
|
|
65
284
|
schemaRegistry,
|
|
66
285
|
selectExtensionFields,
|
|
67
286
|
shortIdsFromBlock,
|
|
@@ -71,7 +290,7 @@ import {
|
|
|
71
290
|
taskBranchName,
|
|
72
291
|
transform,
|
|
73
292
|
when
|
|
74
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-3L73ZALR.js";
|
|
75
294
|
import {
|
|
76
295
|
SavedViewSchema
|
|
77
296
|
} from "./chunk-ZZ6TWKGS.js";
|
|
@@ -132,7 +351,7 @@ import {
|
|
|
132
351
|
} from "./chunk-ZCOFZY5M.js";
|
|
133
352
|
import {
|
|
134
353
|
ChatMessageSchema
|
|
135
|
-
} from "./chunk-
|
|
354
|
+
} from "./chunk-QVQVKZ3U.js";
|
|
136
355
|
import {
|
|
137
356
|
FEED_SCHEMA_IRI,
|
|
138
357
|
FeedSchema
|
|
@@ -195,13 +414,15 @@ import {
|
|
|
195
414
|
} from "./chunk-NI4FHG2K.js";
|
|
196
415
|
import {
|
|
197
416
|
CommentSchema
|
|
198
|
-
} from "./chunk-
|
|
417
|
+
} from "./chunk-MCKP4F72.js";
|
|
199
418
|
import {
|
|
200
419
|
ReactionSchema
|
|
201
420
|
} from "./chunk-Y3S5SRVM.js";
|
|
202
421
|
import {
|
|
203
|
-
ProfileSchema
|
|
204
|
-
|
|
422
|
+
ProfileSchema,
|
|
423
|
+
didFromProfileNodeId,
|
|
424
|
+
profileNodeId
|
|
425
|
+
} from "./chunk-TORDOOJ5.js";
|
|
205
426
|
import {
|
|
206
427
|
ACTIVITY_KINDS,
|
|
207
428
|
ACTIVITY_SCHEMA_IRI,
|
|
@@ -322,301 +543,6 @@ import {
|
|
|
322
543
|
import {
|
|
323
544
|
DatabaseSchema
|
|
324
545
|
} from "./chunk-IJ44LR7N.js";
|
|
325
|
-
import {
|
|
326
|
-
MemoryNodeStorageAdapter,
|
|
327
|
-
NodeStore,
|
|
328
|
-
PermissionError,
|
|
329
|
-
QUERY_AST_VERSION,
|
|
330
|
-
SQLiteNodeStorageAdapter,
|
|
331
|
-
TEMP_ID_PREFIX,
|
|
332
|
-
and,
|
|
333
|
-
avg,
|
|
334
|
-
between,
|
|
335
|
-
contains,
|
|
336
|
-
count,
|
|
337
|
-
countDistinct,
|
|
338
|
-
createNodeStorageAdapter,
|
|
339
|
-
createSchemaLookup,
|
|
340
|
-
dashboardQuerySet,
|
|
341
|
-
defineNodeQueryAST,
|
|
342
|
-
defineQuerySetAST,
|
|
343
|
-
defineSavedViewDescriptor,
|
|
344
|
-
eq,
|
|
345
|
-
evaluateQueryASTPlannerGate,
|
|
346
|
-
executeQueryASTLoadedAggregates,
|
|
347
|
-
filterQueryASTLoadedRows,
|
|
348
|
-
follow,
|
|
349
|
-
from,
|
|
350
|
-
getQueryASTRelationIndexRequirements,
|
|
351
|
-
groupBy,
|
|
352
|
-
gt,
|
|
353
|
-
gte,
|
|
354
|
-
having,
|
|
355
|
-
includesAny,
|
|
356
|
-
isNotNull,
|
|
357
|
-
isNull,
|
|
358
|
-
isTempId,
|
|
359
|
-
lt,
|
|
360
|
-
lte,
|
|
361
|
-
matchesQueryASTLoadedRow,
|
|
362
|
-
max,
|
|
363
|
-
min,
|
|
364
|
-
neq,
|
|
365
|
-
not,
|
|
366
|
-
or,
|
|
367
|
-
planQueryASTAggregates,
|
|
368
|
-
queryOperators,
|
|
369
|
-
querySetCount,
|
|
370
|
-
resolveTempIds,
|
|
371
|
-
startsWith,
|
|
372
|
-
sum,
|
|
373
|
-
validateQueryAST,
|
|
374
|
-
validateSavedViewDescriptor
|
|
375
|
-
} from "./chunk-AIENVDXA.js";
|
|
376
|
-
import {
|
|
377
|
-
PresenceSummarySchema,
|
|
378
|
-
SYSTEM_NAMESPACE_KINDS,
|
|
379
|
-
SYSTEM_SCHEMA_BASE_IRIS,
|
|
380
|
-
SYSTEM_SCHEMA_IRIS,
|
|
381
|
-
SchemaCompatibilitySchema,
|
|
382
|
-
SchemaDefinitionSchema,
|
|
383
|
-
SyncPolicySchema,
|
|
384
|
-
buildSystemNamespace,
|
|
385
|
-
buildSystemNodeId,
|
|
386
|
-
computeSchemaDefinitionContentHash,
|
|
387
|
-
createSchemaDefinitionSigningPayload,
|
|
388
|
-
isSystemNamespaceResource,
|
|
389
|
-
isSystemSchemaIri,
|
|
390
|
-
parseSystemNamespaceResource,
|
|
391
|
-
resolveSchemaAuthority,
|
|
392
|
-
validateSchemaDefinitionNode
|
|
393
|
-
} from "./chunk-BY5O6LNC.js";
|
|
394
|
-
import {
|
|
395
|
-
clearLocalPresence,
|
|
396
|
-
createAwareness,
|
|
397
|
-
generateUserColor,
|
|
398
|
-
getAllPresences,
|
|
399
|
-
getLocalClientId,
|
|
400
|
-
getRemotePresences,
|
|
401
|
-
onPresenceChange,
|
|
402
|
-
setLocalPresence
|
|
403
|
-
} from "./chunk-7PDRDSFH.js";
|
|
404
|
-
import {
|
|
405
|
-
CELL_PREFIX,
|
|
406
|
-
DATABASE_SCHEMA_NAMESPACE,
|
|
407
|
-
DATABASE_SCHEMA_PREFIX,
|
|
408
|
-
DEFAULT_DATABASE_SCHEMA_VERSION,
|
|
409
|
-
DEFAULT_ROW_HEIGHT,
|
|
410
|
-
FIELD_TYPES,
|
|
411
|
-
FormulaService,
|
|
412
|
-
MAX_VERSION_HISTORY,
|
|
413
|
-
OPERATORS_BY_TYPE,
|
|
414
|
-
OPERATOR_LABELS,
|
|
415
|
-
PUBLIC_SAFE_FORM_FIELD_TYPES,
|
|
416
|
-
RICHTEXT_PREFIX,
|
|
417
|
-
ROW_HEIGHTS,
|
|
418
|
-
ROW_HEIGHT_PX,
|
|
419
|
-
SELECT_COLORS,
|
|
420
|
-
SUMMARY_FUNCTIONS_BY_TYPE,
|
|
421
|
-
addDefaultTableView,
|
|
422
|
-
addDefaultTitleColumn,
|
|
423
|
-
addOrToggleSort,
|
|
424
|
-
addViewSort,
|
|
425
|
-
aggregate,
|
|
426
|
-
asRowHeight,
|
|
427
|
-
autoColor,
|
|
428
|
-
batchComputeRollups,
|
|
429
|
-
buildDatabaseSchema,
|
|
430
|
-
buildPublicFormDefinition,
|
|
431
|
-
buildSchemaFromFields,
|
|
432
|
-
buildSchemaIRI,
|
|
433
|
-
bumpSchemaVersion,
|
|
434
|
-
cellKey,
|
|
435
|
-
cellValueToText,
|
|
436
|
-
checkNeedsRebalancing,
|
|
437
|
-
clearViewFilters,
|
|
438
|
-
clearViewSorts,
|
|
439
|
-
cloneColumns,
|
|
440
|
-
cloneSampleRows,
|
|
441
|
-
cloneSchema,
|
|
442
|
-
collapseAllGroups,
|
|
443
|
-
columnIdFromKey,
|
|
444
|
-
combineFiltersAnd,
|
|
445
|
-
combineFiltersOr,
|
|
446
|
-
computeColumnSummary,
|
|
447
|
-
computeRollup,
|
|
448
|
-
convertCellValue,
|
|
449
|
-
createAnyOfFilter,
|
|
450
|
-
createColumn,
|
|
451
|
-
createCsvBlob,
|
|
452
|
-
createDatabaseSchemaResolver,
|
|
453
|
-
createEqualsFilter,
|
|
454
|
-
createExtensionField,
|
|
455
|
-
createField,
|
|
456
|
-
createFilterQuery,
|
|
457
|
-
createFormulaService,
|
|
458
|
-
createInitialSchemaMetadata,
|
|
459
|
-
createJsonBlob,
|
|
460
|
-
createNodeDatabaseSchemaResolver,
|
|
461
|
-
createPaginatedQuery,
|
|
462
|
-
createRow,
|
|
463
|
-
createSelectOption,
|
|
464
|
-
createSort,
|
|
465
|
-
createSortQuery,
|
|
466
|
-
createVersionEntry,
|
|
467
|
-
createView,
|
|
468
|
-
createView2,
|
|
469
|
-
deleteColumn,
|
|
470
|
-
deleteExtensionField,
|
|
471
|
-
deleteField,
|
|
472
|
-
deleteMeta,
|
|
473
|
-
deleteRichTextCell,
|
|
474
|
-
deleteRow,
|
|
475
|
-
deleteSelectOption,
|
|
476
|
-
deleteView,
|
|
477
|
-
deleteView2,
|
|
478
|
-
downloadCsv,
|
|
479
|
-
downloadJson,
|
|
480
|
-
duplicateColumn,
|
|
481
|
-
duplicateField,
|
|
482
|
-
duplicateView,
|
|
483
|
-
duplicateView2,
|
|
484
|
-
effectiveFieldSortKey,
|
|
485
|
-
ensureSchemaExtension,
|
|
486
|
-
escapeCSV,
|
|
487
|
-
executeQuery,
|
|
488
|
-
expandAllGroups,
|
|
489
|
-
exportToCsv,
|
|
490
|
-
exportToJson,
|
|
491
|
-
exportToJsonArray,
|
|
492
|
-
exportToNdjson,
|
|
493
|
-
extractSchemaFromDoc,
|
|
494
|
-
fieldsToStoredColumns,
|
|
495
|
-
filterRows,
|
|
496
|
-
flattenGroups,
|
|
497
|
-
formatValue,
|
|
498
|
-
fromCellProperties,
|
|
499
|
-
generateColumnIdMap,
|
|
500
|
-
getColumn,
|
|
501
|
-
getColumnIndex,
|
|
502
|
-
getColumns,
|
|
503
|
-
getDatabaseDocumentModel,
|
|
504
|
-
getDatabaseSchemaIRI,
|
|
505
|
-
getDatabaseSelectOptions,
|
|
506
|
-
getField,
|
|
507
|
-
getFields,
|
|
508
|
-
getMeta,
|
|
509
|
-
getOperatorLabel,
|
|
510
|
-
getOperatorsForType,
|
|
511
|
-
getRichTextCell,
|
|
512
|
-
getRichTextColumnIds,
|
|
513
|
-
getRichTextPlainText,
|
|
514
|
-
getRow,
|
|
515
|
-
getSchemaIRIFromDoc,
|
|
516
|
-
getSelectOptions,
|
|
517
|
-
getTitleColumn,
|
|
518
|
-
getTitleField,
|
|
519
|
-
getTotalFromGroups,
|
|
520
|
-
getVersionBumpType,
|
|
521
|
-
getView,
|
|
522
|
-
getView2,
|
|
523
|
-
getViewByType,
|
|
524
|
-
getViews,
|
|
525
|
-
getViews2,
|
|
526
|
-
groupRows,
|
|
527
|
-
guessColumnType,
|
|
528
|
-
hasRichTextColumns,
|
|
529
|
-
hasRichTextContent,
|
|
530
|
-
hideColumn,
|
|
531
|
-
inferColumnTypes,
|
|
532
|
-
inferColumnsFromRows,
|
|
533
|
-
inferTypeFromValues,
|
|
534
|
-
initializeDatabaseDoc,
|
|
535
|
-
isAutoColumnType,
|
|
536
|
-
isAutoFieldType,
|
|
537
|
-
isCellKey,
|
|
538
|
-
isCellValue,
|
|
539
|
-
isComputedColumnType,
|
|
540
|
-
isComputedFieldType,
|
|
541
|
-
isDatabaseDocInitialized,
|
|
542
|
-
isDatabaseSchemaIRI,
|
|
543
|
-
isDateRange,
|
|
544
|
-
isFieldType,
|
|
545
|
-
isFileRef,
|
|
546
|
-
isFilledValue,
|
|
547
|
-
isFilterCondition,
|
|
548
|
-
isFilterGroup,
|
|
549
|
-
isFormFieldTypeAllowed,
|
|
550
|
-
isFormQuestionVisible,
|
|
551
|
-
isNodeStoreColumnType,
|
|
552
|
-
isNodeStoreFieldType,
|
|
553
|
-
isSelectColor,
|
|
554
|
-
isValidOperator,
|
|
555
|
-
isYDocColumnType,
|
|
556
|
-
isYDocFieldType,
|
|
557
|
-
moveField,
|
|
558
|
-
moveRow,
|
|
559
|
-
moveSelectOption,
|
|
560
|
-
moveView,
|
|
561
|
-
operatorRequiresValue,
|
|
562
|
-
parseCSV,
|
|
563
|
-
parseCSVLine,
|
|
564
|
-
parseDatabaseSchemaIRI,
|
|
565
|
-
parseJSON,
|
|
566
|
-
parseRow,
|
|
567
|
-
parseValue,
|
|
568
|
-
parseVersion,
|
|
569
|
-
pruneVersionHistory,
|
|
570
|
-
queryRows,
|
|
571
|
-
rebalanceDatabase,
|
|
572
|
-
remapViewColumnIds,
|
|
573
|
-
removeSort,
|
|
574
|
-
removeViewSort,
|
|
575
|
-
renameExtensionField,
|
|
576
|
-
reorderColumn,
|
|
577
|
-
reorderViewColumns,
|
|
578
|
-
requiresDateColumn,
|
|
579
|
-
resolveRowHeightPx,
|
|
580
|
-
rowHeightLabel,
|
|
581
|
-
setColumnWidth,
|
|
582
|
-
setFieldHidden,
|
|
583
|
-
setMeta,
|
|
584
|
-
setViewFieldOrder,
|
|
585
|
-
setViewFieldWidth,
|
|
586
|
-
setViewFilters,
|
|
587
|
-
setViewFilters2,
|
|
588
|
-
setViewGroupBy,
|
|
589
|
-
setViewGroupBy2,
|
|
590
|
-
setViewSorts,
|
|
591
|
-
setViewSorts2,
|
|
592
|
-
setVisibleColumns,
|
|
593
|
-
setupDatabase,
|
|
594
|
-
setupNewDatabase,
|
|
595
|
-
showColumn,
|
|
596
|
-
sortRows,
|
|
597
|
-
submissionRowId,
|
|
598
|
-
summaryFunctionLabel,
|
|
599
|
-
supportsGrouping,
|
|
600
|
-
toCellProperties,
|
|
601
|
-
toColumnDefinitions,
|
|
602
|
-
toFieldNode,
|
|
603
|
-
toSelectOptionNode,
|
|
604
|
-
toggleGroupCollapsed,
|
|
605
|
-
toggleGroupCollapsed2,
|
|
606
|
-
toggleSortDirection,
|
|
607
|
-
toggleViewGroupCollapsed,
|
|
608
|
-
updateCell,
|
|
609
|
-
updateCells,
|
|
610
|
-
updateColumn,
|
|
611
|
-
updateField,
|
|
612
|
-
updateSelectOption,
|
|
613
|
-
updateView,
|
|
614
|
-
updateView2,
|
|
615
|
-
validateFormSubmission,
|
|
616
|
-
validateJsonData,
|
|
617
|
-
validateRollupConfig,
|
|
618
|
-
visibleFormQuestions
|
|
619
|
-
} from "./chunk-Q67VT5XL.js";
|
|
620
546
|
import {
|
|
621
547
|
EXT_PREFIX,
|
|
622
548
|
extKey,
|
|
@@ -652,6 +578,67 @@ import {
|
|
|
652
578
|
DatabaseViewSchema
|
|
653
579
|
} from "./chunk-MD553LDL.js";
|
|
654
580
|
import "./chunk-OCMSAKWV.js";
|
|
581
|
+
import {
|
|
582
|
+
clearLocalPresence,
|
|
583
|
+
createAwareness,
|
|
584
|
+
generateUserColor,
|
|
585
|
+
getAllPresences,
|
|
586
|
+
getLocalClientId,
|
|
587
|
+
getRemotePresences,
|
|
588
|
+
onPresenceChange,
|
|
589
|
+
setLocalPresence
|
|
590
|
+
} from "./chunk-7PDRDSFH.js";
|
|
591
|
+
import {
|
|
592
|
+
MemoryNodeStorageAdapter,
|
|
593
|
+
NodeStore,
|
|
594
|
+
PermissionError,
|
|
595
|
+
QUERY_AST_VERSION,
|
|
596
|
+
SQLiteNodeStorageAdapter,
|
|
597
|
+
TEMP_ID_PREFIX,
|
|
598
|
+
and,
|
|
599
|
+
avg,
|
|
600
|
+
between,
|
|
601
|
+
contains,
|
|
602
|
+
count,
|
|
603
|
+
countDistinct,
|
|
604
|
+
createNodeStorageAdapter,
|
|
605
|
+
createSchemaLookup,
|
|
606
|
+
dashboardQuerySet,
|
|
607
|
+
defineNodeQueryAST,
|
|
608
|
+
defineQuerySetAST,
|
|
609
|
+
defineSavedViewDescriptor,
|
|
610
|
+
eq,
|
|
611
|
+
evaluateQueryASTPlannerGate,
|
|
612
|
+
executeQueryASTLoadedAggregates,
|
|
613
|
+
filterQueryASTLoadedRows,
|
|
614
|
+
follow,
|
|
615
|
+
from,
|
|
616
|
+
getQueryASTRelationIndexRequirements,
|
|
617
|
+
groupBy,
|
|
618
|
+
gt,
|
|
619
|
+
gte,
|
|
620
|
+
having,
|
|
621
|
+
includesAny,
|
|
622
|
+
isNotNull,
|
|
623
|
+
isNull,
|
|
624
|
+
isTempId,
|
|
625
|
+
lt,
|
|
626
|
+
lte,
|
|
627
|
+
matchesQueryASTLoadedRow,
|
|
628
|
+
max,
|
|
629
|
+
min,
|
|
630
|
+
neq,
|
|
631
|
+
not,
|
|
632
|
+
or,
|
|
633
|
+
planQueryASTAggregates,
|
|
634
|
+
queryOperators,
|
|
635
|
+
querySetCount,
|
|
636
|
+
resolveTempIds,
|
|
637
|
+
startsWith,
|
|
638
|
+
sum,
|
|
639
|
+
validateQueryAST,
|
|
640
|
+
validateSavedViewDescriptor
|
|
641
|
+
} from "./chunk-QN334DU7.js";
|
|
655
642
|
import {
|
|
656
643
|
applyNodeQueryDescriptor,
|
|
657
644
|
createNodeQueryDescriptor,
|
|
@@ -667,6 +654,24 @@ import {
|
|
|
667
654
|
withoutNodeQueryMaterializedView,
|
|
668
655
|
withoutNodeQueryPagination
|
|
669
656
|
} from "./chunk-S5RP5RKY.js";
|
|
657
|
+
import {
|
|
658
|
+
PresenceSummarySchema,
|
|
659
|
+
SYSTEM_NAMESPACE_KINDS,
|
|
660
|
+
SYSTEM_SCHEMA_BASE_IRIS,
|
|
661
|
+
SYSTEM_SCHEMA_IRIS,
|
|
662
|
+
SchemaCompatibilitySchema,
|
|
663
|
+
SchemaDefinitionSchema,
|
|
664
|
+
SyncPolicySchema,
|
|
665
|
+
buildSystemNamespace,
|
|
666
|
+
buildSystemNodeId,
|
|
667
|
+
computeSchemaDefinitionContentHash,
|
|
668
|
+
createSchemaDefinitionSigningPayload,
|
|
669
|
+
isSystemNamespaceResource,
|
|
670
|
+
isSystemSchemaIri,
|
|
671
|
+
parseSystemNamespaceResource,
|
|
672
|
+
resolveSchemaAuthority,
|
|
673
|
+
validateSchemaDefinitionNode
|
|
674
|
+
} from "./chunk-BY5O6LNC.js";
|
|
670
675
|
import {
|
|
671
676
|
SPACE_MEMBERSHIP_SCHEMA_IRI,
|
|
672
677
|
SpaceMembershipSchema,
|
|
@@ -2102,6 +2107,7 @@ export {
|
|
|
2102
2107
|
MATCH_RESULTS,
|
|
2103
2108
|
MATCH_SESSION_SCHEMA_IRI,
|
|
2104
2109
|
MAX_KEY_LENGTH,
|
|
2110
|
+
MAX_LINK_PREVIEWS_PER_MESSAGE,
|
|
2105
2111
|
MAX_MENTION_DIDS,
|
|
2106
2112
|
MAX_TAG_NAME_LENGTH,
|
|
2107
2113
|
MAX_VERSION_HISTORY,
|
|
@@ -2327,6 +2333,7 @@ export {
|
|
|
2327
2333
|
detectEmbedProvider,
|
|
2328
2334
|
deviceRecipientExpander,
|
|
2329
2335
|
deviceRecordId,
|
|
2336
|
+
didFromProfileNodeId,
|
|
2330
2337
|
downloadCsv,
|
|
2331
2338
|
downloadJson,
|
|
2332
2339
|
duplicateColumn,
|
|
@@ -2456,6 +2463,7 @@ export {
|
|
|
2456
2463
|
isFormFieldTypeAllowed,
|
|
2457
2464
|
isFormQuestionVisible,
|
|
2458
2465
|
isGrantActive,
|
|
2466
|
+
isMessageLinkPreview,
|
|
2459
2467
|
isMoneyValue,
|
|
2460
2468
|
isNode,
|
|
2461
2469
|
isNodeAnchor,
|
|
@@ -2527,6 +2535,7 @@ export {
|
|
|
2527
2535
|
person,
|
|
2528
2536
|
phone,
|
|
2529
2537
|
planQueryASTAggregates,
|
|
2538
|
+
profileNodeId,
|
|
2530
2539
|
promoteOverlay,
|
|
2531
2540
|
pruneVersionHistory,
|
|
2532
2541
|
queryOperators,
|
|
@@ -2557,6 +2566,7 @@ export {
|
|
|
2557
2566
|
revokeSubjectRecord,
|
|
2558
2567
|
revokedSubjects,
|
|
2559
2568
|
rowHeightLabel,
|
|
2569
|
+
sanitizeLinkPreviews,
|
|
2560
2570
|
schemaExtensionId,
|
|
2561
2571
|
schemaRegistry,
|
|
2562
2572
|
schemaToHubPolicy,
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -845,6 +845,41 @@ type InboxState = InferNode<(typeof InboxStateSchema)['_properties']>;
|
|
|
845
845
|
/** Deterministic node ID for a user's inbox state in a workspace. */
|
|
846
846
|
declare function inboxStateNodeId(did: string): string;
|
|
847
847
|
|
|
848
|
+
/**
|
|
849
|
+
* Composer-resolved URL previews (exploration 0295).
|
|
850
|
+
*
|
|
851
|
+
* A preview is resolved ONCE, by the author's composer (via the hub's
|
|
852
|
+
* SSRF-guarded /unfurl proxy), and stored as a structured field on the
|
|
853
|
+
* message/comment — the sender-generated model. Readers render the stored
|
|
854
|
+
* snapshot and never fetch the URL, so no reader IPs leak, no read
|
|
855
|
+
* receipts exist, and previews replicate offline like any other data.
|
|
856
|
+
*/
|
|
857
|
+
/** One stored preview. `url` matches the verbatim token in `content`. */
|
|
858
|
+
interface MessageLinkPreview {
|
|
859
|
+
/** The URL exactly as it appears in the message text — the render key. */
|
|
860
|
+
url: string;
|
|
861
|
+
/** 'share' = xNet share link snapshot; 'external' = oEmbed/Open Graph. */
|
|
862
|
+
kind: 'share' | 'external';
|
|
863
|
+
title: string;
|
|
864
|
+
description?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Optional image. Renderers must only load images through a trusted
|
|
867
|
+
* proxy (the hub's /unfurl/image) — never hotlink, which would ping the
|
|
868
|
+
* origin from every reader.
|
|
869
|
+
*/
|
|
870
|
+
imageUrl?: string;
|
|
871
|
+
providerName?: string;
|
|
872
|
+
/** Real destination host, always displayed (anti-phishing). */
|
|
873
|
+
domain: string;
|
|
874
|
+
resolvedAt: number;
|
|
875
|
+
}
|
|
876
|
+
/** Cap enforced by composers; renderers also slice defensively. */
|
|
877
|
+
declare const MAX_LINK_PREVIEWS_PER_MESSAGE = 3;
|
|
878
|
+
/** Runtime guard for one stored preview entry. */
|
|
879
|
+
declare function isMessageLinkPreview(value: unknown): value is MessageLinkPreview;
|
|
880
|
+
/** Sanitize a stored linkPreviews value for rendering (unknown authors). */
|
|
881
|
+
declare function sanitizeLinkPreviews(value: unknown): MessageLinkPreview[];
|
|
882
|
+
|
|
848
883
|
/**
|
|
849
884
|
* Structured mentions (exploration 0168).
|
|
850
885
|
*
|
|
@@ -2677,6 +2712,8 @@ declare const CommentSchema: DefinedSchema<{
|
|
|
2677
2712
|
* legacy text-parsed mentions (commentReferences.ts) remain as fallback.
|
|
2678
2713
|
*/
|
|
2679
2714
|
mentions: PropertyBuilder<MessageMentions>;
|
|
2715
|
+
/** Composer-resolved URL previews (0295) — never parsed from content */
|
|
2716
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
2680
2717
|
/** DID of user being replied to (UI hint) */
|
|
2681
2718
|
replyToUser: PropertyBuilder<`did:key:${string}`>;
|
|
2682
2719
|
/** Comment ID being referenced (for "in reply to" display) */
|
|
@@ -2724,7 +2761,13 @@ declare const ProfileSchema: DefinedSchema<{
|
|
|
2724
2761
|
* scope — the DID remains the source of truth.
|
|
2725
2762
|
*/
|
|
2726
2763
|
handle: PropertyBuilder<string>;
|
|
2727
|
-
/**
|
|
2764
|
+
/**
|
|
2765
|
+
* Avatar image: an https URL or a small inline `data:image/*` URL.
|
|
2766
|
+
* Inline data URLs keep the picture inside the Profile node itself, so it
|
|
2767
|
+
* reaches share recipients through the same sync path as the name — no
|
|
2768
|
+
* separate blob authorization. Uploads are downscaled/re-encoded
|
|
2769
|
+
* client-side (which also strips EXIF metadata) to fit this budget.
|
|
2770
|
+
*/
|
|
2728
2771
|
avatar: PropertyBuilder<string>;
|
|
2729
2772
|
/** Short status emoji (e.g. 🔴, 🌴) */
|
|
2730
2773
|
statusEmoji: PropertyBuilder<string>;
|
|
@@ -2734,6 +2777,13 @@ declare const ProfileSchema: DefinedSchema<{
|
|
|
2734
2777
|
createdBy: PropertyBuilder<`did:key:${string}`>;
|
|
2735
2778
|
}>;
|
|
2736
2779
|
type Profile = InferNode<(typeof ProfileSchema)['_properties']>;
|
|
2780
|
+
/**
|
|
2781
|
+
* Deterministic node ID for a DID's canonical profile (same pattern as
|
|
2782
|
+
* `inboxStateNodeId`). Knowing a DID is enough to acquire its profile.
|
|
2783
|
+
*/
|
|
2784
|
+
declare function profileNodeId(did: string): string;
|
|
2785
|
+
/** The DID a profile node ID describes, or null when it isn't a profile ID. */
|
|
2786
|
+
declare function didFromProfileNodeId(nodeId: string): string | null;
|
|
2737
2787
|
|
|
2738
2788
|
declare const CHANNEL_KINDS: readonly ["channel", "dm", "voice"];
|
|
2739
2789
|
type ChannelKind = (typeof CHANNEL_KINDS)[number];
|
|
@@ -2786,6 +2836,8 @@ declare const ChatMessageSchema: DefinedSchema<{
|
|
|
2786
2836
|
tags: PropertyBuilder<string[]>;
|
|
2787
2837
|
/** Node ids from the composer's [[ link picks (exploration 0170) */
|
|
2788
2838
|
links: PropertyBuilder<string[]>;
|
|
2839
|
+
/** Composer-resolved URL previews (0295) — never parsed from content */
|
|
2840
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
2789
2841
|
createdAt: PropertyBuilder<number>;
|
|
2790
2842
|
createdBy: PropertyBuilder<`did:key:${string}`>;
|
|
2791
2843
|
}>;
|
|
@@ -4598,6 +4650,7 @@ declare const builtInSchemas: {
|
|
|
4598
4650
|
tags: PropertyBuilder<string[]>;
|
|
4599
4651
|
attachments: PropertyBuilder<FileRef[]>;
|
|
4600
4652
|
mentions: PropertyBuilder<MessageMentions>;
|
|
4653
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
4601
4654
|
replyToUser: PropertyBuilder<`did:key:${string}`>;
|
|
4602
4655
|
replyToCommentId: PropertyBuilder<string>;
|
|
4603
4656
|
resolved: PropertyBuilder<boolean>;
|
|
@@ -4654,6 +4707,7 @@ declare const builtInSchemas: {
|
|
|
4654
4707
|
redacted: PropertyBuilder<boolean>;
|
|
4655
4708
|
tags: PropertyBuilder<string[]>;
|
|
4656
4709
|
links: PropertyBuilder<string[]>;
|
|
4710
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
4657
4711
|
createdAt: PropertyBuilder<number>;
|
|
4658
4712
|
createdBy: PropertyBuilder<`did:key:${string}`>;
|
|
4659
4713
|
}>>;
|
|
@@ -5664,6 +5718,7 @@ declare const builtInSchemas: {
|
|
|
5664
5718
|
tags: PropertyBuilder<string[]>;
|
|
5665
5719
|
attachments: PropertyBuilder<FileRef[]>;
|
|
5666
5720
|
mentions: PropertyBuilder<MessageMentions>;
|
|
5721
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
5667
5722
|
replyToUser: PropertyBuilder<`did:key:${string}`>;
|
|
5668
5723
|
replyToCommentId: PropertyBuilder<string>;
|
|
5669
5724
|
resolved: PropertyBuilder<boolean>;
|
|
@@ -5720,6 +5775,7 @@ declare const builtInSchemas: {
|
|
|
5720
5775
|
redacted: PropertyBuilder<boolean>;
|
|
5721
5776
|
tags: PropertyBuilder<string[]>;
|
|
5722
5777
|
links: PropertyBuilder<string[]>;
|
|
5778
|
+
linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
|
|
5723
5779
|
createdAt: PropertyBuilder<number>;
|
|
5724
5780
|
createdBy: PropertyBuilder<`did:key:${string}`>;
|
|
5725
5781
|
}>>;
|
|
@@ -6700,4 +6756,4 @@ declare function createOperations(...operations: LensOperation[]): {
|
|
|
6700
6756
|
*/
|
|
6701
6757
|
declare function identity(source: SchemaIRI, target: SchemaIRI): SchemaLens;
|
|
6702
6758
|
|
|
6703
|
-
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, type AbuseReport, AbuseReportSchema, type Account, type AccountClassId, type AccountRecord, AccountRecordSchema, AccountSchema, type Achievement, AchievementSchema, type Activity, type ActivityKind, ActivitySchema, type AnchorData, type AnchorType, type Appeal, AppealSchema, BUDGET_SCHEMA_IRI, type Budget, type BudgetPeriod, BudgetSchema, type BuiltInSchemaIRI, CHANNEL_KINDS, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, CRM_NAMESPACE, type Canvas, type CanvasObjectAnchor, type CanvasObjectAnchorPlacement, type CanvasPositionAnchor, CanvasSchema, type CellAnchor, type Channel, type ChannelKind, type ChannelNotifyTier, ChannelSchema, type ChatMessage, ChatMessageSchema, type CheckboxOptions, type ColumnAnchor, type Comment, CommentSchema, type CommunityNote, CommunityNoteSchema, type Contact, type ContactLifecycle, ContactSchema, type ContentProvenance, ContentProvenanceSchema, type CoreSchemaResolver, type CreatedByOptions, type CreatedOptions, type CrmVisibility, DEAL_CONTACT_ROLES, DEAL_CONTACT_ROLE_SCHEMA_IRI, DEAL_SCHEMA_IRI, DEAL_SOURCES, DEFAULT_CHANNEL_TIER, DEVICE_RECORD_SCHEMA_IRI, DID, type Dashboard, type DashboardBreakpointId, type DashboardLayoutItem, type DashboardLayouts, DashboardSchema, type DashboardTimeRange, type DashboardVariablesState, type DashboardWidgetInstance, type DashboardWidgetRefresh, type Database, type DatabaseField, DatabaseFieldSchema, type DatabaseRow, DatabaseRowSchema, DatabaseSchema, type DatabaseSelectOption, DatabaseSelectOptionSchema, type DatabaseView, DatabaseViewSchema, type DateOptions, type DateRange, type DateRangeOptions, type Deal, type DealContactRole, type DealContactRoleKind, DealContactRoleSchema, DealSchema, type DealSource, type DefineSchemaOptions, DefinedSchema, type DeviceLike, type DeviceRecord, DeviceRecordSchema, DocumentType, EXTENSION_FIELD_SCHEMA_IRI, EXTERNAL_ITEM_SCHEMA_IRI, EXTERNAL_ITEM_SOURCES, EXT_PREFIX, type EffectiveExtensionField, type EmailOptions, type Experiment, type ExperimentDesign, type ExperimentPhase, ExperimentSchema, type ExperimentStatus, type ExtensionField, type ExtensionFieldRecord, ExtensionFieldSchema, type ExtensionRecord, type ExternalItem, ExternalItemSchema, type ExternalReference, ExternalReferenceSchema, FEED_ITEM_SCHEMA_IRI, FEED_SCHEMA_IRI, FOLDER_SCHEMA_IRI, FORECAST_CATEGORIES, type Feed, type FeedItem, FeedItemSchema, FeedSchema, type FileOptions, type FileRef, type Folder, type FolderLike, FolderSchema, type FolderTreeNode, type ForecastCategory, GAME_ASSET_FORMATS, GAME_ASSET_MIME_TYPES, GAME_ASSET_SCHEMA_IRI, GAME_ECONOMY_ENTRY_SCHEMA_IRI, GAME_ITEM_SCHEMA_IRI, GAME_NAMESPACE, GAME_SCHEMA_IRIS, type GameAsset, type GameAssetFormat, GameAssetSchema, type GameEconomyEntry, GameEconomyEntrySchema, type GameItem, GameItemSchema, type GameVisibility, type GeoFeature, type GeoFeatureCollection, type GeoGeometry, type GeoPosition, type Grant, GrantSchema, IMPORT_BATCH_SCHEMA_IRI, INVENTORY_SCHEMA_IRI, ITEM_RARITIES, type ImportBatch, ImportBatchSchema, type ImportSource, type InboxItemTriage, type InboxState, InboxStateSchema, type InboxWatermark, InferNode, type Inventory, InventorySchema, type ItemRarity, type JsonOptions, LINE_ITEM_SCHEMA_IRI, type LedgerNodeIntent, LensOperation, type LineItem, LineItemSchema, MATCH_RESULTS, MATCH_SESSION_SCHEMA_IRI, MAX_MENTION_DIDS, MAX_TAG_NAME_LENGTH, MEETING_CHANNELS, MEETING_SCHEMA_IRI, MEETING_TEMPLATE_IDS, MEETING_TRANSCRIPT_SCHEMA_IRI, MEMORY_ITEM_SCHEMA_IRI, MEMORY_KINDS, MILESTONE_SCHEMA_IRI, type Map$1 as Map, type MapBasemapId, type MapLayerGeometry, type MapLayerSource, type MapLayerSpec, type MapLayerStyle, MapSchema, type MapViewport, type MatchResult, type MatchSession, MatchSessionSchema, type MediaAsset, MediaAssetSchema, type Meeting, type MeetingChannel, MeetingSchema, type MeetingSegment, type MeetingTemplateId, type MeetingTranscript, MeetingTranscriptSchema, type MemoryItem, MemoryItemSchema, type MemoryKind, type Mention, type MessageMentions, type MessageRequest, MessageRequestSchema, type Metric, type MetricKind, type MetricPolarity, type MetricScheduleId, MetricSchema, type Milestone, MilestoneSchema, type ModerationLabel, ModerationLabelSchema, type MoneyOptions, type MoneyValue, type MultiSelectOptions, NODE_VISIBILITY, type NodeAnchor, type NodeVisibility, type NoteRating, NoteRatingSchema, type NotificationPrefs, type NumberOptions, ORGANIZATION_SCHEMA_IRI, ORGANIZATION_SIZES, type Observation, type ObservationPhase, ObservationSchema, type Organization, OrganizationSchema, type OrganizationSize, type OrphanReason, type OrphanResolvers, type OrphanStatus, PIPELINE_SCHEMA_IRI, PLAYER_IDENTITY_SCHEMA_IRI, POSTING_SCHEMA_IRI, PRODUCT_KINDS, PRODUCT_SCHEMA_IRI, type Page, PageSchema, type ParsedSystemNamespaceResource, type ParsedTaskShortId, type PersonOptions, type PhoneOptions, type Pipeline, PipelineSchema, type PlayerIdentity, PlayerIdentitySchema, type PolicyList, PolicyListSchema, type PolicySubscription, PolicySubscriptionSchema, type Posting, PostingSchema, PresenceAggregator, type PresenceAggregatorOptions, type PresenceAggregatorStore, type PresenceCountBucket, type PresenceSummary, type PresenceSummaryDescriptor, PresenceSummarySchema, type PresenceVisibility, type PresenceVisibilityResolver, type Product, type ProductKind, ProductSchema, type Profile, ProfileSchema, type Project, ProjectSchema, PropertyBuilder, PropertyType, type PublicInteractionPolicy, PublicInteractionPolicySchema, type QualitySignal, QualitySignalSchema, RECOVERY_RECORD_SCHEMA_IRI, RELATIONSHIP_KINDS, RELATIONSHIP_SCHEMA_IRI, REVOCATION_RECORD_SCHEMA_IRI, type Reaction, ReactionSchema, type RecoveryRecord, RecoveryRecordSchema, type RelationOptions, type Relationship, type RelationshipKind, RelationshipSchema, type ReviewTask, ReviewTaskSchema, type RevocationLike, type RevocationRecord, RevocationRecordSchema, type RowAnchor, SCHEMA_EXTENSION_SCHEMA_IRI, DEFAULT_SCHEMA_VERSION as SCHEMA_VERSION, SIDECAR_PREFIX, SPACE_KINDS, SPACE_MEMBERSHIP_SCHEMA_IRI, SPACE_ROLES, SPACE_SCHEMA_IRI, SPACE_VISIBILITY, STAGE_SCHEMA_IRI, SYSTEM_NAMESPACE_KINDS, SYSTEM_SCHEMA_BASE_IRIS, SYSTEM_SCHEMA_IRIS, type SavedView, SavedViewSchema, Schema, type SchemaAuthorityResolution, type SchemaAuthorityResolutionKind, type SchemaAuthorityResolutionOptions, type SchemaCompatibility, type SchemaCompatibilityMode, SchemaCompatibilitySchema, type SchemaDefinition, SchemaDefinitionSchema, type SchemaDefinitionSigningInput, type SchemaDefinitionStatus, type SchemaExtension, SchemaExtensionSchema, SchemaIRI, SchemaLens, type SelectOption, type SelectOptions, type SidecarOverlay, type Space, type SpaceKind, type SpaceLike, type SpaceMembership, SpaceMembershipSchema, type SpaceRole, SpaceSchema, type SpaceTreeNode, type SpaceVisibility, type Stage, StageSchema, type SyncPolicy, SyncPolicySchema, type SyncPolicyStatus, type SystemFederationErrorCode, type SystemNamespaceKind, type SystemSchemaDefinitionRecord, SystemSchemaIndex, type SystemSchemaIndexDiagnostic, type SystemSchemaIndexOptions, type SystemSchemaIndexStore, TAG_SCHEMA_IRI, TASK_SHORT_ID_PATTERN, TASK_STATUS_CATEGORIES, TRANSACTION_SCHEMA_IRI, TRANSCRIPTION_SCHEMA_IRI, type Tag, TagSchema, type Task, TaskSchema, type TaskShortIdBlock, type TaskStatusCategory, type TaskStatusId, type TaskView, TaskViewSchema, type TextAnchor, type TextOptions, type Transaction, TransactionSchema, type TransactionStatus, type Transcription, TranscriptionSchema, type TranscriptionSourceId, type UpdatedOptions, type UrlOptions, type UserWidget, type UserWidgetConfigField, UserWidgetSchema, type UserWidgetSize, type ValidateSchemaDefinitionNodeOptions, ValidationError, ValidationResult, type Workspace, WorkspaceSchema, type WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, bucketPresenceCount, buildEffectiveSchema, buildFolderTree, buildSpaceTree, buildSystemNamespace, buildSystemNodeId, builtInSchemas, canManageSpace, canModifyColumn, checkOrphanStatus, checkbox, compareSpaceRoles, composeLens, computeSchemaDefinitionContentHash, convert, copy, createAccountRecord, createNodeGraphSchemaResolver, createOperations, createSchemaDefinitionSigningPayload, created, createdBy, crmSchemas, date, dateRange, decodeAnchor, defineSchema, deviceRecipientExpander, deviceRecordId, effectiveSpaceRole, email, encodeAnchor, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, promoteOverlay, recoveryRecordId, relation, remove, rename, resolveActiveDevices, resolveEffectiveSchema, resolveSchemaAuthority, revocationRecordId, revokeDeviceRecord, revokeSubjectRecord, revokedSubjects, schemaExtensionId, select, selectExtensionFields, shortIdsFromBlock, sidecarId, sidecarOverlayKeys, spaceAncestorIds, spaceMembershipId, spacePathIds, spaceRoleGrantActions, spaceRoleToShareRole, summarizePresenceNodes, taskBranchName, text, transform, updated, url, validateSchemaDefinitionNode, when, wouldCreateFolderCycle, wouldCreateSpaceCycle };
|
|
6759
|
+
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, type AbuseReport, AbuseReportSchema, type Account, type AccountClassId, type AccountRecord, AccountRecordSchema, AccountSchema, type Achievement, AchievementSchema, type Activity, type ActivityKind, ActivitySchema, type AnchorData, type AnchorType, type Appeal, AppealSchema, BUDGET_SCHEMA_IRI, type Budget, type BudgetPeriod, BudgetSchema, type BuiltInSchemaIRI, CHANNEL_KINDS, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, CRM_NAMESPACE, type Canvas, type CanvasObjectAnchor, type CanvasObjectAnchorPlacement, type CanvasPositionAnchor, CanvasSchema, type CellAnchor, type Channel, type ChannelKind, type ChannelNotifyTier, ChannelSchema, type ChatMessage, ChatMessageSchema, type CheckboxOptions, type ColumnAnchor, type Comment, CommentSchema, type CommunityNote, CommunityNoteSchema, type Contact, type ContactLifecycle, ContactSchema, type ContentProvenance, ContentProvenanceSchema, type CoreSchemaResolver, type CreatedByOptions, type CreatedOptions, type CrmVisibility, DEAL_CONTACT_ROLES, DEAL_CONTACT_ROLE_SCHEMA_IRI, DEAL_SCHEMA_IRI, DEAL_SOURCES, DEFAULT_CHANNEL_TIER, DEVICE_RECORD_SCHEMA_IRI, DID, type Dashboard, type DashboardBreakpointId, type DashboardLayoutItem, type DashboardLayouts, DashboardSchema, type DashboardTimeRange, type DashboardVariablesState, type DashboardWidgetInstance, type DashboardWidgetRefresh, type Database, type DatabaseField, DatabaseFieldSchema, type DatabaseRow, DatabaseRowSchema, DatabaseSchema, type DatabaseSelectOption, DatabaseSelectOptionSchema, type DatabaseView, DatabaseViewSchema, type DateOptions, type DateRange, type DateRangeOptions, type Deal, type DealContactRole, type DealContactRoleKind, DealContactRoleSchema, DealSchema, type DealSource, type DefineSchemaOptions, DefinedSchema, type DeviceLike, type DeviceRecord, DeviceRecordSchema, DocumentType, EXTENSION_FIELD_SCHEMA_IRI, EXTERNAL_ITEM_SCHEMA_IRI, EXTERNAL_ITEM_SOURCES, EXT_PREFIX, type EffectiveExtensionField, type EmailOptions, type Experiment, type ExperimentDesign, type ExperimentPhase, ExperimentSchema, type ExperimentStatus, type ExtensionField, type ExtensionFieldRecord, ExtensionFieldSchema, type ExtensionRecord, type ExternalItem, ExternalItemSchema, type ExternalReference, ExternalReferenceSchema, FEED_ITEM_SCHEMA_IRI, FEED_SCHEMA_IRI, FOLDER_SCHEMA_IRI, FORECAST_CATEGORIES, type Feed, type FeedItem, FeedItemSchema, FeedSchema, type FileOptions, type FileRef, type Folder, type FolderLike, FolderSchema, type FolderTreeNode, type ForecastCategory, GAME_ASSET_FORMATS, GAME_ASSET_MIME_TYPES, GAME_ASSET_SCHEMA_IRI, GAME_ECONOMY_ENTRY_SCHEMA_IRI, GAME_ITEM_SCHEMA_IRI, GAME_NAMESPACE, GAME_SCHEMA_IRIS, type GameAsset, type GameAssetFormat, GameAssetSchema, type GameEconomyEntry, GameEconomyEntrySchema, type GameItem, GameItemSchema, type GameVisibility, type GeoFeature, type GeoFeatureCollection, type GeoGeometry, type GeoPosition, type Grant, GrantSchema, IMPORT_BATCH_SCHEMA_IRI, INVENTORY_SCHEMA_IRI, ITEM_RARITIES, type ImportBatch, ImportBatchSchema, type ImportSource, type InboxItemTriage, type InboxState, InboxStateSchema, type InboxWatermark, InferNode, type Inventory, InventorySchema, type ItemRarity, type JsonOptions, LINE_ITEM_SCHEMA_IRI, type LedgerNodeIntent, LensOperation, type LineItem, LineItemSchema, MATCH_RESULTS, MATCH_SESSION_SCHEMA_IRI, MAX_LINK_PREVIEWS_PER_MESSAGE, MAX_MENTION_DIDS, MAX_TAG_NAME_LENGTH, MEETING_CHANNELS, MEETING_SCHEMA_IRI, MEETING_TEMPLATE_IDS, MEETING_TRANSCRIPT_SCHEMA_IRI, MEMORY_ITEM_SCHEMA_IRI, MEMORY_KINDS, MILESTONE_SCHEMA_IRI, type Map$1 as Map, type MapBasemapId, type MapLayerGeometry, type MapLayerSource, type MapLayerSpec, type MapLayerStyle, MapSchema, type MapViewport, type MatchResult, type MatchSession, MatchSessionSchema, type MediaAsset, MediaAssetSchema, type Meeting, type MeetingChannel, MeetingSchema, type MeetingSegment, type MeetingTemplateId, type MeetingTranscript, MeetingTranscriptSchema, type MemoryItem, MemoryItemSchema, type MemoryKind, type Mention, type MessageLinkPreview, type MessageMentions, type MessageRequest, MessageRequestSchema, type Metric, type MetricKind, type MetricPolarity, type MetricScheduleId, MetricSchema, type Milestone, MilestoneSchema, type ModerationLabel, ModerationLabelSchema, type MoneyOptions, type MoneyValue, type MultiSelectOptions, NODE_VISIBILITY, type NodeAnchor, type NodeVisibility, type NoteRating, NoteRatingSchema, type NotificationPrefs, type NumberOptions, ORGANIZATION_SCHEMA_IRI, ORGANIZATION_SIZES, type Observation, type ObservationPhase, ObservationSchema, type Organization, OrganizationSchema, type OrganizationSize, type OrphanReason, type OrphanResolvers, type OrphanStatus, PIPELINE_SCHEMA_IRI, PLAYER_IDENTITY_SCHEMA_IRI, POSTING_SCHEMA_IRI, PRODUCT_KINDS, PRODUCT_SCHEMA_IRI, type Page, PageSchema, type ParsedSystemNamespaceResource, type ParsedTaskShortId, type PersonOptions, type PhoneOptions, type Pipeline, PipelineSchema, type PlayerIdentity, PlayerIdentitySchema, type PolicyList, PolicyListSchema, type PolicySubscription, PolicySubscriptionSchema, type Posting, PostingSchema, PresenceAggregator, type PresenceAggregatorOptions, type PresenceAggregatorStore, type PresenceCountBucket, type PresenceSummary, type PresenceSummaryDescriptor, PresenceSummarySchema, type PresenceVisibility, type PresenceVisibilityResolver, type Product, type ProductKind, ProductSchema, type Profile, ProfileSchema, type Project, ProjectSchema, PropertyBuilder, PropertyType, type PublicInteractionPolicy, PublicInteractionPolicySchema, type QualitySignal, QualitySignalSchema, RECOVERY_RECORD_SCHEMA_IRI, RELATIONSHIP_KINDS, RELATIONSHIP_SCHEMA_IRI, REVOCATION_RECORD_SCHEMA_IRI, type Reaction, ReactionSchema, type RecoveryRecord, RecoveryRecordSchema, type RelationOptions, type Relationship, type RelationshipKind, RelationshipSchema, type ReviewTask, ReviewTaskSchema, type RevocationLike, type RevocationRecord, RevocationRecordSchema, type RowAnchor, SCHEMA_EXTENSION_SCHEMA_IRI, DEFAULT_SCHEMA_VERSION as SCHEMA_VERSION, SIDECAR_PREFIX, SPACE_KINDS, SPACE_MEMBERSHIP_SCHEMA_IRI, SPACE_ROLES, SPACE_SCHEMA_IRI, SPACE_VISIBILITY, STAGE_SCHEMA_IRI, SYSTEM_NAMESPACE_KINDS, SYSTEM_SCHEMA_BASE_IRIS, SYSTEM_SCHEMA_IRIS, type SavedView, SavedViewSchema, Schema, type SchemaAuthorityResolution, type SchemaAuthorityResolutionKind, type SchemaAuthorityResolutionOptions, type SchemaCompatibility, type SchemaCompatibilityMode, SchemaCompatibilitySchema, type SchemaDefinition, SchemaDefinitionSchema, type SchemaDefinitionSigningInput, type SchemaDefinitionStatus, type SchemaExtension, SchemaExtensionSchema, SchemaIRI, SchemaLens, type SelectOption, type SelectOptions, type SidecarOverlay, type Space, type SpaceKind, type SpaceLike, type SpaceMembership, SpaceMembershipSchema, type SpaceRole, SpaceSchema, type SpaceTreeNode, type SpaceVisibility, type Stage, StageSchema, type SyncPolicy, SyncPolicySchema, type SyncPolicyStatus, type SystemFederationErrorCode, type SystemNamespaceKind, type SystemSchemaDefinitionRecord, SystemSchemaIndex, type SystemSchemaIndexDiagnostic, type SystemSchemaIndexOptions, type SystemSchemaIndexStore, TAG_SCHEMA_IRI, TASK_SHORT_ID_PATTERN, TASK_STATUS_CATEGORIES, TRANSACTION_SCHEMA_IRI, TRANSCRIPTION_SCHEMA_IRI, type Tag, TagSchema, type Task, TaskSchema, type TaskShortIdBlock, type TaskStatusCategory, type TaskStatusId, type TaskView, TaskViewSchema, type TextAnchor, type TextOptions, type Transaction, TransactionSchema, type TransactionStatus, type Transcription, TranscriptionSchema, type TranscriptionSourceId, type UpdatedOptions, type UrlOptions, type UserWidget, type UserWidgetConfigField, UserWidgetSchema, type UserWidgetSize, type ValidateSchemaDefinitionNodeOptions, ValidationError, ValidationResult, type Workspace, WorkspaceSchema, type WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, bucketPresenceCount, buildEffectiveSchema, buildFolderTree, buildSpaceTree, buildSystemNamespace, buildSystemNodeId, builtInSchemas, canManageSpace, canModifyColumn, checkOrphanStatus, checkbox, compareSpaceRoles, composeLens, computeSchemaDefinitionContentHash, convert, copy, createAccountRecord, createNodeGraphSchemaResolver, createOperations, createSchemaDefinitionSigningPayload, created, createdBy, crmSchemas, date, dateRange, decodeAnchor, defineSchema, deviceRecipientExpander, deviceRecordId, didFromProfileNodeId, effectiveSpaceRole, email, encodeAnchor, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isMessageLinkPreview, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, profileNodeId, promoteOverlay, recoveryRecordId, relation, remove, rename, resolveActiveDevices, resolveEffectiveSchema, resolveSchemaAuthority, revocationRecordId, revokeDeviceRecord, revokeSubjectRecord, revokedSubjects, sanitizeLinkPreviews, schemaExtensionId, select, selectExtensionFields, shortIdsFromBlock, sidecarId, sidecarOverlayKeys, spaceAncestorIds, spaceMembershipId, spacePathIds, spaceRoleGrantActions, spaceRoleToShareRole, summarizePresenceNodes, taskBranchName, text, transform, updated, url, validateSchemaDefinitionNode, when, wouldCreateFolderCycle, wouldCreateSpaceCycle };
|
package/dist/schema/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LensRegistry,
|
|
3
|
+
MAX_LINK_PREVIEWS_PER_MESSAGE,
|
|
3
4
|
MAX_MENTION_DIDS,
|
|
4
5
|
MigrationError,
|
|
5
6
|
PresenceAggregator,
|
|
@@ -34,6 +35,7 @@ import {
|
|
|
34
35
|
isCanvasPositionAnchor,
|
|
35
36
|
isCellAnchor,
|
|
36
37
|
isColumnAnchor,
|
|
38
|
+
isMessageLinkPreview,
|
|
37
39
|
isNodeAnchor,
|
|
38
40
|
isRowAnchor,
|
|
39
41
|
isSchemaDefinitionNode,
|
|
@@ -54,6 +56,7 @@ import {
|
|
|
54
56
|
resolveEffectiveSchema,
|
|
55
57
|
revokeDeviceRecord,
|
|
56
58
|
revokeSubjectRecord,
|
|
59
|
+
sanitizeLinkPreviews,
|
|
57
60
|
schemaRegistry,
|
|
58
61
|
selectExtensionFields,
|
|
59
62
|
shortIdsFromBlock,
|
|
@@ -63,7 +66,7 @@ import {
|
|
|
63
66
|
taskBranchName,
|
|
64
67
|
transform,
|
|
65
68
|
when
|
|
66
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-3L73ZALR.js";
|
|
67
70
|
import {
|
|
68
71
|
SavedViewSchema
|
|
69
72
|
} from "../chunk-ZZ6TWKGS.js";
|
|
@@ -124,7 +127,7 @@ import {
|
|
|
124
127
|
} from "../chunk-ZCOFZY5M.js";
|
|
125
128
|
import {
|
|
126
129
|
ChatMessageSchema
|
|
127
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-QVQVKZ3U.js";
|
|
128
131
|
import {
|
|
129
132
|
FEED_SCHEMA_IRI,
|
|
130
133
|
FeedSchema
|
|
@@ -187,13 +190,15 @@ import {
|
|
|
187
190
|
} from "../chunk-NI4FHG2K.js";
|
|
188
191
|
import {
|
|
189
192
|
CommentSchema
|
|
190
|
-
} from "../chunk-
|
|
193
|
+
} from "../chunk-MCKP4F72.js";
|
|
191
194
|
import {
|
|
192
195
|
ReactionSchema
|
|
193
196
|
} from "../chunk-Y3S5SRVM.js";
|
|
194
197
|
import {
|
|
195
|
-
ProfileSchema
|
|
196
|
-
|
|
198
|
+
ProfileSchema,
|
|
199
|
+
didFromProfileNodeId,
|
|
200
|
+
profileNodeId
|
|
201
|
+
} from "../chunk-TORDOOJ5.js";
|
|
197
202
|
import {
|
|
198
203
|
ACTIVITY_KINDS,
|
|
199
204
|
ACTIVITY_SCHEMA_IRI,
|
|
@@ -314,24 +319,6 @@ import {
|
|
|
314
319
|
import {
|
|
315
320
|
DatabaseSchema
|
|
316
321
|
} from "../chunk-IJ44LR7N.js";
|
|
317
|
-
import {
|
|
318
|
-
PresenceSummarySchema,
|
|
319
|
-
SYSTEM_NAMESPACE_KINDS,
|
|
320
|
-
SYSTEM_SCHEMA_BASE_IRIS,
|
|
321
|
-
SYSTEM_SCHEMA_IRIS,
|
|
322
|
-
SchemaCompatibilitySchema,
|
|
323
|
-
SchemaDefinitionSchema,
|
|
324
|
-
SyncPolicySchema,
|
|
325
|
-
buildSystemNamespace,
|
|
326
|
-
buildSystemNodeId,
|
|
327
|
-
computeSchemaDefinitionContentHash,
|
|
328
|
-
createSchemaDefinitionSigningPayload,
|
|
329
|
-
isSystemNamespaceResource,
|
|
330
|
-
isSystemSchemaIri,
|
|
331
|
-
parseSystemNamespaceResource,
|
|
332
|
-
resolveSchemaAuthority,
|
|
333
|
-
validateSchemaDefinitionNode
|
|
334
|
-
} from "../chunk-BY5O6LNC.js";
|
|
335
322
|
import {
|
|
336
323
|
EXT_PREFIX,
|
|
337
324
|
extKey,
|
|
@@ -359,6 +346,24 @@ import {
|
|
|
359
346
|
DatabaseViewSchema
|
|
360
347
|
} from "../chunk-MD553LDL.js";
|
|
361
348
|
import "../chunk-OCMSAKWV.js";
|
|
349
|
+
import {
|
|
350
|
+
PresenceSummarySchema,
|
|
351
|
+
SYSTEM_NAMESPACE_KINDS,
|
|
352
|
+
SYSTEM_SCHEMA_BASE_IRIS,
|
|
353
|
+
SYSTEM_SCHEMA_IRIS,
|
|
354
|
+
SchemaCompatibilitySchema,
|
|
355
|
+
SchemaDefinitionSchema,
|
|
356
|
+
SyncPolicySchema,
|
|
357
|
+
buildSystemNamespace,
|
|
358
|
+
buildSystemNodeId,
|
|
359
|
+
computeSchemaDefinitionContentHash,
|
|
360
|
+
createSchemaDefinitionSigningPayload,
|
|
361
|
+
isSystemNamespaceResource,
|
|
362
|
+
isSystemSchemaIri,
|
|
363
|
+
parseSystemNamespaceResource,
|
|
364
|
+
resolveSchemaAuthority,
|
|
365
|
+
validateSchemaDefinitionNode
|
|
366
|
+
} from "../chunk-BY5O6LNC.js";
|
|
362
367
|
import {
|
|
363
368
|
SPACE_MEMBERSHIP_SCHEMA_IRI,
|
|
364
369
|
SpaceMembershipSchema,
|
|
@@ -476,6 +481,7 @@ export {
|
|
|
476
481
|
LineItemSchema,
|
|
477
482
|
MATCH_RESULTS,
|
|
478
483
|
MATCH_SESSION_SCHEMA_IRI,
|
|
484
|
+
MAX_LINK_PREVIEWS_PER_MESSAGE,
|
|
479
485
|
MAX_MENTION_DIDS,
|
|
480
486
|
MAX_TAG_NAME_LENGTH,
|
|
481
487
|
MEETING_CHANNELS,
|
|
@@ -598,6 +604,7 @@ export {
|
|
|
598
604
|
defineSchema,
|
|
599
605
|
deviceRecipientExpander,
|
|
600
606
|
deviceRecordId,
|
|
607
|
+
didFromProfileNodeId,
|
|
601
608
|
effectiveSpaceRole,
|
|
602
609
|
email,
|
|
603
610
|
encodeAnchor,
|
|
@@ -626,6 +633,7 @@ export {
|
|
|
626
633
|
isCompletedTaskStatus,
|
|
627
634
|
isDeviceAuthorized,
|
|
628
635
|
isExtKey,
|
|
636
|
+
isMessageLinkPreview,
|
|
629
637
|
isMoneyValue,
|
|
630
638
|
isNode,
|
|
631
639
|
isNodeAnchor,
|
|
@@ -658,6 +666,7 @@ export {
|
|
|
658
666
|
parseTaskShortId,
|
|
659
667
|
person,
|
|
660
668
|
phone,
|
|
669
|
+
profileNodeId,
|
|
661
670
|
promoteOverlay,
|
|
662
671
|
recoveryRecordId,
|
|
663
672
|
relation,
|
|
@@ -670,6 +679,7 @@ export {
|
|
|
670
679
|
revokeDeviceRecord,
|
|
671
680
|
revokeSubjectRecord,
|
|
672
681
|
revokedSubjects,
|
|
682
|
+
sanitizeLinkPreviews,
|
|
673
683
|
schemaExtensionId,
|
|
674
684
|
schemaRegistry,
|
|
675
685
|
select,
|
package/dist/store/index.js
CHANGED
|
@@ -49,8 +49,7 @@ import {
|
|
|
49
49
|
sum,
|
|
50
50
|
validateQueryAST,
|
|
51
51
|
validateSavedViewDescriptor
|
|
52
|
-
} from "../chunk-
|
|
53
|
-
import "../chunk-BY5O6LNC.js";
|
|
52
|
+
} from "../chunk-QN334DU7.js";
|
|
54
53
|
import {
|
|
55
54
|
applyNodeQueryDescriptor,
|
|
56
55
|
createNodeQueryDescriptor,
|
|
@@ -66,6 +65,7 @@ import {
|
|
|
66
65
|
withoutNodeQueryMaterializedView,
|
|
67
66
|
withoutNodeQueryPagination
|
|
68
67
|
} from "../chunk-S5RP5RKY.js";
|
|
68
|
+
import "../chunk-BY5O6LNC.js";
|
|
69
69
|
import "../chunk-EBNMV2VO.js";
|
|
70
70
|
import "../chunk-RL64OJJ5.js";
|
|
71
71
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnetjs/data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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.
|
|
61
|
-
"@xnetjs/crypto": "0.
|
|
62
|
-
"@xnetjs/identity": "0.
|
|
63
|
-
"@xnetjs/sqlite": "0.
|
|
64
|
-
"@xnetjs/storage": "0.
|
|
65
|
-
"@xnetjs/sync": "0.
|
|
60
|
+
"@xnetjs/core": "0.11.0",
|
|
61
|
+
"@xnetjs/crypto": "0.11.0",
|
|
62
|
+
"@xnetjs/identity": "0.11.0",
|
|
63
|
+
"@xnetjs/sqlite": "0.11.0",
|
|
64
|
+
"@xnetjs/storage": "0.11.0",
|
|
65
|
+
"@xnetjs/sync": "0.11.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"tsup": "^8.0.0",
|
package/dist/profile-BLLDWIDK.js
DELETED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SYSTEM_SCHEMA_BASE_IRIS,
|
|
3
|
-
isSystemNamespaceResource,
|
|
4
|
-
isSystemSchemaIri
|
|
5
|
-
} from "./chunk-BY5O6LNC.js";
|
|
6
1
|
import {
|
|
7
2
|
applyNodeQueryDescriptor,
|
|
8
3
|
getNodeQuerySearchTokens,
|
|
9
4
|
withoutNodeQueryMaterializedView,
|
|
10
5
|
withoutNodeQueryPagination
|
|
11
6
|
} from "./chunk-S5RP5RKY.js";
|
|
7
|
+
import {
|
|
8
|
+
SYSTEM_SCHEMA_BASE_IRIS,
|
|
9
|
+
isSystemNamespaceResource,
|
|
10
|
+
isSystemSchemaIri
|
|
11
|
+
} from "./chunk-BY5O6LNC.js";
|
|
12
12
|
import {
|
|
13
13
|
createNodeId,
|
|
14
14
|
getBaseSchemaIRI
|