@squidcloud/client 1.0.284 → 1.0.286
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/metric-name.d.ts +9 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +2 -1
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +4 -2
- package/dist/internal-common/src/public-types/context.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +2 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +5 -0
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +2 -0
- package/dist/internal-common/src/public-types/regions.public-types.d.ts +0 -4
- package/dist/internal-common/src/types/observability.types.d.ts +59 -0
- package/dist/internal-common/src/utils/metrics.types.d.ts +7 -0
- package/dist/typescript-client/src/ai-agent-client.d.ts +3 -3
- package/dist/typescript-client/src/ai-image-client.d.ts +1 -0
- package/dist/typescript-client/src/collection-reference.d.ts +1 -1
- package/dist/typescript-client/src/document-reference.d.ts +1 -1
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +1 -1
- package/dist/typescript-client/src/secret.client.d.ts +20 -2
- package/dist/typescript-client/src/squid.d.ts +5 -5
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names of the Squid metrics.
|
|
3
|
+
* Should be in sync with MetricName.kt.
|
|
4
|
+
* See MetricName.kt for documentation on each value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ALL_SQUID_METRIC_NAMES: readonly ["squid_functionExecution_count", "squid_functionExecution_time", "squid_aiChatbotContext_size", "squid_aiChatbotChatInputTokens_count", "squid_aiChatbotChatOutputTokens_count", "squid_aiChatbotChatOutcome_count", "squid_aiImageGeneration_count", "squid_aiImageGeneration_time", "squid_aiRemoveBackground_count", "squid_aiRemoveBackground_time", "squid_aiAudioTranscribe_count", "squid_aiAudioTranscribe_time", "squid_aiAudioCreateSpeech_count", "squid_aiAudioCreateSpeech_time", "squid_aiIntegrationData_count", "squid_aiIntegrationData_time", "squid_apiControllerCall_count", "squid_apiControllerCall_time", "squid_built_in_db_size", "squid_codeInitialization_count", "squid_codeInitialization_time", "squid_deleteApiKey_count", "squid_deleteApiKey_time", "squid_deleteSecret_count", "squid_deleteSecret_time", "squid_discoverGraphQLConnectionSchema_count", "squid_discoverGraphQLConnectionSchema_time", "squid_discoverOpenApiSchema_count", "squid_discoverOpenApiSchema_time", "squid_discoverOpenApiSchemaFromFile_count", "squid_discoverOpenApiSchemaFromFile_time", "squid_executeBackendFunction_count", "squid_executeBackendFunction_time", "squid_getAiChatbotProfiles_count", "squid_getAiChatbotProfiles_time", "squid_getAllApiKeys_count", "squid_getAllApiKeys_time", "squid_getAllSecrets_count", "squid_getAllSecrets_time", "squid_getAppApiKey_count", "squid_getAppApiKey_time", "squid_getSecret_count", "squid_getSecret_time", "squid_graphql_count", "squid_graphql_time", "squid_graphqlQuery_count", "squid_graphqlQuery_time", "squid_integrationCount_value", "squid_acquireLock_count", "squid_releaseLock_count", "squid_mutate_count", "squid_mutate_time", "squid_metricQuery_count", "squid_metricQuery_time", "squid_metricReport_count", "squid_metricReport_time", "squid_nativeQuery_count", "squid_nativeQuery_time", "squid_openapi_count", "squid_openapi_time", "squid_produceTopicMessage_count", "squid_produceTopicMessage_time", "squid_query_count", "squid_query_time", "squid_registerQuery_count", "squid_registerQuery_time", "squid_schedulerJob_count", "squid_schedulerJob_time", "squid_schema_size", "squid_secrets_entries", "squid_storageDeleteFiles_count", "squid_storageDeleteFiles_time", "squid_storageGetDownloadUrl_count", "squid_storageGetDownloadUrl_time", "squid_storageGetFileMetadata_count", "squid_storageGetFileMetadata_time", "squid_storageListDirectoryContents_count", "squid_storageListDirectoryContents_time", "squid_storageUploadFile_count", "squid_storageUploadFile_time", "squid_subscribeToTopic_count", "squid_subscribeToTopic_time", "squid_testGraphQLConnection_count", "squid_testGraphQLConnection_time", "squid_trigger_count", "squid_trigger_time", "squid_upsertApiKey_count", "squid_upsertApiKey_time", "squid_upsertSecret_count", "squid_upsertSecret_time", "squid_webhook_count", "squid_webhook_time"];
|
|
7
|
+
export type MetricName = (typeof ALL_SQUID_METRIC_NAMES)[number];
|
|
8
|
+
/** Common prefix for all Squid metrics. */
|
|
9
|
+
export declare const SQUID_METRIC_NAME_PREFIX = "squid_";
|
|
@@ -37,7 +37,8 @@ export type FluxModelName = (typeof FLUX_MODEL_NAMES)[number];
|
|
|
37
37
|
export type AiGenerateImageOptions = DallEOptions | StableDiffusionCoreOptions | FluxOptions;
|
|
38
38
|
export type AiAudioTranscribeOptions = WhisperOptions;
|
|
39
39
|
export type AiAudioCreateSpeechOptions = OpenAiCreateSpeechOptions;
|
|
40
|
-
export
|
|
40
|
+
export declare const VECTOR_DB_TYPES: readonly ["pinecone", "postgres"];
|
|
41
|
+
export type VectorDbType = (typeof VECTOR_DB_TYPES)[number];
|
|
41
42
|
export interface AiAudioCreateSpeechResponse {
|
|
42
43
|
mimeType: string;
|
|
43
44
|
extension: string;
|
|
@@ -9,7 +9,6 @@ export type MetricActionType = 'write' | 'all';
|
|
|
9
9
|
/** The different types of actions that can be performed on an AI chatbot. */
|
|
10
10
|
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
11
11
|
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
12
|
-
export type FunctionName = string;
|
|
13
12
|
export interface AiFunctionParam {
|
|
14
13
|
name: string;
|
|
15
14
|
description: string;
|
|
@@ -17,5 +16,6 @@ export interface AiFunctionParam {
|
|
|
17
16
|
required: boolean;
|
|
18
17
|
}
|
|
19
18
|
export type TopicName = string;
|
|
19
|
+
export type FunctionName = string;
|
|
20
20
|
export type ServiceName = string;
|
|
21
21
|
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
@@ -3,10 +3,12 @@ export type AppId = string;
|
|
|
3
3
|
export declare const ENVIRONMENT_IDS: readonly ["dev", "prod"];
|
|
4
4
|
export type EnvironmentId = (typeof ENVIRONMENT_IDS)[number];
|
|
5
5
|
export type SquidDeveloperId = string;
|
|
6
|
-
/** @deprecated. Use ENVIRONMENT_IDS. */
|
|
7
|
-
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
8
6
|
/** A type alias for an integration id. */
|
|
9
7
|
export type IntegrationId = string;
|
|
10
8
|
export type ClientId = string;
|
|
11
9
|
export type SquidDocId = string;
|
|
12
10
|
export type ClientRequestId = string;
|
|
11
|
+
/** ID of AI agent. Also known as AI profile id. */
|
|
12
|
+
export type AiAgentId = string;
|
|
13
|
+
export type AiProfileId = AiAgentId;
|
|
14
|
+
export type AiContextId = string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IntegrationId } from './communication.public-types';
|
|
1
2
|
export declare enum IntegrationType {
|
|
2
3
|
'built_in_db' = "built_in_db",
|
|
3
4
|
'mongo' = "mongo",
|
|
@@ -69,3 +70,4 @@ export declare enum IntegrationSchemaType {
|
|
|
69
70
|
'api' = "api",
|
|
70
71
|
'graphql' = "graphql"
|
|
71
72
|
}
|
|
73
|
+
export declare const AI_AGENTS_INTEGRATION_ID: IntegrationId;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AiChatModelName, AiEmbeddingsModelName, VectorDbType } from '../ai-chatbot.public-types';
|
|
2
|
+
import { FunctionName } from '../bundle-data.public-types';
|
|
2
3
|
export type AiChatbotConfiguration = {
|
|
3
4
|
apiKey?: string;
|
|
4
5
|
};
|
|
@@ -7,8 +8,12 @@ export type AiChatbotProfileMetadata = {
|
|
|
7
8
|
isPublic: boolean;
|
|
8
9
|
strictContext: boolean;
|
|
9
10
|
instructions: Record<string, string>;
|
|
11
|
+
/** 'text-embedding-ada-002' if undefined. */
|
|
10
12
|
embeddingModelName?: AiEmbeddingsModelName;
|
|
13
|
+
/** 'pinecone' if undefined. */
|
|
11
14
|
vectorDbType?: VectorDbType;
|
|
15
|
+
/** List of AI functions attached to the profile by default. */
|
|
16
|
+
functions?: Array<FunctionName>;
|
|
12
17
|
};
|
|
13
18
|
export type AiChatbotContextMetadata = {
|
|
14
19
|
title: string;
|
|
@@ -11,6 +11,7 @@ export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
|
11
11
|
export interface ApiRequestField {
|
|
12
12
|
location: ApiParameterLocation;
|
|
13
13
|
description?: string;
|
|
14
|
+
required?: boolean;
|
|
14
15
|
}
|
|
15
16
|
/** The options for calling an API. */
|
|
16
17
|
export interface CallApiOptions {
|
|
@@ -55,6 +56,7 @@ export interface ApiEndpoint {
|
|
|
55
56
|
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
56
57
|
injectionSchema?: ApiInjectionSchema;
|
|
57
58
|
tags?: Array<string>;
|
|
59
|
+
description?: string;
|
|
58
60
|
}
|
|
59
61
|
export interface DiscoverOpenApiSchemaRequest {
|
|
60
62
|
integrationId: IntegrationId;
|
|
@@ -2,7 +2,3 @@
|
|
|
2
2
|
export declare const SQUID_REGIONS: readonly ["us-east-1.aws", "ap-south-1.aws", "us-central1.gcp"];
|
|
3
3
|
/** Region type used by Squid. */
|
|
4
4
|
export type SquidRegion = (typeof SQUID_REGIONS)[number];
|
|
5
|
-
/** @deprecated: Use 'SQUID_REGIONS'. */
|
|
6
|
-
export declare const SUPPORTED_SQUID_REGIONS: readonly ["us-east-1.aws", "ap-south-1.aws", "us-central1.gcp"];
|
|
7
|
-
/** @deprecated: Use 'SquidRegion'. */
|
|
8
|
-
export type SupportedSquidRegion = SquidRegion;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { MetricName } from '../metric-name';
|
|
2
|
+
import { AppId } from '../public-types/communication.public-types';
|
|
3
|
+
export interface ObservableNameMetrics {
|
|
4
|
+
count: MetricName;
|
|
5
|
+
time: MetricName;
|
|
6
|
+
}
|
|
7
|
+
export declare const ObservableNames: {
|
|
8
|
+
readonly functionExecution: ObservableNameMetrics;
|
|
9
|
+
readonly codeInitialization: ObservableNameMetrics;
|
|
10
|
+
readonly getAiChatbotProfiles: ObservableNameMetrics;
|
|
11
|
+
readonly aiImageGeneration: ObservableNameMetrics;
|
|
12
|
+
readonly aiRemoveBackground: ObservableNameMetrics;
|
|
13
|
+
readonly aiAudioTranscribe: ObservableNameMetrics;
|
|
14
|
+
readonly aiAudioCreateSpeech: ObservableNameMetrics;
|
|
15
|
+
readonly discoverGraphQLConnectionSchema: ObservableNameMetrics;
|
|
16
|
+
readonly discoverOpenApiSchema: ObservableNameMetrics;
|
|
17
|
+
readonly discoverOpenApiSchemaFromFile: ObservableNameMetrics;
|
|
18
|
+
readonly graphqlQuery: ObservableNameMetrics;
|
|
19
|
+
readonly testGraphQLConnection: ObservableNameMetrics;
|
|
20
|
+
readonly graphql: ObservableNameMetrics;
|
|
21
|
+
};
|
|
22
|
+
export type ObservableName = keyof typeof ObservableNames;
|
|
23
|
+
export interface MetricEvent {
|
|
24
|
+
appId: AppId;
|
|
25
|
+
name: MetricName;
|
|
26
|
+
tags: Record<string, string>;
|
|
27
|
+
timestamp: Date;
|
|
28
|
+
value: number;
|
|
29
|
+
isExposedToUser: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface LogEvent {
|
|
32
|
+
message: string;
|
|
33
|
+
level: string;
|
|
34
|
+
tags: Record<string, string>;
|
|
35
|
+
timestamp: Date;
|
|
36
|
+
isExposedToUser: boolean;
|
|
37
|
+
host: string;
|
|
38
|
+
source?: string;
|
|
39
|
+
service?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Tag for metric events. Value: '0' - not an error, '1' - is an error. */
|
|
42
|
+
export declare const O11Y_TAG_IS_ERROR = "isError";
|
|
43
|
+
/** Tag for log events. Metrics have an explicit appId field. */
|
|
44
|
+
export declare const O11Y_TAG_APP_ID = "appId";
|
|
45
|
+
/** Tag for metric and log events. */
|
|
46
|
+
export declare const O11Y_TAG_INTEGRATION_ID = "integrationId";
|
|
47
|
+
/** Tag for AI events. */
|
|
48
|
+
export declare const O11Y_TAG_AI_MODEL = "aiModel";
|
|
49
|
+
export declare const O11Y_TAG_AI_PROFILE = "aiProfile";
|
|
50
|
+
export declare const O11Y_TAG_API_KEY_SOURCE = "apiKeySource";
|
|
51
|
+
/** Tag for metric and log events. Value: '0' - not a tenant originated, '1' - is a tenant originated. */
|
|
52
|
+
export declare const O11Y_TAG_IS_TENANT_ORIGINATED = "isTenantOriginated";
|
|
53
|
+
/** Contains a full (with a service name) function name for backend functions. */
|
|
54
|
+
export declare const O11Y_TAG_FUNCTION_NAME = "functionName";
|
|
55
|
+
/** Contains a type of the function name for backend functions (See ExecuteFunctionAnnotationType.). */
|
|
56
|
+
export declare const O11Y_TAG_FUNCTION_TYPE = "functionType";
|
|
57
|
+
export declare function getBooleanMetricTagValue(value: boolean): string;
|
|
58
|
+
export declare const COUNT_METRIC_SUFFIXES: string[];
|
|
59
|
+
export declare const GAUGE_METRIC_SUFFIXES: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type suffixes defines the type of the metric and can be used for
|
|
3
|
+
* metric value validation for incoming metrics.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SQUID_METRIC_TYPE_SUFFIXES: readonly ["_count", "_time", "_size", "_entries", "_value"];
|
|
6
|
+
/** Returns true if the given metric has a valid metric type. */
|
|
7
|
+
export declare function hasValidMetricTypeSuffix(metricName: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiChatbotChatOptions, AiChatbotContext, AiChatModelName, AiSearchOptions, AiSearchResponse, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse } from './public-types';
|
|
1
|
+
import { AiProfileId, AiChatbotChatOptions, AiChatbotContext, AiChatModelName, AiSearchOptions, AiSearchResponse, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse } from './public-types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export interface TranscribeAndChatResponse {
|
|
4
4
|
transcribedPrompt: string;
|
|
@@ -49,12 +49,12 @@ export declare class AiAgentClient {
|
|
|
49
49
|
/**
|
|
50
50
|
* Sends a prompt to the specified profile id and returns the response as a Promise of string.
|
|
51
51
|
*
|
|
52
|
-
* @param
|
|
52
|
+
* @param agentId - The agent id (profile id).
|
|
53
53
|
* @param prompt - The prompt.
|
|
54
54
|
* @param options - The options to send to the chat model.
|
|
55
55
|
* @returns A promise that resolves when the chat is complete. The resolved value is the entire response.
|
|
56
56
|
*/
|
|
57
|
-
ask(
|
|
57
|
+
ask(agentId: AiProfileId, prompt: string, options?: AskOptionsWithoutVoice): Promise<string>;
|
|
58
58
|
transcribeAndAsk(profileId: string, fileToTranscribe: File, options?: AskOptionsWithoutVoice): Promise<AiTranscribeAndAskResponse>;
|
|
59
59
|
transcribeAndAskWithVoiceResponse(profileId: string, fileToTranscribe: File, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<TranscribeAndAskWithVoiceResponse>;
|
|
60
60
|
askWithVoiceResponse(profileId: string, prompt: string, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<AskWithVoiceResponse>;
|
|
@@ -20,7 +20,7 @@ export interface DocIdAndData<T extends DocumentData> {
|
|
|
20
20
|
* collection in a NoSQL database.
|
|
21
21
|
*
|
|
22
22
|
* Read more about collection references in the
|
|
23
|
-
* {@link https://docs.
|
|
23
|
+
* {@link https://docs.getsquid.ai/docs/database/collection-reference documentation}.
|
|
24
24
|
* @typeParam T The type of the document data.
|
|
25
25
|
*/
|
|
26
26
|
export declare class CollectionReference<T extends DocumentData> {
|
|
@@ -9,7 +9,7 @@ import { DeepRecord, Paths } from '../../internal-common/src/public-types/typesc
|
|
|
9
9
|
* use to create a new document.
|
|
10
10
|
*
|
|
11
11
|
* Read more about document references in the
|
|
12
|
-
* {@link https://docs.
|
|
12
|
+
* {@link https://docs.getsquid.ai/docs/database/document-reference documentation}.
|
|
13
13
|
* @typeParam T The type of the document data.
|
|
14
14
|
*/
|
|
15
15
|
export declare class DocumentReference<T extends DocumentData = any> {
|
|
@@ -40,7 +40,7 @@ interface HasGrouped {
|
|
|
40
40
|
/**
|
|
41
41
|
* A query builder that can participate in a join.
|
|
42
42
|
* To learn more about join queries, see the
|
|
43
|
-
* {@link https://docs.
|
|
43
|
+
* {@link https://docs.getsquid.ai/docs/database/queries#joining-data-across-collections-and-integrations documentation}.
|
|
44
44
|
*/
|
|
45
45
|
export declare class JoinQueryBuilder<Aliases extends Record<Alias, Alias[]>, ReturnType extends Record<Alias, DocumentData>, LatestAlias extends Alias, RootAlias extends Alias> extends BaseQueryBuilder<ReturnType> implements SnapshotEmitter<WithDocumentReferences<ReturnType>>, HasGrouped, HasDereference {
|
|
46
46
|
private readonly collectionName;
|
|
@@ -5,8 +5,26 @@ export declare class SecretClient {
|
|
|
5
5
|
getAll(): Promise<Record<SecretKey, SecretEntry>>;
|
|
6
6
|
upsert(key: SecretKey, value: SecretValue): Promise<SecretEntry>;
|
|
7
7
|
upsertMany(entries: Array<SetSecretRequestEntry>): Promise<Array<SecretEntry>>;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a specified secret key.
|
|
10
|
+
* If the secret is missing, it will be ignored, and the operation will proceed without failure.
|
|
11
|
+
*
|
|
12
|
+
* @param key - The secret key to delete.
|
|
13
|
+
* @param force - If set to true, forces deletion regardless of the secret's usage status across any enabled
|
|
14
|
+
* integrations. Default is false.
|
|
15
|
+
* @returns A promise that resolves when the deletion request is complete.
|
|
16
|
+
*/
|
|
17
|
+
delete(key: SecretKey, force?: boolean): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes a list of specified secret keys.
|
|
20
|
+
* If any secret in the list is missing, it will be ignored, and the operation will proceed without failure.
|
|
21
|
+
*
|
|
22
|
+
* @param keys - An array of secret keys to delete.
|
|
23
|
+
* @param force - If set to true, forces deletion regardless of the secret's usage status across any enabled
|
|
24
|
+
* integrations. Default is false.
|
|
25
|
+
* @returns A promise that resolves when the deletion request is complete.
|
|
26
|
+
*/
|
|
27
|
+
deleteMany(keys: Array<SecretKey>, force?: boolean): Promise<void>;
|
|
10
28
|
get apiKeys(): ApiKeysSecretClient;
|
|
11
29
|
}
|
|
12
30
|
export declare class ApiKeysSecretClient {
|
|
@@ -142,7 +142,7 @@ export declare class Squid {
|
|
|
142
142
|
* If the integrationId is not provided, the `built_in_db` integration id will be used.
|
|
143
143
|
*
|
|
144
144
|
* For more information on the CollectionReference object, please refer to the
|
|
145
|
-
* {@link https://docs.
|
|
145
|
+
* {@link https://docs.getsquid.ai/docs/database/collection-reference documentation}.
|
|
146
146
|
*
|
|
147
147
|
* @param collectionName The name of the collection.
|
|
148
148
|
* @param integrationId The id of the integration, default to `built_in_db`.
|
|
@@ -155,7 +155,7 @@ export declare class Squid {
|
|
|
155
155
|
* will be atomic. Note that mutations for different integrations will not be atomic.
|
|
156
156
|
*
|
|
157
157
|
* For more information about transactions in Squid, please refer to the
|
|
158
|
-
* {@link https://docs.
|
|
158
|
+
* {@link https://docs.getsquid.ai/docs/database/transactions documentation}.
|
|
159
159
|
*
|
|
160
160
|
* @param fn The callback to run as an atomic change. The function receives a transactionId that should be used for
|
|
161
161
|
* all the mutations that should be atomic. The function should return a promise.
|
|
@@ -167,7 +167,7 @@ export declare class Squid {
|
|
|
167
167
|
* Executes the given backend function with the given parameters and returns a promise with the result.
|
|
168
168
|
*
|
|
169
169
|
* For more information about backend functions in Squid, please refer to the
|
|
170
|
-
* {@link https://docs.
|
|
170
|
+
* {@link https://docs.getsquid.ai/docs/backend/executables/ documentation}.
|
|
171
171
|
*
|
|
172
172
|
* @param functionName The name of the function to execute on the server.
|
|
173
173
|
* @param params The parameters to pass to the function.
|
|
@@ -177,7 +177,7 @@ export declare class Squid {
|
|
|
177
177
|
executeFunction<T = any>(functionName: string, ...params: any[]): Promise<T>;
|
|
178
178
|
/**
|
|
179
179
|
* Executes a native relational query with the given parameters and returns a promise with the result.
|
|
180
|
-
* See https://docs.
|
|
180
|
+
* See https://docs.getsquid.ai/docs/database/native-queries.
|
|
181
181
|
*
|
|
182
182
|
* @param integrationId The id of the integration that the query is associated with.
|
|
183
183
|
* @param query The raw SQL or other database-specific query to execute.
|
|
@@ -188,7 +188,7 @@ export declare class Squid {
|
|
|
188
188
|
executeNativeRelationalQuery<T = any>(integrationId: IntegrationId, query: string, params?: Record<string, any>): Promise<Array<T>>;
|
|
189
189
|
/**
|
|
190
190
|
* Executes a native Mongo/built-in-db query with the given pipeline and returns a promise with the result.
|
|
191
|
-
* See https://docs.
|
|
191
|
+
* See https://docs.getsquid.ai/docs/database/native-queries#native-mongodb-queries.
|
|
192
192
|
*
|
|
193
193
|
* @param integrationId The id of the integration that the query is associated with.
|
|
194
194
|
* @param collectionName The collection to query.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.286";
|