/** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { CreateNotepadRequest, CreateNotepadSnapshot201Response, CreateNotepadSnapshotRequest, ListNotepadSnapshots200Response, PutNotepadContentRequest, ResourceDetailNotepad } from '../models/index'; export type CreateNotepadOperationRequest = Omit; export type CreateNotepadSnapshotOperationRequest = Omit; export type GetNotepadContentRequest = Omit<{ resourceId: string; baseId?: string; }, 'baseId'>; export type GetNotepadSnapshotContentRequest = Omit<{ resourceId: string; snapshotId: string; baseId?: string; }, 'baseId'>; export type ListNotepadSnapshotsRequest = Omit<{ resourceId: string; baseId?: string; limit?: number; offset?: number | null; }, 'baseId'>; export type PutNotepadContentOperationRequest = Omit; export type RevertNotepadToSnapshotRequest = Omit<{ resourceId: string; snapshotId: string; baseId?: string; }, 'baseId'>; /** * */ export declare class NotepadsApi extends runtime.BaseAPI { /** * Create a new notepad resource in the specified location. * Create notepad */ createRaw(requestParameters: CreateNotepadOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Create a new notepad resource in the specified location. * Create notepad */ create(requestParameters: CreateNotepadOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Create a point-in-time snapshot of the current notepad content. Use an optional label to describe the snapshot (e.g. \"before restructure\"). Snapshots can later be used to view or revert to a previous version of the notepad. * Create notepad snapshot */ createSnapshotRaw(requestParameters: CreateNotepadSnapshotOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Create a point-in-time snapshot of the current notepad content. Use an optional label to describe the snapshot (e.g. \"before restructure\"). Snapshots can later be used to view or revert to a previous version of the notepad. * Create notepad snapshot */ createSnapshot(requestParameters: CreateNotepadSnapshotOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Retrieve the plain text content of a notepad. * Get notepad content */ getContentRaw(requestParameters: GetNotepadContentRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Retrieve the plain text content of a notepad. * Get notepad content */ getContent(requestParameters: GetNotepadContentRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Retrieve the markdown content of a notepad at a specific snapshot. Use this to inspect what the notepad looked like at a previous point in time. * Get notepad snapshot content */ getSnapshotContentRaw(requestParameters: GetNotepadSnapshotContentRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Retrieve the markdown content of a notepad at a specific snapshot. Use this to inspect what the notepad looked like at a previous point in time. * Get notepad snapshot content */ getSnapshotContent(requestParameters: GetNotepadSnapshotContentRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Retrieve a paginated list of version snapshots for a notepad, ordered by most recent first. Each snapshot represents a saved point-in-time state of the notepad content. * List notepad snapshots */ listSnapshotsRaw(requestParameters: ListNotepadSnapshotsRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Retrieve a paginated list of version snapshots for a notepad, ordered by most recent first. Each snapshot represents a saved point-in-time state of the notepad content. * List notepad snapshots */ listSnapshots(requestParameters: ListNotepadSnapshotsRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Replace the entire content of a notepad with the provided markdown. * Update notepad content */ putContentRaw(requestParameters: PutNotepadContentOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Replace the entire content of a notepad with the provided markdown. * Update notepad content */ putContent(requestParameters: PutNotepadContentOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; /** * Revert a notepad to the state captured in a specific snapshot. This replaces the current content with the snapshot content and discards all snapshots newer than the target. This action cannot be undone. * Revert notepad to snapshot */ revertToSnapshotRaw(requestParameters: RevertNotepadToSnapshotRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise>; /** * Revert a notepad to the state captured in a specific snapshot. This replaces the current content with the snapshot content and discards all snapshots newer than the target. This action cannot be undone. * Revert notepad to snapshot */ revertToSnapshot(requestParameters: RevertNotepadToSnapshotRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise; }