@xnetjs/data 0.9.0 → 0.10.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ChatMessageSchema
3
- } from "./chunk-Q3IEGH4B.js";
3
+ } from "./chunk-QVQVKZ3U.js";
4
4
  import "./chunk-OCMSAKWV.js";
5
5
  import "./chunk-T5AZAOG5.js";
6
6
  import "./chunk-EBNMV2VO.js";
@@ -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-QSWYAQVS.js").then((m) => m.CommentSchema),
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
401
  "xnet://xnet.fyi/Profile@1.0.0": () => import("./profile-BLLDWIDK.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-DSVO72B3.js").then((m) => m.ChatMessageSchema),
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-QSWYAQVS.js").then((m) => m.CommentSchema),
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
488
  "xnet://xnet.fyi/Profile": () => import("./profile-BLLDWIDK.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-DSVO72B3.js").then((m) => m.ChatMessageSchema),
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
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommentSchema
3
- } from "./chunk-5HC5NO57.js";
3
+ } from "./chunk-MCKP4F72.js";
4
4
  import "./chunk-OCMSAKWV.js";
5
5
  import "./chunk-T5AZAOG5.js";
6
6
  import "./chunk-EBNMV2VO.js";
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, 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, 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-Y7UC2V5U.js";
293
+ } from "./chunk-EMREE66R.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-Q3IEGH4B.js";
354
+ } from "./chunk-QVQVKZ3U.js";
136
355
  import {
137
356
  FEED_SCHEMA_IRI,
138
357
  FeedSchema
@@ -195,7 +414,7 @@ import {
195
414
  } from "./chunk-NI4FHG2K.js";
196
415
  import {
197
416
  CommentSchema
198
- } from "./chunk-5HC5NO57.js";
417
+ } from "./chunk-MCKP4F72.js";
199
418
  import {
200
419
  ReactionSchema
201
420
  } from "./chunk-Y3S5SRVM.js";
