@squidcloud/client 1.0.385 → 1.0.386

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,4 +1,6 @@
1
- import { AiChatModelName, ApiOptions, IntegrationId } from './public-types';
1
+ import { AiChatModelName } from './ai-agent.public-types';
2
+ import { ApiOptions } from './api-client.public-types';
3
+ import { IntegrationId } from './communication.public-types';
2
4
  /**
3
5
  * Request to execute an AI query using a specific integration.
4
6
  * Supports additional query execution options.
@@ -1,9 +1,9 @@
1
1
  import { IntegrationId } from '../public-types/communication.public-types';
2
2
  /**
3
- * Represents the type of native query request, either relational or MongoDB.
3
+ * Represents the type of native query request, either relational, elastic or MongoDB.
4
4
  * @category Database
5
5
  */
6
- export type NativeQueryRequestType = 'relational' | 'mongo';
6
+ export type NativeQueryRequestType = 'relational' | 'mongo' | 'elasticsearch';
7
7
  interface BaseNativeQueryContext {
8
8
  /** Type of the native query request. */
9
9
  type: NativeQueryRequestType;
@@ -1,9 +1,9 @@
1
+ import { ExecuteAiApiResponse, ExecuteAiQueryMultiResponse, ExecuteAiQueryOptions, ExecuteAiQueryResponse } from '../../internal-common/src/public-types/ai-query.public-types';
1
2
  import { AiAgentReference } from './agent/ai-agent-client-reference';
2
3
  import { AiAssistantClient } from './ai-assistant-client';
3
4
  import { AiAudioClient } from './ai-audio-client';
4
5
  import { AiImageClient } from './ai-image-client';
5
6
  import { AiMatchMakingClient } from './ai-matchmaking-client';
6
- import { ExecuteAiApiResponse, ExecuteAiQueryMultiResponse, ExecuteAiQueryOptions, ExecuteAiQueryResponse } from './ai.types';
7
7
  import { AiAgent, AiAgentId, AiProviderType, ApplicationAiSettings, IntegrationId, SecretKey } from './public-types';
8
8
  /**
9
9
  * AiClient class serves as a facade for interacting with different AI services.
@@ -77,6 +77,7 @@ export declare class AiClient {
77
77
  * @param prompt The prompt to send to the AI.
78
78
  * @param options Optional query execution parameters.
79
79
  * @returns A promise resolving to the responses from all queried integrations.
80
+ * @deprecated Use `executeAiQuery`.
80
81
  */
81
82
  executeAiQueryMulti(integrationIds: Array<IntegrationId>, prompt: string, options?: ExecuteAiQueryOptions): Promise<ExecuteAiQueryMultiResponse>;
82
83
  /**
@@ -7,10 +7,10 @@ export * from './ai-audio-client';
7
7
  export * from './ai-client';
8
8
  export * from './ai-image-client';
9
9
  export * from './ai-matchmaking-client';
10
- export * from './ai.types';
11
10
  export * from './api-client';
12
11
  export * from './auth.manager';
13
12
  export * from './backend-function.manager';
13
+ export * from './client-customization.utils';
14
14
  export * from './client-id.service';
15
15
  export * from './collection-reference';
16
16
  export * from './collection-reference.factory';
@@ -2,6 +2,7 @@ export * from '../../internal-common/src/public-types/ai-agent-integrations.publ
2
2
  export * from '../../internal-common/src/public-types/ai-agent.public-types';
3
3
  export * from '../../internal-common/src/public-types/ai-assistant.public-types';
4
4
  export * from '../../internal-common/src/public-types/ai-matchmaking.public-types';
5
+ export * from '../../internal-common/src/public-types/ai-query.public-types';
5
6
  export * from '../../internal-common/src/public-types/api-client.public-types';
6
7
  export * from '../../internal-common/src/public-types/api.public-types';
7
8
  export * from '../../internal-common/src/public-types/backend.public-types';
@@ -199,8 +199,8 @@ export declare class Squid {
199
199
  * See https://docs.getsquid.ai/docs/sdk/client-sdk/database/native-queries.
200
200
  *
201
201
  * @param integrationId The id of the integration that the query is associated with.
202
- * @param query The raw SQL or other database-specific query to execute.
203
- * @param params (Optional) The parameters to pass to the query. Defaults to an empty object.
202
+ * @param query The raw SQL or database-specific query string to execute. Use named bind variables enclosed in ${}, e.g., ${firstName}.
203
+ * @param params (Optional) An object containing key-value pairs to bind to the query variables. Defaults to an empty object.
204
204
  * @returns A promise that resolves with the result of the query.
205
205
  */
206
206
  executeNativeRelationalQuery<T = any>(integrationId: IntegrationId, query: string, params?: Record<string, any>): Promise<Array<T>>;
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.385";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.386";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.385",
3
+ "version": "1.0.386",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",