@squidcloud/client 1.0.450 → 1.0.451

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.
@@ -24,7 +24,7 @@ export type AiFileProviderType = Extract<AiProviderType, 'openai' | 'gemini' | '
24
24
  * Public OpenAI chat model names (active models only).
25
25
  * @category AI
26
26
  */
27
- export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro"];
27
+ export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro", "gpt-5.4"];
28
28
  /**
29
29
  * Public Gemini chat model names (active models only).
30
30
  * @category AI
@@ -44,7 +44,7 @@ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-haiku-4-5-202
44
44
  * The supported AI model names.
45
45
  * @category AI
46
46
  */
47
- export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro", "claude-haiku-4-5-20251001", "claude-opus-4-6", "claude-sonnet-4-6", "gemini-3-pro", "gemini-3-flash", "grok-4", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
47
+ export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro", "gpt-5.4", "claude-haiku-4-5-20251001", "claude-opus-4-6", "claude-sonnet-4-6", "gemini-3-pro", "gemini-3-flash", "grok-4", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
48
48
  /** Checks if the given model name is a global AI chat model name. */
49
49
  export declare function isVendorAiChatModelName(modelName: unknown): modelName is VendorAiChatModelName;
50
50
  /**
@@ -379,12 +379,13 @@ export interface AiKnowledgeBaseDownloadContextResponse {
379
379
  url?: string;
380
380
  }
381
381
  /**
382
- * KnowledgeBase with optional chatModel param, used during upsert
382
+ * KnowledgeBase with optional fields, used during upsert
383
383
  * @category AI
384
384
  */
385
- export type AiKnowledgeBaseWithOptionalChatModel = Omit<AiKnowledgeBase, 'chatModel'> & {
385
+ export type AiEmbeddingsModelWithOptionalFields = Omit<AiKnowledgeBase, 'chatModel' | 'embeddingModel'> & {
386
386
  chatModel?: AiKnowledgeBase['chatModel'];
387
387
  name?: string;
388
+ embeddingModel?: AiEmbeddingsModelSelection;
388
389
  };
389
390
  /**
390
391
  * API request for deleting an AiKnowledgeBase
@@ -400,7 +401,7 @@ export interface DeleteAiKnowledgeBaseRequest {
400
401
  */
401
402
  export interface UpsertAiKnowledgeBaseRequest {
402
403
  /** The AiKnowledgeBase to upsert */
403
- knowledgeBase: Omit<AiKnowledgeBaseWithOptionalChatModel, 'appId' | 'updatedAt'>;
404
+ knowledgeBase: Omit<AiEmbeddingsModelWithOptionalFields, 'appId' | 'updatedAt'>;
404
405
  }
405
406
  /**
406
407
  * API request for deleting AiKnowledgeBaseContexts
@@ -36,7 +36,7 @@ export declare class AiClient {
36
36
  */
37
37
  listAgents(): Promise<Array<AiAgent>>;
38
38
  /**
39
- * Lists all available AI agents.
39
+ * Lists all available AI Knowledge Bases.
40
40
  */
41
41
  listKnowledgeBases(): Promise<Array<AiKnowledgeBase>>;
42
42
  /**
@@ -1,4 +1,4 @@
1
- import { AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
1
+ import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
2
2
  import { AiContextId } from '../../../internal-common/src/public-types/communication.public-types';
3
3
  /**
4
4
  * Parameters for creating or updating an AI agent.
@@ -27,7 +27,7 @@ export declare class AiKnowledgeBaseReference {
27
27
  * Upserts the AI knowledge base.
28
28
  * @param knowledgeBase
29
29
  */
30
- upsertKnowledgeBase(knowledgeBase: Omit<AiKnowledgeBaseWithOptionalChatModel, 'id' | 'appId' | 'updatedAt'>): Promise<void>;
30
+ upsertKnowledgeBase(knowledgeBase: Omit<AiEmbeddingsModelWithOptionalFields, 'id' | 'appId' | 'updatedAt'>): Promise<void>;
31
31
  /**
32
32
  * Deletes the AI knowledge base.
33
33
  * @returns A promise that resolves when the deletion is complete.
@@ -4,6 +4,11 @@ import { Observable } from 'rxjs';
4
4
  * @category Platform
5
5
  */
6
6
  export interface DistributedLockOptions {
7
+ /**
8
+ * The maximum time to wait for the lock to be acquired on the server.
9
+ * @default 2000.
10
+ */
11
+ acquisitionTimeoutMillis?: number;
7
12
  /**
8
13
  * The maximum time the lock can be held before it is automatically released.
9
14
  * If not specified, the lock will be held until explicitly released or the connection is lost.
@@ -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.450";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.451";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.450",
3
+ "version": "1.0.451",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -19,11 +19,9 @@
19
19
  "keep-only-public-types": "del-cli 'dist/internal-common/src/**' '!dist/internal-common/src/public-types' '!dist/internal-common/src/public-utils'",
20
20
  "check-public-types": "tsc -p tsconfig.types.json",
21
21
  "check-bundle-size": "node check-bundle-size.js",
22
- "test": "jest --detectOpenHandles",
23
- "test:watch": "jest --watch",
24
- "test:cov": "jest --coverage",
25
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
26
- "test:e2e": "jest --config ./test/jest-e2e.json",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest watch",
24
+ "test:cov": "vitest run --coverage",
27
25
  "publish:public": "npm run build && npm publish --access public",
28
26
  "full-bundle-size-report": "cross-env BUILD_FULL_BUNDLE_SIZE_REPORT=1 webpack --mode=production",
29
27
  "generate-docs-html": "typedoc",