@squidcloud/client 1.0.303 → 1.0.304
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/cjs/index.js +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +5 -2
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +9 -71
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +4 -2
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +2 -2
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +17 -3
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionName, FunctionNameWithContext } from './bundle-data.public-types';
|
|
2
2
|
import { IntegrationId } from './communication.public-types';
|
|
3
|
-
import { AiChatPromptQuotas, AiConnectedAgentMetadata } from '../types/ai-chatbot.types';
|
|
3
|
+
import { AiChatPromptQuotas, AiConnectedAgentMetadata, AiConnectedIntegrationMetadata } from '../types/ai-chatbot.types';
|
|
4
4
|
/** The supported OpenAI models */
|
|
5
5
|
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini"];
|
|
6
6
|
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-1.5-pro", "gemini-1.5-flash"];
|
|
@@ -141,6 +141,7 @@ export interface AiChatbotChatOptions {
|
|
|
141
141
|
* Functions to expose to the AI.
|
|
142
142
|
* Either a function name or a name with an extra function context passed only to this function.
|
|
143
143
|
* The parameter values must be valid serializable JSON values.
|
|
144
|
+
* Overrides the stored value.
|
|
144
145
|
*/
|
|
145
146
|
functions?: Array<FunctionName | FunctionNameWithContext>;
|
|
146
147
|
/** A list of instructions to include with the prompt. */
|
|
@@ -149,8 +150,10 @@ export interface AiChatbotChatOptions {
|
|
|
149
150
|
contextMetadataFilter?: AiContextMetadataFilter;
|
|
150
151
|
/** The options to use for the response in voice. */
|
|
151
152
|
voiceOptions?: AiAudioCreateSpeechOptions;
|
|
152
|
-
/** List of connected AI agents can be called by the current agent. */
|
|
153
|
+
/** List of connected AI agents can be called by the current agent. Overrides the stored value. */
|
|
153
154
|
connectedAgents?: Array<AiConnectedAgentMetadata>;
|
|
155
|
+
/** List of connected AI agents can be called by the current agent. Overrides the stored value. */
|
|
156
|
+
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
154
157
|
/** Current budget for nested or recursive AI chat calls per single prompt. */
|
|
155
158
|
quotas?: AiChatPromptQuotas;
|
|
156
159
|
}
|
|
@@ -1,76 +1,14 @@
|
|
|
1
1
|
import { IntegrationId } from './communication.public-types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'cockroach' = "cockroach",
|
|
10
|
-
'api' = "api",
|
|
11
|
-
'graphql' = "graphql",
|
|
12
|
-
'snowflake' = "snowflake",
|
|
13
|
-
'datadog' = "datadog",
|
|
14
|
-
'newrelic' = "newrelic",
|
|
15
|
-
'auth0' = "auth0",
|
|
16
|
-
'jwt_rsa' = "jwt_rsa",
|
|
17
|
-
'jwt_hmac' = "jwt_hmac",
|
|
18
|
-
'ai_chatbot' = "ai_chatbot",
|
|
19
|
-
'cognito' = "cognito",
|
|
20
|
-
'okta' = "okta",
|
|
21
|
-
'descope' = "descope",
|
|
22
|
-
'firebase_auth' = "firebase_auth",
|
|
23
|
-
'kafka' = "kafka",
|
|
24
|
-
'confluent' = "confluent",
|
|
25
|
-
'built_in_queue' = "built_in_queue",
|
|
26
|
-
's3' = "s3",
|
|
27
|
-
'gcs' = "gcs",
|
|
28
|
-
'built_in_s3' = "built_in_s3",
|
|
29
|
-
'built_in_gcs' = "built_in_gcs",
|
|
30
|
-
'google_drive' = "google_drive",
|
|
31
|
-
'ai_agents' = "ai_agents",
|
|
32
|
-
'algolia' = "algolia",
|
|
33
|
-
'elastic_observability' = "elastic_observability",
|
|
34
|
-
'elastic_search' = "elastic_search",
|
|
35
|
-
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
36
|
-
'sentry' = "sentry",
|
|
37
|
-
'sap_hana' = "sap_hana",
|
|
38
|
-
'salesforce_crm' = "salesforce_crm",
|
|
39
|
-
'documentdb' = "documentdb",
|
|
40
|
-
'dynamodb' = "dynamodb",
|
|
41
|
-
'cassandra' = "cassandra",
|
|
42
|
-
'alloydb' = "alloydb",
|
|
43
|
-
'spanner' = "spanner",
|
|
44
|
-
'db2' = "db2",
|
|
45
|
-
'mariadb' = "mariadb",
|
|
46
|
-
'oracledb' = "oracledb",
|
|
47
|
-
'redis' = "redis",
|
|
48
|
-
'xata' = "xata",
|
|
49
|
-
'azure_sql' = "azure_sql",
|
|
50
|
-
'azure_postgresql' = "azure_postgresql",
|
|
51
|
-
'azure_cosmosdb' = "azure_cosmosdb",
|
|
52
|
-
'firestore' = "firestore",
|
|
53
|
-
'bigquery' = "bigquery",
|
|
54
|
-
'cloudsql' = "cloudsql",
|
|
55
|
-
'slack' = "slack",
|
|
56
|
-
'hubspot' = "hubspot",
|
|
57
|
-
'monday' = "monday",
|
|
58
|
-
'google_docs' = "google_docs",
|
|
59
|
-
'onedrive' = "onedrive",
|
|
60
|
-
'zendesk' = "zendesk",
|
|
61
|
-
'pinecone' = "pinecone",
|
|
62
|
-
'active_directory' = "active_directory",
|
|
63
|
-
'jira' = "jira",
|
|
64
|
-
'confluence' = "confluence",
|
|
65
|
-
'servicenow' = "servicenow",
|
|
66
|
-
'linear' = "linear"
|
|
67
|
-
}
|
|
68
|
-
export declare enum IntegrationSchemaType {
|
|
69
|
-
'data' = "data",
|
|
70
|
-
'api' = "api",
|
|
71
|
-
'graphql' = "graphql"
|
|
72
|
-
}
|
|
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", "confluence", "confluent", "datadog", "db2", "descope", "documentdb", "dynamodb", "elastic_enterprise_search", "elastic_observability", "elastic_search", "firebase_auth", "firestore", "gcs", "google_docs", "google_drive", "graphql", "hubspot", "jira", "jwt_hmac", "jwt_rsa", "kafka", "linear", "mariadb", "monday", "mongo", "mssql", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce_crm", "sap_hana", "sentry", "servicenow", "slack", "snowflake", "spanner", "xata", "zendesk"];
|
|
4
|
+
export type IntegrationType = (typeof INTEGRATION_TYPES)[number];
|
|
5
|
+
export declare const INTEGRATION_SCHEMA_TYPES: readonly ["data", "api", "graphql"];
|
|
6
|
+
export type IntegrationSchemaType = (typeof INTEGRATION_SCHEMA_TYPES)[number];
|
|
7
|
+
export declare const BUILT_IN_DB_INTEGRATION_ID: IntegrationId;
|
|
8
|
+
export declare const BUILT_IN_QUEUE_INTEGRATION_ID: IntegrationId;
|
|
73
9
|
export declare const AI_AGENTS_INTEGRATION_ID: IntegrationId;
|
|
10
|
+
/** ID for the cloud specific storage integration: s3 (built_in_s3) or gcs (built_in_gcs). */
|
|
11
|
+
export declare const BUILT_IN_STORAGE_INTEGRATION_ID: IntegrationId;
|
|
74
12
|
export interface IntegrationInfo<ConfigurationType = Record<string, any> | undefined> {
|
|
75
13
|
id: IntegrationId;
|
|
76
14
|
type: IntegrationType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AiChatModelName, AiEmbeddingsModelName, VectorDbType } from '../ai-chatbot.public-types';
|
|
2
2
|
import { FunctionName } from '../bundle-data.public-types';
|
|
3
|
-
import { AiConnectedAgentMetadata } from '../../types/ai-chatbot.types';
|
|
3
|
+
import { AiConnectedAgentMetadata, AiConnectedIntegrationMetadata } from '../../types/ai-chatbot.types';
|
|
4
4
|
export type AiChatbotConfiguration = {
|
|
5
5
|
apiKey?: string;
|
|
6
6
|
};
|
|
@@ -18,6 +18,8 @@ export type AiChatbotProfileMetadata = {
|
|
|
18
18
|
functions?: Array<FunctionName>;
|
|
19
19
|
/** List of child AI agents that can be used by the current agent. */
|
|
20
20
|
connectedAgents?: Array<AiConnectedAgentMetadata>;
|
|
21
|
+
/** List of connected integrations. */
|
|
22
|
+
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
21
23
|
auditLog?: boolean;
|
|
22
24
|
};
|
|
23
25
|
export type AiChatbotContextMetadata = {
|
|
@@ -26,6 +28,6 @@ export type AiChatbotContextMetadata = {
|
|
|
26
28
|
preview: boolean;
|
|
27
29
|
sizeBytes?: number;
|
|
28
30
|
};
|
|
29
|
-
export type MutableAiChatbotProfileMetadataFieldsType = keyof Pick<AiChatbotProfileMetadata, 'modelName' | 'isPublic' | 'functions' | 'connectedAgents' | 'auditLog'>;
|
|
31
|
+
export type MutableAiChatbotProfileMetadataFieldsType = keyof Pick<AiChatbotProfileMetadata, 'modelName' | 'isPublic' | 'functions' | 'connectedAgents' | 'connectedIntegrations' | 'auditLog'>;
|
|
30
32
|
/** List of fields that can be updated in runtime via API. */
|
|
31
33
|
export declare const MUTABLE_AI_CHATBOT_PROFILE_METADATA_FIELDS: Array<MutableAiChatbotProfileMetadataFieldsType>;
|
|
@@ -60,10 +60,10 @@ export interface ApiEndpoint {
|
|
|
60
60
|
}
|
|
61
61
|
export interface DiscoverOpenApiSchemaRequest {
|
|
62
62
|
integrationId: IntegrationId;
|
|
63
|
-
integrationType: IntegrationType
|
|
63
|
+
integrationType: Extract<IntegrationType, 'api'>;
|
|
64
64
|
discoveryOptions: OpenApiDiscoveryOptions;
|
|
65
65
|
}
|
|
66
66
|
export interface DiscoverOpenApiSchemaFromFileRequest {
|
|
67
67
|
integrationId: IntegrationId;
|
|
68
|
-
integrationType: IntegrationType
|
|
68
|
+
integrationType: Extract<IntegrationType, 'api'>;
|
|
69
69
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AiFileUrl } from '../public-types/ai-chatbot.public-types';
|
|
2
|
-
import { AiAgentId } from '../public-types/communication.public-types';
|
|
2
|
+
import { AiAgentId, IntegrationId } from '../public-types/communication.public-types';
|
|
3
3
|
import { FunctionName, FunctionNameWithContext } from '../public-types/bundle-data.public-types';
|
|
4
|
+
import { IntegrationType } from '../public-types/integration.public-types';
|
|
4
5
|
export type AiChatResponseFormat = 'text' | 'json_object';
|
|
5
6
|
export interface AiChatOptions {
|
|
6
7
|
maxTokens: number;
|
|
@@ -16,10 +17,12 @@ export interface AiChatOptions {
|
|
|
16
17
|
agentId?: AiAgentId;
|
|
17
18
|
/** Global per-agent context passed to all AI functions. Must be a serializable JSON. */
|
|
18
19
|
agentContext?: Record<string, unknown>;
|
|
19
|
-
/** List of AI functions available for the chatbot.
|
|
20
|
+
/** List of AI functions available for the chatbot. Overrides the stored list.*/
|
|
20
21
|
functions?: Array<FunctionName | FunctionNameWithContext>;
|
|
21
|
-
/** List of connected AI agents can be called by the current agent.
|
|
22
|
+
/** List of connected AI agents can be called by the current agent. Overrides the stored list.*/
|
|
22
23
|
connectedAgents?: Array<AiConnectedAgentMetadata>;
|
|
24
|
+
/** List of connected integrations. Overrides the stored list. */
|
|
25
|
+
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
23
26
|
/** Current budget for nested or recursive AI chat calls per single prompt. */
|
|
24
27
|
quotas?: AiChatPromptQuotas;
|
|
25
28
|
}
|
|
@@ -31,6 +34,17 @@ export interface AiConnectedAgentMetadata {
|
|
|
31
34
|
*/
|
|
32
35
|
description: string;
|
|
33
36
|
}
|
|
37
|
+
export interface AiConnectedIntegrationMetadata {
|
|
38
|
+
integrationId: IntegrationId;
|
|
39
|
+
/** Type of the connected integration. */
|
|
40
|
+
integrationType: IntegrationType;
|
|
41
|
+
/**
|
|
42
|
+
* Description of the connected integration for the parent agent context.
|
|
43
|
+
* Works as AI function description.
|
|
44
|
+
* If not provided the default one is used.
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
34
48
|
/** Quotas for a single AI chat prompt (`ask()` method call). */
|
|
35
49
|
export interface AiChatPromptQuotas {
|
|
36
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.304";
|