@book.dev/sdk 1.76.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.d.ts +108 -4
- package/dist/authorize.js +18 -7
- package/dist/authorize.js.map +1 -1
- package/dist/backup.d.ts +1 -1
- package/dist/bookFolder.d.ts +38 -21
- package/dist/bookFolder.js +42 -18
- package/dist/bookFolder.js.map +1 -1
- package/dist/bookfile.d.ts +1 -1
- package/dist/client.d.ts +53 -5
- package/dist/client.js +35 -5
- package/dist/client.js.map +1 -1
- package/dist/database.d.ts +9 -3
- package/dist/database.js +23 -7
- package/dist/database.js.map +1 -1
- package/dist/forwarding/forwardingClient.d.ts +38 -0
- package/dist/forwarding/forwardingClient.js +57 -4
- package/dist/forwarding/forwardingClient.js.map +1 -1
- package/dist/forwarding/index.d.ts +2 -2
- package/dist/forwarding/index.js +2 -2
- package/dist/forwarding/index.js.map +1 -1
- package/dist/forwarding/rosterAssertion.d.ts +61 -12
- package/dist/forwarding/rosterAssertion.js +77 -26
- package/dist/forwarding/rosterAssertion.js.map +1 -1
- package/dist/identity.d.ts +44 -1
- package/dist/identity.js.map +1 -1
- package/dist/import.d.ts +3 -3
- package/dist/import.js +3 -3
- package/dist/import.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/provenance.d.ts +38 -27
- package/dist/provenance.js.map +1 -1
- package/dist/routes.d.ts +34 -3
- package/dist/routes.js +36 -4
- package/dist/routes.js.map +1 -1
- package/dist/templates.d.ts +22 -6
- package/dist/templates.js +461 -14
- package/dist/templates.js.map +1 -1
- package/package.json +1 -1
package/dist/import.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.js","sourceRoot":"","sources":["../src/import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAKH,OAAO,EAAC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type { PageSnapshot, PageMeta, StoredPage, PageInput, ServerInfo, ServerControls, PageVisibility, Visibility, MemberRole, EffectiveRole, MemberStatus, MemberSource, AclLevel, Member, PageAcl, } from './types';
|
|
2
2
|
export { emptyPageSnapshot, PAGE_VISIBILITIES } from './types';
|
|
3
3
|
export { API, type ApiError, type CompactResult } from './routes';
|
|
4
|
-
export type { DataClient, PageSubscription, FetchLike, LiveSourceLike, HttpDataClientOptions, IdentityCredential } from './client';
|
|
4
|
+
export type { DataClient, PageSubscription, FetchLike, LiveSourceLike, HttpDataClientOptions, IdentityCredential, CreateAgentTokenInput, CreatedAgentToken, AgentTokenList } from './client';
|
|
5
5
|
export { HttpDataClient } from './client';
|
|
6
|
-
export { ForwardingApiError, ForwardingClient, TunnelClient, MemoryKeyStore, mintSiteKeypair, signWithSiteKey, verifyWithSiteKey, FORWARDED_HEADER, signRosterAssertion, verifyRosterAssertion, ROSTER_ASSERTION_VERSION, ROSTER_ASSERTION_SKEW_MS, type KeyStore, type SiteIdentity, type ForwardingClientOptions, type TunnelStatus, type RosterAssertionPayload, type SignRosterAssertionInput, type VerifyRosterAssertionInput, } from './forwarding';
|
|
6
|
+
export { ForwardingApiError, ForwardingClient, TunnelClient, MemoryKeyStore, SITE_VISIBILITIES, mintSiteKeypair, signWithSiteKey, verifyWithSiteKey, FORWARDED_HEADER, signRosterAssertion, verifyRosterAssertion, isAcceptedRosterVersion, ROSTER_ASSERTION_VERSION, ROSTER_ASSERTION_V2, ACCEPTED_ROSTER_VERSIONS, ROSTER_ASSERTION_SKEW_MS, type KeyStore, type SiteIdentity, type SiteVisibility, type ForwardingClientOptions, type TunnelStatus, type RosterAssertionVersion, type RosterAssertionPayload, type RosterAssertionV1Payload, type RosterAssertionV2Payload, type SignRosterAssertionInput, type VerifyRosterAssertionInput, type VerifiedRosterAssertion, } from './forwarding';
|
|
7
7
|
export { DATA_PALETTE, DATA_COLOR_TOKENS, DATA_COLOR_SCHEMES, DEFAULT_DATA_COLOR_SCHEME, SERIES_ORDER, DATA_STROKE, STATUS_TOKENS, dataStroke, isDataColorToken, seriesColor, statusColor, hexAlpha, type DataColorToken, type DataColorScheme, type DataColor, type ChipColors, } from './dataColors';
|
|
8
8
|
export type { DatabasePropertyType, NumberFormat, NumberDisplay, StatusGroup, RollupFunction, RollupConfig, RelationCardinality, DatabaseSelectOption, DatabaseProperty, DateRange, LocationValue, PropertyGroup, RowTemplate, DatabaseViewType, ChartAggregate, SummaryType, FilterOperator, FilterConjunction, DatabaseFilter, DatabaseFilterGroup, FilterNode, SortDirection, DatabaseSort, DatabaseView, DatabaseMetric, ColorRule, DatabaseSchema, AutoExpiryConfig, ResolvedAutoExpiry, StoredDatabase, DatabaseInput, DatabaseUpdate, DatabaseRow, RowInput, RowUpdate, RowGroup, ChartDatum, ChartSeries, ChartSegment, ChartGroup, ChartMatrix, DateSpan, GraphNode, GraphEdge, DependencyGraph, InverseUpdate, RowTreeNode, } from './database';
|
|
9
9
|
export { TITLE_PROPERTY_ID, SELECT_COLORS, NO_VALUE_GROUP, STATUS_GROUPS, RELATIVE_DATE_OPS, projectExports, rowValue, matchesFilter, rowMatchesCondition, applyView, viewFilterRoot, isFilterGroup, shortId, resolveAutoExpiry, defaultDatabaseSchema, defaultView, defaultStatusOptions, removeProperty, formatNumber, formatUniqueId, numberProgress, groupRows, groupRowsBy, groupRowsByParent, PARENT_GROUP_ID, NO_PARENT_GROUP, aggregateRows, aggregateMatrix, CHART_TOTAL_SERIES, summarizeColumn, dateStart, dateEnd, parseDay, rowDateSpan, rowLocation, asLocation, dependencyGraph, syncInverseUpdates, relationSides, buildRowTree, flattenRowTree, isImageUrl, firstImageUrl, coverImageUrl, } from './database';
|
|
@@ -11,15 +11,15 @@ export { evaluateFormula, formulaReferences, FormulaError, type FormulaValue, ty
|
|
|
11
11
|
export { OWNER_PROPERTY_ID, VERIFICATION_PROPERTY_ID, BACKLINKS_PROPERTY_ID, THEME_PROPERTY_ID, COVER_PROPERTY_ID, FONTS_PROPERTY_ID, ICON_PROPERTY_ID, FULLWIDTH_PROPERTY_ID, SYSTEM_PAGE_PROPERTIES, isVerified, verificationExpired, isVerificationActive, makeVerification, extractMentionIds, propertiesReferencePage, type VerificationValue, } from './pageProperties';
|
|
12
12
|
export { getServerUrlOverride, setServerUrlOverride, getServerTokenOverride, setServerTokenOverride, getIdentityCredential, setIdentityToken, setGuestName, getForwardingAudience, setForwardingAudience, isMixedContentBlocked } from './connection';
|
|
13
13
|
export { AccountClient, AccountError, DEFAULT_ACCOUNT_URL, getAccountUrlOverride, setAccountUrlOverride, resolveAccountUrl, type AccountSettings, type IdentityTokenResult, } from './account';
|
|
14
|
-
export { guestPrincipal, localPrincipal, principalId, verifiedSubject, colorForIdentity, IDENTITY_COLORS, mintIdentityKeypair, signIdentity, decodeIdentity, verifyIdentity, verifyRevocations, signRevocations, principalFromClaims, unverifiedPrincipalFromClaims, LOCAL_OWNER_HEADER, type Principal, type PrincipalKind, type VerifiedVia, type IdentityHeader, type IdentityClaims, type Jwk, type Jwks, type RevocationEntry, type RevocationSet, type IdentityKeypair, type VerifyOptions, type VerifyResult, type VerifyFailure, } from './identity';
|
|
15
|
-
export { DEFAULT_INSTANCE_CONFIG, type GuestAccess, type TrustedIssuerConfig, type InstanceConfig, type InstanceInfo, type StoredEdit, type
|
|
14
|
+
export { guestPrincipal, localPrincipal, principalId, verifiedSubject, colorForIdentity, IDENTITY_COLORS, mintIdentityKeypair, signIdentity, decodeIdentity, verifyIdentity, verifyRevocations, signRevocations, principalFromClaims, unverifiedPrincipalFromClaims, LOCAL_OWNER_HEADER, type Principal, type PrincipalKind, type VerifiedVia, type AgentTokenScope, type AgentTokenMeta, type IdentityHeader, type IdentityClaims, type Jwk, type Jwks, type RevocationEntry, type RevocationSet, type IdentityKeypair, type VerifyOptions, type VerifyResult, type VerifyFailure, } from './identity';
|
|
15
|
+
export { DEFAULT_INSTANCE_CONFIG, type GuestAccess, type TrustedIssuerConfig, type InstanceConfig, type InstanceInfo, type StoredEdit, type LibraryBinding, type LibraryRoster, type LibraryRosterEntry, } from './provenance';
|
|
16
16
|
export { authorize, isEmailAuthoritative, type Role, type EffectiveVisibility, type AclEntry, type AccessPage, type AccessCtx, type Decision, } from './authorize';
|
|
17
17
|
export { snapshotText, paragraphBlocks, textSnapshot, appendTextToSnapshot, appendBlocksToSnapshot, type AppendBlock } from './content';
|
|
18
18
|
export { snapshotBlocks, contentHash, computeBlockMtimes, stampSnapshotMtimes, latestBlockMtime, type BlockDigest, } from './mtime';
|
|
19
19
|
export { computeBlockAuthors, stampSnapshotAuthors, stampSnapshotAuthorsPerBlock, latestSnapshotAuthor, type BlockAuthorResolver, } from './authors';
|
|
20
20
|
export { OPENBOOK_ISLAND_MARKER, OPENBOOK_ASSETS_MARKER, encodeIsland, islandScript, assetsIslandScript, readIsland, readIslandRaw, readAssetsIsland, type ExportAssetEntry, type ExportAssetsIsland, } from './island';
|
|
21
21
|
export { pageToBookHtml, bookHtmlToPage, readBookHtmlMeta, pageIslandScript, sanitizeLegacyInline, isSafeHref, slugify, bookRuntimeScripts, BOOK_RUNTIME_DIR, BOOK_RUNTIME_FILE, type BookHtmlOptions, type BookPageRecord, type PageIsland, } from './bookfile';
|
|
22
|
-
export {
|
|
22
|
+
export { libraryToBookFiles, parseBookFolder, libraryIslandScript, readLibraryIsland, SPACE_BUNDLE_FILE, LEGACY_SPACE_BUNDLE_FILE, type BookFolderFile, type LibrarySnapshot, type LibraryToBookFilesOptions, type LibraryIsland, } from './bookFolder';
|
|
23
23
|
export { canonicalDigest, generateRegistryKeys, signPlugin, verifyPlugin, validateManifest, OPENBOOK_REGISTRY, type PluginManifest, type PluginAgentTool, type PluginPackage, type PluginSignature, type StoredPlugin, } from './plugins';
|
|
24
24
|
export { buildSampleDocument, seedSampleDocument, SAMPLE_DOCUMENT_NAME } from './sampleDocument';
|
|
25
25
|
export type { CommentRun, AuthoredIdentity, SuggestionAuthorKind, SuggestionKind, SuggestionStatus, SuggestionTarget, StoredSuggestion, SuggestionInput, SuggestionUpdate, StoredComment, CommentInput, } from './suggestions';
|
|
@@ -28,6 +28,6 @@ export { imagePlaceholderBlock, imagePlaceholderCell, importedBlocksToSnapshot,
|
|
|
28
28
|
export { markdownToBlocks, markdownToImportedDoc, type MarkdownImportOptions } from './markdownImport';
|
|
29
29
|
export { notionExportToImportedDoc, parseCsv } from './notionImport';
|
|
30
30
|
export { rehydrateImageUrls, rehydrateStoredImages, importedImageBlock, imagePlaceholderMeta, mimeFromRef, notionAssetResolver, urlAssetResolver, isHttpUrl, isDataUrlRef, IMAGE_BLOCK_TYPE, DEFAULT_MAX_ASSET_BYTES, type RehydrateUrlOptions, type RehydrateStoredClient, type RehydrateStoredOptions, type RehydrateStoredResult, type ImportAssetResolver, type AssetBytes, } from './importAssets';
|
|
31
|
-
export { BACKUP_VERSION, BACKUP_CADENCES, BACKUP_CADENCE_MS, DEFAULT_BACKUP_CONFIG, remapBundle, type
|
|
32
|
-
export type { AgentChatEvent, AgentChatMessage, AgentChatOptions, AgentProposal, InterviewStep, AiProvider, AiConfig, AiProviderSettings, AiEffort, AiSkill, AiStatus, AiSearchResult, AiSearchResponse, AiTasksResponse, AiStreamEvent, AiModelPrice, AiPricingTable, AiPricingResponse, AiUsageRow, AiUsageTotals, AiUsageResponse, } from './ai';
|
|
31
|
+
export { BACKUP_VERSION, BACKUP_CADENCES, BACKUP_CADENCE_MS, DEFAULT_BACKUP_CONFIG, remapBundle, type LibraryBackup, type ImportMode, type ImportRequest, type ImportResult, type BackupCadence, type BackupConfig, type BackupCadenceStatus, type BackupStatus, } from './backup';
|
|
32
|
+
export type { AgentChatEvent, AgentChatMessage, AgentChatOptions, AgentProposal, InterviewStep, AiProvider, AiConfig, AiProviderSettings, AiEffort, AiSkill, AiStatus, AiSearchResult, AiSearchResponse, AiTasksResponse, AiStreamEvent, AiModelPrice, AiPricingTable, AiPricingResponse, AiUsageRow, AiUsageTotals, AiUsageResponse, McpTransport, McpServerConfig, McpClientConfig, McpConfigResponse, McpTestResult, } from './ai';
|
|
33
33
|
export { providerSettings, isPaidProvider } from './ai';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { emptyPageSnapshot, PAGE_VISIBILITIES } from './types';
|
|
2
2
|
export { API } from './routes';
|
|
3
3
|
export { HttpDataClient } from './client';
|
|
4
|
-
export { ForwardingApiError, ForwardingClient, TunnelClient, MemoryKeyStore, mintSiteKeypair, signWithSiteKey, verifyWithSiteKey, FORWARDED_HEADER, signRosterAssertion, verifyRosterAssertion, ROSTER_ASSERTION_VERSION, ROSTER_ASSERTION_SKEW_MS, } from './forwarding';
|
|
4
|
+
export { ForwardingApiError, ForwardingClient, TunnelClient, MemoryKeyStore, SITE_VISIBILITIES, mintSiteKeypair, signWithSiteKey, verifyWithSiteKey, FORWARDED_HEADER, signRosterAssertion, verifyRosterAssertion, isAcceptedRosterVersion, ROSTER_ASSERTION_VERSION, ROSTER_ASSERTION_V2, ACCEPTED_ROSTER_VERSIONS, ROSTER_ASSERTION_SKEW_MS, } from './forwarding';
|
|
5
5
|
export { DATA_PALETTE, DATA_COLOR_TOKENS, DATA_COLOR_SCHEMES, DEFAULT_DATA_COLOR_SCHEME, SERIES_ORDER, DATA_STROKE, STATUS_TOKENS, dataStroke, isDataColorToken, seriesColor, statusColor, hexAlpha, } from './dataColors';
|
|
6
6
|
export { TITLE_PROPERTY_ID, SELECT_COLORS, NO_VALUE_GROUP, STATUS_GROUPS, RELATIVE_DATE_OPS, projectExports, rowValue, matchesFilter, rowMatchesCondition, applyView, viewFilterRoot, isFilterGroup, shortId, resolveAutoExpiry, defaultDatabaseSchema, defaultView, defaultStatusOptions, removeProperty, formatNumber, formatUniqueId, numberProgress, groupRows, groupRowsBy, groupRowsByParent, PARENT_GROUP_ID, NO_PARENT_GROUP, aggregateRows, aggregateMatrix, CHART_TOTAL_SERIES, summarizeColumn, dateStart, dateEnd, parseDay, rowDateSpan, rowLocation, asLocation, dependencyGraph, syncInverseUpdates, relationSides, buildRowTree, flattenRowTree, isImageUrl, firstImageUrl, coverImageUrl, } from './database';
|
|
7
7
|
export { evaluateFormula, formulaReferences, FormulaError, } from './formula';
|
|
@@ -16,7 +16,7 @@ export { snapshotBlocks, contentHash, computeBlockMtimes, stampSnapshotMtimes, l
|
|
|
16
16
|
export { computeBlockAuthors, stampSnapshotAuthors, stampSnapshotAuthorsPerBlock, latestSnapshotAuthor, } from './authors';
|
|
17
17
|
export { OPENBOOK_ISLAND_MARKER, OPENBOOK_ASSETS_MARKER, encodeIsland, islandScript, assetsIslandScript, readIsland, readIslandRaw, readAssetsIsland, } from './island';
|
|
18
18
|
export { pageToBookHtml, bookHtmlToPage, readBookHtmlMeta, pageIslandScript, sanitizeLegacyInline, isSafeHref, slugify, bookRuntimeScripts, BOOK_RUNTIME_DIR, BOOK_RUNTIME_FILE, } from './bookfile';
|
|
19
|
-
export {
|
|
19
|
+
export { libraryToBookFiles, parseBookFolder, libraryIslandScript, readLibraryIsland, SPACE_BUNDLE_FILE, LEGACY_SPACE_BUNDLE_FILE, } from './bookFolder';
|
|
20
20
|
export { canonicalDigest, generateRegistryKeys, signPlugin, verifyPlugin, validateManifest, OPENBOOK_REGISTRY, } from './plugins';
|
|
21
21
|
export { buildSampleDocument, seedSampleDocument, SAMPLE_DOCUMENT_NAME } from './sampleDocument';
|
|
22
22
|
export { PAGE_TEMPLATES, instantiateTemplate } from './templates';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAC,GAAG,EAAoC,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAC,GAAG,EAAoC,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,GAazB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,GAKT,MAAM,cAAc,CAAC;AAkDtB,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,aAAa,EACb,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,aA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B,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,GAOxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,GASZ,MAAM,UAAU,CAAC;AA6BlB,OAAO,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,MAAM,CAAC"}
|
package/dist/provenance.d.ts
CHANGED
|
@@ -68,39 +68,40 @@ export interface InstanceConfig {
|
|
|
68
68
|
*/
|
|
69
69
|
emailAuthority?: string;
|
|
70
70
|
/**
|
|
71
|
-
* When this instance is a MANAGED
|
|
72
|
-
* is bound to. Set, the periodic roster sync projects that
|
|
73
|
-
* (admins / viewers + the
|
|
71
|
+
* When this instance is a MANAGED library (OB-199), the account library it
|
|
72
|
+
* is bound to. Set, the periodic roster sync projects that library's roster
|
|
73
|
+
* (admins / viewers + the library owner) into the local `members` table so
|
|
74
74
|
* `members`-scope + admin/viewer roles resolve for direct (non-edge) access too.
|
|
75
75
|
* Unset ⇒ a standalone instance; the sync is inert. Additive — absence is the
|
|
76
76
|
* pre-OB-199 single-instance behaviour. Holds non-secret COORDINATES only; the
|
|
77
77
|
* credential the instance presents to read the roster is supplied out-of-band
|
|
78
|
-
* (never persisted in policy). See {@link
|
|
78
|
+
* (never persisted in policy). See {@link LibraryBinding}.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
libraryBinding?: LibraryBinding;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Binds a managed instance to an account
|
|
84
|
-
* coordinates only — the roster-read credential is
|
|
85
|
-
* stored here. Set by the owner (via the instance-policy
|
|
86
|
-
* the forwarding/claim flow.
|
|
83
|
+
* Binds a managed instance to an account library (OB-199; LIB-5 renamed from
|
|
84
|
+
* `WorkspaceBinding`). Non-secret coordinates only — the roster-read credential is
|
|
85
|
+
* injected at runtime, never stored here. Set by the owner (via the instance-policy
|
|
86
|
+
* route) or learned during the forwarding/claim flow.
|
|
87
87
|
*/
|
|
88
|
-
export interface
|
|
89
|
-
/** The account
|
|
90
|
-
|
|
88
|
+
export interface LibraryBinding {
|
|
89
|
+
/** The account library id this instance serves (renamed from `workspaceId`; SAME id value). */
|
|
90
|
+
libraryId: string;
|
|
91
91
|
/**
|
|
92
|
-
* Base URL of the account that owns the
|
|
92
|
+
* Base URL of the account that owns the library (where the roster lives).
|
|
93
93
|
* Defaults to the instance `emailAuthority` (account.book.pub) when omitted.
|
|
94
94
|
*/
|
|
95
95
|
accountBaseUrl?: string;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* One entry of the account
|
|
99
|
-
* OB-199 sync. Identifies a member by a
|
|
100
|
-
* persona `email`, with the
|
|
101
|
-
* instance only reads this shape (it never writes the
|
|
98
|
+
* One entry of the account library roster (OB-197 contract; LIB-5 renamed from
|
|
99
|
+
* `WorkspaceRosterEntry`), as consumed by the OB-199 sync. Identifies a member by a
|
|
100
|
+
* bound `subject` (`iss#sub`) and/or a persona `email`, with the library role. The
|
|
101
|
+
* account is the producer; the instance only reads this shape (it never writes the
|
|
102
|
+
* account).
|
|
102
103
|
*/
|
|
103
|
-
export interface
|
|
104
|
+
export interface LibraryRosterEntry {
|
|
104
105
|
/** Bound `iss#sub` of the member, when the account exposes it. */
|
|
105
106
|
subject?: string;
|
|
106
107
|
/** Persona email (any case; lowercased on sync). */
|
|
@@ -108,17 +109,18 @@ export interface WorkspaceRosterEntry {
|
|
|
108
109
|
role: MemberRole;
|
|
109
110
|
}
|
|
110
111
|
/**
|
|
111
|
-
* The account
|
|
112
|
-
* (OB-197), as consumed by the OB-199 sync.
|
|
113
|
-
* owner's bound subject (`iss#sub`) — admitted as an
|
|
114
|
-
* from the instance's own site owner (OB-198 F2), so the
|
|
115
|
-
* locked out of a
|
|
112
|
+
* The account library roster returned by `GET /api/libraries/:id/roster`
|
|
113
|
+
* (OB-197; LIB-5 renamed from `WorkspaceRoster`), as consumed by the OB-199 sync.
|
|
114
|
+
* `ownerSubject` is the library owner's bound subject (`iss#sub`) — admitted as an
|
|
115
|
+
* admin even when it differs from the instance's own site owner (OB-198 F2), so the
|
|
116
|
+
* library owner is never locked out of a library they own.
|
|
116
117
|
*/
|
|
117
|
-
export interface
|
|
118
|
-
workspaceId
|
|
119
|
-
|
|
118
|
+
export interface LibraryRoster {
|
|
119
|
+
/** The account library id (renamed from `workspaceId`; SAME id value). */
|
|
120
|
+
libraryId: string;
|
|
121
|
+
/** Bound `iss#sub` of the library owner (admitted as admin). */
|
|
120
122
|
ownerSubject?: string;
|
|
121
|
-
members:
|
|
123
|
+
members: LibraryRosterEntry[];
|
|
122
124
|
}
|
|
123
125
|
export declare const DEFAULT_INSTANCE_CONFIG: InstanceConfig;
|
|
124
126
|
/**
|
|
@@ -139,6 +141,15 @@ export interface InstanceInfo {
|
|
|
139
141
|
* it only needs to ensure its own token is scoped, never to relax + re-assert.
|
|
140
142
|
* Optional: absent (e.g. a pre-OB-202 server / a test fixture) is treated as `false`. */
|
|
141
143
|
requireAudience?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The audience scope a page's `visibility='inherit'` resolves to at the root once
|
|
146
|
+
* the instance is claimed (OB-182 §2.4) — the TRUE effective default behind the
|
|
147
|
+
* Share dialog's "Workspace default". Exposed so a claimed instance can show what
|
|
148
|
+
* inheriting really means (e.g. "members only") instead of the guest-gate summary,
|
|
149
|
+
* which only governs an *unclaimed* instance's rule-0 short-circuit. Never
|
|
150
|
+
* `inherit`. Optional: absent on a pre-SHR-6 server / a test fixture — the client
|
|
151
|
+
* falls back to the {@link guestAccess} summary. */
|
|
152
|
+
defaultVisibility?: Exclude<PageVisibility, 'inherit'> | null;
|
|
142
153
|
/** Who the server resolved you to be on this request. */
|
|
143
154
|
you: Principal;
|
|
144
155
|
/**
|
package/dist/provenance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAC;AA6H9C,MAAM,CAAC,MAAM,uBAAuB,GAAmB;IACrD,WAAW,EAAE,OAAO;IACpB,+EAA+E;IAC/E,+EAA+E;IAC/E,gFAAgF;IAChF,4EAA4E;IAC5E,cAAc,EAAE;QACd;YACE,MAAM,EAAE,mBAAmB;YAC3B,OAAO,EAAE,GAAG,mBAAmB,oBAAoB;YACnD,2EAA2E;YAC3E,uDAAuD;YACvD,cAAc,EAAE,GAAG,mBAAmB,2BAA2B;SAClE;KACF;IACD,iFAAiF;IACjF,+EAA+E;IAC/E,iBAAiB,EAAE,SAAS;IAC5B,iFAAiF;IACjF,+EAA+E;IAC/E,cAAc,EAAE,mBAAmB;CACpC,CAAC"}
|
package/dist/routes.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export declare const API: {
|
|
|
18
18
|
/** Move/reorder a page in the sidebar tree (re-parent + reorder siblings): `PUT`. */
|
|
19
19
|
readonly pageMove: (id: string) => string;
|
|
20
20
|
/** Whole-space backup: `GET` returns every live page + database as one bundle. */
|
|
21
|
-
readonly
|
|
21
|
+
readonly exportLibrary: "/api/export";
|
|
22
22
|
/** Restore a backup: `POST` `{pages, databases, mode}` → import summary. */
|
|
23
|
-
readonly
|
|
23
|
+
readonly importLibrary: "/api/import";
|
|
24
24
|
/** The trash: `GET` (list trashed pages) / `DELETE` (empty the whole trash). */
|
|
25
25
|
readonly trash: "/api/trash";
|
|
26
26
|
/** A single trashed page: `DELETE` (permanently purge it and its subtree). */
|
|
@@ -98,6 +98,16 @@ export declare const API: {
|
|
|
98
98
|
readonly aiModelDownload: "/api/ai/models/download";
|
|
99
99
|
/** The agent harness: `POST` `{messages, effort?, thinking?, skills?}` → SSE tool/reasoning/proposal/final events. */
|
|
100
100
|
readonly agentChat: "/api/agent/chat";
|
|
101
|
+
/**
|
|
102
|
+
* External tools (MCP client) config (admin only): `GET` returns
|
|
103
|
+
* {@link McpConfigResponse} (redacted config + `stdioAllowed`); `PUT`
|
|
104
|
+
* `{enabled, servers}` merges it (write-only auth tokens preserved/replaced/
|
|
105
|
+
* cleared) and returns the redacted result. Managing external tool servers is
|
|
106
|
+
* host command-execution territory — gated by `requireInstanceAdmin`. */
|
|
107
|
+
readonly aiMcp: "/api/ai/mcp";
|
|
108
|
+
/** Dry-run one MCP server config (admin only): `POST` a {@link McpServerConfig}
|
|
109
|
+
* → {@link McpTestResult} (connect + list tools; never returns secrets). */
|
|
110
|
+
readonly aiMcpTest: "/api/ai/mcp/test";
|
|
101
111
|
/** User-authored prompt/recipe skills: `GET` (list) / `PUT` `{skill}` (upsert). */
|
|
102
112
|
readonly aiSkills: "/api/ai/skills";
|
|
103
113
|
/** One skill by name: `DELETE`. */
|
|
@@ -175,16 +185,37 @@ export declare const API: {
|
|
|
175
185
|
readonly pageVisibility: (id: string) => string;
|
|
176
186
|
/**
|
|
177
187
|
* On-demand roster sync of a managed instance: `GET` reports the binding +
|
|
178
|
-
* last-sync status; `POST` pulls the bound
|
|
188
|
+
* last-sync status; `POST` pulls the bound library roster from the account and
|
|
179
189
|
* reconciles it into the local roster (managed rows only). Instance-writer
|
|
180
190
|
* (owner/admin/loopback) only. The same sync also runs periodically.
|
|
181
191
|
*/
|
|
192
|
+
readonly librarySync: "/api/library/sync";
|
|
193
|
+
/**
|
|
194
|
+
* Legacy alias of {@link librarySync} (LIB-5 renamed `/api/workspace/sync` →
|
|
195
|
+
* `/api/library/sync`). Kept live so a not-yet-updated caller still resolves;
|
|
196
|
+
* both paths hit the same handler. Retire only in the last, reversible phase.
|
|
197
|
+
*/
|
|
182
198
|
readonly workspaceSync: "/api/workspace/sync";
|
|
183
199
|
/** Scheduled-backup policy: `GET` returns {@link BackupStatus}; `PUT` updates
|
|
184
200
|
* the policy and returns the new status. */
|
|
185
201
|
readonly backups: "/api/backups";
|
|
186
202
|
/** Run a backup immediately: `POST` `{cadence?}` → the written file's name. */
|
|
187
203
|
readonly backupRun: "/api/backups/run";
|
|
204
|
+
/**
|
|
205
|
+
* Agent Personal-Access-Token management (admin only — `requireInstanceAdmin`;
|
|
206
|
+
* a PAT can never reach this route, both by `requireInstanceAdmin` and the
|
|
207
|
+
* scope-gate). `GET` → `{enabled, tokens}` (redacted list + the `agentApi`
|
|
208
|
+
* on/off state); `PUT` `{enabled}` toggles the dark `agentApi` setting; `POST`
|
|
209
|
+
* `{name, scope?, expiresInDays?}` mints a token (404 while `agentApi` is off) and
|
|
210
|
+
* returns the plaintext exactly ONCE. */
|
|
211
|
+
readonly agentTokens: "/api/agent-tokens";
|
|
212
|
+
/** Revoke one agent token by id: `DELETE`. `true` if one was removed. */
|
|
213
|
+
readonly agentToken: (id: string) => string;
|
|
214
|
+
/**
|
|
215
|
+
* Remote streamable-HTTP MCP transport (AGENT-5 — handler built separately).
|
|
216
|
+
* Declared here so the AGENT-6 scope-gate can allowlist it; harmless until the
|
|
217
|
+
* handler is mounted. */
|
|
218
|
+
readonly mcp: "/api/mcp";
|
|
188
219
|
};
|
|
189
220
|
/** Result of a {@link API.compact} run: the database's on-disk size before/after,
|
|
190
221
|
* in bytes, and how much was reclaimed. */
|
package/dist/routes.js
CHANGED
|
@@ -18,9 +18,9 @@ export const API = {
|
|
|
18
18
|
/** Move/reorder a page in the sidebar tree (re-parent + reorder siblings): `PUT`. */
|
|
19
19
|
pageMove: (id) => `/api/pages/${encodeURIComponent(id)}/move`,
|
|
20
20
|
/** Whole-space backup: `GET` returns every live page + database as one bundle. */
|
|
21
|
-
|
|
21
|
+
exportLibrary: '/api/export',
|
|
22
22
|
/** Restore a backup: `POST` `{pages, databases, mode}` → import summary. */
|
|
23
|
-
|
|
23
|
+
importLibrary: '/api/import',
|
|
24
24
|
/** The trash: `GET` (list trashed pages) / `DELETE` (empty the whole trash). */
|
|
25
25
|
trash: '/api/trash',
|
|
26
26
|
/** A single trashed page: `DELETE` (permanently purge it and its subtree). */
|
|
@@ -100,6 +100,16 @@ export const API = {
|
|
|
100
100
|
aiModelDownload: '/api/ai/models/download',
|
|
101
101
|
/** The agent harness: `POST` `{messages, effort?, thinking?, skills?}` → SSE tool/reasoning/proposal/final events. */
|
|
102
102
|
agentChat: '/api/agent/chat',
|
|
103
|
+
/**
|
|
104
|
+
* External tools (MCP client) config (admin only): `GET` returns
|
|
105
|
+
* {@link McpConfigResponse} (redacted config + `stdioAllowed`); `PUT`
|
|
106
|
+
* `{enabled, servers}` merges it (write-only auth tokens preserved/replaced/
|
|
107
|
+
* cleared) and returns the redacted result. Managing external tool servers is
|
|
108
|
+
* host command-execution territory — gated by `requireInstanceAdmin`. */
|
|
109
|
+
aiMcp: '/api/ai/mcp',
|
|
110
|
+
/** Dry-run one MCP server config (admin only): `POST` a {@link McpServerConfig}
|
|
111
|
+
* → {@link McpTestResult} (connect + list tools; never returns secrets). */
|
|
112
|
+
aiMcpTest: '/api/ai/mcp/test',
|
|
103
113
|
/** User-authored prompt/recipe skills: `GET` (list) / `PUT` `{skill}` (upsert). */
|
|
104
114
|
aiSkills: '/api/ai/skills',
|
|
105
115
|
/** One skill by name: `DELETE`. */
|
|
@@ -179,13 +189,19 @@ export const API = {
|
|
|
179
189
|
* "you manage sharing of pages you can write" rule as the ACL).
|
|
180
190
|
*/
|
|
181
191
|
pageVisibility: (id) => `/api/pages/${encodeURIComponent(id)}/visibility`,
|
|
182
|
-
// ── Managed
|
|
192
|
+
// ── Managed library: instance ↔ library roster sync — OB-199 / LIB-5 ─────────
|
|
183
193
|
/**
|
|
184
194
|
* On-demand roster sync of a managed instance: `GET` reports the binding +
|
|
185
|
-
* last-sync status; `POST` pulls the bound
|
|
195
|
+
* last-sync status; `POST` pulls the bound library roster from the account and
|
|
186
196
|
* reconciles it into the local roster (managed rows only). Instance-writer
|
|
187
197
|
* (owner/admin/loopback) only. The same sync also runs periodically.
|
|
188
198
|
*/
|
|
199
|
+
librarySync: '/api/library/sync',
|
|
200
|
+
/**
|
|
201
|
+
* Legacy alias of {@link librarySync} (LIB-5 renamed `/api/workspace/sync` →
|
|
202
|
+
* `/api/library/sync`). Kept live so a not-yet-updated caller still resolves;
|
|
203
|
+
* both paths hit the same handler. Retire only in the last, reversible phase.
|
|
204
|
+
*/
|
|
189
205
|
workspaceSync: '/api/workspace/sync',
|
|
190
206
|
// ── Scheduled backups — OB-166 ───────────────────────────────────────────────
|
|
191
207
|
/** Scheduled-backup policy: `GET` returns {@link BackupStatus}; `PUT` updates
|
|
@@ -193,5 +209,21 @@ export const API = {
|
|
|
193
209
|
backups: '/api/backups',
|
|
194
210
|
/** Run a backup immediately: `POST` `{cadence?}` → the written file's name. */
|
|
195
211
|
backupRun: '/api/backups/run',
|
|
212
|
+
// ── Agent access: PAT credential management (AGENT-6) ─────────────────────────
|
|
213
|
+
/**
|
|
214
|
+
* Agent Personal-Access-Token management (admin only — `requireInstanceAdmin`;
|
|
215
|
+
* a PAT can never reach this route, both by `requireInstanceAdmin` and the
|
|
216
|
+
* scope-gate). `GET` → `{enabled, tokens}` (redacted list + the `agentApi`
|
|
217
|
+
* on/off state); `PUT` `{enabled}` toggles the dark `agentApi` setting; `POST`
|
|
218
|
+
* `{name, scope?, expiresInDays?}` mints a token (404 while `agentApi` is off) and
|
|
219
|
+
* returns the plaintext exactly ONCE. */
|
|
220
|
+
agentTokens: '/api/agent-tokens',
|
|
221
|
+
/** Revoke one agent token by id: `DELETE`. `true` if one was removed. */
|
|
222
|
+
agentToken: (id) => `/api/agent-tokens/${encodeURIComponent(id)}`,
|
|
223
|
+
/**
|
|
224
|
+
* Remote streamable-HTTP MCP transport (AGENT-5 — handler built separately).
|
|
225
|
+
* Declared here so the AGENT-6 scope-gate can allowlist it; harmless until the
|
|
226
|
+
* handler is mounted. */
|
|
227
|
+
mcp: '/api/mcp',
|
|
196
228
|
};
|
|
197
229
|
//# sourceMappingURL=routes.js.map
|
package/dist/routes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM,EAAE,SAAS;IACjB,kDAAkD;IAClD,KAAK,EAAE,YAAY;IACnB,oFAAoF;IACpF,IAAI,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,EAAE;IACpE,wFAAwF;IACxF,cAAc,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,aAAa;IACzF,+DAA+D;IAC/D,aAAa,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,YAAY;IACvF,wEAAwE;IACxE,WAAW,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,UAAU;IACnF,qFAAqF;IACrF,QAAQ,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,OAAO;IAC7E,kFAAkF;IAClF,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM,EAAE,SAAS;IACjB,kDAAkD;IAClD,KAAK,EAAE,YAAY;IACnB,oFAAoF;IACpF,IAAI,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,EAAE;IACpE,wFAAwF;IACxF,cAAc,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,cAAc,kBAAkB,CAAC,EAAE,CAAC,aAAa;IACzF,+DAA+D;IAC/D,aAAa,EAAE,C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kB,CAAC,EAAE,CAAC,aAAa;IAEzF,gFAAgF;IAChF;;;;;OAKG;IACH,WAAW,EAAE,mBAAmB;IAChC;;;;OAIG;IACH,aAAa,EAAE,qBAAqB;IAEpC,gFAAgF;IAChF;iDAC6C;IAC7C,OAAO,EAAE,cAAc;IACvB,+EAA+E;IAC/E,SAAS,EAAE,kBAAkB;IAE7B,iFAAiF;IACjF;;;;;;6CAMyC;IACzC,WAAW,EAAE,mBAAmB;IAChC,yEAAyE;IACzE,UAAU,EAAE,CAAC,EAAU,EAAU,EAAE,CAAC,qBAAqB,kBAAkB,CAAC,EAAE,CAAC,EAAE;IACjF;;;6BAGyB;IACzB,GAAG,EAAE,UAAU;CACP,CAAC"}
|
package/dist/templates.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { StoredPage } from './types';
|
|
|
5
5
|
* through the normal data APIs (no server involvement, same as the sample
|
|
6
6
|
* document). Two shapes:
|
|
7
7
|
*
|
|
8
|
-
* - **Block-doc artifacts** (
|
|
8
|
+
* - **Block-doc artifacts** (the showcases) ship a native block-editor
|
|
9
9
|
* JSON projection in `blockdoc: {blocks}`. They lean on the whole editor:
|
|
10
10
|
* reactive inputs feeding *collapsed* live-code, status lights, info/link/
|
|
11
11
|
* tooltip cards, charts, progress bars, multi-column layouts, callouts, and
|
|
@@ -28,20 +28,36 @@ import type { StoredPage } from './types';
|
|
|
28
28
|
export type TemplateTag = 'interactive' | 'slides' | 'database';
|
|
29
29
|
export interface PageTemplate {
|
|
30
30
|
/** Stable identifier (i18n keys + tests hang off this). */
|
|
31
|
-
id: 'grocery-tracker' | 'task-board' | 'reading-list' | 'project-intake' | 'savings-planner' | 'roadmap' | 'field-map';
|
|
31
|
+
id: 'grocery-tracker' | 'task-board' | 'reading-list' | 'project-intake' | 'savings-planner' | 'roadmap' | 'field-map' | 'pitch-deck' | 'compound-growth' | 'team-status' | 'product-hq' | 'dashboard';
|
|
32
32
|
/** Emoji shown on the gallery card and applied to the created page. */
|
|
33
33
|
icon: string;
|
|
34
34
|
/** Canonical (English) page name; suffixed when it collides. */
|
|
35
35
|
pageName: string;
|
|
36
36
|
/** What the template shows off — rendered as chips on the gallery card. */
|
|
37
37
|
tags: TemplateTag[];
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Canonical (English) text of the leading "how to use this" callout, for
|
|
40
|
+
* templates that don't already open with strong in-doc guidance (the five
|
|
41
|
+
* database fixtures). The gallery passes a localized override through
|
|
42
|
+
* {@link instantiateTemplate}; `create` bakes this English text in by
|
|
43
|
+
* default. Templates whose documents already guide (grocery, pitch deck,
|
|
44
|
+
* team status, and the sample-document copy — which opens with its own
|
|
45
|
+
* intro paragraph) leave it unset.
|
|
46
|
+
*/
|
|
47
|
+
guidance?: string;
|
|
48
|
+
/** Creates the page (and database, if any) and returns the stored page.
|
|
49
|
+
* `guidance` overrides the template's canonical guidance-callout text
|
|
50
|
+
* (ignored by templates that define none). */
|
|
51
|
+
create: (client: DataClient, name: string, guidance?: string) => Promise<StoredPage>;
|
|
40
52
|
}
|
|
41
53
|
export declare const PAGE_TEMPLATES: PageTemplate[];
|
|
42
54
|
/**
|
|
43
55
|
* Instantiate a template: pick a distinct display name (courtesy numbering —
|
|
44
56
|
* duplicates are allowed but unhelpful for ready-made pages) and build the page
|
|
45
|
-
* through the client, retrying transient failures.
|
|
57
|
+
* through the client, retrying transient failures. `opts.guidance` localizes
|
|
58
|
+
* the leading guidance callout of templates that carry one (the gallery passes
|
|
59
|
+
* the user's locale text; absent, the canonical English default applies).
|
|
46
60
|
*/
|
|
47
|
-
export declare function instantiateTemplate(client: DataClient, template: PageTemplate
|
|
61
|
+
export declare function instantiateTemplate(client: DataClient, template: PageTemplate, opts?: {
|
|
62
|
+
guidance?: string;
|
|
63
|
+
}): Promise<StoredPage>;
|