@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.
@@ -159,6 +159,7 @@ export interface AiChatbotContextBase {
159
159
  type: AiChatbotContextType;
160
160
  data: string;
161
161
  metadata?: AiContextMetadata;
162
+ password?: string;
162
163
  }
163
164
  export interface AiSearchResponse {
164
165
  chunks: Array<AiSearchResultChunk>;
@@ -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.279";
1
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.280";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.279",
3
+ "version": "1.0.280",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",