/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import type { IDescriptorBody } from '../../descriptor'; import Message, { type IMessage } from './../../message'; export interface IGetDocumentDetailsResponse extends IMessage { lastDocumentSessionId?: string; lastDocumentSessionOperationId?: string; currentDocumentSessionId?: string; currentDocumentSessionVersion?: number; currentDocumentSessionOperationId?: string; } export interface ICurrentDocumentSession { lastOperationId?: string; version?: number; id?: string; } export interface ILastDocumentSession { id?: string; lastOperationId?: string; } export default class GetDocumentDetailsResponse extends Message { readonly lastDocumentSession?: ILastDocumentSession | undefined; readonly currentDocumentSession?: ICurrentDocumentSession | undefined; static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; constructor(lastDocumentSession?: ILastDocumentSession | undefined, currentDocumentSession?: ICurrentDocumentSession | undefined); get data(): IGetDocumentDetailsResponse; toJSON(): IGetDocumentDetailsResponse; static fromJSON(data: IGetDocumentDetailsResponse): GetDocumentDetailsResponse; }