@squidcloud/slack-client 1.0.442 → 1.0.444

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.
@@ -324,7 +324,7 @@ export interface AiAgentExecutionPlanOptions {
324
324
  /** Whether to enable an execution plan for the agent. */
325
325
  enabled: boolean;
326
326
  /** The model to use for the execution plan - defaults to the model used by the agent. */
327
- model?: AiChatModelName;
327
+ model?: AiChatModelSelection;
328
328
  /** In case the model supports reasoning, this will control the level of effort - defaults to `high`. */
329
329
  reasoningEffort?: AiReasoningEffort;
330
330
  /**
@@ -557,7 +557,7 @@ export interface AnthropicChatOptions extends BaseAiChatOptions {
557
557
  * the type is inferred from the provided overrideModel (or falls back to BaseAiAgentChatOptions).
558
558
  * @category AI
559
559
  */
560
- export type AiChatOptions<T extends AiChatModelName | undefined = undefined> = T extends undefined ? BaseAiChatOptions | GeminiChatOptions | OpenAiChatOptions | AnthropicChatOptions : T extends GeminiChatModelName ? GeminiChatOptions : T extends OpenAiChatModelName ? OpenAiChatOptions : T extends AnthropicChatModelName ? AnthropicChatOptions : T extends GrokChatModelName ? GrokChatOptions : never;
560
+ export type AiChatOptions<T extends AiChatModelSelection | undefined = undefined> = T extends undefined ? BaseAiChatOptions | GeminiChatOptions | OpenAiChatOptions | AnthropicChatOptions : T extends GeminiChatModelName ? GeminiChatOptions : T extends OpenAiChatModelName ? OpenAiChatOptions : T extends AnthropicChatModelName ? AnthropicChatOptions : T extends GrokChatModelName ? GrokChatOptions : BaseAiChatOptions;
561
561
  /**
562
562
  * @category AI
563
563
  */
@@ -568,7 +568,7 @@ export type AllAiAgentChatOptions = {
568
568
  * A definition of an AI agent with its properties and default chat options.
569
569
  * @category AI
570
570
  */
571
- export interface AiAgent<T extends AiChatModelName | undefined = undefined> {
571
+ export interface AiAgent<T extends AiChatModelSelection | undefined = undefined> {
572
572
  /** The unique identifier of the AI agent. */
573
573
  id: AiAgentId;
574
574
  /** The date and time the agent was created. */
@@ -773,7 +773,7 @@ export interface FileContextRequest extends BaseContextRequest {
773
773
  /** The minimum size for extracted images, if applicable. */
774
774
  imageMinSizePixels?: number;
775
775
  /** The AI model to use for extraction, if specified. */
776
- extractionModel?: AiChatModelName;
776
+ extractionModel?: AiChatModelSelection;
777
777
  /** General options for how to process the file. */
778
778
  options?: AiContextFileOptions;
779
779
  /** The preferred method for extracting data from the document. */
@@ -8,7 +8,7 @@ export declare const RERANK_PROVIDERS: readonly ["cohere", "none"];
8
8
  */
9
9
  export type AiRerankProvider = (typeof RERANK_PROVIDERS)[number];
10
10
  /** List of available AI provider types. See AiProviderType. */
11
- export declare const AI_PROVIDER_TYPES: readonly ["anthropic", "bedrock", "claude-code", "flux", "gemini", "openai", "grok", "stability", "voyage", "mistral", "textract", "external"];
11
+ export declare const AI_PROVIDER_TYPES: readonly ["anthropic", "bedrock", "claude-code", "cohere", "flux", "gemini", "openai", "grok", "stability", "voyage", "mistral", "textract", "external"];
12
12
  /**
13
13
  * Type of the AI provider.
14
14
  * References a single AI service, regardless of the model or other AI function it provides (like
@@ -181,6 +181,13 @@ export type StableDiffusionModelName = (typeof STABLE_DIFFUSION_MODEL_NAMES)[num
181
181
  * @category AI
182
182
  */
183
183
  export type FluxModelName = (typeof FLUX_MODEL_NAMES)[number];
184
+ /** Represents an AI model. */
185
+ export interface ModelIdSpec {
186
+ /** The model ID used for API calls. */
187
+ modelId: AiChatModelName;
188
+ /** The integration ID if this model comes from an integration (OpenAI-compatible, Bedrock). Is undefined for Squid-provided models. */
189
+ integrationId?: string;
190
+ }
184
191
  /**
185
192
  * Type guard to check if a model selection is integration-based.
186
193
  * @category AI
@@ -1,5 +1,5 @@
1
- import { AgentContextRequest, UpsertContextStatusError } from './ai-agent.public-types';
2
- import { AiChatModelName, AiEmbeddingsModelName, AiRerankProvider } from './ai-common.public-types';
1
+ import { AgentContextRequest, AiChatModelSelection, UpsertContextStatusError } from './ai-agent.public-types';
2
+ import { AiEmbeddingsModelName, AiRerankProvider } from './ai-common.public-types';
3
3
  import { AiContextId, AiKnowledgeBaseId, AppId } from './communication.public-types';
4
4
  import { DocumentExtractionMethod } from './extraction.public-types';
5
5
  /**
@@ -18,7 +18,7 @@ export interface AiKnowledgeBase {
18
18
  /** The embedding model name that should be used for this knowledge base.*/
19
19
  embeddingModel: AiEmbeddingsModelName;
20
20
  /** The model name that should be used when asking questions of this knowledge base. */
21
- chatModel: AiChatModelName;
21
+ chatModel: AiChatModelSelection;
22
22
  /** The timestamp the knowledge base was last updated */
23
23
  updatedAt: Date;
24
24
  }
@@ -125,7 +125,7 @@ export interface AiKnowledgeBaseChatOptions {
125
125
  /** How many chunks to look over. Defaults to 100 */
126
126
  chunkLimit?: number;
127
127
  /** Which chat model to use when asking the question */
128
- chatModel?: AiChatModelName;
128
+ chatModel?: AiChatModelSelection;
129
129
  }
130
130
  /**
131
131
  * @category AI
@@ -216,7 +216,7 @@ export interface AiKnowledgeBaseFileContextRequest extends BaseAiKnowledgeBaseCo
216
216
  /** The minimum size for extracted images, if applicable. */
217
217
  imageMinSizePixels?: number;
218
218
  /** The AI model to use for extraction, if specified. */
219
- imageExtractionModel?: AiChatModelName;
219
+ imageExtractionModel?: AiChatModelSelection;
220
220
  /** General options for how to process the file. */
221
221
  options?: AiKnowledgeBaseContextFileOptions;
222
222
  /** The preferred method for extracting data from the document. */
@@ -262,7 +262,7 @@ export interface AiKnowledgeBaseSearchOptions {
262
262
  /** How many chunks to look over. Defaults to 100 */
263
263
  chunkLimit?: number;
264
264
  /** Which chat model to use when asking the question */
265
- chatModel?: string;
265
+ chatModel?: AiChatModelSelection;
266
266
  }
267
267
  /**
268
268
  * A single chunk of data returned from an AI search operation.
@@ -320,7 +320,7 @@ export interface BaseAiKnowledgeBaseSearchContextsRequest {
320
320
  /** Whether to rerank the results with AI and provide reasoning - defaults to true */
321
321
  rerank?: boolean;
322
322
  /** Which chat model to use when doing reranking */
323
- chatModel?: string;
323
+ chatModel?: AiChatModelSelection;
324
324
  }
325
325
  /**
326
326
  * Request structure for searching AI contexts in the AiKnowledgeBase with prompt.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/slack-client",
3
- "version": "1.0.442",
3
+ "version": "1.0.444",
4
4
  "description": "Squid Slack Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/client/src/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "assertic": "^1.3.0",
21
21
  "lodash": "^4.17.21",
22
- "@squidcloud/client": "^1.0.442",
22
+ "@squidcloud/client": "^1.0.444",
23
23
  "@slack/bolt": "^4.5.0"
24
24
  },
25
25
  "engines": {