@squidcloud/client
Advanced tools
@@ -27,3 +27,3 @@ import { UserAiChatModelName } from './backend.public-types'; | ||
| */ | ||
| export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro"]; | ||
| export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro", "gpt-5.4"]; | ||
| /** | ||
@@ -48,3 +48,3 @@ * Public Gemini chat model names (active models only). | ||
| */ | ||
| 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"]; | ||
| 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"]; | ||
| /** Checks if the given model name is a global AI chat model name. */ | ||
@@ -51,0 +51,0 @@ export declare function isVendorAiChatModelName(modelName: unknown): modelName is VendorAiChatModelName; |
@@ -382,8 +382,9 @@ import { AgentContextRequest, AiChatModelSelection, UpsertContextStatusError } from './ai-agent.public-types'; | ||
| /** | ||
| * KnowledgeBase with optional chatModel param, used during upsert | ||
| * KnowledgeBase with optional fields, used during upsert | ||
| * @category AI | ||
| */ | ||
| export type AiKnowledgeBaseWithOptionalChatModel = Omit<AiKnowledgeBase, 'chatModel'> & { | ||
| export type AiEmbeddingsModelWithOptionalFields = Omit<AiKnowledgeBase, 'chatModel' | 'embeddingModel'> & { | ||
| chatModel?: AiKnowledgeBase['chatModel']; | ||
| name?: string; | ||
| embeddingModel?: AiEmbeddingsModelSelection; | ||
| }; | ||
@@ -404,3 +405,3 @@ /** | ||
| /** The AiKnowledgeBase to upsert */ | ||
| knowledgeBase: Omit<AiKnowledgeBaseWithOptionalChatModel, 'appId' | 'updatedAt'>; | ||
| knowledgeBase: Omit<AiEmbeddingsModelWithOptionalFields, 'appId' | 'updatedAt'>; | ||
| } | ||
@@ -407,0 +408,0 @@ /** |
@@ -39,3 +39,3 @@ import { Observable } from 'rxjs'; | ||
| /** | ||
| * Lists all available AI agents. | ||
| * Lists all available AI Knowledge Bases. | ||
| */ | ||
@@ -42,0 +42,0 @@ listKnowledgeBases(): Promise<Array<AiKnowledgeBase>>; |
@@ -1,2 +0,2 @@ | ||
| import { AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, AiKnowledgeBaseWithOptionalChatModel, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types'; | ||
| import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types'; | ||
| import { AiContextId } from '../../../internal-common/src/public-types/communication.public-types'; | ||
@@ -30,3 +30,3 @@ /** | ||
| */ | ||
| upsertKnowledgeBase(knowledgeBase: Omit<AiKnowledgeBaseWithOptionalChatModel, 'id' | 'appId' | 'updatedAt'>): Promise<void>; | ||
| upsertKnowledgeBase(knowledgeBase: Omit<AiEmbeddingsModelWithOptionalFields, 'id' | 'appId' | 'updatedAt'>): Promise<void>; | ||
| /** | ||
@@ -33,0 +33,0 @@ * Deletes the AI knowledge base. |
@@ -8,2 +8,7 @@ import { Observable } from 'rxjs'; | ||
| /** | ||
| * The maximum time to wait for the lock to be acquired on the server. | ||
| * @default 2000. | ||
| */ | ||
| acquisitionTimeoutMillis?: number; | ||
| /** | ||
| * The maximum time the lock can be held before it is automatically released. | ||
@@ -10,0 +15,0 @@ * If not specified, the lock will be held until explicitly released or the connection is lost. |
@@ -5,2 +5,2 @@ /** | ||
| */ | ||
| export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.450"; | ||
| export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.451"; |
+4
-6
| { | ||
| "name": "@squidcloud/client", | ||
| "version": "1.0.450", | ||
| "version": "1.0.451", | ||
| "description": "A typescript implementation of the Squid client", | ||
@@ -22,7 +22,5 @@ "main": "dist/cjs/index.js", | ||
| "check-bundle-size": "node check-bundle-size.js", | ||
| "test": "jest --detectOpenHandles", | ||
| "test:watch": "jest --watch", | ||
| "test:cov": "jest --coverage", | ||
| "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", | ||
| "test:e2e": "jest --config ./test/jest-e2e.json", | ||
| "test": "vitest run", | ||
| "test:watch": "vitest watch", | ||
| "test:cov": "vitest run --coverage", | ||
| "publish:public": "npm run build && npm publish --access public", | ||
@@ -29,0 +27,0 @@ "full-bundle-size-report": "cross-env BUILD_FULL_BUNDLE_SIZE_REPORT=1 webpack --mode=production", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
664125
07493
0.07%100
-0.99%