@squidcloud/slack-client 1.0.424 → 1.0.426
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONSchema } from 'json-schema-typed';
|
|
2
|
-
import { AiAudioCreateSpeechModelName, AiAudioTranscriptionModelName, AiChatModelName,
|
|
2
|
+
import { AiAudioCreateSpeechModelName, AiAudioTranscriptionModelName, AiChatModelName, AiImageModelName, AiProviderType, AiRerankProvider, AnthropicChatModelName, GeminiChatModelName, GrokChatModelName, OpenAiAudioCreateSpeechModelName, OpenAiAudioTranscriptionModelName, OpenAiChatModelName, OpenAiCreateSpeechFormat } from './ai-common.public-types';
|
|
3
3
|
import { AiContextMetadata, AiContextMetadataFilter, AiKnowledgeBaseContextType, AiRagType } from './ai-knowledge-base.public-types';
|
|
4
4
|
import { AiFunctionId, AiFunctionIdWithContext, UserAiChatModelName } from './backend.public-types';
|
|
5
5
|
import { AiAgentId, AiContextId, AiKnowledgeBaseId, AppId, IntegrationId } from './communication.public-types';
|
|
@@ -457,6 +457,12 @@ export interface BaseAiChatOptions {
|
|
|
457
457
|
* Note: Only supported by OpenAI and Gemini models. Ignored for other providers.
|
|
458
458
|
*/
|
|
459
459
|
useCodeInterpreter?: 'none' | 'llm';
|
|
460
|
+
/**
|
|
461
|
+
* File IDs to include in the chat context.
|
|
462
|
+
* These are IDs returned from the AI provider's Files API after uploading files.
|
|
463
|
+
* Files are attached to the conversation and can be read/analyzed by the AI.
|
|
464
|
+
*/
|
|
465
|
+
fileIds?: string[];
|
|
460
466
|
}
|
|
461
467
|
/**
|
|
462
468
|
* Chat options specific to Gemini models, extending base options.
|
|
@@ -560,17 +566,14 @@ export interface AiAgent<T extends AiChatModelName | undefined = undefined> {
|
|
|
560
566
|
auditLog?: boolean;
|
|
561
567
|
/** The default chat options for the agent, overridable by the user during use. */
|
|
562
568
|
options: AiChatOptions<T>;
|
|
563
|
-
/** The embedding model name used by the agent. */
|
|
564
|
-
embeddingModelName: AiEmbeddingsModelName;
|
|
565
569
|
/** Optional api key used specifically for operations on this agent */
|
|
566
570
|
apiKey?: string;
|
|
567
571
|
}
|
|
568
572
|
/**
|
|
569
573
|
* @category AI
|
|
570
574
|
*/
|
|
571
|
-
export type UpsertAgentRequest = Omit<AiAgent, 'createdAt' | 'updatedAt' | 'options'
|
|
575
|
+
export type UpsertAgentRequest = Omit<AiAgent, 'createdAt' | 'updatedAt' | 'options'> & {
|
|
572
576
|
options?: AiChatOptions;
|
|
573
|
-
embeddingModelName?: AiEmbeddingsModelName;
|
|
574
577
|
};
|
|
575
578
|
/**
|
|
576
579
|
* A status message from an AI agent operation.
|
|
@@ -892,4 +895,79 @@ export interface AiGenerateImageRequest {
|
|
|
892
895
|
/** Options for image generation */
|
|
893
896
|
options?: AiGenerateImageOptions;
|
|
894
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* Revision action types for agent history tracking.
|
|
900
|
+
* @category AI
|
|
901
|
+
*/
|
|
902
|
+
export type AiAgentRevisionAction = 'created' | 'updated' | 'deleted';
|
|
903
|
+
/**
|
|
904
|
+
* Represents a single agent revision entry.
|
|
905
|
+
* @category AI
|
|
906
|
+
*/
|
|
907
|
+
export interface AiAgentRevision {
|
|
908
|
+
/** The ID of the agent this revision belongs to. */
|
|
909
|
+
agentId: AiAgentId;
|
|
910
|
+
/** The revision number, incremented for each change to the agent. */
|
|
911
|
+
revisionNumber: number;
|
|
912
|
+
/** The action that triggered this revision (created, updated, or deleted). */
|
|
913
|
+
action: AiAgentRevisionAction;
|
|
914
|
+
/** Timestamp when this revision was created. */
|
|
915
|
+
createdAt: Date;
|
|
916
|
+
/** Snapshot of the agent data at the time of the revision. */
|
|
917
|
+
agentSnapshot: AiAgent;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Request to list all revisions for an agent.
|
|
921
|
+
* @category AI
|
|
922
|
+
*/
|
|
923
|
+
export interface ListAgentRevisionsRequest {
|
|
924
|
+
/** The ID of the agent to list revisions for. */
|
|
925
|
+
agentId: AiAgentId;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Response containing the list of agent revisions.
|
|
929
|
+
* @category AI
|
|
930
|
+
*/
|
|
931
|
+
export interface ListAgentRevisionsResponse {
|
|
932
|
+
/** The list of revisions for the agent, sorted by revision number descending. */
|
|
933
|
+
revisions: Array<AiAgentRevision>;
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Request to get a specific agent revision.
|
|
937
|
+
* @category AI
|
|
938
|
+
*/
|
|
939
|
+
export interface GetAgentRevisionRequest {
|
|
940
|
+
/** The ID of the agent to get the revision for. */
|
|
941
|
+
agentId: AiAgentId;
|
|
942
|
+
/** The revision number to retrieve. */
|
|
943
|
+
revisionNumber: number;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Response containing a specific agent revision.
|
|
947
|
+
* @category AI
|
|
948
|
+
*/
|
|
949
|
+
export interface GetAgentRevisionResponse {
|
|
950
|
+
/** The requested revision, or undefined if not found. */
|
|
951
|
+
revision: AiAgentRevision | undefined;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Request to restore an agent to a specific revision.
|
|
955
|
+
* @category AI
|
|
956
|
+
*/
|
|
957
|
+
export interface RestoreAgentRevisionRequest {
|
|
958
|
+
/** The ID of the agent to restore. */
|
|
959
|
+
agentId: AiAgentId;
|
|
960
|
+
/** The revision number to restore the agent to. */
|
|
961
|
+
revisionNumber: number;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* Request to delete a specific agent revision.
|
|
965
|
+
* @category AI
|
|
966
|
+
*/
|
|
967
|
+
export interface DeleteAgentRevisionRequest {
|
|
968
|
+
/** The ID of the agent whose revision should be deleted. */
|
|
969
|
+
agentId: AiAgentId;
|
|
970
|
+
/** The revision number to delete. */
|
|
971
|
+
revisionNumber: number;
|
|
972
|
+
}
|
|
895
973
|
export {};
|
|
@@ -19,37 +19,34 @@ export type AiProviderType = (typeof AI_PROVIDER_TYPES)[number];
|
|
|
19
19
|
* Type of AI provider that supports file upload operations.
|
|
20
20
|
* Only a subset of AI providers support file management features.
|
|
21
21
|
*/
|
|
22
|
-
export type AiFileProviderType = Extract<AiProviderType, 'openai' | 'gemini' | 'anthropic'>;
|
|
22
|
+
export type AiFileProviderType = Extract<AiProviderType, 'openai' | 'gemini' | 'anthropic' | 'grok'>;
|
|
23
23
|
/**
|
|
24
|
+
* Public OpenAI chat model names (active models only).
|
|
24
25
|
* @category AI
|
|
25
26
|
*/
|
|
26
|
-
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["
|
|
27
|
+
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-5-mini", "gpt-5-nano", "gpt-5.2", "gpt-5.2-pro"];
|
|
27
28
|
/**
|
|
29
|
+
* Public Gemini chat model names (active models only).
|
|
28
30
|
* @category AI
|
|
29
31
|
*/
|
|
30
|
-
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-
|
|
32
|
+
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-3-pro", "gemini-3-flash", "gemini-2.5-flash-lite"];
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
33
|
-
* - 'grok-3-mini' model os ~10x less expensive than 'grok-3'.
|
|
34
|
-
* - '*-fast' models are ~2x more expensive than non-fast variants and only marginally faster.
|
|
35
|
-
* - 'grok-4' cost is comparable to 'grok-3-fast'.
|
|
36
|
-
*
|
|
34
|
+
* Public Grok chat model names (active models only).
|
|
37
35
|
* @category AI
|
|
38
36
|
*/
|
|
39
|
-
export declare const GROK_CHAT_MODEL_NAMES: readonly ["grok-
|
|
37
|
+
export declare const GROK_CHAT_MODEL_NAMES: readonly ["grok-4", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
|
|
40
38
|
/**
|
|
39
|
+
* Public Anthropic chat model names (active models only).
|
|
41
40
|
* @category AI
|
|
42
41
|
*/
|
|
43
|
-
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-
|
|
42
|
+
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-haiku-4-5-20251001", "claude-opus-4-5-20251101", "claude-sonnet-4-5-20250929"];
|
|
44
43
|
/**
|
|
45
44
|
* The supported AI model names.
|
|
46
45
|
* @category AI
|
|
47
46
|
*/
|
|
48
|
-
export declare const VENDOR_AI_CHAT_MODEL_NAMES: readonly ["
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
*/
|
|
52
|
-
export declare function isVendorAiChatModelName(modelName: string): modelName is (typeof VENDOR_AI_CHAT_MODEL_NAMES)[number];
|
|
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-5-20251101", "claude-sonnet-4-5-20250929", "gemini-3-pro", "gemini-3-flash", "gemini-2.5-flash-lite", "grok-4", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
|
|
48
|
+
/** Checks if the given model name is a global AI chat model name. */
|
|
49
|
+
export declare function isVendorAiChatModelName(modelName: unknown): modelName is VendorAiChatModelName;
|
|
53
50
|
/**
|
|
54
51
|
* @category AI
|
|
55
52
|
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
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", "teams", "openai_compatible"];
|
|
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", "github", "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", "openai_compatible"];
|
|
4
4
|
/**
|
|
5
5
|
* @category Database
|
|
6
6
|
*/
|
|
7
|
-
export declare const DATA_INTEGRATION_TYPES: readonly ["bigquery", "built_in_db", "clickhouse", "cockroach", "mongo", "mssql", "databricks", "mysql", "oracledb", "postgres", "sap_hana", "snowflake", "elasticsearch", "legend"];
|
|
7
|
+
export declare const DATA_INTEGRATION_TYPES: readonly ["bigquery", "built_in_db", "clickhouse", "cockroach", "dynamodb", "mongo", "mssql", "databricks", "mysql", "oracledb", "postgres", "sap_hana", "snowflake", "elasticsearch", "legend"];
|
|
8
8
|
/**
|
|
9
9
|
* @category Auth
|
|
10
10
|
*/
|
|
11
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
|
-
export declare const GRAPHQL_INTEGRATION_TYPES: readonly ["graphql"
|
|
13
|
+
export declare const GRAPHQL_INTEGRATION_TYPES: readonly ["graphql"];
|
|
14
14
|
/** Supported integration types for HTTP-based services. */
|
|
15
15
|
export declare const HTTP_INTEGRATION_TYPES: readonly ["api"];
|
|
16
16
|
/** Represents a supported integration type identifier, such as 'postgres', 'auth0', or 's3'. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/slack-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.426",
|
|
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.
|
|
22
|
+
"@squidcloud/client": "^1.0.426",
|
|
23
23
|
"@slack/bolt": "^4.5.0"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|