@squidcloud/client 1.0.323 → 1.0.325
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-agent.public-types.d.ts +5 -2
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_agent.public-types.d.ts +13 -0
- package/dist/internal-common/src/types/ai-agent.types.d.ts +3 -0
- package/dist/typescript-client/src/admin-client.d.ts +3 -0
- package/dist/typescript-client/src/agent-client.d.ts +6 -0
- package/dist/typescript-client/src/ai-agent-client.d.ts +3 -3
- package/dist/typescript-client/src/ai-client.d.ts +1 -1
- package/dist/typescript-client/src/index.d.ts +1 -0
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import { AiAgentId, IntegrationId } from './communication.public-types';
|
|
|
3
3
|
import { IntegrationType } from './integration.public-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", "o3-mini"];
|
|
6
|
-
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-1.5-pro", "gemini-
|
|
6
|
+
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-1.5-pro", "gemini-2.0-flash"];
|
|
7
7
|
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-5-haiku-latest", "claude-3-5-sonnet-latest"];
|
|
8
8
|
/** The supported AI model names. */
|
|
9
|
-
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "gemini-1.5-pro", "gemini-
|
|
9
|
+
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "gemini-1.5-pro", "gemini-2.0-flash"];
|
|
10
10
|
export declare const OPENAI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
|
|
11
11
|
export declare const AI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
|
|
12
12
|
/** The supported AI image generation model names. */
|
|
@@ -188,6 +188,9 @@ export interface AiAgentChatOptions {
|
|
|
188
188
|
quotas?: AiChatPromptQuotas;
|
|
189
189
|
/** Include metadata in the context */
|
|
190
190
|
includeMetadata?: boolean;
|
|
191
|
+
/** Enables grounding with real-time web search to enhance AI responses with up-to-date information.
|
|
192
|
+
* Currently supported only for gemini-2.0-flash. */
|
|
193
|
+
groundingWithWebSearch?: boolean;
|
|
191
194
|
}
|
|
192
195
|
export interface AiObserveStatusOptions {
|
|
193
196
|
/** A unique chat ID for the conversation. */
|
|
@@ -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", "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", "
|
|
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", "snowflake", "spanner", "xata", "zendesk", "mail", "slack"];
|
|
4
4
|
export declare const DATA_INTEGRATION_TYPES: readonly ["bigquery", "built_in_db", "clickhouse", "cockroach", "mongo", "mssql", "mysql", "oracledb", "postgres", "sap_hana", "snowflake"];
|
|
5
5
|
export declare const AUTH_INTEGRATION_TYPES: readonly ["auth0", "jwt_rsa", "jwt_hmac", "cognito", "okta", "descope", "firebase_auth"];
|
|
6
6
|
export declare const GRAPHQL_INTEGRATION_TYPES: readonly ["graphql", "linear"];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AiChatModelName, AiConnectedAgentMetadata, AiConnectedIntegrationMetadata, AiEmbeddingsModelName, VectorDbType } from '../ai-agent.public-types';
|
|
2
2
|
import { FunctionName } from '../bundle-data.public-types';
|
|
3
|
+
import { AiAgentId } from '../communication.public-types';
|
|
3
4
|
export type AiAgentConfiguration = {
|
|
4
5
|
apiKey?: string;
|
|
5
6
|
};
|
|
@@ -22,6 +23,9 @@ export type AiAgentMetadata = {
|
|
|
22
23
|
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
23
24
|
auditLog?: boolean;
|
|
24
25
|
};
|
|
26
|
+
export interface AiAgent extends AiAgentMetadata {
|
|
27
|
+
agentId: AiAgentId;
|
|
28
|
+
}
|
|
25
29
|
export type AiAgentContextMetadata = {
|
|
26
30
|
title: string;
|
|
27
31
|
text: string;
|
|
@@ -32,3 +36,12 @@ export type AiAgentContextMetadata = {
|
|
|
32
36
|
export type MutableAiAgentMetadataFieldsType = keyof Pick<AiAgentMetadata, 'modelName' | 'description' | 'isPublic' | 'functions' | 'connectedAgents' | 'connectedIntegrations' | 'auditLog'>;
|
|
33
37
|
/** List of fields that can be updated in runtime via API. */
|
|
34
38
|
export declare const MUTABLE_AI_AGENT_METADATA_FIELDS: Array<MutableAiAgentMetadataFieldsType>;
|
|
39
|
+
export interface ListAgentsResponse {
|
|
40
|
+
agents: Array<AiAgent>;
|
|
41
|
+
}
|
|
42
|
+
export interface GetAgentRequest {
|
|
43
|
+
agentId: AiAgentId;
|
|
44
|
+
}
|
|
45
|
+
export interface GetAgentResponse {
|
|
46
|
+
agent: AiAgent | undefined;
|
|
47
|
+
}
|
|
@@ -26,4 +26,7 @@ export interface AiChatOptions {
|
|
|
26
26
|
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
27
27
|
/** Current budget for nested or recursive AI chat calls per single prompt. */
|
|
28
28
|
quotas?: AiChatPromptQuotas;
|
|
29
|
+
/** Enables grounding with real-time web search to enhance AI responses with up-to-date information.
|
|
30
|
+
* Currently supported only for gemini-2.0-flash. */
|
|
31
|
+
groundingWithWebSearch?: boolean;
|
|
29
32
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { IntegrationClient } from './integration-client';
|
|
2
2
|
import { SecretClient } from './secret.client';
|
|
3
|
+
import { AgentClient } from './agent-client';
|
|
3
4
|
export declare class AdminClient {
|
|
4
5
|
private readonly rpcManager;
|
|
5
6
|
private readonly region;
|
|
6
7
|
private readonly appId;
|
|
7
8
|
private readonly integrationClient;
|
|
8
9
|
private readonly secretClient;
|
|
10
|
+
private readonly agentClient;
|
|
9
11
|
integrations(): IntegrationClient;
|
|
10
12
|
secrets(): SecretClient;
|
|
13
|
+
agents(): AgentClient;
|
|
11
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiAgentChatOptions,
|
|
1
|
+
import { AiAgentChatOptions, AiAgentId, AiAgentMetadata, AiContext, AiObserveStatusOptions, AiSearchOptions, AiSearchResponse, AiStatusMessage, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse, MUTABLE_AI_AGENT_METADATA_FIELDS } from './public-types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BlobAndFilename } from './types';
|
|
4
4
|
export interface TranscribeAndChatResponse {
|
|
@@ -126,7 +126,7 @@ export declare class AiAgentReference {
|
|
|
126
126
|
*
|
|
127
127
|
* @param data An object containing options for creating the agent.
|
|
128
128
|
* @param data.modelName - The name of the AI model (`gpt-3.5, `gpt-4`, `claude-3-5-sonnet-latest` or
|
|
129
|
-
* `claude-3-5-haiku-latest`, `gemini-1.5-pro
|
|
129
|
+
* `claude-3-5-haiku-latest`, `gemini-1.5-pro`, `gemini-2.0-flash`).
|
|
130
130
|
* @param data.isPublic - Whether the chat functionality of the agent can be accessed without security rules.
|
|
131
131
|
* @returns A promise that resolves when the agent is successfully created.
|
|
132
132
|
*/
|
|
@@ -137,7 +137,7 @@ export declare class AiAgentReference {
|
|
|
137
137
|
*
|
|
138
138
|
* @param data - An object containing options for updating the agent.
|
|
139
139
|
* @param data.modelName - The name of the OpenAI model (`gpt-3.5`, `gpt-4`, `claude-3-5-sonnet-latest`,
|
|
140
|
-
* `claude-3-5-haiku-latest`, `gemini-1.5-pro`,
|
|
140
|
+
* `claude-3-5-haiku-latest`, `gemini-1.5-pro`, `gemini-2.0-flash`).
|
|
141
141
|
* @param data.isPublic - Whether the chat functionality of the agent can be accessed without security rules.
|
|
142
142
|
* @param file - The file to upload (optional).
|
|
143
143
|
* @returns A promise that resolves when the agent is successfully updated.
|
|
@@ -15,7 +15,7 @@ export declare class AiClient {
|
|
|
15
15
|
private readonly rpcManager;
|
|
16
16
|
private readonly aiAssistantClient;
|
|
17
17
|
private aiAgentClient?;
|
|
18
|
-
agent(agentId
|
|
18
|
+
agent(agentId?: AiAgentId): AiAgentReference;
|
|
19
19
|
/**
|
|
20
20
|
* Retrieves the AI assistant client.
|
|
21
21
|
* @returns An instance of AiAssistantClient.
|
|
@@ -38,6 +38,7 @@ export * from './observability-client';
|
|
|
38
38
|
export * from './secret.client';
|
|
39
39
|
export * from './scheduler-client';
|
|
40
40
|
export * from './integration-client';
|
|
41
|
+
export * from './agent-client';
|
|
41
42
|
export * from './socket.manager';
|
|
42
43
|
export * from './squid-http-client';
|
|
43
44
|
export * from './squid';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.325";
|