@eka-care/ekascribe-ts-sdk 2.1.30 → 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 +20 -1
- package/dist/index.mjs +872 -813
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -76,8 +76,9 @@ declare class EkaScribe {
|
|
|
76
76
|
dlp?: boolean;
|
|
77
77
|
onPartialResultCb?: TPartialResultCallback;
|
|
78
78
|
}): Promise<TPollingResponse>;
|
|
79
|
-
getSessionHistory({ txn_count }: {
|
|
79
|
+
getSessionHistory({ txn_count, oid }: {
|
|
80
80
|
txn_count: number;
|
|
81
|
+
oid?: string;
|
|
81
82
|
}): Promise<TGetTransactionHistoryResponse>;
|
|
82
83
|
deleteSession({ txn_id }: {
|
|
83
84
|
txn_id: string;
|
|
@@ -127,6 +128,8 @@ declare class EkaScribe {
|
|
|
127
128
|
createDocument(request: TPostV1DocumentRequest): Promise<TPostV1DocumentResponse>;
|
|
128
129
|
deleteDocument(document_id: string): Promise<TDeleteV1DocumentResponse>;
|
|
129
130
|
getChunkTranscript(txnId: string, chunkNumber: string): Promise<TFetchChunkTranscriptResult>;
|
|
131
|
+
addSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
132
|
+
removeSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
export declare enum ERROR_CODE {
|
|
@@ -487,6 +490,7 @@ declare type TOutputSummary = {
|
|
|
487
490
|
errors?: TTemplateMessage[];
|
|
488
491
|
warnings?: TTemplateMessage[];
|
|
489
492
|
document_id: string;
|
|
493
|
+
document_type: string;
|
|
490
494
|
document_path: {
|
|
491
495
|
bucket: string;
|
|
492
496
|
folder: string;
|
|
@@ -502,6 +506,20 @@ export declare type TPartialResultCallback = (data: {
|
|
|
502
506
|
poll_status: 'in-progress' | 'success' | 'failed' | 'timeout';
|
|
503
507
|
}) => void;
|
|
504
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
|
+
|
|
505
523
|
declare type TPatchTransactionError = {
|
|
506
524
|
error: {
|
|
507
525
|
type: string;
|
|
@@ -681,6 +699,7 @@ export declare type TPostV1ConvertToTemplateResponse = {
|
|
|
681
699
|
export declare type TPostV1DocumentRequest = {
|
|
682
700
|
session_id: string;
|
|
683
701
|
document_name: string;
|
|
702
|
+
type?: string;
|
|
684
703
|
};
|
|
685
704
|
|
|
686
705
|
export declare type TPostV1DocumentResponse = {
|