Перейти к содержимому
FastOffice

Generated Session TypeScript

31 сгенерированный тип сессии: то, что описывает wire-формат Rust Session Protocol.

SessionCommandName · apps/fastdoc-shell/src/generated/session-protocol.ts:6
type SessionCommandName = "apply-composition" | "apply-text-transaction" | "commit-snapshot" | "commit-structural-snapshot" | "compatibility-inspect" | "compose" | "model" | "mutate" | "open" | "paginate" | "ping" | "print" | "print-delta" | "print-summary" | "print-window" | "redo" | "report" | "review" | "save" | "save-checkpoint" | "set-selection" | "shutdown" | "simple-field-inventory" | "squash-history" | "status" | "style" | "track-revisions-state" | "undo";
SessionApplyCompositionRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:36
interface SessionApplyCompositionRequest {
cmd: "apply-composition";
id?: unknown;
request: unknown;
}
SessionApplyTextTransactionRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:44
interface SessionApplyTextTransactionRequest {
cmd: "apply-text-transaction";
id?: unknown;
request: unknown;
}
SessionCommitSnapshotRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:52
interface SessionCommitSnapshotRequest {
cmd: "commit-snapshot";
id?: unknown;
document_id: string;
path: string;
transaction_order: number;
transition_kind: string;
}
SessionCommitStructuralSnapshotRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:62
interface SessionCommitStructuralSnapshotRequest {
cmd: "commit-structural-snapshot";
id?: unknown;
path: string;
request: unknown;
}
SessionCompatibilityInspectRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:71
interface SessionCompatibilityInspectRequest {
cmd: "compatibility-inspect";
id?: unknown;
}
SessionComposeRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:77
interface SessionComposeRequest {
cmd: "compose";
id?: unknown;
}
SessionModelRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:83
interface SessionModelRequest {
cmd: "model";
id?: unknown;
}
SessionMutateRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:89
interface SessionMutateRequest {
cmd: "mutate";
id?: unknown;
after_caret_slot_index?: number | null;
before_caret_slot_index?: number | null;
before_selection_end_slot_index?: number | null;
before_selection_start_slot_index?: number | null;
delete_count?: number;
document_id?: string | null;
offset?: number;
operation_kind: string;
paragraph_index: number;
revision_author?: string | null;
revision_date?: string | null;
revision_date_utc?: string | null;
text?: string | null;
transaction_order?: number;
transition_kind?: string | null;
}
SessionOpenRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:110
interface SessionOpenRequest {
cmd: "open";
id?: unknown;
document_id?: string | null;
path: string;
}
SessionPaginateRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:118
interface SessionPaginateRequest {
cmd: "paginate";
id?: unknown;
}
SessionPingRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:124
interface SessionPingRequest {
cmd: "ping";
id?: unknown;
}
SessionPrintRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:130
interface SessionPrintRequest {
cmd: "print";
id?: unknown;
tracked_change_markup_mode?: string | null;
}
SessionPrintDeltaRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:138
interface SessionPrintDeltaRequest {
cmd: "print-delta";
id?: unknown;
known_fingerprints?: unknown[];
tracked_change_markup_mode?: string | null;
}
SessionPrintSummaryRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:148
interface SessionPrintSummaryRequest {
cmd: "print-summary";
id?: unknown;
}
SessionPrintWindowRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:154
interface SessionPrintWindowRequest {
cmd: "print-window";
id?: unknown;
include_page_stack?: boolean;
page_indexes: unknown[];
}
SessionRedoRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:164
interface SessionRedoRequest {
cmd: "redo";
id?: unknown;
document_id?: string | null;
transaction_order?: number;
}
SessionReportRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:172
interface SessionReportRequest {
cmd: "report";
id?: unknown;
}
SessionReviewRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:178
interface SessionReviewRequest {
cmd: "review";
id?: unknown;
}
SessionSaveRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:184
interface SessionSaveRequest {
cmd: "save";
id?: unknown;
path?: string | null;
}
SessionSaveCheckpointRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:191
interface SessionSaveCheckpointRequest {
cmd: "save-checkpoint";
id?: unknown;
expected_revision: number;
request_id: string;
session_id: string;
target: unknown;
}
SessionSetSelectionRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:201
interface SessionSetSelectionRequest {
cmd: "set-selection";
id?: unknown;
request: unknown;
}
SessionShutdownRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:209
interface SessionShutdownRequest {
cmd: "shutdown";
id?: unknown;
}
SessionSimpleFieldInventoryRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:215
interface SessionSimpleFieldInventoryRequest {
cmd: "simple-field-inventory";
id?: unknown;
}
SessionSquashHistoryRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:221
interface SessionSquashHistoryRequest {
cmd: "squash-history";
id?: unknown;
base_undo_depth: number;
document_id: string;
transition_kind?: string | null;
}
SessionStatusRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:230
interface SessionStatusRequest {
cmd: "status";
id?: unknown;
}
SessionStyleRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:236
interface SessionStyleRequest {
cmd: "style";
id?: unknown;
}
SessionTrackRevisionsStateRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:242
interface SessionTrackRevisionsStateRequest {
cmd: "track-revisions-state";
id?: unknown;
}
SessionUndoRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:248
interface SessionUndoRequest {
cmd: "undo";
id?: unknown;
document_id?: string | null;
transaction_order?: number;
}
SessionRequest · apps/fastdoc-shell/src/generated/session-protocol.ts:256
type SessionRequest = SessionApplyCompositionRequest | SessionApplyTextTransactionRequest | SessionCommitSnapshotRequest | SessionCommitStructuralSnapshotRequest | SessionCompatibilityInspectRequest | SessionComposeRequest | SessionModelRequest | SessionMutateRequest | SessionOpenRequest | SessionPaginateRequest | SessionPingRequest | SessionPrintRequest | SessionPrintDeltaRequest | SessionPrintSummaryRequest | SessionPrintWindowRequest | SessionRedoRequest | SessionReportRequest | SessionReviewRequest | SessionSaveRequest | SessionSaveCheckpointRequest | SessionSetSelectionRequest | SessionShutdownRequest | SessionSimpleFieldInventoryRequest | SessionSquashHistoryRequest | SessionStatusRequest | SessionStyleRequest | SessionTrackRevisionsStateRequest | SessionUndoRequest;
SessionResponse · apps/fastdoc-shell/src/generated/session-protocol.ts:286
interface SessionResponse {
cmd?: string;
elapsed_ms?: number;
error?: string;
id?: unknown;
ok?: boolean;
result?: unknown;
}

Ассистент документации

Ответ собран из документации и может быть неточным — сверяйтесь с источниками.