@xnetjs/data 2.5.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/auth/index.d.ts +4 -4
- package/dist/chunk-GJAOMEQO.js +114 -0
- package/dist/chunk-KY62NUOI.js +67 -0
- package/dist/chunk-N37U6ZPI.js +789 -0
- package/dist/chunk-NFPEFD2I.js +42 -0
- package/dist/{chunk-ODOPVGUX.js → chunk-QKVIKVAL.js} +65 -26
- package/dist/{chunk-CY6EJUNV.js → chunk-S7SEN4LH.js} +5 -1
- package/dist/{chunk-4HJZJMPI.js → chunk-TN7LGV66.js} +1 -1
- package/dist/{chunk-YRFCXKJC.js → chunk-UQ2VFHU3.js} +2 -2
- package/dist/chunk-VZSEZNYA.js +83 -0
- package/dist/{chunk-JF4VCZER.js → chunk-WSINZHSR.js} +27 -1
- package/dist/{chunk-MAB662PR.js → chunk-YCBJDT23.js} +62 -48
- package/dist/{clone-VRVODkBn.d.ts → clone-ywzFVkID.d.ts} +4 -4
- package/dist/course-C5DXOIVO.js +24 -0
- package/dist/database/index.d.ts +5 -5
- package/dist/database/index.js +8 -8
- package/dist/event-VW3FBN4F.js +20 -0
- package/dist/{form-types-Dkqm9UO2.d.ts → form-types-BrHYdpi0.d.ts} +1 -1
- package/dist/{game-NEQP7OFX.js → game-7AXW7XKS.js} +1 -1
- package/dist/{grant-expiration-cleaner-CTsW0hvU.d.ts → grant-expiration-cleaner-CRS9OyhV.d.ts} +3 -3
- package/dist/index.d.ts +10 -320
- package/dist/index.js +292 -867
- package/dist/{moderation-HRMMBFVH.js → moderation-5Z4LKOKN.js} +5 -3
- package/dist/{page-MADZ5OHM.js → page-W4G6433H.js} +1 -1
- package/dist/portability/index.d.ts +330 -0
- package/dist/portability/index.js +34 -0
- package/dist/post-7IOO64MD.js +14 -0
- package/dist/{profile-5H6XWCK4.js → profile-KLHCAQY2.js} +1 -1
- package/dist/publication-3MN3WWKP.js +10 -0
- package/dist/{query-ast-h31svZnG.d.ts → query-ast-DQJO7yRV.d.ts} +1 -1
- package/dist/{registry-Dh4Kr3fo.d.ts → registry-C9IRLLeR.d.ts} +1 -1
- package/dist/schema/index.d.ts +366 -26
- package/dist/schema/index.js +195 -149
- package/dist/space-GBTEHZOK.js +1 -1
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +2 -2
- package/dist/{store-jukJYsvr.d.ts → store-D1oiFQuF.d.ts} +19 -2
- package/dist/{types-Z9dUzbDF.d.ts → types-gws1tSf-.d.ts} +1 -1
- package/package.json +27 -25
- package/dist/{chunk-TW5XJHNF.js → chunk-ANMAR3KY.js} +14 -14
package/dist/database/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
import '../types-
|
|
1
|
+
import { Y as FilterGroup, H as ColumnDefinition, E as ColumnType, W as ViewType, $ as SortConfig } from '../form-types-BrHYdpi0.js';
|
|
2
|
+
export { a as CELL_PREFIX, C as CellValue, I as ColumnConfig, as as ColumnSummaryResult, av as DEFAULT_ROW_HEIGHT, o as DateColumnConfig, o as DateFieldConfig, D as DateRange, J as EmptyConfig, q as FIELD_TYPES, k as FieldConfig, l as FieldNode, j as FieldType, p as FileColumnConfig, p as FileFieldConfig, F as FileRef, Z as FilterCondition, _ as FilterOperator, a8 as FormAudience, a5 as FormConfirmation, a7 as FormFieldRule, a4 as FormQuestion, a9 as FormSubmissionMeta, aa as FormValidationError, ab as FormValidationResult, a6 as FormViewConfig, n as FormulaColumnConfig, n as FormulaFieldConfig, G as GeoPoint, N as NumberColumnConfig, N as NumberFieldConfig, ae as PUBLIC_SAFE_FORM_FIELD_TYPES, ad as PublicFormDefinition, ac as PublicFormQuestion, au as ROW_HEIGHTS, at as ROW_HEIGHT_PX, R as RelationColumnConfig, R as RelationFieldConfig, O as RollupAggregation, m as RollupColumnConfig, m as RollupFieldConfig, az as RowHeight, r as SELECT_COLORS, al as SUMMARY_FUNCTIONS_BY_TYPE, M as SelectColor, K as SelectColumnConfig, L as SelectOption, S as SelectOptionNode, ar as SummaryColumnLike, ap as SummaryFunction, aq as SummaryRow, T as TextColumnConfig, T as TextFieldConfig, X as ViewConfig, ay as asRowHeight, v as autoColor, aj as buildPublicFormDefinition, c as cellKey, b as columnIdFromKey, ao as computeColumnSummary, f as fromCellProperties, U as isAutoColumnType, y as isAutoFieldType, i as isCellKey, h as isCellValue, Q as isComputedColumnType, x as isComputedFieldType, d as isDateRange, s as isFieldType, e as isFileRef, an as isFilledValue, a1 as isFilterCondition, a0 as isFilterGroup, af as isFormFieldTypeAllowed, ag as isFormQuestionVisible, g as isGeoPoint, P as isNodeStoreColumnType, w as isNodeStoreFieldType, u as isSelectColor, V as isYDocColumnType, z as isYDocFieldType, a3 as requiresDateColumn, ax as resolveRowHeightPx, aw as rowHeightLabel, ak as submissionRowId, am as summaryFunctionLabel, a2 as supportsGrouping, t as toCellProperties, A as toFieldNode, B as toSelectOptionNode, ai as validateFormSubmission, ah as visibleFormQuestions } from '../form-types-BrHYdpi0.js';
|
|
3
|
+
export { cD as CloneSchemaOptions, cE as CloneSchemaResult, cF as CloneSourceData, ax as ConvertContext, ay as ConvertedCell, cx as CreateDatabaseSchemaResolverOptions, O as CreateExtensionFieldOptions, w as CreateFieldOptions, C as CreateRowOptions, x as CreateSelectOptionOptions, Z as CreateViewOptions, b8 as CsvExportOptions, aV as CsvParseOptions, cm as DATABASE_SCHEMA_NAMESPACE, cn as DATABASE_SCHEMA_PREFIX, ag as DEFAULT_DATABASE_SCHEMA_VERSION, au as DatabaseDocumentModel, D as DatabaseRowNode, cp as DatabaseSchemaMetadata, cw as DocFetcher, N as EnsureExtensionOptions, b7 as ExportRow, bb as ExportedColumn, ba as ExportedJSON, bQ as FilterableRow, aH as FormulaRow, aF as FormulaService, aI as FormulaValidationResult, c2 as GroupAggregates, c0 as GroupConfig, b$ as GroupableRow, aX as InferredColumn, b9 as JsonExportOptions, aY as JsonParseOptions, M as MAX_KEY_LENGTH, co as MAX_VERSION_HISTORY, bF as OPERATORS_BY_TYPE, bG as OPERATOR_LABELS, aU as ParsedCSV, aW as ParsedJSON, ca as QueryOptions, cb as QueryResult, Q as QueryRowsOptions, a as QueryRowsResult, c9 as QueryableRow, R as RICHTEXT_PREFIX, aE as RollupContext, aD as RollupRow, c1 as RowGroup, cr as SchemaVersionEntry, af as SetupDatabaseResult, bW as SortableRow, cq as StoredColumn, U as UpdateFieldOptions, _ as UpdateViewOptions, cs as VersionBumpType, Y as ViewNode, ao as addDefaultTableView, an as addDefaultTitleColumn, bU as addOrToggleSort, bv as addViewSort, az as aggregate, aB as batchComputeRollups, ci as buildDatabaseSchema, ai as buildSchemaFromFields, cc as buildSchemaIRI, cg as bumpSchemaVersion, aw as cellValueToText, e as checkNeedsRebalancing, bt as clearViewFilters, bx as clearViewSorts, cz as cloneColumns, cA as cloneSampleRows, cy as cloneSchema, b_ as collapseAllGroups, bO as combineFiltersAnd, bP as combineFiltersOr, j as compareSortKeys, aA as computeRollup, av as convertCellValue, bN as createAnyOfFilter, bg as createColumn, b0 as createCsvBlob, ct as createDatabaseSchemaResolver, bM as createEqualsFilter, J as createExtensionField, B as createField, c4 as createFilterQuery, aG as createFormulaService, ch as createInitialSchemaMetadata, b5 as createJsonBlob, ak as createNodeDatabaseSchemaResolver, c6 as createPaginatedQuery, c as createRow, T as createSelectOption, bS as createSort, c5 as createSortQuery, cj as createVersionEntry, bo as createView, a1 as createViewNode, bi as deleteColumn, L as deleteExtensionField, F as deleteField, as as deleteMeta, t as deleteRichTextCell, d as deleteRow, W as deleteSelectOption, bq as deleteView, a3 as deleteViewNode, b1 as downloadCsv, b6 as downloadJson, bk as duplicateColumn, H as duplicateField, br as duplicateView, a4 as duplicateViewNode, ad as effectiveFieldSortKey, I as ensureSchemaExtension, a_ as escapeCSV, c3 as executeQuery, bZ as expandAllGroups, aZ as exportToCsv, b2 as exportToJson, b3 as exportToJsonArray, b4 as exportToNdjson, cu as extractSchemaFromDoc, ah as fieldsToStoredColumns, bL as filterRows, c7 as flattenGroups, a$ as formatValue, cB as generateColumnIdMap, f as generateSortKey, h as generateSortKeyWithJitter, cI as getAggregationResultType, bd as getColumn, be as getColumnIndex, bc as getColumns, at as getDatabaseDocumentModel, aj as getDatabaseSchemaIRI, S as getDatabaseSelectOptions, cG as getEmptyValue, z as getField, y as getFields, aq as getMeta, bJ as getOperatorLabel, bH as getOperatorsForType, l as getRichTextCell, s as getRichTextColumnIds, v as getRichTextPlainText, g as getRow, cv as getSchemaIRIFromDoc, P as getSelectOptions, bf as getTitleColumn, A as getTitleField, c8 as getTotalFromGroups, cl as getVersionBumpType, bm as getView, bn as getViewByType, a0 as getViewNode, $ as getViewNodes, bl as getViews, bX as groupRows, aL as guessColumnType, p as hasRichTextColumns, o as hasRichTextContent, bC as hideColumn, aO as inferColumnTypes, aQ as inferColumnsFromRows, aR as inferTypeFromValues, al as initializeDatabaseDoc, am as isDatabaseDocInitialized, ce as isDatabaseSchemaIRI, cH as isNumericAggregation, bI as isValidOperator, i as isValidSortKey, G as moveField, m as moveRow, X as moveSelectOption, a5 as moveView, n as needsRebalancing, bK as operatorRequiresValue, aJ as parseCSV, aK as parseCSVLine, cd as parseDatabaseSchemaIRI, aP as parseJSON, aN as parseRow, aM as parseValue, cf as parseVersion, ck as pruneVersionHistory, q as queryRows, r as rebalanceDatabase, k as rebalanceSortKeys, cC as remapViewColumnIds, bV as removeSort, bw as removeViewSort, K as renameExtensionField, bj as reorderColumn, bD as reorderViewColumns, bE as setColumnWidth, aa as setFieldHidden, ar as setMeta, ac as setViewFieldOrder, ab as setViewFieldWidth, bs as setViewFilters, by as setViewGroupBy, a6 as setViewNodeFilters, a8 as setViewNodeGroupBy, a7 as setViewNodeSorts, bu as setViewSorts, bA as setVisibleColumns, ae as setupDatabase, ap as setupNewDatabase, bB as showColumn, bR as sortRows, aS as toColumnDefinitions, bz as toggleGroupCollapsed, bY as toggleGroupCollapsedState, bT as toggleSortDirection, a9 as toggleViewGroupCollapsed, u as updateCell, b as updateCells, bh as updateColumn, E as updateField, V as updateSelectOption, bp as updateView, a2 as updateViewNode, aT as validateJsonData, aC as validateRollupConfig } from '../clone-ywzFVkID.js';
|
|
4
|
+
import '../types-gws1tSf-.js';
|
|
5
5
|
import '@xnetjs/core';
|
|
6
6
|
import '@xnetjs/crypto';
|
|
7
7
|
import '@xnetjs/sqlite';
|
|
8
8
|
import '@xnetjs/sync';
|
|
9
|
-
import '../store-
|
|
9
|
+
import '../store-D1oiFQuF.js';
|
|
10
10
|
import 'yjs';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/database/index.js
CHANGED
|
@@ -253,10 +253,15 @@ import {
|
|
|
253
253
|
validateTemplate,
|
|
254
254
|
visibleFormQuestions,
|
|
255
255
|
wouldCreateCircular
|
|
256
|
-
} from "../chunk-
|
|
257
|
-
import "../chunk-WOEFYS7Y.js";
|
|
256
|
+
} from "../chunk-ANMAR3KY.js";
|
|
258
257
|
import "../chunk-PMUQACPY.js";
|
|
258
|
+
import "../chunk-AKKBG7HW.js";
|
|
259
|
+
import "../chunk-IKREWSCX.js";
|
|
260
|
+
import "../chunk-XP3VSSXD.js";
|
|
261
|
+
import "../chunk-UFV5QWCL.js";
|
|
259
262
|
import "../chunk-2JROE7ML.js";
|
|
263
|
+
import "../chunk-RLRAWZJE.js";
|
|
264
|
+
import "../chunk-GSLOK5KV.js";
|
|
260
265
|
import {
|
|
261
266
|
MAX_KEY_LENGTH,
|
|
262
267
|
compareSortKeys,
|
|
@@ -266,12 +271,7 @@ import {
|
|
|
266
271
|
needsRebalancing,
|
|
267
272
|
rebalanceSortKeys
|
|
268
273
|
} from "../chunk-QWFTRZQT.js";
|
|
269
|
-
import "../chunk-
|
|
270
|
-
import "../chunk-IKREWSCX.js";
|
|
271
|
-
import "../chunk-XP3VSSXD.js";
|
|
272
|
-
import "../chunk-UFV5QWCL.js";
|
|
273
|
-
import "../chunk-RLRAWZJE.js";
|
|
274
|
-
import "../chunk-GSLOK5KV.js";
|
|
274
|
+
import "../chunk-WOEFYS7Y.js";
|
|
275
275
|
import "../chunk-NH6OLO3X.js";
|
|
276
276
|
import "../chunk-D4LUUZYD.js";
|
|
277
277
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EVENT_SCHEMA_IRI,
|
|
3
|
+
EventSchema,
|
|
4
|
+
RSVP_SCHEMA_IRI,
|
|
5
|
+
RsvpSchema,
|
|
6
|
+
rsvpId,
|
|
7
|
+
upcomingEvents
|
|
8
|
+
} from "./chunk-VZSEZNYA.js";
|
|
9
|
+
import "./chunk-RLRAWZJE.js";
|
|
10
|
+
import "./chunk-GSLOK5KV.js";
|
|
11
|
+
import "./chunk-NH6OLO3X.js";
|
|
12
|
+
import "./chunk-D4LUUZYD.js";
|
|
13
|
+
export {
|
|
14
|
+
EVENT_SCHEMA_IRI,
|
|
15
|
+
EventSchema,
|
|
16
|
+
RSVP_SCHEMA_IRI,
|
|
17
|
+
RsvpSchema,
|
|
18
|
+
rsvpId,
|
|
19
|
+
upcomingEvents
|
|
20
|
+
};
|
|
@@ -657,4 +657,4 @@ interface FormValidationResult {
|
|
|
657
657
|
*/
|
|
658
658
|
declare function validateFormSubmission(config: FormViewConfig, rules: Record<string, FormFieldRule> | undefined, answers: Record<string, CellValue>, columns: ColumnDefinition[], audience: FormAudience): FormValidationResult;
|
|
659
659
|
|
|
660
|
-
export { type
|
|
660
|
+
export { type SortConfig as $, toFieldNode as A, toSelectOptionNode as B, type CellValue as C, type DateRange as D, type ColumnType as E, type FileRef as F, type GeoPoint as G, type ColumnDefinition as H, type ColumnConfig as I, type EmptyConfig as J, type SelectColumnConfig as K, type SelectOption as L, type SelectColor as M, type NumberColumnConfig as N, type RollupAggregation as O, isNodeStoreColumnType as P, isComputedColumnType as Q, type RelationColumnConfig as R, type SelectOptionNode as S, type TextColumnConfig as T, isAutoColumnType as U, isYDocColumnType as V, type ViewType as W, type ViewConfig as X, type FilterGroup as Y, type FilterCondition as Z, type FilterOperator as _, CELL_PREFIX as a, isFilterGroup as a0, isFilterCondition as a1, supportsGrouping as a2, requiresDateColumn as a3, type FormQuestion as a4, type FormConfirmation as a5, type FormViewConfig as a6, type FormFieldRule as a7, type FormAudience as a8, type FormSubmissionMeta as a9, type FormValidationError as aa, type FormValidationResult as ab, type PublicFormQuestion as ac, type PublicFormDefinition as ad, PUBLIC_SAFE_FORM_FIELD_TYPES as ae, isFormFieldTypeAllowed as af, isFormQuestionVisible as ag, visibleFormQuestions as ah, validateFormSubmission as ai, buildPublicFormDefinition as aj, submissionRowId as ak, SUMMARY_FUNCTIONS_BY_TYPE as al, summaryFunctionLabel as am, isFilledValue as an, computeColumnSummary as ao, type SummaryFunction as ap, type SummaryRow as aq, type SummaryColumnLike as ar, type ColumnSummaryResult as as, ROW_HEIGHT_PX as at, ROW_HEIGHTS as au, DEFAULT_ROW_HEIGHT as av, rowHeightLabel as aw, resolveRowHeightPx as ax, asRowHeight as ay, type RowHeight as az, columnIdFromKey as b, cellKey as c, isDateRange as d, isFileRef as e, fromCellProperties as f, isGeoPoint as g, isCellValue as h, isCellKey as i, type FieldType as j, type FieldConfig as k, type FieldNode as l, type RollupColumnConfig as m, type FormulaColumnConfig as n, type DateColumnConfig as o, type FileColumnConfig as p, FIELD_TYPES as q, SELECT_COLORS as r, isFieldType as s, toCellProperties as t, isSelectColor as u, autoColor as v, isNodeStoreFieldType as w, isComputedFieldType as x, isAutoFieldType as y, isYDocFieldType as z };
|
package/dist/{grant-expiration-cleaner-CTsW0hvU.d.ts → grant-expiration-cleaner-CRS9OyhV.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerializedAuthorization, SerializedRoleResolver, PolicyEvaluator, DID, AuthDecision, RoleResolver, AuthDenyReason, AuthCheckInput, AuthTrace, AuthExpression } from '@xnetjs/core';
|
|
2
|
-
import { a as Schema, h as NodeState, w as NodeChangeEvent, x as GrantIndex, O as OfflineAuthPolicy, D as DefinedSchema } from './types-
|
|
3
|
-
import { S as SchemaRegistry } from './registry-
|
|
2
|
+
import { a as Schema, h as NodeState, w as NodeChangeEvent, x as GrantIndex, O as OfflineAuthPolicy, D as DefinedSchema } from './types-gws1tSf-.js';
|
|
3
|
+
import { S as SchemaRegistry } from './registry-C9IRLLeR.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Permission-matrix reflection.
|
|
@@ -251,4 +251,4 @@ declare class GrantExpirationCleaner {
|
|
|
251
251
|
}>;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export { type ActionPermission as A,
|
|
254
|
+
export { type ActionPermission as A, DefaultPolicyEvaluator as D, GrantExpirationCleaner as G, type HubPolicy as H, type NodeStoreReader as N, type PermissionMatrix as P, type RoleSummary as R, type SchemaRegistryReader as S, DefaultRoleResolver as a, DecisionCache as b, buildPermissionMatrix as c, describeRoleResolver as d, evaluateExpression as e, createPolicyEvaluator as f, type DecisionCacheOptions as g, hubActionsForSpaceRole as h, type DefaultRoleResolverOptions as i, type DefaultPolicyEvaluatorOptions as j, type DefinedSchemaLike as k, type RevalidationEvent as l, type AuthDecisionEvent as m, type GrantExpirationStore as n, type GrantExpirationCleanerOptions as o, schemaToHubPolicy as s };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
export { ar as ApplyNodeBatchInput, as as ApplyNodeBatchResult, $ as AuthGrant, j as CheckedOutDraftOverlay, aR as ConflictResult, aU as ContentKeyCache, aA as CountNodesOptions, aa as CreateNodeOptions, C as CreateNodeStoreOptions, H as DEFAULT_OFFLINE_POLICY, a4 as DID, D as DefinedSchema, ax as DeterministicNodeBatchWriteInput, n as DeterministicNodeImportDraft, z as GRANT_SCHEMA_IRI, G as GetWithMigrationOptions, x as GrantIndex, _ as GrantInput, Q as GrantRateLimiter, o as ImportDeterministicNodesOptions, p as ImportDeterministicNodesResult, ap as ImportNodesOptions, I as InferCreateProps, ad as InferNode, ac as InferProperties, ab as InferPropertyType, af as LensOperation, ai as LensRegistry, L as ListNodesOptions, t as MergeConflict, M as MigratedNodeState, ah as MigrationError, aV as MigrationInfo, ag as MigrationResult, a3 as Node, aS as NodeBatchChangeEvent, v as NodeBatchChangeListener, at as NodeBatchIndexMode, au as NodeBatchNotificationMode, aw as NodeBatchPreflightResult, av as NodeBatchSyncMode, q as NodeBatchWriteInput, ay as NodeBatchWritePolicy, r as NodeBatchWriteResult, az as NodeBatchWriteTimings, w as NodeChangeEvent, u as NodeChangeListener, aT as NodeContentCipher, i as NodeId, aN as NodeQueryCursor, aM as NodeQueryCursorOrderEntry, k as NodeQueryDescriptor, aK as NodeQueryMaterializedViewOptions, aO as NodeQueryOptions, N as NodeQueryPageCountMode, aL as NodeQueryPageOptions, aQ as NodeQueryParityCheckMetadata, aP as NodeQueryPlanMetadata, l as NodeQueryResult, aI as NodeQuerySearchField, aJ as NodeQuerySearchFilter, aH as NodeQuerySpatialFilter, aB as NodeQuerySpatialPoint, aD as NodeQuerySpatialPointFields, aG as NodeQuerySpatialRadius, aC as NodeQuerySpatialRect, aE as NodeQuerySpatialRectFields, aF as NodeQuerySpatialWindow, h as NodeState, g as NodeStorageAdapter, f as NodeStoreOptions, O as OfflineAuthPolicy, am as PinEntry, an as PinRegistry, P as PropertyBuilder, y as PropertyDefinition, ak as PropertyKey, al as PropertyTimestamp, a7 as PropertyType, aq as RebuildNodeIndexesOptions, a as Schema, S as SchemaIRI, ae as SchemaLens, bb as SchemaLookup, ao as SetNodeOptions, c as SortDirection, W as StoreAuth, e as StoreAuthAPI, a0 as StoreAuthError, a1 as StoreAuthErrorCode, Z as StoreAuthKeyManager, X as StoreAuthOptions, Y as StoreAuthStore, d as SystemOrderField, b8 as TEMP_ID_PREFIX, bc as TempIdResolution, T as TransactionOperation, m as TransactionResult, U as UpdateNodeOptions, a9 as ValidationError, a8 as ValidationResult, b2 as applyNodeQueryDescriptor, a6 as createNodeId, aW as createNodeQueryDescriptor, ba as createSchemaLookup, aY as decodeNodeQueryCursor, aX as encodeNodeQueryCursor, b0 as filterNodeQueryResults, b3 as getNodeQuerySearchTokens, A as isGrantActive, a5 as isNode, b7 as isTempId, aj as lensRegistry, a$ as matchesNodeQueryDescriptor, J as mergeOfflinePolicy, b4 as nodeQueryDescriptorNeedsBoundedReload, aZ as nodeQueryDescriptorToOptions, b9 as resolveTempIds, a_ as serializeNodeQueryDescriptor, b1 as sortNodeQueryResults, b6 as withoutNodeQueryMaterializedView, b5 as withoutNodeQueryPagination } from './types-Z9dUzbDF.js';
|
|
1
|
+
export { a8 as ApplyNodeBatchInput, a9 as ApplyNodeBatchResult, b4 as AuthGrant, j as CheckedOutDraftOverlay, ay as ConflictResult, aB as ContentKeyCache, ah as CountNodesOptions, J as CreateNodeOptions, C as CreateNodeStoreOptions, a_ as DEFAULT_OFFLINE_POLICY, z as DID, D as DefinedSchema, ae as DeterministicNodeBatchWriteInput, n as DeterministicNodeImportDraft, aY as GRANT_SCHEMA_IRI, G as GetWithMigrationOptions, x as GrantIndex, b3 as GrantInput, aX as GrantRateLimiter, o as ImportDeterministicNodesOptions, p as ImportDeterministicNodesResult, a6 as ImportNodesOptions, I as InferCreateProps, R as InferNode, Q as InferProperties, K as InferPropertyType, X as LensOperation, _ as LensRegistry, L as ListNodesOptions, t as MergeConflict, M as MigratedNodeState, Z as MigrationError, aC as MigrationInfo, Y as MigrationResult, y as Node, az as NodeBatchChangeEvent, v as NodeBatchChangeListener, aa as NodeBatchIndexMode, ab as NodeBatchNotificationMode, ad as NodeBatchPreflightResult, ac as NodeBatchSyncMode, q as NodeBatchWriteInput, af as NodeBatchWritePolicy, r as NodeBatchWriteResult, ag as NodeBatchWriteTimings, s as NodeChange, w as NodeChangeEvent, u as NodeChangeListener, aA as NodeContentCipher, i as NodeId, a1 as NodePayload, au as NodeQueryCursor, at as NodeQueryCursorOrderEntry, k as NodeQueryDescriptor, ar as NodeQueryMaterializedViewOptions, av as NodeQueryOptions, N as NodeQueryPageCountMode, as as NodeQueryPageOptions, ax as NodeQueryParityCheckMetadata, aw as NodeQueryPlanMetadata, l as NodeQueryResult, ap as NodeQuerySearchField, aq as NodeQuerySearchFilter, ao as NodeQuerySpatialFilter, ai as NodeQuerySpatialPoint, ak as NodeQuerySpatialPointFields, an as NodeQuerySpatialRadius, aj as NodeQuerySpatialRect, al as NodeQuerySpatialRectFields, am as NodeQuerySpatialWindow, h as NodeState, g as NodeStorageAdapter, f as NodeStoreOptions, O as OfflineAuthPolicy, a3 as PinEntry, a4 as PinRegistry, P as PropertyBuilder, F as PropertyDefinition, a0 as PropertyKey, a2 as PropertyTimestamp, E as PropertyType, a7 as RebuildNodeIndexesOptions, a as Schema, S as SchemaIRI, W as SchemaLens, aU as SchemaLookup, a5 as SetNodeOptions, c as SortDirection, aW as StoreAuth, e as StoreAuthAPI, b5 as StoreAuthError, b6 as StoreAuthErrorCode, b2 as StoreAuthKeyManager, b0 as StoreAuthOptions, b1 as StoreAuthStore, d as SystemOrderField, aR as TEMP_ID_PREFIX, aV as TempIdResolution, T as TransactionOperation, m as TransactionResult, U as UpdateNodeOptions, H as ValidationError, V as ValidationResult, aL as applyNodeQueryDescriptor, B as createNodeId, aD as createNodeQueryDescriptor, aT as createSchemaLookup, aF as decodeNodeQueryCursor, aE as encodeNodeQueryCursor, aJ as filterNodeQueryResults, aM as getNodeQuerySearchTokens, aZ as isGrantActive, A as isNode, aQ as isTempId, $ as lensRegistry, aI as matchesNodeQueryDescriptor, a$ as mergeOfflinePolicy, aN as nodeQueryDescriptorNeedsBoundedReload, aG as nodeQueryDescriptorToOptions, aS as resolveTempIds, aH as serializeNodeQueryDescriptor, aK as sortNodeQueryResults, aP as withoutNodeQueryMaterializedView, aO as withoutNodeQueryPagination } from './types-gws1tSf-.js';
|
|
3
2
|
import { FileRef } from './schema/index.js';
|
|
4
|
-
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, AGENT_ACTION_SCHEMA_IRI, AGENT_ACTION_STATUSES, AGENT_APPROVAL_DECISIONS, AGENT_APPROVAL_SCHEMA_IRI, AGENT_APPROVAL_SURFACES, AGENT_CHANNELS, AGENT_NOTIFICATION_KINDS, AGENT_NOTIFICATION_SCHEMA_IRI, AGENT_NOTIFICATION_STATUSES, AGENT_PASSPORT_SCHEMA_IRI, AGENT_REVERSIBILITIES, AGENT_RISKS, AGENT_RUNTIMES, AGENT_SESSION_SCHEMA_IRI, AbuseReport, AbuseReportSchema, Account, AccountClassId, AccountRecord, AccountRecordSchema, AccountSchema, Achievement, AchievementSchema, Activity, ActivityKind, ActivitySchema, AgentAction, AgentActionSchema, AgentActionStatus, AgentApproval, AgentApprovalDecision, AgentApprovalSchema, AgentApprovalSurface, AgentChannel, AgentNotification, AgentNotificationKind, AgentNotificationSchema, AgentNotificationStatus, AgentPassport, AgentPassportSchema, AgentReversibility, AgentRisk, AgentRuntime, AgentSession, AgentSessionSchema, AnchorData, AnchorType, Appeal, AppealSchema, BUDGET_SCHEMA_IRI, Budget, BudgetPeriod, BudgetSchema, BuiltInSchemaIRI, CHANNEL_KINDS, CHECKPOINT_SCHEMA_IRI, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, CRM_NAMESPACE, Canvas, CanvasObjectAnchor, CanvasObjectAnchorPlacement, CanvasPositionAnchor, CanvasSchema, CellAnchor, Channel, ChannelKind, ChannelNotifyTier, ChannelSchema, ChatMessage, ChatMessageSchema, CheckboxOptions, Checkpoint, CheckpointFrontierEntry, CheckpointSchema, 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, DRAFT_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, DebugReport, DebugReportSchema, DefineSchemaOptions, DeviceLike, DeviceRecord, DeviceRecordSchema, Draft, DraftEntry, DraftProvenance, DraftSchema, 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, GeoOptions, GeoPoint, 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, LedgerEnforcementState, LedgerNodeIntent, LedgerWriteDecision, LedgerWriteKind, 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, ViewGroupMeta, Workspace, WorkspaceSchema, WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, agentActionId, agentApprovalId, agentNotificationId, agentPassportId, agentSessionId, 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, evaluateLedgerWrite, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, foldAccountRecord, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, geo, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isGeoPoint, isMessageLinkPreview, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, ledgerAccountId, ledgerWriteKind, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, profileNodeId, promoteOverlay, recoveryRecordId, redactInstruction, 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';
|
|
5
|
-
export { S as SchemaRegistry, s as schemaRegistry } from './registry-
|
|
3
|
+
export { ACCOUNT_RECORD_SCHEMA_IRI, ACCOUNT_SCHEMA_IRI, ACHIEVEMENT_SCHEMA_IRI, ACTIVITY_KINDS, ACTIVITY_SCHEMA_IRI, AGENT_ACTION_SCHEMA_IRI, AGENT_ACTION_STATUSES, AGENT_APPROVAL_DECISIONS, AGENT_APPROVAL_SCHEMA_IRI, AGENT_APPROVAL_SURFACES, AGENT_CHANNELS, AGENT_NOTIFICATION_KINDS, AGENT_NOTIFICATION_SCHEMA_IRI, AGENT_NOTIFICATION_STATUSES, AGENT_PASSPORT_SCHEMA_IRI, AGENT_REVERSIBILITIES, AGENT_RISKS, AGENT_RUNTIMES, AGENT_SESSION_SCHEMA_IRI, AbuseReport, AbuseReportSchema, Account, AccountClassId, AccountRecord, AccountRecordSchema, AccountSchema, Achievement, AchievementSchema, Activity, ActivityKind, ActivitySchema, AgentAction, AgentActionSchema, AgentActionStatus, AgentApproval, AgentApprovalDecision, AgentApprovalSchema, AgentApprovalSurface, AgentChannel, AgentNotification, AgentNotificationKind, AgentNotificationSchema, AgentNotificationStatus, AgentPassport, AgentPassportSchema, AgentReversibility, AgentRisk, AgentRuntime, AgentSession, AgentSessionSchema, AnchorData, AnchorType, Appeal, AppealSchema, BUDGET_SCHEMA_IRI, Budget, BudgetPeriod, BudgetSchema, BuiltInSchemaIRI, CHANNEL_KINDS, CHECKPOINT_SCHEMA_IRI, CONTACT_LIFECYCLE, CONTACT_SCHEMA_IRI, COURSE_SCHEMA_IRI, CRM_NAMESPACE, Canvas, CanvasObjectAnchor, CanvasObjectAnchorPlacement, CanvasPositionAnchor, CanvasSchema, CellAnchor, Channel, ChannelKind, ChannelNotifyTier, ChannelSchema, ChatMessage, ChatMessageSchema, CheckboxOptions, Checkpoint, CheckpointFrontierEntry, CheckpointSchema, ColumnAnchor, Comment, CommentSchema, CommunityNote, CommunityNoteSchema, Contact, ContactLifecycle, ContactSchema, ContentProvenance, ContentProvenanceSchema, CoreSchemaResolver, Course, CourseSchema, CreatedByOptions, CreatedOptions, CrmVisibility, DEAL_CONTACT_ROLES, DEAL_CONTACT_ROLE_SCHEMA_IRI, DEAL_SCHEMA_IRI, DEAL_SOURCES, DEFAULT_CHANNEL_TIER, DEVICE_RECORD_SCHEMA_IRI, DRAFT_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, DebugReport, DebugReportSchema, DefineSchemaOptions, DeviceLike, DeviceRecord, DeviceRecordSchema, Draft, DraftEntry, DraftProvenance, DraftSchema, EVENT_SCHEMA_IRI, EXTENSION_FIELD_SCHEMA_IRI, EXTERNAL_ITEM_SCHEMA_IRI, EXTERNAL_ITEM_SOURCES, EXT_PREFIX, EffectiveExtensionField, EmailOptions, EventSchema, 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, GeoOptions, GeoPoint, GeoPosition, Grant, GrantSchema, IMPORT_BATCH_SCHEMA_IRI, INVENTORY_SCHEMA_IRI, ITEM_RARITIES, ImportBatch, ImportBatchSchema, ImportSource, InboxItemTriage, InboxState, InboxStateSchema, InboxWatermark, Inventory, InventorySchema, ItemRarity, JsonOptions, LESSON_PROGRESS_SCHEMA_IRI, LESSON_SCHEMA_IRI, LINE_ITEM_SCHEMA_IRI, LedgerEnforcementState, LedgerNodeIntent, LedgerWriteDecision, LedgerWriteKind, Lesson, LessonProgress, LessonProgressSchema, LessonSchema, 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, POST_SCHEMA_IRI, PRODUCT_KINDS, PRODUCT_SCHEMA_IRI, Page, PageSchema, ParsedSystemNamespaceResource, ParsedTaskShortId, PersonOptions, PhoneOptions, Pipeline, PipelineSchema, PlayerIdentity, PlayerIdentitySchema, PolicyList, PolicyListSchema, PolicySubscription, PolicySubscriptionSchema, Post, PostSchema, Posting, PostingSchema, PresenceAggregator, PresenceAggregatorOptions, PresenceAggregatorStore, PresenceCountBucket, PresenceSummary, PresenceSummaryDescriptor, PresenceSummarySchema, PresenceVisibility, PresenceVisibilityResolver, Product, ProductKind, ProductSchema, Profile, ProfileSchema, Project, ProjectSchema, PublicInteractionPolicy, PublicInteractionPolicySchema, Publication, PublicationSchema, QualitySignal, QualitySignalSchema, RECOVERY_RECORD_SCHEMA_IRI, RELATIONSHIP_KINDS, RELATIONSHIP_SCHEMA_IRI, REVOCATION_RECORD_SCHEMA_IRI, RSVP_SCHEMA_IRI, Reaction, ReactionSchema, RecoveryRecord, RecoveryRecordSchema, RelationOptions, Relationship, RelationshipKind, RelationshipSchema, ReviewTask, ReviewTaskSchema, RevocationLike, RevocationRecord, RevocationRecordSchema, RowAnchor, Rsvp, RsvpSchema, 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, ViewGroupMeta, Workspace, WorkspaceSchema, WorkspaceTreeJson, accountRecordId, accountState, addDefault, admitDeviceRecord, agentActionId, agentApprovalId, agentNotificationId, agentPassportId, agentSessionId, bucketPresenceCount, buildEffectiveSchema, buildFolderTree, buildSpaceTree, buildSystemNamespace, buildSystemNodeId, builtInSchemas, canManageSpace, canModifyColumn, checkOrphanStatus, checkbox, comparePostsForFeed, compareSpaceRoles, composeLens, computeSchemaDefinitionContentHash, convert, copy, courseCompletion, createAccountRecord, createNodeGraphSchemaResolver, createOperations, createSchemaDefinitionSigningPayload, created, createdBy, crmSchemas, date, dateRange, decodeAnchor, defineSchema, deviceRecipientExpander, deviceRecordId, didFromProfileNodeId, effectiveSpaceRole, email, encodeAnchor, evaluateLedgerWrite, extKey, extractMentions, file, filterOrphanedComments, findLockedColumns, flattenFolderTree, flattenSpaceTree, foldAccountRecord, folderAncestorIds, folderPathIds, formatTaskShortId, gameSchemas, geo, getMentionedUsers, getPresenceNoisePolicy, getTaskStatusCategory, identity, inboxStateNodeId, isCanvasObjectAnchor, isCanvasPositionAnchor, isCellAnchor, isColumnAnchor, isCompletedTaskStatus, isDeviceAuthorized, isExtKey, isGeoPoint, isMessageLinkPreview, isMoneyValue, isNodeAnchor, isRowAnchor, isSchemaDefinitionNode, isSpaceRole, isSystemNamespaceResource, isSystemSchemaIri, isTextAnchor, isValidMentions, isValidTagName, json, ledgerAccountId, ledgerWriteKind, lessonProgressId, loadExtensionFields, lockedPropertyKeys, mentionsInclude, merge, mergeSidecarsIntoRow, money, multiSelect, nextEpoch, normalizeMentions, normalizeTagName, number, parseExtKey, parseSystemNamespaceResource, parseTaskShortId, person, phone, profileNodeId, promoteOverlay, publicInteractionPolicyId, recoveryRecordId, redactInstruction, relation, remove, rename, resolveActiveDevices, resolveEffectiveSchema, resolveSchemaAuthority, revocationRecordId, revokeDeviceRecord, revokeSubjectRecord, revokedSubjects, rsvpId, sanitizeLinkPreviews, schemaExtensionId, select, selectExtensionFields, shortIdsFromBlock, sidecarId, sidecarOverlayKeys, spaceAncestorIds, spaceMembershipId, spacePathIds, spaceRoleGrantActions, spaceRoleToShareRole, summarizePresenceNodes, taskBranchName, text, transform, upcomingEvents, updated, url, validateSchemaDefinitionNode, when, wouldCreateFolderCycle, wouldCreateSpaceCycle } from './schema/index.js';
|
|
4
|
+
export { S as SchemaRegistry, s as schemaRegistry } from './registry-C9IRLLeR.js';
|
|
6
5
|
export { SignUpdateOptions, applySignedUpdate, captureUpdate, getMissingUpdates, mergeDocuments, signUpdate, verifyUpdate } from './updates.js';
|
|
7
6
|
import * as Y from 'yjs';
|
|
8
7
|
export { Array as YArray, Doc as YDoc, Map as YMap, Text as YText, XmlElement as YXmlElement, XmlFragment as YXmlFragment, XmlText as YXmlText } from 'yjs';
|
|
9
8
|
export { CursorPosition, SelectionRange, UserPresence, clearLocalPresence, createAwareness, generateUserColor, getAllPresences, getLocalClientId, getRemotePresences, onPresenceChange, setLocalPresence } from './sync/awareness.js';
|
|
10
|
-
export { G as QUERY_AST_VERSION, r as QueryAST, n as QueryASTAggregate, A as QueryASTAggregateExecution, m as QueryASTAggregateFunction, y as QueryASTAggregateGroup, x as QueryASTAggregatePlan, z as QueryASTAggregateResult, d as QueryASTComparisonPredicate, e as QueryASTCompoundPredicate, a as QueryASTField, l as QueryASTIncludes, p as QueryASTNodeQuery, s as QueryASTNodeQueryOptions, f as QueryASTNotPredicate, c as QueryASTOperator, h as QueryASTOrderBy, i as QueryASTPage, B as QueryASTPlannerGate, g as QueryASTPredicate, q as QueryASTQuerySet, o as QueryASTQuerySetAggregate, j as QueryASTRelationDirection, k as QueryASTRelationInclude, t as QueryASTRelationIncludeOptions, w as QueryASTRelationIndexRequirement, b as QueryASTSchemaInput, u as QueryASTValidationError, v as QueryASTValidationResult, Q as QueryASTVersion, S as SavedViewDescriptor, F as SavedViewFeedDensity, E as SavedViewFeedLayout, C as SavedViewPresentationHint, D as SavedViewPresentationHintMode, V as and, a3 as avg, N as between, P as contains, a0 as count, a1 as countDistinct, a9 as dashboardQuerySet, Z as defineNodeQueryAST, a8 as defineQuerySetAST, ab as defineSavedViewDescriptor, H as eq, aj as evaluateQueryASTPlannerGate, af as executeQueryASTLoadedAggregates, ag as filterQueryASTLoadedRows, _ as follow, $ as from, ah as getQueryASTRelationIndexRequirements, a6 as groupBy, J as gt, K as gte, a7 as having, O as includesAny, U as isNotNull, T as isNull, L as lt, M as lte, ai as matchesQueryASTLoadedRow, a5 as max, a4 as min, I as neq, X as not, W as or, ae as planQueryASTAggregates, Y as queryOperators, aa as querySetCount, R as startsWith, a2 as sum, ac as validateQueryAST, ad as validateSavedViewDescriptor } from './query-ast-
|
|
11
|
-
|
|
9
|
+
export { G as QUERY_AST_VERSION, r as QueryAST, n as QueryASTAggregate, A as QueryASTAggregateExecution, m as QueryASTAggregateFunction, y as QueryASTAggregateGroup, x as QueryASTAggregatePlan, z as QueryASTAggregateResult, d as QueryASTComparisonPredicate, e as QueryASTCompoundPredicate, a as QueryASTField, l as QueryASTIncludes, p as QueryASTNodeQuery, s as QueryASTNodeQueryOptions, f as QueryASTNotPredicate, c as QueryASTOperator, h as QueryASTOrderBy, i as QueryASTPage, B as QueryASTPlannerGate, g as QueryASTPredicate, q as QueryASTQuerySet, o as QueryASTQuerySetAggregate, j as QueryASTRelationDirection, k as QueryASTRelationInclude, t as QueryASTRelationIncludeOptions, w as QueryASTRelationIndexRequirement, b as QueryASTSchemaInput, u as QueryASTValidationError, v as QueryASTValidationResult, Q as QueryASTVersion, S as SavedViewDescriptor, F as SavedViewFeedDensity, E as SavedViewFeedLayout, C as SavedViewPresentationHint, D as SavedViewPresentationHintMode, V as and, a3 as avg, N as between, P as contains, a0 as count, a1 as countDistinct, a9 as dashboardQuerySet, Z as defineNodeQueryAST, a8 as defineQuerySetAST, ab as defineSavedViewDescriptor, H as eq, aj as evaluateQueryASTPlannerGate, af as executeQueryASTLoadedAggregates, ag as filterQueryASTLoadedRows, _ as follow, $ as from, ah as getQueryASTRelationIndexRequirements, a6 as groupBy, J as gt, K as gte, a7 as having, O as includesAny, U as isNotNull, T as isNull, L as lt, M as lte, ai as matchesQueryASTLoadedRow, a5 as max, a4 as min, I as neq, X as not, W as or, ae as planQueryASTAggregates, Y as queryOperators, aa as querySetCount, R as startsWith, a2 as sum, ac as validateQueryAST, ad as validateSavedViewDescriptor } from './query-ast-DQJO7yRV.js';
|
|
10
|
+
export { N as NodeStore } from './store-D1oiFQuF.js';
|
|
12
11
|
export { MemoryNodeStorageAdapter, PermissionError, SQLiteAdaptiveIndexingOptions, SQLiteNodeStorageAdapter, SQLiteNodeStorageAdapterOptions, SQLiteQueryVerificationOptions, createNodeStorageAdapter } from './store/index.js';
|
|
13
12
|
import { ContentId } from '@xnetjs/core';
|
|
14
13
|
export { AUTH_ACTIONS, AuthAction } from '@xnetjs/core';
|
|
15
|
-
export { A as ActionPermission,
|
|
14
|
+
export { A as ActionPermission, b as DecisionCache, D as DefaultPolicyEvaluator, a as DefaultRoleResolver, G as GrantExpirationCleaner, H as HubPolicy, P as PermissionMatrix, R as RoleSummary, c as buildPermissionMatrix, d as describeRoleResolver, h as hubActionsForSpaceRole, s as schemaToHubPolicy } from './grant-expiration-cleaner-CRS9OyhV.js';
|
|
16
15
|
import { ChunkManager } from '@xnetjs/storage';
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
16
|
+
export { a as CELL_PREFIX, D as CellDateRange, F as CellFileRef, G as CellGeoPoint, C as CellValue, I as ColumnConfig, H as ColumnDefinition, L as ColumnSelectOption, as as ColumnSummaryResult, E as ColumnType, av as DEFAULT_ROW_HEIGHT, o as DateColumnConfig, o as DateFieldConfig, J as EmptyConfig, q as FIELD_TYPES, k as FieldConfig, l as FieldNode, j as FieldType, p as FileColumnConfig, p as FileFieldConfig, Z as FilterCondition, Y as FilterGroup, _ as FilterOperator, a8 as FormAudience, a5 as FormConfirmation, a7 as FormFieldRule, a4 as FormQuestion, a9 as FormSubmissionMeta, aa as FormValidationError, ab as FormValidationResult, a6 as FormViewConfig, n as FormulaColumnConfig, n as FormulaFieldConfig, N as NumberColumnConfig, N as NumberFieldConfig, ae as PUBLIC_SAFE_FORM_FIELD_TYPES, ad as PublicFormDefinition, ac as PublicFormQuestion, au as ROW_HEIGHTS, at as ROW_HEIGHT_PX, R as RelationColumnConfig, R as RelationFieldConfig, O as RollupAggregation, m as RollupColumnConfig, m as RollupFieldConfig, az as RowHeight, r as SELECT_COLORS, al as SUMMARY_FUNCTIONS_BY_TYPE, M as SelectColor, K as SelectColumnConfig, S as SelectOptionNode, $ as SortConfig, ar as SummaryColumnLike, ap as SummaryFunction, aq as SummaryRow, T as TextColumnConfig, T as TextFieldConfig, X as ViewConfig, W as ViewType, ay as asRowHeight, v as autoColor, aj as buildPublicFormDefinition, c as cellKey, b as columnIdFromKey, ao as computeColumnSummary, f as fromCellProperties, U as isAutoColumnType, y as isAutoFieldType, d as isCellDateRange, e as isCellFileRef, g as isCellGeoPoint, i as isCellKey, h as isCellValue, Q as isComputedColumnType, x as isComputedFieldType, s as isFieldType, an as isFilledValue, a1 as isFilterCondition, a0 as isFilterGroup, af as isFormFieldTypeAllowed, ag as isFormQuestionVisible, P as isNodeStoreColumnType, w as isNodeStoreFieldType, u as isSelectColor, V as isYDocColumnType, z as isYDocFieldType, a3 as requiresDateColumn, ax as resolveRowHeightPx, aw as rowHeightLabel, ak as submissionRowId, am as summaryFunctionLabel, a2 as supportsGrouping, t as toCellProperties, A as toFieldNode, B as toSelectOptionNode, ai as validateFormSubmission, ah as visibleFormQuestions } from './form-types-BrHYdpi0.js';
|
|
17
|
+
export { cD as CloneSchemaOptions, cE as CloneSchemaResult, cF as CloneSourceData, ax as ConvertContext, ay as ConvertedCell, cx as CreateDatabaseSchemaResolverOptions, O as CreateExtensionFieldOptions, w as CreateFieldOptions, C as CreateRowOptions, x as CreateSelectOptionOptions, Z as CreateViewOptions, b8 as CsvExportOptions, aV as CsvParseOptions, cm as DATABASE_SCHEMA_NAMESPACE, cn as DATABASE_SCHEMA_PREFIX, ag as DEFAULT_DATABASE_SCHEMA_VERSION, au as DatabaseDocumentModel, D as DatabaseRowNode, cp as DatabaseSchemaMetadata, cw as DocFetcher, N as EnsureExtensionOptions, b7 as ExportRow, bb as ExportedColumn, ba as ExportedJSON, bQ as FilterableRow, aH as FormulaRow, aF as FormulaService, aI as FormulaValidationResult, c2 as GroupAggregates, c0 as GroupConfig, b$ as GroupableRow, aX as InferredColumn, b9 as JsonExportOptions, aY as JsonParseOptions, M as MAX_KEY_LENGTH, co as MAX_VERSION_HISTORY, bF as OPERATORS_BY_TYPE, bG as OPERATOR_LABELS, aU as ParsedCSV, aW as ParsedJSON, ca as QueryOptions, cb as QueryResult, Q as QueryRowsOptions, a as QueryRowsResult, c9 as QueryableRow, R as RICHTEXT_PREFIX, aE as RollupContext, aD as RollupRow, c1 as RowGroup, cr as SchemaVersionEntry, af as SetupDatabaseResult, bW as SortableRow, cq as StoredColumn, U as UpdateFieldOptions, _ as UpdateViewOptions, cs as VersionBumpType, Y as ViewNode, ao as addDefaultTableView, an as addDefaultTitleColumn, bU as addOrToggleSort, bv as addViewSort, az as aggregate, aB as batchComputeRollups, ci as buildDatabaseSchema, ai as buildSchemaFromFields, cc as buildSchemaIRI, cg as bumpSchemaVersion, aw as cellValueToText, e as checkNeedsRebalancing, bt as clearViewFilters, bx as clearViewSorts, cz as cloneColumns, cA as cloneSampleRows, cy as cloneSchema, b_ as collapseAllGroups, bO as combineFiltersAnd, bP as combineFiltersOr, j as compareSortKeys, aA as computeRollup, av as convertCellValue, bN as createAnyOfFilter, bg as createColumn, b0 as createCsvBlob, ct as createDatabaseSchemaResolver, bM as createEqualsFilter, J as createExtensionField, B as createField, c4 as createFilterQuery, aG as createFormulaService, ch as createInitialSchemaMetadata, b5 as createJsonBlob, ak as createNodeDatabaseSchemaResolver, c6 as createPaginatedQuery, c as createRow, T as createSelectOption, bS as createSort, c5 as createSortQuery, cj as createVersionEntry, bo as createView, a1 as createViewNode, bi as deleteColumn, L as deleteExtensionField, F as deleteField, as as deleteMeta, t as deleteRichTextCell, d as deleteRow, W as deleteSelectOption, bq as deleteView, a3 as deleteViewNode, b1 as downloadCsv, b6 as downloadJson, bk as duplicateColumn, H as duplicateField, br as duplicateView, a4 as duplicateViewNode, ad as effectiveFieldSortKey, I as ensureSchemaExtension, a_ as escapeCSV, c3 as executeQuery, bZ as expandAllGroups, aZ as exportToCsv, b2 as exportToJson, b3 as exportToJsonArray, b4 as exportToNdjson, cu as extractSchemaFromDoc, ah as fieldsToStoredColumns, bL as filterRows, c7 as flattenGroups, a$ as formatValue, cB as generateColumnIdMap, f as generateSortKey, h as generateSortKeyWithJitter, bd as getColumn, be as getColumnIndex, bc as getColumns, at as getDatabaseDocumentModel, aj as getDatabaseSchemaIRI, S as getDatabaseSelectOptions, z as getField, y as getFields, aq as getMeta, bJ as getOperatorLabel, bH as getOperatorsForType, l as getRichTextCell, s as getRichTextColumnIds, v as getRichTextPlainText, g as getRow, cv as getSchemaIRIFromDoc, P as getSelectOptions, bf as getTitleColumn, A as getTitleField, c8 as getTotalFromGroups, cl as getVersionBumpType, bm as getView, bn as getViewByType, a0 as getViewNode, $ as getViewNodes, bl as getViews, bX as groupRows, aL as guessColumnType, p as hasRichTextColumns, o as hasRichTextContent, bC as hideColumn, aO as inferColumnTypes, aQ as inferColumnsFromRows, aR as inferTypeFromValues, al as initializeDatabaseDoc, am as isDatabaseDocInitialized, ce as isDatabaseSchemaIRI, bI as isValidOperator, i as isValidSortKey, G as moveField, m as moveRow, X as moveSelectOption, a5 as moveView, n as needsRebalancing, bK as operatorRequiresValue, aJ as parseCSV, aK as parseCSVLine, cd as parseDatabaseSchemaIRI, aP as parseJSON, aN as parseRow, aM as parseValue, cf as parseVersion, ck as pruneVersionHistory, q as queryRows, r as rebalanceDatabase, k as rebalanceSortKeys, cC as remapViewColumnIds, bV as removeSort, bw as removeViewSort, K as renameExtensionField, bj as reorderColumn, bD as reorderViewColumns, bE as setColumnWidth, aa as setFieldHidden, ar as setMeta, ac as setViewFieldOrder, ab as setViewFieldWidth, bs as setViewFilters, by as setViewGroupBy, a6 as setViewNodeFilters, a8 as setViewNodeGroupBy, a7 as setViewNodeSorts, bu as setViewSorts, bA as setVisibleColumns, ae as setupDatabase, ap as setupNewDatabase, bB as showColumn, bR as sortRows, aS as toColumnDefinitions, bz as toggleGroupCollapsed, bY as toggleGroupCollapsedState, bT as toggleSortDirection, a9 as toggleViewGroupCollapsed, u as updateCell, b as updateCells, bh as updateColumn, E as updateField, V as updateSelectOption, bp as updateView, a2 as updateViewNode, aT as validateJsonData, aC as validateRollupConfig } from './clone-ywzFVkID.js';
|
|
18
|
+
export { ApplyBundleOptions, BUNDLE_ENTRY, BundleApplyReport, BundleBlobPort, BundleFrontier, BundleImportError, BundleScope, BundleSink, BundleSource, BundleVerifyIssue, BundleVerifyReport, BundleYjsPort, MemoryBundleSink, MemoryBundleSource, PortableBlobRecord, PortableChangeRecord, PortableYjsDocRecord, QuarantinedRecord, WriteBundleOptions, XNETPACK_FORMAT_VERSION, XnetpackManifest, applyBundle, blobEntryPath, canonicalManifestBytes, createStoreYjsPort, fromPortableChangeRecord, readBundleManifest, toPortableChangeRecord, verifyBundle, writeBundle } from './portability/index.js';
|
|
19
19
|
import '@xnetjs/crypto';
|
|
20
20
|
import '@xnetjs/sqlite';
|
|
21
21
|
import '@xnetjs/sync';
|
|
@@ -273,314 +273,4 @@ declare class BlobService {
|
|
|
273
273
|
revokeAllUrls(): void;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
* Portability types — the `.xnetpack` bundle format (exploration 0344).
|
|
278
|
-
*
|
|
279
|
-
* A bundle is the sync protocol written to disk: an NDJSON stream of the
|
|
280
|
-
* signed, hash-chained change log plus optional content-addressed blobs and
|
|
281
|
-
* Yjs document states, indexed by a signed manifest. Export is
|
|
282
|
-
* "sync-to-disk"; import is verify-then-replay through the same apply path
|
|
283
|
-
* the sync layer uses, so a bundle behaves like a peer that happens to be a
|
|
284
|
-
* file.
|
|
285
|
-
*
|
|
286
|
-
* Bundle layout (a directory, or the same paths inside a zip):
|
|
287
|
-
*
|
|
288
|
-
* manifest.json — XnetpackManifest, signed by the exporting DID
|
|
289
|
-
* changes.ndjson — one PortableChangeRecord per line
|
|
290
|
-
* blobs.ndjson — one PortableBlobRecord per line (index)
|
|
291
|
-
* blobs/<algo>/<hex> — raw blob bytes, filename = content hash
|
|
292
|
-
* yjs/docs.ndjson — one PortableYjsDocRecord per line
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
/** Format identifier + version for the bundle layout itself. */
|
|
296
|
-
declare const XNETPACK_FORMAT_VERSION = "xnetpack/1";
|
|
297
|
-
/** Entry paths within a bundle. */
|
|
298
|
-
declare const BUNDLE_ENTRY: {
|
|
299
|
-
readonly manifest: "manifest.json";
|
|
300
|
-
readonly changes: "changes.ndjson";
|
|
301
|
-
readonly blobIndex: "blobs.ndjson";
|
|
302
|
-
readonly yjsDocs: "yjs/docs.ndjson";
|
|
303
|
-
};
|
|
304
|
-
/**
|
|
305
|
-
* A change serialized for the bundle. Mirrors the hub wire shape
|
|
306
|
-
* (`SerializedNodeChange`) minus the transport-only `room` field, so a
|
|
307
|
-
* bundle line and a relayed change are interchangeable representations of
|
|
308
|
-
* the same signed record.
|
|
309
|
-
*/
|
|
310
|
-
type PortableChangeRecord = {
|
|
311
|
-
id: string;
|
|
312
|
-
type: string;
|
|
313
|
-
hash: string;
|
|
314
|
-
nodeId: string;
|
|
315
|
-
schemaId?: string;
|
|
316
|
-
lamportTime: number;
|
|
317
|
-
authorDid: string;
|
|
318
|
-
wallTime: number;
|
|
319
|
-
parentHash: string | null;
|
|
320
|
-
payload: NodePayload;
|
|
321
|
-
signatureB64: string;
|
|
322
|
-
protocolVersion?: number;
|
|
323
|
-
batchId?: string;
|
|
324
|
-
batchIndex?: number;
|
|
325
|
-
batchSize?: number;
|
|
326
|
-
};
|
|
327
|
-
/** Blob index line: metadata for a `blobs/<algo>/<hex>` entry. */
|
|
328
|
-
type PortableBlobRecord = {
|
|
329
|
-
cid: string;
|
|
330
|
-
/** Entry path within the bundle holding the raw bytes. */
|
|
331
|
-
path: string;
|
|
332
|
-
size: number;
|
|
333
|
-
mimeType?: string;
|
|
334
|
-
};
|
|
335
|
-
/** Yjs doc line: the full doc state as a single Yjs update (base64). */
|
|
336
|
-
type PortableYjsDocRecord = {
|
|
337
|
-
nodeId: string;
|
|
338
|
-
updateB64: string;
|
|
339
|
-
};
|
|
340
|
-
/** What to export. */
|
|
341
|
-
type BundleScope = {
|
|
342
|
-
kind: 'full';
|
|
343
|
-
} | {
|
|
344
|
-
kind: 'nodes';
|
|
345
|
-
nodeIds: readonly string[];
|
|
346
|
-
} | {
|
|
347
|
-
kind: 'schemas';
|
|
348
|
-
schemaIds: readonly string[];
|
|
349
|
-
} | {
|
|
350
|
-
kind: 'space';
|
|
351
|
-
spaceId: string;
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* A position in the change log: the highest Lamport time in the exported
|
|
355
|
-
* set plus the hashes of the changes at that frontier. A later incremental
|
|
356
|
-
* export passes a previous manifest's `frontier` as `since`; it becomes the
|
|
357
|
-
* new bundle's `prerequisites` (git-bundle semantics: the importer must
|
|
358
|
-
* already hold these heads).
|
|
359
|
-
*/
|
|
360
|
-
type BundleFrontier = {
|
|
361
|
-
lamport: number;
|
|
362
|
-
/** Hashes of exported changes at `lamport` (capped sample). */
|
|
363
|
-
heads: string[];
|
|
364
|
-
changeCount: number;
|
|
365
|
-
};
|
|
366
|
-
type XnetpackManifest = {
|
|
367
|
-
formatVersion: typeof XNETPACK_FORMAT_VERSION;
|
|
368
|
-
/** Protocol versions the records were produced under. */
|
|
369
|
-
protocolVersion: {
|
|
370
|
-
change: number;
|
|
371
|
-
};
|
|
372
|
-
ownerDid: string;
|
|
373
|
-
scope: BundleScope;
|
|
374
|
-
createdAt: number;
|
|
375
|
-
frontier: BundleFrontier;
|
|
376
|
-
/** Present on incremental bundles: the frontier this bundle starts after. */
|
|
377
|
-
prerequisites?: BundleFrontier;
|
|
378
|
-
counts: {
|
|
379
|
-
changes: number;
|
|
380
|
-
blobs: number;
|
|
381
|
-
yjsDocs: number;
|
|
382
|
-
};
|
|
383
|
-
/**
|
|
384
|
-
* Digest over every non-manifest entry (see `digestEntries`): detects a
|
|
385
|
-
* bundle whose entries were swapped or truncated after manifest signing.
|
|
386
|
-
*/
|
|
387
|
-
contentDigest: string;
|
|
388
|
-
/** Ed25519 signature by `ownerDid` over the canonical unsigned manifest. */
|
|
389
|
-
signatureB64?: string;
|
|
390
|
-
};
|
|
391
|
-
/**
|
|
392
|
-
* Where a bundle is written. Implementations: in-memory (tests, zip
|
|
393
|
-
* assembly in the browser), a directory on disk (CLI/hub), a streaming zip.
|
|
394
|
-
*/
|
|
395
|
-
interface BundleSink {
|
|
396
|
-
writeEntry(path: string, data: Uint8Array): Promise<void> | void;
|
|
397
|
-
}
|
|
398
|
-
/** Where a bundle is read from. */
|
|
399
|
-
interface BundleSource {
|
|
400
|
-
/** Returns null when the entry does not exist. */
|
|
401
|
-
readEntry(path: string): Promise<Uint8Array | null>;
|
|
402
|
-
/** Stream the lines of an NDJSON entry (without trailing newlines). */
|
|
403
|
-
readLines(path: string): AsyncIterable<string>;
|
|
404
|
-
/** List entry paths under a prefix (used for `blobs/`). */
|
|
405
|
-
listEntries(prefix: string): Promise<string[]>;
|
|
406
|
-
}
|
|
407
|
-
interface BundleBlobPort {
|
|
408
|
-
list(): AsyncIterable<{
|
|
409
|
-
cid: string;
|
|
410
|
-
bytes: Uint8Array;
|
|
411
|
-
mimeType?: string;
|
|
412
|
-
}>;
|
|
413
|
-
has(cid: string): Promise<boolean>;
|
|
414
|
-
put(bytes: Uint8Array, meta?: {
|
|
415
|
-
cid?: string;
|
|
416
|
-
mimeType?: string;
|
|
417
|
-
}): Promise<void>;
|
|
418
|
-
}
|
|
419
|
-
interface BundleYjsPort {
|
|
420
|
-
/** Yield each doc's full state as one Yjs update. */
|
|
421
|
-
list(): AsyncIterable<{
|
|
422
|
-
nodeId: string;
|
|
423
|
-
update: Uint8Array;
|
|
424
|
-
}>;
|
|
425
|
-
/**
|
|
426
|
-
* Merge an update into the node's doc. Implementations use Yjs
|
|
427
|
-
* `applyUpdate`, which merges by state vector — re-importing a doc the
|
|
428
|
-
* store already has must not duplicate content.
|
|
429
|
-
*/
|
|
430
|
-
apply(nodeId: string, update: Uint8Array): Promise<void>;
|
|
431
|
-
}
|
|
432
|
-
type BundleVerifyIssue = {
|
|
433
|
-
severity: 'error' | 'warning';
|
|
434
|
-
code: 'unknown-format' | 'future-protocol' | 'manifest-unsigned' | 'manifest-signature-invalid' | 'content-digest-mismatch' | 'count-mismatch' | 'change-hash-invalid' | 'change-signature-invalid' | 'change-unparseable' | 'blob-digest-mismatch' | 'dangling-parent';
|
|
435
|
-
detail: string;
|
|
436
|
-
/** For per-record issues: the change hash / blob cid / line number. */
|
|
437
|
-
subject?: string;
|
|
438
|
-
};
|
|
439
|
-
type BundleVerifyReport = {
|
|
440
|
-
ok: boolean;
|
|
441
|
-
manifest: XnetpackManifest | null;
|
|
442
|
-
issues: BundleVerifyIssue[];
|
|
443
|
-
/** Changes whose parentHash is neither in the bundle nor a prerequisite head. */
|
|
444
|
-
danglingParents: number;
|
|
445
|
-
};
|
|
446
|
-
type QuarantinedRecord = {
|
|
447
|
-
kind: 'change' | 'blob' | 'yjs-doc';
|
|
448
|
-
subject: string;
|
|
449
|
-
reason: string;
|
|
450
|
-
};
|
|
451
|
-
type BundleApplyReport = {
|
|
452
|
-
applied: number;
|
|
453
|
-
/** Changes the store already held (idempotent redelivery). */
|
|
454
|
-
duplicates: number;
|
|
455
|
-
quarantined: QuarantinedRecord[];
|
|
456
|
-
blobsInstalled: number;
|
|
457
|
-
yjsDocsApplied: number;
|
|
458
|
-
/** Prerequisite heads the store did not hold (empty when none missing). */
|
|
459
|
-
missingPrerequisites: string[];
|
|
460
|
-
};
|
|
461
|
-
type ApplyBundleOptions = {
|
|
462
|
-
/** DID of the identity performing the import. */
|
|
463
|
-
importerDid: string;
|
|
464
|
-
/**
|
|
465
|
-
* Import a bundle whose ownerDid differs from importerDid. Off by
|
|
466
|
-
* default: importing someone else's bundle is a grant-shaped decision
|
|
467
|
-
* (ATProto learned this the hard way — bluesky-social/atproto#4067).
|
|
468
|
-
*/
|
|
469
|
-
allowForeignOwner?: boolean;
|
|
470
|
-
/** Accept a bundle with no manifest signature (default false). */
|
|
471
|
-
allowUnsigned?: boolean;
|
|
472
|
-
/** Continue even when prerequisite heads are missing (default false). */
|
|
473
|
-
ignoreMissingPrerequisites?: boolean;
|
|
474
|
-
blobPort?: BundleBlobPort;
|
|
475
|
-
yjsPort?: BundleYjsPort;
|
|
476
|
-
onQuarantine?: (record: QuarantinedRecord) => void;
|
|
477
|
-
};
|
|
478
|
-
type WriteBundleOptions = {
|
|
479
|
-
ownerDid: string;
|
|
480
|
-
/**
|
|
481
|
-
* Signs the canonical unsigned manifest bytes. Wire this to the
|
|
482
|
-
* identity's Ed25519 key (`sign` from @xnetjs/crypto) or a WebCrypto /
|
|
483
|
-
* remote signer. When omitted the manifest is unsigned and import
|
|
484
|
-
* requires `allowUnsigned`.
|
|
485
|
-
*/
|
|
486
|
-
manifestSigner?: (bytes: Uint8Array) => Promise<Uint8Array> | Uint8Array;
|
|
487
|
-
/** Export only changes after this frontier (becomes `prerequisites`). */
|
|
488
|
-
since?: BundleFrontier;
|
|
489
|
-
blobPort?: BundleBlobPort;
|
|
490
|
-
yjsPort?: BundleYjsPort;
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Bundle serialization helpers: change ↔ NDJSON line, canonical manifest
|
|
495
|
-
* bytes, and the chunked entry digest (exploration 0344).
|
|
496
|
-
*/
|
|
497
|
-
|
|
498
|
-
/** Serialize a signed change to its bundle-line form. */
|
|
499
|
-
declare function toPortableChangeRecord(change: NodeChange): PortableChangeRecord;
|
|
500
|
-
/** Rehydrate a bundle line into a signed change. */
|
|
501
|
-
declare function fromPortableChangeRecord(record: PortableChangeRecord): NodeChange;
|
|
502
|
-
/**
|
|
503
|
-
* The bytes the manifest signature covers: canonical JSON of the manifest
|
|
504
|
-
* with `signatureB64` removed.
|
|
505
|
-
*/
|
|
506
|
-
declare function canonicalManifestBytes(manifest: XnetpackManifest): Uint8Array;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* writeBundle — export a scope of the store as an `.xnetpack` bundle
|
|
510
|
-
* (exploration 0344). Export is sync-to-disk: the entries are the same
|
|
511
|
-
* signed records the sync layer ships, so the bundle needs no bespoke
|
|
512
|
-
* parser on the other side.
|
|
513
|
-
*/
|
|
514
|
-
|
|
515
|
-
/** `cid:<algo>:<hex>` → bundle entry path; opaque cids go under blobs/raw/. */
|
|
516
|
-
declare function blobEntryPath(cid: string): string;
|
|
517
|
-
declare function writeBundle(store: NodeStore, scope: BundleScope, sink: BundleSink, options: WriteBundleOptions): Promise<XnetpackManifest>;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* verifyBundle — read-only integrity check of an `.xnetpack` bundle
|
|
521
|
-
* (exploration 0344). git-bundle-verify semantics: report everything wrong
|
|
522
|
-
* before any write happens. A foreign bundle is hostile input; nothing here
|
|
523
|
-
* trusts a byte it hasn't re-hashed or re-verified.
|
|
524
|
-
*/
|
|
525
|
-
|
|
526
|
-
type VerifyBundleOptions = {
|
|
527
|
-
/**
|
|
528
|
-
* Verify each change's hash + Ed25519 signature (default true). The
|
|
529
|
-
* apply pipeline passes false: the manifest-signed content digest
|
|
530
|
-
* already proves bundle-level integrity here, and `applyRemoteChange`
|
|
531
|
-
* re-verifies every record individually before it is written — checking
|
|
532
|
-
* signatures twice doubles import time (~1.4ms/change) for no added
|
|
533
|
-
* safety.
|
|
534
|
-
*/
|
|
535
|
-
verifyChangeSignatures?: boolean;
|
|
536
|
-
};
|
|
537
|
-
declare function verifyBundle(source: BundleSource, options?: VerifyBundleOptions): Promise<BundleVerifyReport>;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* applyBundle — import an `.xnetpack` bundle by replaying it through the
|
|
541
|
-
* store's remote-change apply path (exploration 0344). Import is
|
|
542
|
-
* sync-from-disk: every change goes through the exact verification,
|
|
543
|
-
* ledger-enforcement, authz, and LWW machinery a relayed change does, so a
|
|
544
|
-
* bundle can do nothing a hostile sync peer couldn't.
|
|
545
|
-
*/
|
|
546
|
-
|
|
547
|
-
/** Thrown when the bundle fails a pre-apply gate; nothing was written. */
|
|
548
|
-
declare class BundleImportError extends Error {
|
|
549
|
-
readonly code: 'verify-failed' | 'unsigned-manifest' | 'foreign-owner' | 'missing-prerequisites';
|
|
550
|
-
constructor(message: string, code: 'verify-failed' | 'unsigned-manifest' | 'foreign-owner' | 'missing-prerequisites');
|
|
551
|
-
}
|
|
552
|
-
declare function applyBundle(store: NodeStore, source: BundleSource, options: ApplyBundleOptions): Promise<BundleApplyReport>;
|
|
553
|
-
/** Convenience: parse a manifest without verifying (for UI preview). */
|
|
554
|
-
declare function readBundleManifest(source: BundleSource): Promise<any>;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* In-memory bundle sink/source — the reference implementation used by
|
|
558
|
-
* tests, and by the browser to assemble a bundle before zipping/download.
|
|
559
|
-
*/
|
|
560
|
-
|
|
561
|
-
declare class MemoryBundleSink implements BundleSink {
|
|
562
|
-
readonly entries: Map<string, Uint8Array<ArrayBufferLike>>;
|
|
563
|
-
writeEntry(path: string, data: Uint8Array): void;
|
|
564
|
-
toSource(): MemoryBundleSource;
|
|
565
|
-
}
|
|
566
|
-
declare class MemoryBundleSource implements BundleSource {
|
|
567
|
-
private readonly entries;
|
|
568
|
-
constructor(entries: ReadonlyMap<string, Uint8Array>);
|
|
569
|
-
readEntry(path: string): Promise<Uint8Array | null>;
|
|
570
|
-
readLines(path: string): AsyncIterable<string>;
|
|
571
|
-
listEntries(prefix: string): Promise<string[]>;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* A BundleYjsPort backed by the store's per-node CRDT document content
|
|
576
|
-
* (`yjs_state` via get/setDocumentContent) — exploration 0344.
|
|
577
|
-
*
|
|
578
|
-
* Import merges by Yjs state vector (never re-applies a rebuilt doc, which
|
|
579
|
-
* would duplicate blocks — see the seed runner's create-once rule). Stored
|
|
580
|
-
* content that is not a plain Yjs update (e.g. an encrypted snapshot
|
|
581
|
-
* wrapper) is transferred create-once and never merged blindly.
|
|
582
|
-
*/
|
|
583
|
-
|
|
584
|
-
declare function createStoreYjsPort(store: NodeStore): BundleYjsPort;
|
|
585
|
-
|
|
586
|
-
export { type ApplyBundleOptions, BUNDLE_ENTRY, BlobService, type BlobServiceOptions, type BlockDefinition, type BundleApplyReport, type BundleBlobPort, type BundleFrontier, BundleImportError, type BundleScope, type BundleSink, type BundleSource, type BundleVerifyIssue, type BundleVerifyReport, type BundleYjsPort, DEFAULT_EXTERNAL_REFERENCE_IFRAME_ALLOW, EMBED_PROVIDERS, type EmbedProvider, type EmbedRegistryIframeSecurityAttributes, type EmbedRegistryPolicyDecision, type EmbedRegistryProvider, type EmbedRegistryProviderPolicy, type EvaluateEmbedRegistryPolicyInput, type EvaluateExternalReferenceEmbedPolicyInput, type ExternalReferenceDescriptor, type ExternalReferenceEmbedBlockReason, type ExternalReferenceEmbedPolicy, type ExternalReferenceEmbedPolicyDecision, type ExternalReferenceIframeSandboxToken, type ExternalReferenceKind, type ExternalReferenceMetadataFetcher, type ExternalReferenceMetadataResult, type ExternalReferenceMetadataSource, type ExternalReferenceMetadataStatus, type ExternalReferenceProvider, type ExternalReferenceResolvedMetadata, FileRef, MemoryBundleSink, MemoryBundleSource, NodeChange, NodePayload, NodeStore, type PortableBlobRecord, type PortableChangeRecord, type PortableYjsDocRecord, type QuarantinedRecord, type ResolveExternalReferenceMetadataInput, type WriteBundleOptions, XNETPACK_FORMAT_VERSION, type XnetpackManifest, applyBundle, blobEntryPath, canonicalManifestBytes, createBlock, createStoreYjsPort, detectEmbedProvider, evaluateEmbedRegistryPolicy, evaluateExternalReferenceEmbedPolicy, fromPortableChangeRecord, getEmbedRegistryProviderPolicies, getEmbedRegistryProviderPolicy, getExternalReferenceOEmbedEndpoint, getRegisteredBlockTypes, normalizeExternalReferenceUrl, parseEmbedUrl, parseExternalReferenceUrl, parseOpenGraphMetadata, readBundleManifest, registerBlockType, resolveExternalReferenceMetadata, toPortableChangeRecord, validateBlock, verifyBundle, writeBundle };
|
|
276
|
+
export { BlobService, type BlobServiceOptions, type BlockDefinition, DEFAULT_EXTERNAL_REFERENCE_IFRAME_ALLOW, EMBED_PROVIDERS, type EmbedProvider, type EmbedRegistryIframeSecurityAttributes, type EmbedRegistryPolicyDecision, type EmbedRegistryProvider, type EmbedRegistryProviderPolicy, type EvaluateEmbedRegistryPolicyInput, type EvaluateExternalReferenceEmbedPolicyInput, type ExternalReferenceDescriptor, type ExternalReferenceEmbedBlockReason, type ExternalReferenceEmbedPolicy, type ExternalReferenceEmbedPolicyDecision, type ExternalReferenceIframeSandboxToken, type ExternalReferenceKind, type ExternalReferenceMetadataFetcher, type ExternalReferenceMetadataResult, type ExternalReferenceMetadataSource, type ExternalReferenceMetadataStatus, type ExternalReferenceProvider, type ExternalReferenceResolvedMetadata, FileRef, type ResolveExternalReferenceMetadataInput, createBlock, detectEmbedProvider, evaluateEmbedRegistryPolicy, evaluateExternalReferenceEmbedPolicy, getEmbedRegistryProviderPolicies, getEmbedRegistryProviderPolicy, getExternalReferenceOEmbedEndpoint, getRegisteredBlockTypes, normalizeExternalReferenceUrl, parseEmbedUrl, parseExternalReferenceUrl, parseOpenGraphMetadata, registerBlockType, resolveExternalReferenceMetadata, validateBlock };
|