@squidcloud/slack-client 1.0.447 → 1.0.450
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.
- package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +25 -0
- package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +3 -3
- package/dist/internal-common/src/public-types/backend.public-types.d.ts +11 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -68,6 +68,31 @@ export declare const AI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-smal
|
|
|
68
68
|
* @category AI
|
|
69
69
|
*/
|
|
70
70
|
export declare function isAiEmbeddingsModelName(modelName: unknown): modelName is AiEmbeddingsModelName;
|
|
71
|
+
/**
|
|
72
|
+
* Represents an embedding model provided by an OpenAI-compatible integration.
|
|
73
|
+
* Unlike chat's `IntegrationModelSpec`, this includes `dimensions` because the same
|
|
74
|
+
* embedding model can be configured with different output dimensions.
|
|
75
|
+
* @category AI
|
|
76
|
+
*/
|
|
77
|
+
export interface IntegrationEmbeddingModelSpec {
|
|
78
|
+
/** The ID of the integration providing the embedding model. */
|
|
79
|
+
integrationId: string;
|
|
80
|
+
/** The model name as recognized by the provider. */
|
|
81
|
+
model: string;
|
|
82
|
+
/** The number of dimensions in the embedding vector output. */
|
|
83
|
+
dimensions: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Type guard for `IntegrationEmbeddingModelSpec`.
|
|
87
|
+
* @category AI
|
|
88
|
+
*/
|
|
89
|
+
export declare function isIntegrationEmbeddingModelSpec(model: unknown): model is IntegrationEmbeddingModelSpec;
|
|
90
|
+
/**
|
|
91
|
+
* Type for specifying which embedding model to use.
|
|
92
|
+
* Can be either a vendor model name (string) or an integration-based embedding model (object).
|
|
93
|
+
* @category AI
|
|
94
|
+
*/
|
|
95
|
+
export type AiEmbeddingsModelSelection = AiEmbeddingsModelName | IntegrationEmbeddingModelSpec;
|
|
71
96
|
/**
|
|
72
97
|
* The supported AI image generation model names.
|
|
73
98
|
* @category AI
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentContextRequest, AiChatModelSelection, UpsertContextStatusError } from './ai-agent.public-types';
|
|
2
|
-
import {
|
|
2
|
+
import { AiEmbeddingsModelSelection, 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
|
/**
|
|
@@ -15,8 +15,8 @@ export interface AiKnowledgeBase {
|
|
|
15
15
|
description: string;
|
|
16
16
|
/** A set of predefined metadata fields for the knowledge base that can be used for filtering.*/
|
|
17
17
|
metadataFields: Array<AiKnowledgeBaseMetadataField>;
|
|
18
|
-
/** The embedding model
|
|
19
|
-
embeddingModel:
|
|
18
|
+
/** The embedding model that should be used for this knowledge base.*/
|
|
19
|
+
embeddingModel: AiEmbeddingsModelSelection;
|
|
20
20
|
/** The model name that should be used when asking questions of this knowledge base. */
|
|
21
21
|
chatModel: AiChatModelSelection;
|
|
22
22
|
/** The timestamp the knowledge base was last updated */
|
|
@@ -48,3 +48,14 @@ export type LlmModelMetadata = {
|
|
|
48
48
|
/** Total context window size: input (aka prompt) + output (aka completion) tokens combined. */
|
|
49
49
|
contextWindowTokens: number;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Stats about a given embedding model.
|
|
53
|
+
*/
|
|
54
|
+
export type EmbeddingModelMetadata = {
|
|
55
|
+
/** A friendly name for the model, to display in UIs. */
|
|
56
|
+
displayName: string;
|
|
57
|
+
/** The number of dimensions produced by this embedding model. */
|
|
58
|
+
dimensions: number;
|
|
59
|
+
/** Maximum input tokens per request. */
|
|
60
|
+
maxTokens: number;
|
|
61
|
+
};
|
|
@@ -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", "bedrock", "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", "jira_jsm", "jwt_hmac", "jwt_rsa", "kafka", "keycloak", "linear", "mariadb", "monday", "mongo", "mssql", "databricks", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce", "sap_hana", "sentry", "snowflake", "spanner", "xata", "zendesk", "servicenow_csm", "freshdesk", "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", "bedrock", "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", "jira_jsm", "jwt_hmac", "jwt_rsa", "kafka", "keycloak", "linear", "mariadb", "monday", "mongo", "mssql", "databricks", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce", "sap_hana", "sentry", "snowflake", "spanner", "xata", "zendesk", "servicenow_csm", "freshdesk", "mail", "slack", "mcp", "a2a", "legend", "teams", "openai_compatible", "openai_compatible_embedding"];
|
|
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.
|
|
3
|
+
"version": "1.0.450",
|
|
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.450",
|
|
23
23
|
"@slack/bolt": "^4.5.0"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|