@squidcloud/client 1.0.495 → 1.0.497

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.
@@ -33,8 +33,9 @@ export declare class JobClient {
33
33
  */
34
34
  getJob<T = any>(jobId: JobId): Promise<AsyncJob<T> | undefined>;
35
35
  /**
36
- * Waits until the specified job finishes, then resolves with its result or
37
- * throws if the job fails.
36
+ * Waits until the specified job finishes, then resolves with its result or throws if the job
37
+ * fails. The thrown error is a {@link JobError}: check its `errorType` (e.g. `'AI_PROVIDER_ERROR'`)
38
+ * to branch on the failure kind without parsing `message`.
38
39
  *
39
40
  * @param jobId A unique, private identifier for the job.
40
41
  * Do **not** reuse a `jobId` across clients—possessing the ID
@@ -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.495";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.497";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.495",
3
+ "version": "1.0.497",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",