@squidcloud/client 1.0.347 → 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
  */
@@ -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.347";
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.347",
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",