@@ -322,6 +541,41 @@ import {
322
541
  import {
323
542
  DatabaseSchema
324
543
  } from "./chunk-IJ44LR7N.js";
544
+ import {
545
+ EXT_PREFIX,
546
+ extKey,
547
+ isExtKey,
548
+ parseExtKey
549
+ } from "./chunk-PMUQACPY.js";
550
+ import {
551
+ EXTENSION_FIELD_SCHEMA_IRI,
552
+ ExtensionFieldSchema,
553
+ SCHEMA_EXTENSION_SCHEMA_IRI,
554
+ SchemaExtensionSchema,
555
+ schemaExtensionId
556
+ } from "./chunk-WEPK7SZF.js";
557
+ import {
558
+ MAX_KEY_LENGTH,
559
+ compareSortKeys,
560
+ generateSortKey,
561
+ generateSortKeyWithJitter,
562
+ isValidSortKey,
563
+ needsRebalancing,
564
+ rebalanceSortKeys
565
+ } from "./chunk-QWFTRZQT.js";
566
+ import {
567
+ DatabaseRowSchema
568
+ } from "./chunk-FB63TZVI.js";
569
+ import {
570
+ DatabaseFieldSchema
571
+ } from "./chunk-KQAT4XBL.js";
572
+ import {
573
+ DatabaseSelectOptionSchema
574
+ } from "./chunk-6OMG4I7M.js";
575
+ import {
576
+ DatabaseViewSchema
577
+ } from "./chunk-MD553LDL.js";
578
+ import "./chunk-OCMSAKWV.js";
325
579
  import {
326
580
  MemoryNodeStorageAdapter,
327
581
  NodeStore,
@@ -372,13 +626,28 @@ import {
372
626
  sum,
373
627
  validateQueryAST,
374
628
  validateSavedViewDescriptor
375
- } from "./chunk-AIENVDXA.js";
629
+ } from "./chunk-QN334DU7.js";
376
630
  import {
377
- PresenceSummarySchema,
378
- SYSTEM_NAMESPACE_KINDS,
379
- SYSTEM_SCHEMA_BASE_IRIS,
380
- SYSTEM_SCHEMA_IRIS,
381
- SchemaCompatibilitySchema,
631
+ applyNodeQueryDescriptor,
632
+ createNodeQueryDescriptor,
633
+ decodeNodeQueryCursor,
634
+ encodeNodeQueryCursor,
635
+ filterNodeQueryResults,
636
+ getNodeQuerySearchTokens,
637
+ matchesNodeQueryDescriptor,
638
+ nodeQueryDescriptorNeedsBoundedReload,
639
+ nodeQueryDescriptorToOptions,
640
+ serializeNodeQueryDescriptor,
641
+ sortNodeQueryResults,
642
+ withoutNodeQueryMaterializedView,
643
+ withoutNodeQueryPagination
644
+ } from "./chunk-S5RP5RKY.js";
645
+ import {
646
+ PresenceSummarySchema,
647
+ SYSTEM_NAMESPACE_KINDS,
648
+ SYSTEM_SCHEMA_BASE_IRIS,
649
+ SYSTEM_SCHEMA_IRIS,
650
+ SchemaCompatibilitySchema,
382
651
  SchemaDefinitionSchema,
383
652
  SyncPolicySchema,
384
653
  buildSystemNamespace,
@@ -401,272 +670,6 @@ import {
401
670
  onPresenceChange,
402
671
  setLocalPresence
403
672
  } 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
- import {
621
- EXT_PREFIX,
622
- extKey,
623
- isExtKey,
624
- parseExtKey
625
- } from "./chunk-PMUQACPY.js";
626
- import {
627
- EXTENSION_FIELD_SCHEMA_IRI,
628
- ExtensionFieldSchema,
629
- SCHEMA_EXTENSION_SCHEMA_IRI,
630
- SchemaExtensionSchema,
631
- schemaExtensionId
632
- } from "./chunk-WEPK7SZF.js";
633
- import {
634
- MAX_KEY_LENGTH,
635
- compareSortKeys,
636
- generateSortKey,
637
- generateSortKeyWithJitter,
638
- isValidSortKey,
639
- needsRebalancing,
640
- rebalanceSortKeys
641
- } from "./chunk-QWFTRZQT.js";
642
- import {
643
- DatabaseRowSchema
644
- } from "./chunk-FB63TZVI.js";
645
- import {
646
- DatabaseFieldSchema
647
- } from "./chunk-KQAT4XBL.js";
648
- import {
649
- DatabaseSelectOptionSchema
650
- } from "./chunk-6OMG4I7M.js";
651
- import {
652
- DatabaseViewSchema
653
- } from "./chunk-MD553LDL.js";
654
- import "./chunk-OCMSAKWV.js";
655
- import {
656
- applyNodeQueryDescriptor,
657
- createNodeQueryDescriptor,
658
- decodeNodeQueryCursor,
659
- encodeNodeQueryCursor,
660
- filterNodeQueryResults,
661
- getNodeQuerySearchTokens,
662
- matchesNodeQueryDescriptor,
663
- nodeQueryDescriptorNeedsBoundedReload,
664
- nodeQueryDescriptorToOptions,
665
- serializeNodeQueryDescriptor,
666
- sortNodeQueryResults,
667
- withoutNodeQueryMaterializedView,
668
- withoutNodeQueryPagination
669
- } from "./chunk-S5RP5RKY.js";
670
673
  import {
671
674
  SPACE_MEMBERSHIP_SCHEMA_IRI,
672
675
  SpaceMembershipSchema,
@@ -2102,6 +2105,7 @@ export {
2102
2105
  MATCH_RESULTS,
2103
2106
  MATCH_SESSION_SCHEMA_IRI,
2104
2107
  MAX_KEY_LENGTH,
2108
+ MAX_LINK_PREVIEWS_PER_MESSAGE,
2105
2109
  MAX_MENTION_DIDS,
2106
2110
  MAX_TAG_NAME_LENGTH,
2107
2111
  MAX_VERSION_HISTORY,
@@ -2456,6 +2460,7 @@ export {
2456
2460
  isFormFieldTypeAllowed,
2457
2461
  isFormQuestionVisible,
2458
2462
  isGrantActive,
2463
+ isMessageLinkPreview,
2459
2464
  isMoneyValue,
2460
2465
  isNode,
2461
2466
  isNodeAnchor,
@@ -2557,6 +2562,7 @@ export {
2557
2562
  revokeSubjectRecord,
2558
2563
  revokedSubjects,
2559
2564
  rowHeightLabel,
2565
+ sanitizeLinkPreviews,
2560
2566
  schemaExtensionId,
2561
2567
  schemaRegistry,
2562
2568
  schemaToHubPolicy,
@@ -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) */
@@ -2786,6 +2823,8 @@ declare const ChatMessageSchema: DefinedSchema<{
2786
2823
  tags: PropertyBuilder<string[]>;
2787
2824
  /** Node ids from the composer's [[ link picks (exploration 0170) */
2788
2825
  links: PropertyBuilder<string[]>;
2826
+ /** Composer-resolved URL previews (0295) — never parsed from content */
2827
+ linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
2789
2828
  createdAt: PropertyBuilder<number>;
2790
2829
  createdBy: PropertyBuilder<`did:key:${string}`>;
2791
2830
  }>;
@@ -4598,6 +4637,7 @@ declare const builtInSchemas: {
4598
4637
  tags: PropertyBuilder<string[]>;
4599
4638
  attachments: PropertyBuilder<FileRef[]>;
4600
4639
  mentions: PropertyBuilder<MessageMentions>;
4640
+ linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
4601
4641
  replyToUser: PropertyBuilder<`did:key:${string}`>;
4602
4642
  replyToCommentId: PropertyBuilder<string>;
4603
4643
  resolved: PropertyBuilder<boolean>;
@@ -4654,6 +4694,7 @@ declare const builtInSchemas: {
4654
4694
  redacted: PropertyBuilder<boolean>;
4655
4695
  tags: PropertyBuilder<string[]>;
4656
4696
  links: PropertyBuilder<string[]>;
4697
+ linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
4657
4698
  createdAt: PropertyBuilder<number>;
4658
4699
  createdBy: PropertyBuilder<`did:key:${string}`>;
4659
4700
  }>>;
@@ -5664,6 +5705,7 @@ declare const builtInSchemas: {
5664
5705
  tags: PropertyBuilder<string[]>;
5665
5706
  attachments: PropertyBuilder<FileRef[]>;
5666
5707
  mentions: PropertyBuilder<MessageMentions>;
5708
+ linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
5667
5709
  replyToUser: PropertyBuilder<`did:key:${string}`>;
5668
5710
  replyToCommentId: PropertyBuilder<string>;
5669
5711
  resolved: PropertyBuilder<boolean>;
@@ -5720,6 +5762,7 @@ declare const builtInSchemas: {
5720
5762
  redacted: PropertyBuilder<boolean>;
5721
5763
  tags: PropertyBuilder<string[]>;
5722
5764
  links: PropertyBuilder<string[]>;
5765
+ linkPreviews: PropertyBuilder<MessageLinkPreview[]>;
5723
5766
  createdAt: PropertyBuilder<number>;
5724
5767
  createdBy: PropertyBuilder<`did:key:${string}`>;
5725
5768
  }>>;
@@ -6700,4 +6743,4 @@ declare function createOperations(...operations: LensOperation[]): {
6700
6743
  */
6701
6744
  declare function identity(source: SchemaIRI, target: SchemaIRI): SchemaLens;
6702
6745
 
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 };
6746
+ 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, 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, 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 };
@@ -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-Y7UC2V5U.js";
69
+ } from "../chunk-EMREE66R.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-Q3IEGH4B.js";
130
+ } from "../chunk-QVQVKZ3U.js";
128
131
  import {
129
132
  FEED_SCHEMA_IRI,
130
133
  FeedSchema
@@ -187,7 +190,7 @@ import {
187
190
  } from "../chunk-NI4FHG2K.js";
188
191
  import {
189
192
  CommentSchema
190
- } from "../chunk-5HC5NO57.js";
193
+ } from "../chunk-MCKP4F72.js";
191
194
  import {
192
195
  ReactionSchema
193
196
  } from "../chunk-Y3S5SRVM.js";
@@ -314,24 +317,6 @@ import {
314
317
  import {
315
318
  DatabaseSchema
316
319
  } 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
320
  import {
336
321
  EXT_PREFIX,
337
322
  extKey,
@@ -359,6 +344,24 @@ import {
359
344
  DatabaseViewSchema
360
345
  } from "../chunk-MD553LDL.js";
361
346
  import "../chunk-OCMSAKWV.js";
347
+ import {
348
+ PresenceSummarySchema,
349
+ SYSTEM_NAMESPACE_KINDS,
350
+ SYSTEM_SCHEMA_BASE_IRIS,
351
+ SYSTEM_SCHEMA_IRIS,
352
+ SchemaCompatibilitySchema,
353
+ SchemaDefinitionSchema,
354
+ SyncPolicySchema,
355
+ buildSystemNamespace,
356
+ buildSystemNodeId,
357
+ computeSchemaDefinitionContentHash,
358
+ createSchemaDefinitionSigningPayload,
359
+ isSystemNamespaceResource,
360
+ isSystemSchemaIri,
361
+ parseSystemNamespaceResource,
362
+ resolveSchemaAuthority,
363
+ validateSchemaDefinitionNode
364
+ } from "../chunk-BY5O6LNC.js";
362
365
  import {
363
366
  SPACE_MEMBERSHIP_SCHEMA_IRI,
364
367
  SpaceMembershipSchema,
@@ -476,6 +479,7 @@ export {
476
479
  LineItemSchema,
477
480
  MATCH_RESULTS,
478
481
  MATCH_SESSION_SCHEMA_IRI,
482
+ MAX_LINK_PREVIEWS_PER_MESSAGE,
479
483
  MAX_MENTION_DIDS,
480
484
  MAX_TAG_NAME_LENGTH,
481
485
  MEETING_CHANNELS,
@@ -626,6 +630,7 @@ export {
626
630
  isCompletedTaskStatus,
627
631
  isDeviceAuthorized,
628
632
  isExtKey,
633
+ isMessageLinkPreview,
629
634
  isMoneyValue,
630
635
  isNode,
631
636
  isNodeAnchor,
@@ -670,6 +675,7 @@ export {
670
675
  revokeDeviceRecord,
671
676
  revokeSubjectRecord,
672
677
  revokedSubjects,
678
+ sanitizeLinkPreviews,
673
679
  schemaExtensionId,
674
680
  schemaRegistry,
675
681
  select,
@@ -49,8 +49,7 @@ import {
49
49
  sum,
50
50
  validateQueryAST,
51
51
  validateSavedViewDescriptor
52
- } from "../chunk-AIENVDXA.js";
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.9.0",
3
+ "version": "0.10.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.9.0",
61
- "@xnetjs/crypto": "0.9.0",
62
- "@xnetjs/identity": "0.9.0",
63
- "@xnetjs/sqlite": "0.9.0",
64
- "@xnetjs/storage": "0.9.0",
65
- "@xnetjs/sync": "0.9.0"
60
+ "@xnetjs/core": "0.10.0",
61
+ "@xnetjs/crypto": "0.10.0",
62
+ "@xnetjs/identity": "0.10.0",
63
+ "@xnetjs/sqlite": "0.10.0",
64
+ "@xnetjs/storage": "0.10.0",
65
+ "@xnetjs/sync": "0.10.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "tsup": "^8.0.0",
@@ -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