@squidcloud/slack-client 1.0.424 → 1.0.425

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, AiEmbeddingsModelName, AiImageModelName, AiProviderType, AiRerankProvider, AnthropicChatModelName, GeminiChatModelName, GrokChatModelName, OpenAiAudioCreateSpeechModelName, OpenAiAudioTranscriptionModelName, OpenAiChatModelName, OpenAiCreateSpeechFormat } from './ai-common.public-types';
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';
@@ -560,17 +560,14 @@ export interface AiAgent<T extends AiChatModelName | undefined = undefined> {
560
560
  auditLog?: boolean;
561
561
  /** The default chat options for the agent, overridable by the user during use. */
562
562
  options: AiChatOptions<T>;
563
- /** The embedding model name used by the agent. */
564
- embeddingModelName: AiEmbeddingsModelName;
565
563
  /** Optional api key used specifically for operations on this agent */
566
564
  apiKey?: string;
567
565
  }
568
566
  /**
569
567
  * @category AI
570
568
  */
571
- export type UpsertAgentRequest = Omit<AiAgent, 'createdAt' | 'updatedAt' | 'options' | 'embeddingModelName'> & {
569
+ export type UpsertAgentRequest = Omit<AiAgent, 'createdAt' | 'updatedAt' | 'options'> & {
572
570
  options?: AiChatOptions;
573
- embeddingModelName?: AiEmbeddingsModelName;
574
571
  };
575
572
  /**
576
573
  * A status message from an AI agent operation.
@@ -892,4 +889,79 @@ export interface AiGenerateImageRequest {
892
889
  /** Options for image generation */
893
890
  options?: AiGenerateImageOptions;
894
891
  }
892
+ /**
893
+ * Revision action types for agent history tracking.
894
+ * @category AI
895
+ */
896
+ export type AiAgentRevisionAction = 'created' | 'updated' | 'deleted';
897
+ /**
898
+ * Represents a single agent revision entry.
899
+ * @category AI
900
+ */
901
+ export interface AiAgentRevision {
902
+ /** The ID of the agent this revision belongs to. */
903
+ agentId: AiAgentId;
904
+ /** The revision number, incremented for each change to the agent. */
905
+ revisionNumber: number;
906
+ /** The action that triggered this revision (created, updated, or deleted). */
907
+ action: AiAgentRevisionAction;
908
+ /** Timestamp when this revision was created. */
909
+ createdAt: Date;
910
+ /** Snapshot of the agent data at the time of the revision. */
911
+ agentSnapshot: AiAgent;
912
+ }
913
+ /**
914
+ * Request to list all revisions for an agent.
915
+ * @category AI
916
+ */
917
+ export interface ListAgentRevisionsRequest {
918
+ /** The ID of the agent to list revisions for. */
919
+ agentId: AiAgentId;
920
+ }
921
+ /**
922
+ * Response containing the list of agent revisions.
923
+ * @category AI
924
+ */
925
+ export interface ListAgentRevisionsResponse {
926
+ /** The list of revisions for the agent, sorted by revision number descending. */
927
+ revisions: Array<AiAgentRevision>;
928
+ }
929
+ /**
930
+ * Request to get a specific agent revision.
931
+ * @category AI
932
+ */
933
+ export interface GetAgentRevisionRequest {
934
+ /** The ID of the agent to get the revision for. */
935
+ agentId: AiAgentId;
936
+ /** The revision number to retrieve. */
937
+ revisionNumber: number;
938
+ }
939
+ /**
940
+ * Response containing a specific agent revision.
941
+ * @category AI
942
+ */
943
+ export interface GetAgentRevisionResponse {
944
+ /** The requested revision, or undefined if not found. */
945
+ revision: AiAgentRevision | undefined;
946
+ }
947
+ /**
948
+ * Request to restore an agent to a specific revision.
949
+ * @category AI
950
+ */
951
+ export interface RestoreAgentRevisionRequest {
952
+ /** The ID of the agent to restore. */
953
+ agentId: AiAgentId;
954
+ /** The revision number to restore the agent to. */
955
+ revisionNumber: number;
956
+ }
957
+ /**
958
+ * Request to delete a specific agent revision.
959
+ * @category AI
960
+ */
961
+ export interface DeleteAgentRevisionRequest {
962
+ /** The ID of the agent whose revision should be deleted. */
963
+ agentId: AiAgentId;
964
+ /** The revision number to delete. */
965
+ revisionNumber: number;
966
+ }
895
967
  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 ["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
+ 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-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"];
32
+ export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-3-pro", "gemini-3-flash", "gemini-2.5-flash-lite"];
31
33
  /**
32
- * Notes:
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-3", "grok-3-fast", "grok-3-mini", "grok-3-mini-fast", "grok-4", "grok-4-fast-reasoning", "grok-4-fast-non-reasoning", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
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-3-7-sonnet-latest", "claude-haiku-4-5-20251001", "claude-opus-4-20250514", "claude-opus-4-1-20250805", "claude-opus-4-5-20251101", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929"];
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 ["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-opus-4-5-20251101", "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", "grok-4-1-fast-reasoning", "grok-4-1-fast-non-reasoning"];
49
- /**
50
- * Check if the given model name is a global AI chat model name.
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
  */
@@ -4,13 +4,13 @@ export declare const INTEGRATION_TYPES: readonly ["active_directory", "ai_agents
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", "linear"];
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.424",
3
+ "version": "1.0.425",
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.424",
22
+ "@squidcloud/client": "^1.0.425",
23
23
  "@slack/bolt": "^4.5.0"
24
24
  },
25
25
  "engines": {