window.fastdocShell · other methods
Methods that don't fit the topic groups above: edit history, working with the current document and windows, templates, autosave, and recovery. Methods: 70.
Methods that don’t fit the topic groups above: edit history, working with the current document and windows, templates, autosave, and recovery. Methods on this page: 70.
Methods on this page — 70
applyCanonicalHistoryapplyEditorV0HomeFormattingCommandapplyEditorV0MailMergeCommandActionapplyOutlineMasterDocumentActionapplyPersistentEditingCompositionapplyPersistentEditingStructuralCommandapplyQuickPartsDocumentOperationarrangeDocumentWindowscheckLocalProofingWordsclearRecentDocumentscloseCurrentDocumentcommitAutosaveRecoverycommitUserTemplatecompleteSaveBeforeDocumentSwitchconfigureLocalProofingProvidercreateDocumentWindowcreateEditableOdtCopycreateFromBuiltinTemplatecreateFromUserTemplatecreateQuickPartsBuildingBlockcreateVersionCheckpointdeleteQuickPartsBuildingBlockdeleteUserTemplatedeleteVersionfinalizeAutosaveRecoveryfocusDocumentWindowgetAutosaveRecoveryStategetDocumentWindowSessiongetLocalProofingDocumentPolicygetPathForFileinspectEditorV0HomeFormattinginspectExternalChangeinvalidatePersistentEditingProductRoutelinkVersionHistorySaveAslistDocumentWindowslistFileStartTemplateslistQuickPartsBuildingBlockslistVersionHistorymaterializeDocumentPageWindowmutateLocalProofingDictionarynotifyCanonicalEditDroppednotifyEditKeyDroppednotifyPageHydrationDroppednotifyPersistentSaveRefusednotifyUserDocumentSavedonDocumentSessionSnapshotonSaveBeforeDocumentSwitchopenMostRecentDocumentopenVersionprepareAutosaveRecoverypreparePersistentSaveCopyTargetprepareUserTemplatepublishDocumentSessionSnapshotremoveRecentDocumentrequestDocumentWindowCloseresolveAutosaveRecoveryresolveExternalChangeresolveFileSessionRecoveryrestoreVersionrollbackSaveAsOwnershipReservationrunDocxCompatibilityrunEditorV0MailMergeBusinesssaveOdtAsDocxCopysavePersistentEditingCheckpointsetPersistentEditingSelectionsetRecentDocumentPinnedsetRestoreLastDocumentupdateAutosaveRecoverySettingsupdateQuickPartsBuildingBlockupdateVersionMetadata
applyCanonicalHistory
Section titled “applyCanonicalHistory”applyCanonicalHistory(direction: "undo" | "redo"): Promise<{ owner: "rust-session"; available: boolean; sessionId: string | null; documentId: string | null; transactionOrder: number; acceptedRevision: number; selectionRevision: number; publishedRevision: number; dirty: boolean; modelHash: string | null; undoDepth: number; redoDepth: number; direction: "undo" | "redo"; projectionPath: string; historyPreservedBySave: boolean; sceneModelHash: string; visibleSceneMatchesCanonicalModel: boolean; residueCount: 0; structuralProjection?: boolean; structuralStartBodyBlockIndex?: number; bridgeState?: ShellBridgeState; transition: { transitionKind: string; transactionOrder: number; beforeModelHash: string; afterModelHash: string; paragraphIndex?: number; beforeCaretSlotIndex?: number; afterCaretSlotIndex?: number; beforeSelectionStartSlotIndex?: number; beforeSelectionEndSlotIndex?: number; paragraphOwner?: string; requestId?: string; }; persistentReceipt?: BoundedLiveTextInsertResult["persistentReceipt"];}>web_to_host_request_response · invoke · fastdoc-shell:apply-canonical-history
applyEditorV0HomeFormattingCommand
Section titled “applyEditorV0HomeFormattingCommand”applyEditorV0HomeFormattingCommand(request: EditorV0HomeFormattingRequest): Promise<EditorV0HomeFormattingResult>web_to_host_request_response · invoke · fastdoc-shell:apply-editor-v0-home-formatting-command
applyEditorV0MailMergeCommandAction
Section titled “applyEditorV0MailMergeCommandAction”applyEditorV0MailMergeCommandAction(request: EditorV0MailMergeCommandRequest): Promise<EditorV0MailMergeCommandResult>deprecated: always responds with a refusal · the refusal comes with the code MAIL_MERGE_LEGACY_COMMAND_OWNER_RETIRED
applyOutlineMasterDocumentAction
Section titled “applyOutlineMasterDocumentAction”applyOutlineMasterDocumentAction(request: OutlineMasterDocumentRequest): Promise<OutlineMasterDocumentResult>web_to_host_request_response · invoke · fastdoc-shell:apply-outline-master-document-action
applyPersistentEditingComposition
Section titled “applyPersistentEditingComposition”applyPersistentEditingComposition(request: CompositionRequest): Promise<CompositionReceipt>web_to_host_request_response · invoke · fastdoc-shell:apply-persistent-editing-composition
applyPersistentEditingStructuralCommand
Section titled “applyPersistentEditingStructuralCommand”applyPersistentEditingStructuralCommand(request: EditRequest, options?: { projectionRefresh?: "full" | "page-window" | "model-only"; pageIndex?: number; }): Promise<{ receipt: EditReceipt; model: Record<string, unknown>; document: ShellLoadedDocument; canonicalHistory: CanonicalHistoryState; projectionRefresh: "full" | "page-window" | "model-only";}>web_to_host_request_response · invoke · fastdoc-shell:apply-persistent-editing-structural-command
applyQuickPartsDocumentOperation
Section titled “applyQuickPartsDocumentOperation”web_to_host_request_response · invoke · fastdoc-shell:apply-quick-parts-document-operation
arrangeDocumentWindows
Section titled “arrangeDocumentWindows”arrangeDocumentWindows(): Promise<{ arranged: number; bounds: Array<{ x: number; y: number; width: number; height: number }>; windows: ShellDocumentWindowDescriptor[];}>web_to_host_request_response · invoke · fastdoc-shell:arrange-document-windows
checkLocalProofingWords
Section titled “checkLocalProofingWords”checkLocalProofingWords(request: ShellProofingWordCheckRequest): Promise<ShellProofingWordCheckResult>web_to_host_request_response · invoke · fastdoc-shell:check-local-proofing-words
clearRecentDocuments
Section titled “clearRecentDocuments”clearRecentDocuments(): Promise<{ cleared: boolean; persisted: boolean; recentDocuments: string[]; }>web_to_host_request_response · invoke · fastdoc-shell:clear-recent-documents
closeCurrentDocument
Section titled “closeCurrentDocument”closeCurrentDocument(decision: "save" | "discard"): Promise<{ closed: boolean; path: string | null; decision: "save" | "discard";}>web_to_host_request_response · invoke · fastdoc-shell:close-current-document
commitAutosaveRecovery
Section titled “commitAutosaveRecovery”commitAutosaveRecovery(request: { recoveryId: string; stagedPath: string }): Promise<ShellAutosaveRecoveryCandidate>web_to_host_request_response · invoke · fastdoc-shell:commit-autosave-recovery
commitUserTemplate
Section titled “commitUserTemplate”commitUserTemplate(request: { id: string; title: string; sourcePath: string; previewText?: string;}): ReturnType<FastDocShellApi["listFileStartTemplates"]>web_to_host_request_response · invoke · fastdoc-shell:commit-user-template
completeSaveBeforeDocumentSwitch
Section titled “completeSaveBeforeDocumentSwitch”completeSaveBeforeDocumentSwitch(result: { requestId: number; saved: boolean; savedPath: string | null; errorMessage: string | null;}): voidweb_to_host_event · send · fastdoc-shell:document-switch-save-result
configureLocalProofingProvider
Section titled “configureLocalProofingProvider”configureLocalProofingProvider(): Promise<ShellProofingProviderState>web_to_host_request_response · invoke · fastdoc-shell:configure-local-proofing-provider
createDocumentWindow
Section titled “createDocumentWindow”createDocumentWindow(): Promise<{ created: boolean; windowId: number | null; documentPath: string | null; error: string | null; windows: ShellDocumentWindowDescriptor[];}>web_to_host_request_response · invoke · fastdoc-shell:create-document-window
createEditableOdtCopy
Section titled “createEditableOdtCopy”createEditableOdtCopy(): Promise<OdtEditableCopyUiResult>web_to_host_request_response · invoke · fastdoc-shell:create-editable-odt-copy
createFromBuiltinTemplate
Section titled “createFromBuiltinTemplate”createFromBuiltinTemplate(templateId: string): Promise<{ opened: boolean; canceled: boolean; path: string | null;}>web_to_host_request_response · invoke · fastdoc-shell:create-from-builtin-template
createFromUserTemplate
Section titled “createFromUserTemplate”createFromUserTemplate(templateId: string): Promise<{ opened: boolean; canceled: boolean; path: string | null;}>web_to_host_request_response · invoke · fastdoc-shell:create-from-user-template
createQuickPartsBuildingBlock
Section titled “createQuickPartsBuildingBlock”web_to_host_request_response · invoke · fastdoc-shell:create-quick-parts-building-block
createVersionCheckpoint
Section titled “createVersionCheckpoint”createVersionCheckpoint(request: { reason: ShellVersionHistoryEntry["reason"]; name?: string | null; pinned?: boolean; recoverySessionId?: string | null;}): Promise<ShellVersionHistoryEntry>web_to_host_request_response · invoke · fastdoc-shell:create-version-checkpoint
deleteQuickPartsBuildingBlock
Section titled “deleteQuickPartsBuildingBlock”web_to_host_request_response · invoke · fastdoc-shell:delete-quick-parts-building-block
deleteUserTemplate
Section titled “deleteUserTemplate”deleteUserTemplate(templateId: string): ReturnType<FastDocShellApi["listFileStartTemplates"]>web_to_host_request_response · invoke · fastdoc-shell:delete-user-template
deleteVersion
Section titled “deleteVersion”deleteVersion(request: { versionId: string; confirmed: boolean }): Promise<{ deleted: true }>web_to_host_request_response · invoke · fastdoc-shell:delete-version
finalizeAutosaveRecovery
Section titled “finalizeAutosaveRecovery”finalizeAutosaveRecovery(request: { recoveryId: string; action: "save" | "save-as" | "discard" | "cancel"; savedPath?: string | null; }): Promise<{ finalized: boolean;preserved: boolean }>web_to_host_request_response · invoke · fastdoc-shell:finalize-autosave-recovery
focusDocumentWindow
Section titled “focusDocumentWindow”focusDocumentWindow(windowId: number): Promise<{ focused: boolean; windows: ShellDocumentWindowDescriptor[];}>web_to_host_request_response · invoke · fastdoc-shell:focus-document-window
getAutosaveRecoveryState
Section titled “getAutosaveRecoveryState”getAutosaveRecoveryState(): Promise<{ sessionId: string; settings: ShellAutosaveRecoverySettings;candidates: ShellAutosaveRecoveryCandidate[] }>web_to_host_request_response · invoke · fastdoc-shell:get-autosave-recovery-state
getDocumentWindowSession
Section titled “getDocumentWindowSession”getDocumentWindowSession(): Promise<ShellDocumentWindowSession>web_to_host_request_response · invoke · fastdoc-shell:get-document-window-session
getLocalProofingDocumentPolicy
Section titled “getLocalProofingDocumentPolicy”getLocalProofingDocumentPolicy(request: { documentPath: string }): Promise<ShellProofingDocumentPolicy>web_to_host_request_response · invoke · fastdoc-shell:get-local-proofing-document-policy
getPathForFile
Section titled “getPathForFile”getPathForFile(file: { readonly name: string }): stringa direct Electron adapter, not a core command · runs synchronously and never reaches the core
inspectEditorV0HomeFormatting
Section titled “inspectEditorV0HomeFormatting”inspectEditorV0HomeFormatting(): Promise<EditorV0HomeFormattingSnapshot>web_to_host_request_response · invoke · fastdoc-shell:inspect-editor-v0-home-formatting
inspectExternalChange
Section titled “inspectExternalChange”inspectExternalChange(request: { dirty: boolean }): Promise<ShellExternalChangePromptState>web_to_host_request_response · invoke · fastdoc-shell:inspect-external-change
invalidatePersistentEditingProductRoute
Section titled “invalidatePersistentEditingProductRoute”invalidatePersistentEditingProductRoute(reason: string): Promise<{ invalidated: true }>web_to_host_request_response · invoke · fastdoc-shell:invalidate-persistent-editing-product-route
linkVersionHistorySaveAs
Section titled “linkVersionHistorySaveAs”linkVersionHistorySaveAs(request: { previousPath: string; nextPath: string }): Promise<{ linked: true }>web_to_host_request_response · invoke · fastdoc-shell:link-version-history-save-as
listDocumentWindows
Section titled “listDocumentWindows”listDocumentWindows(): Promise<ShellDocumentWindowDescriptor[]>web_to_host_request_response · invoke · fastdoc-shell:list-document-windows
listFileStartTemplates
Section titled “listFileStartTemplates”listFileStartTemplates(): Promise<{ builtInTemplates: Array<{ id: "blank" | "letter" | "report" | "meeting-notes"; title: string; description: string; previewText: string; }>; userTemplates: Array<{ id: string; title: string; sourcePath: string; previewText: string; createdAt: string; }>;}>web_to_host_request_response · invoke · fastdoc-shell:list-file-start-templates
listQuickPartsBuildingBlocks
Section titled “listQuickPartsBuildingBlocks”web_to_host_request_response · invoke · fastdoc-shell:list-quick-parts-building-blocks
listVersionHistory
Section titled “listVersionHistory”listVersionHistory(): Promise<ShellVersionHistoryResult>web_to_host_request_response · invoke · fastdoc-shell:list-version-history
materializeDocumentPageWindow
Section titled “materializeDocumentPageWindow”materializeDocumentPageWindow(request: { path: string; pageIndex: number;}): Promise<ShellDocumentPageWindowResult>web_to_host_request_response · invoke · fastdoc-shell:materialize-document-page-window
mutateLocalProofingDictionary
Section titled “mutateLocalProofingDictionary”mutateLocalProofingDictionary(request: { action: "add" | "remove" | "reset"; word?: string | null;}): Promise<ShellProofingDictionaryResult>web_to_host_request_response · invoke · fastdoc-shell:mutate-local-proofing-dictionary
notifyCanonicalEditDropped
Section titled “notifyCanonicalEditDropped”notifyCanonicalEditDropped(payload: { code: string; requestId: string; commandType: string; }): voidweb_to_host_event · send · fastdoc-shell:canonical-edit-dropped
notifyEditKeyDropped
Section titled “notifyEditKeyDropped”notifyEditKeyDropped(payload: { code: string; inputType: string; selectionShape: string; inputRoute: string; contextRefusal: string; pressIndex: number;}): voidweb_to_host_event · send · fastdoc-shell:edit-key-dropped
notifyPageHydrationDropped
Section titled “notifyPageHydrationDropped”notifyPageHydrationDropped(payload: { code: string; stage: string }): voidweb_to_host_event · send · fastdoc-shell:page-hydration-dropped
notifyPersistentSaveRefused
Section titled “notifyPersistentSaveRefused”notifyPersistentSaveRefused(payload: { code: string; requestId: string; saveAs: boolean; }): voidweb_to_host_event · send · fastdoc-shell:persistent-save-refused
notifyUserDocumentSaved
Section titled “notifyUserDocumentSaved”notifyUserDocumentSaved(savedPath: string): Promise<{ recorded: boolean }>web_to_host_request_response · invoke · fastdoc-shell:user-document-saved
onDocumentSessionSnapshot
Section titled “onDocumentSessionSnapshot”onDocumentSessionSnapshot(callback: (snapshot: ShellDocumentSessionSnapshot) => void): () => voidhost_to_web_event · on · fastdoc-shell:document-session-snapshot
onSaveBeforeDocumentSwitch
Section titled “onSaveBeforeDocumentSwitch”onSaveBeforeDocumentSwitch(callback: (request: { requestId: number }) => void): () => voidhost_to_web_event · on · fastdoc-shell:save-before-document-switch
openMostRecentDocument
Section titled “openMostRecentDocument”openMostRecentDocument(): Promise<{ opened: boolean; canceled: boolean; path: string | null; }>web_to_host_request_response · invoke · fastdoc-shell:open-most-recent-document
openVersion
Section titled “openVersion”openVersion(request: { versionId: string; mode: "preview" | "read-only" | "compare"; }): Promise<{ opened: true; mode: "preview" | "read-only" | "compare"; snapshotPath: string;sourceHash: string }>web_to_host_request_response · invoke · fastdoc-shell:open-version
prepareAutosaveRecovery
Section titled “prepareAutosaveRecovery”prepareAutosaveRecovery(request: { recoveryId?: string | null; documentId?: string | null; displayName: string; sourcePath: string | null; serializationPath: string; }): Promise<{ recoveryId: string; documentId: string; stagingPath: string;settings: ShellAutosaveRecoverySettings }>web_to_host_request_response · invoke · fastdoc-shell:prepare-autosave-recovery
preparePersistentSaveCopyTarget
Section titled “preparePersistentSaveCopyTarget”preparePersistentSaveCopyTarget(request?: { outputKind?: string; saveAsPath?: string | null; }): Promise<{ status: "canceled" | "reserved"; canceled: boolean; path: string | null; reservationId: string | null;}>web_to_host_request_response · invoke · fastdoc-shell:prepare-persistent-save-copy-target
prepareUserTemplate
Section titled “prepareUserTemplate”prepareUserTemplate(request: { title: string; previewText?: string }): Promise<{ id: string; title: string; targetPath: string; previewText: string;}>web_to_host_request_response · invoke · fastdoc-shell:prepare-user-template
publishDocumentSessionSnapshot
Section titled “publishDocumentSessionSnapshot”publishDocumentSessionSnapshot(snapshot: ShellDocumentSessionSnapshot): Promise<{ accepted: boolean; revision: number; recipients: number;}>web_to_host_request_response · invoke · fastdoc-shell:publish-document-session-snapshot
removeRecentDocument
Section titled “removeRecentDocument”removeRecentDocument(path: string): Promise<{ removed: boolean; persisted: boolean; recentDocuments: string[];}>web_to_host_request_response · invoke · fastdoc-shell:remove-recent-document
requestDocumentWindowClose
Section titled “requestDocumentWindowClose”requestDocumentWindowClose(): Promise<{ requested: boolean; remaining: number; }>web_to_host_request_response · invoke · fastdoc-shell:request-document-window-close
resolveAutosaveRecovery
Section titled “resolveAutosaveRecovery”resolveAutosaveRecovery(request: { recoveryId: string; action: "recover" | "open-copy" | "delete" | "dismiss"; outputPath?: string | null; }): Promise<{ action: string; documentPath: string | null;candidates: ShellAutosaveRecoveryCandidate[] }>web_to_host_request_response · invoke · fastdoc-shell:resolve-autosave-recovery
resolveExternalChange
Section titled “resolveExternalChange”resolveExternalChange(request: { decision: "keep-current" | "keep-mine" | "reload-disk" | "save-mine-copy" | "compare" | "cancel"; revision: number; }): Promise<{ resolved: boolean; stale: boolean; decision: string; requiresRendererSaveAs: boolean; documentPath: string | null;}>web_to_host_request_response · invoke · fastdoc-shell:resolve-external-change
resolveFileSessionRecovery
Section titled “resolveFileSessionRecovery”resolveFileSessionRecovery(request: { decision: "recover" | "decline" | "open-original"; }): Promise<{ state: ShellFileSessionRecoveryState; recovered: boolean; declined: boolean; openedOriginal: boolean; documentPath: string | null;}>web_to_host_request_response · invoke · fastdoc-shell:resolve-file-session-recovery
restoreVersion
Section titled “restoreVersion”restoreVersion(request: { versionId: string; mode: "current" | "copy"; outputPath?: string | null; }): Promise<{ restored: boolean; canceled: boolean; mode: "current" | "copy";outputPath: string | null }>web_to_host_request_response · invoke · fastdoc-shell:restore-version
rollbackSaveAsOwnershipReservation
Section titled “rollbackSaveAsOwnershipReservation”rollbackSaveAsOwnershipReservation(request: { reservationId: string; targetPath: string;}): Promise<{ rolledBack: boolean }>web_to_host_request_response · invoke · fastdoc-shell:rollback-save-as-ownership-reservation
runDocxCompatibility
Section titled “runDocxCompatibility”runDocxCompatibility(request: { action: "check" | "inspect" | "repair-copy"; sourcePath?: string | null; selectSource?: boolean;}): Promise<ShellDocxCompatibilityOperationResult>web_to_host_request_response · invoke · fastdoc-shell:run-docx-compatibility
runEditorV0MailMergeBusiness
Section titled “runEditorV0MailMergeBusiness”runEditorV0MailMergeBusiness(request: Record<string, unknown>): Promise<Record<string, unknown>>web_to_host_request_response · invoke · fastdoc-shell:run-editor-v0-mail-merge-business
saveOdtAsDocxCopy
Section titled “saveOdtAsDocxCopy”saveOdtAsDocxCopy(): Promise<OdtDocxConversionUiResult>web_to_host_request_response · invoke · fastdoc-shell:save-odt-as-docx-copy
savePersistentEditingCheckpoint
Section titled “savePersistentEditingCheckpoint”savePersistentEditingCheckpoint(request?: { saveAs?: boolean; targetPath?: string; saveAsOwnershipReservationId?: string;}): Promise< BoundedLiveTextInsertResult | null >web_to_host_request_response · invoke · fastdoc-shell:save-persistent-editing-checkpoint
setPersistentEditingSelection
Section titled “setPersistentEditingSelection”setPersistentEditingSelection(request: SelectionUpdateRequest): Promise<SelectionUpdateReceipt>setPersistentEditingSelection(request: SelectionUpdateRequest): Promise<SelectionUpdateReceipt>web_to_host_request_response · invoke · fastdoc-shell:set-persistent-editing-selection
setRecentDocumentPinned
Section titled “setRecentDocumentPinned”setRecentDocumentPinned(path: string, pinned: boolean): Promise<{ pinned: boolean; persisted: boolean; }>web_to_host_request_response · invoke · fastdoc-shell:set-recent-document-pinned
setRestoreLastDocument
Section titled “setRestoreLastDocument”setRestoreLastDocument(enabled: boolean): Promise<{ enabled: boolean; persisted: boolean; }>web_to_host_request_response · invoke · fastdoc-shell:set-restore-last-document
updateAutosaveRecoverySettings
Section titled “updateAutosaveRecoverySettings”updateAutosaveRecoverySettings(request: Partial<Pick<ShellAutosaveRecoverySettings, "enabled" | "intervalSeconds">> & { retention?: Partial<ShellAutosaveRecoverySettings["retention"]>; }): Promise<ShellAutosaveRecoverySettings>web_to_host_request_response · invoke · fastdoc-shell:update-autosave-recovery-settings
updateQuickPartsBuildingBlock
Section titled “updateQuickPartsBuildingBlock”web_to_host_request_response · invoke · fastdoc-shell:update-quick-parts-building-block
updateVersionMetadata
Section titled “updateVersionMetadata”updateVersionMetadata(request: { versionId: string; name?: string | null; pinned?: boolean;}): Promise<ShellVersionHistoryEntry>web_to_host_request_response · invoke · fastdoc-shell:update-version-metadata