@squidcloud/client 1.0.279 → 1.0.280
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/cjs/index.js +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/extraction.public-types.d.ts +5 -0
- package/dist/typescript-client/src/extraction-client.d.ts +2 -2
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export type DocumentFileDataType = 'image';
|
|
2
|
+
export interface ExtractDataFromDocumentFileOptions {
|
|
3
|
+
password?: string;
|
|
4
|
+
}
|
|
2
5
|
export interface DocumentFileData {
|
|
3
6
|
type: DocumentFileDataType;
|
|
4
7
|
pathInBucket: string;
|
|
5
8
|
}
|
|
6
9
|
export interface DocumentPageData {
|
|
10
|
+
title?: string;
|
|
7
11
|
text: string;
|
|
8
12
|
fileDataList: DocumentFileData[];
|
|
9
13
|
}
|
|
@@ -13,6 +17,7 @@ export interface ExtractDataFromDocumentResponse {
|
|
|
13
17
|
}
|
|
14
18
|
export interface TextOnlyPageData {
|
|
15
19
|
text: string;
|
|
20
|
+
title?: string;
|
|
16
21
|
}
|
|
17
22
|
export interface DocumentTextDataResponse {
|
|
18
23
|
pages: TextOnlyPageData[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlobAndFilename } from './types';
|
|
2
|
-
import { DocumentTextDataResponse } from '../../internal-common/src/public-types/extraction.public-types';
|
|
2
|
+
import { DocumentTextDataResponse, ExtractDataFromDocumentFileOptions } from '../../internal-common/src/public-types/extraction.public-types';
|
|
3
3
|
export declare class ExtractionClient {
|
|
4
4
|
private readonly rpcManager;
|
|
5
|
-
extractDataFromDocumentFile(file: File | BlobAndFilename): Promise<DocumentTextDataResponse>;
|
|
5
|
+
extractDataFromDocumentFile(file: File | BlobAndFilename, options?: ExtractDataFromDocumentFileOptions): Promise<DocumentTextDataResponse>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.280";
|