@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.
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/internal-common/src/metric-name.d.ts +1 -1
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +20 -10
- package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +8 -3
- package/dist/internal-common/src/public-types/ai-function.public-types.d.ts +11 -1
- package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +86 -19
- package/dist/internal-common/src/public-types/ai-voice.public-types.d.ts +8 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/job.public-types.d.ts +14 -0
- package/dist/internal-common/src/types/ai-knowledge-base.types.d.ts +104 -0
- package/dist/internal-common/src/types/observability.types.d.ts +19 -0
- package/dist/internal-common/src/types/query.types.d.ts +6 -0
- package/dist/internal-common/src/utils/http.d.ts +1 -21
- package/dist/internal-common/src/utils/object.d.ts +2 -0
- package/dist/internal-common/src/utils/serialization.d.ts +6 -0
- package/dist/typescript-client/src/ai-knowledge-base/ai-knowledge-base-client-reference.d.ts +3 -3
- package/dist/typescript-client/src/job-client.d.ts +3 -2
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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
|