@squidcloud/slack-client 1.0.413 → 1.0.414

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.
@@ -269,6 +269,22 @@ export interface AiAgentMemoryOptions {
269
269
  */
270
270
  expirationMinutes?: number;
271
271
  }
272
+ /**
273
+ * Model specification for integration-based LLM providers like Ollama.
274
+ * @category AI
275
+ */
276
+ export interface IntegrationModelSpec {
277
+ /** The integration ID that provides the LLM */
278
+ integrationId: IntegrationId;
279
+ /** The model name within that integration */
280
+ model: string;
281
+ }
282
+ /**
283
+ * Type for specifying which LLM model to use.
284
+ * Can be either a vendor model name (string) or an integration-based model (object).
285
+ * @category AI
286
+ */
287
+ export type AiChatModelSelection = AiChatModelName | IntegrationModelSpec;
272
288
  /**
273
289
  * The base AI agent chat options, should not be used directly.
274
290
  * @category AI
@@ -329,8 +345,8 @@ export interface BaseAiChatOptions {
329
345
  temperature?: number;
330
346
  /** Preset instruction options that can be toggled on */
331
347
  guardrails?: GuardrailsOptions;
332
- /** The LLM model to use. */
333
- model?: AiChatModelName;
348
+ /** The LLM model to use. Can be a vendor model name (string) or an integration-based model (object). */
349
+ model?: AiChatModelSelection;
334
350
  /** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
335
351
  rerankProvider?: AiRerankProvider;
336
352
  /**
@@ -441,6 +457,8 @@ export interface AiAgent<T extends AiChatModelName | undefined = undefined> {
441
457
  options: AiChatOptions<T>;
442
458
  /** The embedding model name used by the agent. */
443
459
  embeddingModelName: AiEmbeddingsModelName;
460
+ /** Optional api key used specifically for operations on this agent */
461
+ apiKey?: string;
444
462
  }
445
463
  /**
446
464
  * @category AI
@@ -496,22 +514,6 @@ export interface AiChatMessage {
496
514
  export declare const AI_STATUS_MESSAGE_PARENT_MESSAGE_ID_TAG = "parent";
497
515
  /** The tag contains a response of the AI tool call. */
498
516
  export declare const AI_STATUS_MESSAGE_RESULT_TAG = "result";
499
- /**
500
- * The options for the AI agent search method.
501
- * @category AI
502
- */
503
- export interface AiSearchOptions {
504
- /** The prompt to search for */
505
- prompt: string;
506
- /** DEPRECATED: A set of filters that will limit the context the AI can access. */
507
- contextMetadataFilter?: AiContextMetadataFilter;
508
- /** A set of filters that will limit the context the AI can access. */
509
- contextMetadataFilterForKnowledgeBase?: Record<AiKnowledgeBaseId, AiContextMetadataFilter>;
510
- /** The maximum number of results to return */
511
- limit?: number;
512
- /** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
513
- rerankProvider?: AiRerankProvider;
514
- }
515
517
  /**
516
518
  * A single chunk of data returned from an AI search operation.
517
519
  * @category AI
@@ -170,3 +170,11 @@ export type StableDiffusionModelName = (typeof STABLE_DIFFUSION_MODEL_NAMES)[num
170
170
  * @category AI
171
171
  */
172
172
  export type FluxModelName = (typeof FLUX_MODEL_NAMES)[number];
173
+ /**
174
+ * Type guard to check if a model selection is integration-based.
175
+ * @category AI
176
+ */
177
+ export declare function isIntegrationModelSpec(model: unknown): model is {
178
+ integrationId: string;
179
+ model: string;
180
+ };
@@ -1,6 +1,6 @@
1
1
  import { IntegrationId } from './communication.public-types';
2
2
  /** List of all integration types supported by Squid. */
3
- export declare const INTEGRATION_TYPES: readonly ["active_directory", "ai_agents", "ai_chatbot", "algolia", "alloydb", "api", "auth0", "azure_cosmosdb", "azure_postgresql", "azure_sql", "bigquery", "built_in_db", "built_in_gcs", "built_in_queue", "built_in_s3", "cassandra", "clickhouse", "cloudsql", "cockroach", "cognito", "connected_knowledgebases", "confluence", "confluent", "datadog", "db2", "descope", "documentdb", "dynamodb", "elasticsearch", "firebase_auth", "firestore", "gcs", "google_calendar", "google_docs", "google_drive", "graphql", "hubspot", "jira", "jwt_hmac", "jwt_rsa", "kafka", "linear", "mariadb", "monday", "mongo", "mssql", "databricks", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce_crm", "sap_hana", "sentry", "servicenow", "snowflake", "spanner", "xata", "zendesk", "mail", "slack", "mcp", "a2a", "legend"];
3
+ export declare const INTEGRATION_TYPES: readonly ["active_directory", "ai_agents", "ai_chatbot", "algolia", "alloydb", "api", "auth0", "azure_cosmosdb", "azure_postgresql", "azure_sql", "bigquery", "built_in_db", "built_in_gcs", "built_in_queue", "built_in_s3", "cassandra", "clickhouse", "cloudsql", "cockroach", "cognito", "connected_knowledgebases", "confluence", "confluent", "datadog", "db2", "descope", "documentdb", "dynamodb", "elasticsearch", "firebase_auth", "firestore", "gcs", "google_calendar", "google_docs", "google_drive", "graphql", "hubspot", "jira", "jwt_hmac", "jwt_rsa", "kafka", "keycloak", "linear", "mariadb", "monday", "mongo", "mssql", "databricks", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce_crm", "sap_hana", "sentry", "servicenow", "snowflake", "spanner", "xata", "zendesk", "mail", "slack", "mcp", "a2a", "legend", "ollama"];
4
4
  /**
5
5
  * @category Database
6
6
  */
@@ -8,7 +8,7 @@ export declare const DATA_INTEGRATION_TYPES: readonly ["bigquery", "built_in_db"
8
8
  /**
9
9
  * @category Auth
10
10
  */
11
- export declare const AUTH_INTEGRATION_TYPES: readonly ["auth0", "jwt_rsa", "jwt_hmac", "cognito", "okta", "descope", "firebase_auth"];
11
+ export declare const AUTH_INTEGRATION_TYPES: readonly ["auth0", "jwt_rsa", "jwt_hmac", "cognito", "okta", "keycloak", "descope", "firebase_auth"];
12
12
  /** Supported integration types for GraphQL-based services. */
13
13
  export declare const GRAPHQL_INTEGRATION_TYPES: readonly ["graphql", "linear"];
14
14
  /** Supported integration types for HTTP-based services. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/slack-client",
3
- "version": "1.0.413",
3
+ "version": "1.0.414",
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.413",
22
+ "@squidcloud/client": "^1.0.414",
23
23
  "@slack/bolt": "^4.5.0"
24
24
  },
25
25
  "engines": {