@squidcloud/client 1.0.346 → 1.0.348

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.
@@ -9,11 +9,11 @@ export declare const OPENAI_O1_CHAT_MODEL_NAMES: readonly ["o1", "o1-mini"];
9
9
  /**
10
10
  * @category AI
11
11
  */
12
- export declare const OPENAI_REASONING_CHAT_MODEL_NAMES: readonly ["o1", "o1-mini", "o3-mini"];
12
+ export declare const OPENAI_REASONING_CHAT_MODEL_NAMES: readonly ["o1", "o1-mini", "o3", "o3-mini", "o4-mini"];
13
13
  /**
14
14
  * @category AI
15
15
  */
16
- export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3-mini"];
16
+ export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3", "o3-mini", "o4-mini"];
17
17
  /**
18
18
  * @category AI
19
19
  */
@@ -26,7 +26,7 @@ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-5-haiku-lat
26
26
  * The supported AI model names.
27
27
  * @category AI
28
28
  */
29
- export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "gemini-1.5-pro", "gemini-2.0-flash"];
29
+ export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3", "o3-mini", "o4-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "gemini-1.5-pro", "gemini-2.0-flash"];
30
30
  /**
31
31
  * @category AI
32
32
  */
@@ -1,3 +1,7 @@
1
+ /**
2
+ * The extraction method to use for processing documents.
3
+ */
4
+ export type DocumentExtractionMethod = 'mistral_ocr' | 'legacy';
1
5
  /**
2
6
  * Options for customizing how data is extracted from a document.
3
7
  */
@@ -14,6 +18,10 @@ export interface ExtractDataFromDocumentOptions {
14
18
  * Specific page indexes to extract from the document (0-based). If omitted, all pages are extracted.
15
19
  */
16
20
  pageIndexes?: number[];
21
+ /**
22
+ * The preferred method for extracting data from the document.
23
+ */
24
+ preferredExtractionMethod?: DocumentExtractionMethod;
17
25
  }
18
26
  /**
19
27
  * Request payload for extracting data from a document via URL.
@@ -1 +1,2 @@
1
+ export declare const KOTLIN_CONTROLLERS: string[];
1
2
  export declare function getApplicationUrl(regionPrefix: string, appId: string, path: string): string;
@@ -3,3 +3,25 @@
3
3
  * @category Database
4
4
  */
5
5
  export type TransactionId = string;
6
+ /**
7
+ * Represents an error thrown during an RPC (Remote Procedure Call) made by the Squid SDK.
8
+ *
9
+ * This error contains detailed HTTP-level information such as the status code, response body,
10
+ * headers, and the request URL, allowing for better debugging and error handling in client code.
11
+ */
12
+ export declare class SquidClientError<BodyType = unknown> extends Error {
13
+ readonly statusCode: number;
14
+ readonly url?: string | undefined;
15
+ readonly headers?: Record<string, string> | undefined;
16
+ readonly body?: BodyType | undefined;
17
+ /**
18
+ * Creates a new `SquidClientError` instance.
19
+ *
20
+ * @param message - A custom error message.
21
+ * @param statusCode - The HTTP status code returned by the server (e.g., 400, 403, 422).
22
+ * @param url - The URL that was called when the error occurred.
23
+ * @param headers - The HTTP response headers.
24
+ * @param body - The parsed body of the error response.
25
+ */
26
+ constructor(message: string, statusCode: number, url?: string | undefined, headers?: Record<string, string> | undefined, body?: BodyType | undefined);
27
+ }
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.346";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.348";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.346",
3
+ "version": "1.0.348",
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",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "optionalDependencies": {
46
46
  "bufferutil": "^4.0.8",
47
- "utf-8-validate": "^6.0.4"
47
+ "utf-8-validate": "^6.0.5"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "rxjs": ">=7.5.7 <8.0.0"