@squidcloud/client 1.0.351 → 1.0.353
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-integrations.public-types.d.ts +14 -0
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +55 -4
- package/dist/internal-common/src/public-types/ai-assistant.public-types.d.ts +4 -4
- package/dist/internal-common/src/public-types/{integrations/api.public-types.d.ts → api.public-types.d.ts} +1 -1
- package/dist/internal-common/src/public-types/backend.public-types.d.ts +6 -1
- package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +1 -1
- package/dist/internal-common/src/types/ai-agent.types.d.ts +0 -1
- package/dist/internal-common/src/types/ai-matchmaking.types.d.ts +1 -1
- package/dist/internal-common/src/utils/validation.d.ts +1 -1
- package/dist/typescript-client/src/ai-matchmaking-client.d.ts +1 -1
- package/dist/typescript-client/src/api-client.d.ts +1 -1
- package/dist/typescript-client/src/execute-function-options.d.ts +73 -0
- package/dist/typescript-client/src/index.d.ts +1 -0
- package/dist/typescript-client/src/integration-client.d.ts +7 -0
- package/dist/typescript-client/src/public-types.d.ts +4 -3
- package/dist/typescript-client/src/squid.d.ts +4 -2
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/internal-common/src/public-types/{ai-matchmaking.types.d.ts → ai-matchmaking.public-types.d.ts} +0 -0
- /package/dist/internal-common/src/public-types/{http-status.enum.d.ts → http-status.public-types.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for AI agent database integration.
|
|
3
|
+
*/
|
|
4
|
+
export interface AiAgentDatabaseIntegrationOptions {
|
|
5
|
+
/**
|
|
6
|
+
* A list of collection (or table) name filters that the AI agent can query data from.
|
|
7
|
+
*
|
|
8
|
+
* Currently, the following filters are supported:
|
|
9
|
+
* - Exact match: Only collection names that exactly match the filter can be used for AI queries. This is case-sensitive.
|
|
10
|
+
*
|
|
11
|
+
* When this list is not provided (i.e., it is `undefined`) or is empty, the AI agent has access to all collections.
|
|
12
|
+
*/
|
|
13
|
+
collectionsToUse?: string[];
|
|
14
|
+
}
|
|
@@ -13,7 +13,7 @@ export declare const OPENAI_REASONING_CHAT_MODEL_NAMES: readonly ["o1", "o1-mini
|
|
|
13
13
|
/**
|
|
14
14
|
* @category AI
|
|
15
15
|
*/
|
|
16
|
-
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3", "o3-mini", "o4-mini"];
|
|
16
|
+
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "gpt-4.1-nano", "gpt-4.1-mini", "gpt-4.1", "o1", "o1-mini", "o3", "o3-mini", "o4-mini"];
|
|
17
17
|
/**
|
|
18
18
|
* @category AI
|
|
19
19
|
*/
|
|
@@ -26,7 +26,7 @@ export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-5-haiku-lat
|
|
|
26
26
|
* The supported AI model names.
|
|
27
27
|
* @category AI
|
|
28
28
|
*/
|
|
29
|
-
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o3", "o3-mini", "o4-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "gemini-1.5-pro", "gemini-2.0-flash"];
|
|
29
|
+
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "gpt-4.1-nano", "gpt-4.1-mini", "gpt-4.1", "o1", "o1-mini", "o3", "o3-mini", "o4-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "claude-3-7-sonnet-latest", "gemini-1.5-pro", "gemini-2.0-flash"];
|
|
30
30
|
/**
|
|
31
31
|
* @category AI
|
|
32
32
|
*/
|
|
@@ -164,6 +164,22 @@ export type AiAudioTranscribeOptions = OpenAiAudioTranscribeOptions;
|
|
|
164
164
|
* @category AI
|
|
165
165
|
*/
|
|
166
166
|
export type AiAudioCreateSpeechOptions = OpenAiCreateSpeechOptions;
|
|
167
|
+
/**
|
|
168
|
+
* @category AI
|
|
169
|
+
*/
|
|
170
|
+
export declare const RAG_TYPES: readonly ["contextual", "basic"];
|
|
171
|
+
/**
|
|
172
|
+
* @category AI
|
|
173
|
+
*/
|
|
174
|
+
export type AiRagType = (typeof RAG_TYPES)[number];
|
|
175
|
+
/**
|
|
176
|
+
* @category AI
|
|
177
|
+
*/
|
|
178
|
+
export declare const RERANK_PROVIDERS: readonly ["cohere", "none"];
|
|
179
|
+
/**
|
|
180
|
+
* @category AI
|
|
181
|
+
*/
|
|
182
|
+
export type AiRerankProvider = (typeof RERANK_PROVIDERS)[number];
|
|
167
183
|
/**
|
|
168
184
|
* Base options for generating images with an AI model.
|
|
169
185
|
* @category AI
|
|
@@ -309,7 +325,7 @@ export interface AiFileUrl {
|
|
|
309
325
|
* Metadata for an AI agent connected to an integration.
|
|
310
326
|
* @category AI
|
|
311
327
|
*/
|
|
312
|
-
export interface AiConnectedIntegrationMetadata {
|
|
328
|
+
export interface AiConnectedIntegrationMetadata<AiConnectedIntegrationOptionsType = unknown> {
|
|
313
329
|
/** The ID of the connected integration. */
|
|
314
330
|
integrationId: IntegrationId;
|
|
315
331
|
/** The type of the connected integration (e.g., API, database). */
|
|
@@ -318,6 +334,11 @@ export interface AiConnectedIntegrationMetadata {
|
|
|
318
334
|
description?: string;
|
|
319
335
|
/** Optional instructions for the connected integration agent, overriding the default if provided. */
|
|
320
336
|
instructions?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Additional options for the connected integration.
|
|
339
|
+
* Squid Core or AI functions in connector packages may use these options to adjust behavior of the integration agent.
|
|
340
|
+
*/
|
|
341
|
+
options?: AiConnectedIntegrationOptionsType;
|
|
321
342
|
}
|
|
322
343
|
/**
|
|
323
344
|
* Metadata for a connected AI agent callable by the current agent.
|
|
@@ -348,7 +369,7 @@ export interface AiChatPromptQuotas {
|
|
|
348
369
|
* @category AI
|
|
349
370
|
*/
|
|
350
371
|
export interface BaseAiAgentChatOptions {
|
|
351
|
-
/** The maximum number of tokens to use when making the request to the AI model.
|
|
372
|
+
/** The maximum number of tokens to use when making the request to the AI model. Defaults to the max tokens the model can accept. */
|
|
352
373
|
maxTokens?: number;
|
|
353
374
|
/** A unique chat ID, if the same chat ID is used again and history is not disabled, it will continue the conversation. */
|
|
354
375
|
chatId?: string;
|
|
@@ -395,6 +416,8 @@ export interface BaseAiAgentChatOptions {
|
|
|
395
416
|
guardrails?: GuardrailsOptions;
|
|
396
417
|
/** The LLM model to use. */
|
|
397
418
|
model?: AiChatModelName;
|
|
419
|
+
/** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
|
|
420
|
+
rerankProvider?: AiRerankProvider;
|
|
398
421
|
}
|
|
399
422
|
/**
|
|
400
423
|
* Chat options specific to Gemini models, extending base options.
|
|
@@ -526,6 +549,8 @@ export interface AiSearchOptions {
|
|
|
526
549
|
contextMetadataFilter?: AiContextMetadataFilter;
|
|
527
550
|
/** The maximum number of results to return */
|
|
528
551
|
limit?: number;
|
|
552
|
+
/** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
|
|
553
|
+
rerankProvider?: AiRerankProvider;
|
|
529
554
|
}
|
|
530
555
|
/**
|
|
531
556
|
* A single chunk of data returned from an AI search operation.
|
|
@@ -574,6 +599,18 @@ interface BaseContextRequest {
|
|
|
574
599
|
type: AiContextType;
|
|
575
600
|
metadata?: AiContextMetadata;
|
|
576
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* Base options for upserting text content into the AI agent's context.
|
|
604
|
+
* @category AI
|
|
605
|
+
*/
|
|
606
|
+
export interface AiContextTextOptions extends BaseAiContextOptions {
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Base options for upserting file content into the AI agent's context.
|
|
610
|
+
* @category AI
|
|
611
|
+
*/
|
|
612
|
+
export interface AiContextFileOptions extends BaseAiContextOptions {
|
|
613
|
+
}
|
|
577
614
|
/**
|
|
578
615
|
* @category AI
|
|
579
616
|
*/
|
|
@@ -589,6 +626,8 @@ export interface TextContextRequest extends BaseContextRequest {
|
|
|
589
626
|
title: string;
|
|
590
627
|
/** The text content to add to the context. */
|
|
591
628
|
text: string;
|
|
629
|
+
/** General options for how to process the text. */
|
|
630
|
+
options?: AiContextTextOptions;
|
|
592
631
|
}
|
|
593
632
|
/**
|
|
594
633
|
* Request structure for adding file-based context to an AI agent.
|
|
@@ -603,6 +642,8 @@ export interface FileContextRequest extends BaseContextRequest {
|
|
|
603
642
|
imageMinSizePixels?: number;
|
|
604
643
|
/** The AI model to use for extraction, if specified. */
|
|
605
644
|
extractionModel?: AiChatModelName;
|
|
645
|
+
/** General options for how to process the file. */
|
|
646
|
+
options?: AiContextFileOptions;
|
|
606
647
|
}
|
|
607
648
|
/**
|
|
608
649
|
* @category AI
|
|
@@ -671,6 +712,16 @@ export interface AiContextMetadataOrFilter {
|
|
|
671
712
|
* @category AI
|
|
672
713
|
*/
|
|
673
714
|
export type AiContextMetadataFilter = AiContextMetadataFieldFilter | AiContextMetadataAndFilter | AiContextMetadataOrFilter;
|
|
715
|
+
/**
|
|
716
|
+
* Base options for how to deal with the content being upserted.
|
|
717
|
+
* @category AI
|
|
718
|
+
*/
|
|
719
|
+
export type BaseAiContextOptions = {
|
|
720
|
+
/** The type of RAG to use for the content. */
|
|
721
|
+
ragType?: AiRagType;
|
|
722
|
+
/** Amount of chunk overlap, in characters. */
|
|
723
|
+
chunkOverlap?: number;
|
|
724
|
+
};
|
|
674
725
|
/**
|
|
675
726
|
* A record of metadata key-value pairs for AI context, where values are primitive types or undefined.
|
|
676
727
|
* @category AI
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenAiChatModelName, OpenAiReasoningEffort
|
|
2
|
-
import {
|
|
1
|
+
import { AiAgentResponseFormat, OpenAiChatModelName, OpenAiReasoningEffort } from './ai-agent.public-types';
|
|
2
|
+
import { AiFunctionId } from './backend.public-types';
|
|
3
3
|
/**
|
|
4
4
|
* The type of assistant tool.
|
|
5
5
|
* @category AI
|
|
@@ -12,8 +12,8 @@ export type AssistantToolType = 'code_interpreter' | 'file_search';
|
|
|
12
12
|
export interface QueryAssistantOptions {
|
|
13
13
|
/** Additional context provided to all AI functions for processing. */
|
|
14
14
|
agentContext?: Record<string, unknown>;
|
|
15
|
-
/** Specific context provided per AI function, keyed by function
|
|
16
|
-
functionContexts?: Record<
|
|
15
|
+
/** Specific context provided per AI function, keyed by function ID. */
|
|
16
|
+
functionContexts?: Record<AiFunctionId, Record<string, unknown>>;
|
|
17
17
|
/** The desired format of the AI model's response; defaults to 'text'. */
|
|
18
18
|
responseFormat?: AiAgentResponseFormat;
|
|
19
19
|
/** The OpenAI chat model to use for the assistant, if specified. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldName } from '
|
|
1
|
+
import { FieldName } from './document.public-types';
|
|
2
2
|
/** Represents the HTTP methods supported by an API endpoint. */
|
|
3
3
|
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
4
4
|
/** An identifier string used to uniquely represent an API endpoint. */
|
|
@@ -14,10 +14,15 @@ export type FunctionName = string;
|
|
|
14
14
|
* Function name with contextual data, where the data must be serializable as JSON.
|
|
15
15
|
*/
|
|
16
16
|
export interface AiFunctionIdWithContext {
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the AI function as described in @aiFunction decorator.
|
|
19
|
+
* Historically named as 'name' because AI function name is the default value for 'ID'.
|
|
20
|
+
*/
|
|
18
21
|
name: AiFunctionId;
|
|
19
22
|
/** A record of contextual data associated with the function call. */
|
|
20
23
|
context: Record<string, unknown>;
|
|
24
|
+
/** A list of predefined parameter values for the AI function. These parameters are hidden from the AI. */
|
|
25
|
+
predefinedParameters?: Record<string, unknown>;
|
|
21
26
|
}
|
|
22
27
|
/**
|
|
23
28
|
* A combined service and function name in the format 'ServiceName:FunctionName'.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiEndpointId, HttpMethod } from '../public-types/
|
|
1
|
+
import { ApiEndpointId, HttpMethod } from '../public-types/api.public-types';
|
|
2
2
|
import { IntegrationId } from '../public-types/communication.public-types';
|
|
3
3
|
import { ApiOptions } from '../public-types/api-client.public-types';
|
|
4
4
|
/** The headers of an API call. */
|
|
@@ -2,7 +2,6 @@ import { AgentContextRequest, AiAgent, AiAgentChatOptions, AiAgentContext, AiAud
|
|
|
2
2
|
import { AiAgentId, AppId, ClientRequestId } from '../public-types/communication.public-types';
|
|
3
3
|
type ModelDataType = {
|
|
4
4
|
maxTokens: number;
|
|
5
|
-
defaultTokens: number;
|
|
6
5
|
};
|
|
7
6
|
export declare const AiModelData: Record<AiChatModelName, ModelDataType>;
|
|
8
7
|
export interface AiChatRequest {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MmEntity, MmEntityMatch, MmFindMatchesOptions, MmListEntitiesOptions, MmMatchMaker } from '../public-types/ai-matchmaking.types';
|
|
1
|
+
import { MmEntity, MmEntityMatch, MmFindMatchesOptions, MmListEntitiesOptions, MmMatchMaker } from '../public-types/ai-matchmaking.public-types';
|
|
2
2
|
export interface MmCreateMatchMakerRequest {
|
|
3
3
|
matchMaker: MmMatchMaker;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MmEntity, MmEntityMatch, MmFindMatchesOptions, MmListEntitiesOptions, MmMatchMaker } from '../../internal-common/src/public-types/ai-matchmaking.types';
|
|
1
|
+
import { MmEntity, MmEntityMatch, MmFindMatchesOptions, MmListEntitiesOptions, MmMatchMaker } from '../../internal-common/src/public-types/ai-matchmaking.public-types';
|
|
2
2
|
/**
|
|
3
3
|
* Client for the AI Matchmaking service. This service allows you to create matchmakers and insert entities into them.
|
|
4
4
|
* The service will then find matches for the entities.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntegrationId } from '../../internal-common/src/public-types/communication.public-types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from '../../internal-common/src/public-types/
|
|
2
|
+
import { ApiEndpointId, HttpMethod } from '../../internal-common/src/public-types/api.public-types';
|
|
3
3
|
import { HttpResponse } from './squid-http-client';
|
|
4
4
|
import { ApiOptions } from '../../internal-common/src/public-types/api-client.public-types';
|
|
5
5
|
/**
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** Advanced options for a Squid `executeFunction` call. */
|
|
2
|
+
export interface ExecuteFunctionOptions<ResultType> {
|
|
3
|
+
/** The name of the `@executable` function to invoke. */
|
|
4
|
+
functionName: string;
|
|
5
|
+
/** Optional caching configuration. Reuses results based on argument values. */
|
|
6
|
+
caching?: ExecuteFunctionCachingOptions<ResultType>;
|
|
7
|
+
/**
|
|
8
|
+
* Deduplication config for sharing results of concurrent calls with the same args.
|
|
9
|
+
* When set to true a default mode with 'compareArgsByReference' is used.
|
|
10
|
+
*/
|
|
11
|
+
deduplication?: ConcurrentCallDeduplicationOptions | boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Defines caching behavior for `executeFunction`. */
|
|
14
|
+
export interface ExecuteFunctionCachingOptions<T> {
|
|
15
|
+
/** The caching implementation to use. */
|
|
16
|
+
cache: ExecuteFunctionCache<T>;
|
|
17
|
+
}
|
|
18
|
+
/** Interface for a function result cache. */
|
|
19
|
+
export interface ExecuteFunctionCache<ValueType> {
|
|
20
|
+
/** Retrieves a cached value for the given arguments. */
|
|
21
|
+
get(args: Array<unknown>): ExecuteFunctionCacheLookupResult<ValueType>;
|
|
22
|
+
/** Caches a result for the given arguments. */
|
|
23
|
+
set(args: Array<unknown>, value: ValueType): void;
|
|
24
|
+
}
|
|
25
|
+
/** Result object returned from a cache lookup. */
|
|
26
|
+
export type ExecuteFunctionCacheLookupResult<ValueType> = {
|
|
27
|
+
/** The cached value. */
|
|
28
|
+
value: ValueType;
|
|
29
|
+
/** Indicates that the value was found in the cache. */
|
|
30
|
+
found: true;
|
|
31
|
+
} | {
|
|
32
|
+
/** Indicates that the value was not found in the cache. */
|
|
33
|
+
found: false;
|
|
34
|
+
};
|
|
35
|
+
/** Comparator function type for evaluating argument equality. */
|
|
36
|
+
export type ExecuteFunctionArgsComparator = (args1: Array<unknown>, args2: Array<unknown>) => boolean;
|
|
37
|
+
/** Comparator that checks reference equality of arguments. */
|
|
38
|
+
export declare const compareArgsByReference: ExecuteFunctionArgsComparator;
|
|
39
|
+
/** Comparator that checks argument equality using serialization. */
|
|
40
|
+
export declare const compareArgsBySerializedValue: ExecuteFunctionArgsComparator;
|
|
41
|
+
/** A single cached result of a function call. */
|
|
42
|
+
export interface ExecuteFunctionCachedResult<T> {
|
|
43
|
+
/** Arguments used for the function call. */
|
|
44
|
+
args: Array<unknown>;
|
|
45
|
+
/** The result value returned by the function. */
|
|
46
|
+
result: T;
|
|
47
|
+
/** Time (in ms) when the result was cached. */
|
|
48
|
+
cacheTimeMillis: number;
|
|
49
|
+
}
|
|
50
|
+
/** Options for `LastUsedValueExecuteFunctionCache`. */
|
|
51
|
+
interface LastUsedValueExecuteFunctionCacheOptions {
|
|
52
|
+
/** Argument equality comparator. */
|
|
53
|
+
argsComparator: ExecuteFunctionArgsComparator;
|
|
54
|
+
/** Validity duration in milliseconds. */
|
|
55
|
+
valueExpirationMillis: number;
|
|
56
|
+
}
|
|
57
|
+
/** Lightweight cache storing only the last computed result. */
|
|
58
|
+
export declare class LastUsedValueExecuteFunctionCache<T> implements ExecuteFunctionCache<T> {
|
|
59
|
+
private readonly options;
|
|
60
|
+
protected cachedEntry?: ExecuteFunctionCachedResult<T>;
|
|
61
|
+
/** Creates a new instance of `LastUsedValueExecuteFunctionCache`. */
|
|
62
|
+
constructor(options: Partial<LastUsedValueExecuteFunctionCacheOptions>);
|
|
63
|
+
/** @inheritdoc */
|
|
64
|
+
get(args: Array<unknown>): ExecuteFunctionCacheLookupResult<T>;
|
|
65
|
+
/** @inheritdoc */
|
|
66
|
+
set(args: Array<unknown>, value: T): void;
|
|
67
|
+
}
|
|
68
|
+
/** Configuration for deduplicating concurrent function calls. */
|
|
69
|
+
export interface ConcurrentCallDeduplicationOptions {
|
|
70
|
+
/** Comparator to determine if concurrent calls are equivalent. */
|
|
71
|
+
argsComparator: ExecuteFunctionArgsComparator;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -17,6 +17,7 @@ export * from './document-identity.service';
|
|
|
17
17
|
export * from './document-reference.factory';
|
|
18
18
|
export * from './document-reference';
|
|
19
19
|
export * from './document-store';
|
|
20
|
+
export * from './execute-function-options';
|
|
20
21
|
export * from './mutation/mutation-sender';
|
|
21
22
|
export * from './native-query-manager';
|
|
22
23
|
export * from './public-types';
|
|
@@ -21,6 +21,13 @@ export declare class IntegrationClient {
|
|
|
21
21
|
* @returns A promise that resolves with the integration info, or `undefined` if not found.
|
|
22
22
|
*/
|
|
23
23
|
get<ConfigurationType = Record<string, any>>(integrationId: IntegrationId): Promise<IntegrationInfo<ConfigurationType> | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves the integration's schema by its ID.
|
|
26
|
+
*
|
|
27
|
+
* @param integrationId - The ID of the integration to retrieve.
|
|
28
|
+
* @returns A promise that resolves with the integration schema, or `undefined` if not found.
|
|
29
|
+
*/
|
|
30
|
+
getIntegrationSchema<ConfigurationType = Record<string, any>>(integrationId: IntegrationId): Promise<IntegrationInfo<ConfigurationType> | undefined>;
|
|
24
31
|
/**
|
|
25
32
|
* Deletes the integration with the given ID.
|
|
26
33
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from '../../internal-common/src/public-types/ai-agent-integrations.public-types';
|
|
1
2
|
export * from '../../internal-common/src/public-types/ai-assistant.public-types';
|
|
2
3
|
export * from '../../internal-common/src/public-types/ai-agent.public-types';
|
|
3
4
|
export * from '../../internal-common/src/public-types/api-client.public-types';
|
|
@@ -5,9 +6,9 @@ export * from '../../internal-common/src/public-types/code-executor.public-types
|
|
|
5
6
|
export * from '../../internal-common/src/public-types/communication.public-types';
|
|
6
7
|
export * from '../../internal-common/src/public-types/context.public-types';
|
|
7
8
|
export * from '../../internal-common/src/public-types/document.public-types';
|
|
8
|
-
export * from '../../internal-common/src/public-types/http-status.
|
|
9
|
+
export * from '../../internal-common/src/public-types/http-status.public-types';
|
|
9
10
|
export * from '../../internal-common/src/public-types/integration.public-types';
|
|
10
|
-
export * from '../../internal-common/src/public-types/
|
|
11
|
+
export * from '../../internal-common/src/public-types/api.public-types';
|
|
11
12
|
export * from '../../internal-common/src/public-types/metric.public-types';
|
|
12
13
|
export * from '../../internal-common/src/public-types/openapi.public-types';
|
|
13
14
|
export * from '../../internal-common/src/public-types/query.public-types';
|
|
@@ -19,6 +20,6 @@ export * from '../../internal-common/src/public-types/scheduler.public-types';
|
|
|
19
20
|
export * from '../../internal-common/src/public-types/socket.public-types';
|
|
20
21
|
export * from '../../internal-common/src/public-types/typescript.public-types';
|
|
21
22
|
export * from '../../internal-common/src/public-types/extraction.public-types';
|
|
22
|
-
export * from '../../internal-common/src/public-types/ai-matchmaking.types';
|
|
23
|
+
export * from '../../internal-common/src/public-types/ai-matchmaking.public-types';
|
|
23
24
|
export * from '../../internal-common/src/public-types/backend.public-types';
|
|
24
25
|
export * from '../../internal-common/src/public-types/web.public-types';
|
|
@@ -13,6 +13,7 @@ import { SchedulerClient } from './scheduler-client';
|
|
|
13
13
|
import { AdminClient } from './admin-client';
|
|
14
14
|
import { AiClient } from './ai-client';
|
|
15
15
|
import { WebClient } from './web-client';
|
|
16
|
+
import { ExecuteFunctionOptions } from './execute-function-options';
|
|
16
17
|
/**
|
|
17
18
|
* The different options that can be used to initialize a Squid instance.
|
|
18
19
|
* @category Platform
|
|
@@ -185,12 +186,13 @@ export declare class Squid {
|
|
|
185
186
|
* on the backend.
|
|
186
187
|
* - Arrays of files can also be passed directly as parameters.
|
|
187
188
|
*
|
|
188
|
-
* @param
|
|
189
|
+
* @param functionNameOrOptions - The name of the backend function to execute or detailed options which include
|
|
190
|
+
* additional advanced options along with the function name.
|
|
189
191
|
* @param params - A list of parameters to pass to the backend function.
|
|
190
192
|
* @returns A promise that resolves to the result of the backend function.
|
|
191
193
|
* @typeParam T - The expected type of the result returned by the backend function.
|
|
192
194
|
*/
|
|
193
|
-
executeFunction<T = any>(
|
|
195
|
+
executeFunction<T = any>(functionNameOrOptions: string | ExecuteFunctionOptions<T>, ...params: Array<any | File>): Promise<T>;
|
|
194
196
|
/**
|
|
195
197
|
* Executes a native relational query with the given parameters and returns a promise with the result.
|
|
196
198
|
* See https://docs.getsquid.ai/docs/client-sdk/database/native-queries.
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|