@squidcloud/slack-client 1.0.417 → 1.0.418

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.
@@ -52,6 +52,8 @@ export interface SendSlackMessageRequest {
52
52
  * - For chat groups, use "group".
53
53
  */
54
54
  recipientType: RecipientType;
55
+ /** Which Slack integration instance to send the message to. */
56
+ integrationId: string;
55
57
  /**
56
58
  * Slack replies operate on passing in the timestamp of the parent/root message of a thread.
57
59
  * You may pass in the timestamp in 4 possible formats:
@@ -60,9 +62,7 @@ export interface SendSlackMessageRequest {
60
62
  * - Unix time (seconds with floating point): 1759525914.304959
61
63
  * - Unix time (microseconds): 1759525914304959
62
64
  */
63
- replyParentTs: string;
64
- /** Which Slack integration instance to send the message to. */
65
- integrationId: string;
65
+ replyParentTs?: string;
66
66
  /** AiFileUrl objects referring to files you want to attach to the message. */
67
67
  attachments?: AiFileUrl[];
68
68
  }
@@ -9,7 +9,7 @@ export declare class SquidSlackClient {
9
9
  /**
10
10
  * Creates a new Slack client instance.
11
11
  *
12
- * @param squid - Squid client instance
12
+ * @param squid - Squid client instance. Provide an instance that includes the Squid API key.
13
13
  * @param integrationId - The ID of the Slack integration in the Squid console
14
14
  */
15
15
  constructor(squid: Squid, integrationId: string);
@@ -22,12 +22,16 @@ export declare class SquidSlackClient {
22
22
  * by giving it a permalink to the message you want to reply to. See `SendSlackMessageRequest` for
23
23
  * more details.
24
24
  *
25
+ * The provided `squid` instance requires your Squid API key to use this function.
26
+ *
25
27
  * @param request Request parameters for sending a message to Slack.
26
28
  */
27
29
  sendMessage(request: Omit<SendSlackMessageRequest, 'integrationId'>): Promise<void>;
28
30
  /**
29
31
  * Search for messages related to the given prompt query string.
30
32
  *
33
+ * The provided `squid` instance requires your Squid API key to use this function.
34
+ *
31
35
  * @param request Request parameters for searching within a Slack integration instance.
32
36
  * @returns Array of chunks of messages that contain messages related to the query.
33
37
  */
@@ -191,6 +191,11 @@ export interface AiConnectedIntegrationMetadata<AiConnectedIntegrationOptionsTyp
191
191
  * Squid Core or AI functions in connector packages may use these options to adjust behavior of the integration agent.
192
192
  */
193
193
  options?: AiConnectedIntegrationOptionsType;
194
+ /**
195
+ * Indicates that this integration should be treated as an MCP server.
196
+ * When true, API integrations with exposeAsMcpServer will be handled through the MCP protocol.
197
+ */
198
+ connectedAsMcp?: boolean;
194
199
  }
195
200
  /**
196
201
  * Metadata for a connected AI agent callable by the current agent.
@@ -237,6 +242,12 @@ export interface AiAgentExecutionPlanOptions {
237
242
  model?: AiChatModelName;
238
243
  /** In case the model supports reasoning, this will control the level of effort - defaults to `high`. */
239
244
  reasoningEffort?: AiReasoningEffort;
245
+ /**
246
+ * Whether the agent is allowed to ask follow-up or clarification questions.
247
+ * If true, the agent can respond with questions to gather more information before completing the task.
248
+ * Defaults to false.
249
+ */
250
+ allowClarificationQuestions?: boolean;
240
251
  }
241
252
  /**
242
253
  * Options for AI agent memory management.
@@ -23,7 +23,7 @@ export type AiFileProviderType = Extract<AiProviderType, 'openai' | 'gemini' | '
23
23
  /**
24
24
  * @category AI
25
25
  */
26
- export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["o1", "o3", "o3-mini", "o4-mini", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini"];
26
+ export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["o1", "o3", "o3-mini", "o4-mini", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5.1", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini"];
27
27
  /**
28
28
  * @category AI
29
29
  */
@@ -45,7 +45,7 @@ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-7-sonnet-la
45
45
  * The supported AI model names.
46
46
  * @category AI
47
47
  */
48
- export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["o1", "o3", "o3-mini", "o4-mini", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "claude-3-7-sonnet-latest", "claude-haiku-4-5-20251001", "claude-opus-4-20250514", "claude-opus-4-1-20250805", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "grok-3", "grok-3-fast", "grok-3-mini", "grok-3-mini-fast", "grok-4", "grok-4-fast-reasoning", "grok-4-fast-non-reasoning"];
48
+ export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["o1", "o3", "o3-mini", "o4-mini", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5.1", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "claude-3-7-sonnet-latest", "claude-haiku-4-5-20251001", "claude-opus-4-20250514", "claude-opus-4-1-20250805", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "grok-3", "grok-3-fast", "grok-3-mini", "grok-3-mini-fast", "grok-4", "grok-4-fast-reasoning", "grok-4-fast-non-reasoning"];
49
49
  /**
50
50
  * Check if the given model name is a global AI chat model name.
51
51
  */
@@ -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", "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"];
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", "teams", "ollama"];
4
4
  /**
5
5
  * @category Database
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/slack-client",
3
- "version": "1.0.417",
3
+ "version": "1.0.418",
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.417",
22
+ "@squidcloud/client": "^1.0.418",
23
23
  "@slack/bolt": "^4.5.0"
24
24
  },
25
25
  "engines": {