@eka-care/ekascribe-ts-sdk 2.1.31 → 2.1.32
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/index.d.ts +18 -0
- package/dist/index.mjs +854 -797
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,8 @@ declare class EkaScribe {
|
|
|
128
128
|
createDocument(request: TPostV1DocumentRequest): Promise<TPostV1DocumentResponse>;
|
|
129
129
|
deleteDocument(document_id: string): Promise<TDeleteV1DocumentResponse>;
|
|
130
130
|
getChunkTranscript(txnId: string, chunkNumber: string): Promise<TFetchChunkTranscriptResult>;
|
|
131
|
+
addSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
132
|
+
removeSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
export declare enum ERROR_CODE {
|
|
@@ -488,6 +490,7 @@ declare type TOutputSummary = {
|
|
|
488
490
|
errors?: TTemplateMessage[];
|
|
489
491
|
warnings?: TTemplateMessage[];
|
|
490
492
|
document_id: string;
|
|
493
|
+
document_type: string;
|
|
491
494
|
document_path: {
|
|
492
495
|
bucket: string;
|
|
493
496
|
folder: string;
|
|
@@ -503,6 +506,20 @@ export declare type TPartialResultCallback = (data: {
|
|
|
503
506
|
poll_status: 'in-progress' | 'success' | 'failed' | 'timeout';
|
|
504
507
|
}) => void;
|
|
505
508
|
|
|
509
|
+
export declare type TPatchSessionContextRequest = {
|
|
510
|
+
txn_id: string;
|
|
511
|
+
context: {
|
|
512
|
+
past_sessions?: string[];
|
|
513
|
+
attachments?: string[];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
export declare type TPatchSessionContextResponse = {
|
|
518
|
+
code: number;
|
|
519
|
+
message?: string;
|
|
520
|
+
[key: string]: unknown;
|
|
521
|
+
};
|
|
522
|
+
|
|
506
523
|
declare type TPatchTransactionError = {
|
|
507
524
|
error: {
|
|
508
525
|
type: string;
|
|
@@ -682,6 +699,7 @@ export declare type TPostV1ConvertToTemplateResponse = {
|
|
|
682
699
|
export declare type TPostV1DocumentRequest = {
|
|
683
700
|
session_id: string;
|
|
684
701
|
document_name: string;
|
|
702
|
+
type?: string;
|
|
685
703
|
};
|
|
686
704
|
|
|
687
705
|
export declare type TPostV1DocumentResponse = {
|