@squidcloud/client 1.0.310 → 1.0.312
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 +12 -2
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +2 -1
- package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +21 -0
- package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +18 -0
- package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +123 -0
- package/dist/internal-common/src/types/ai-assistant.types.d.ts +1 -0
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +60 -0
- package/dist/internal-common/src/types/ai-matchmaking.types.d.ts +34 -0
- package/dist/internal-common/src/types/backend-function.types.d.ts +1 -0
- package/dist/internal-common/src/types/communication.types.d.ts +1 -0
- package/dist/internal-common/src/types/document.types.d.ts +1 -0
- package/dist/internal-common/src/types/mutation.types.d.ts +1 -0
- package/dist/internal-common/src/types/observability.types.d.ts +71 -0
- package/dist/internal-common/src/types/query.types.d.ts +10 -0
- package/dist/internal-common/src/types/secret.types.d.ts +2 -0
- package/dist/internal-common/src/types/socket.types.d.ts +1 -0
- package/dist/internal-common/src/types/time-units.d.ts +1 -0
- package/dist/internal-common/src/utils/array.d.ts +1 -0
- package/dist/internal-common/src/utils/assert.d.ts +1 -0
- package/dist/internal-common/src/utils/e2e-test-utils.d.ts +2 -0
- package/dist/internal-common/src/utils/global.utils.d.ts +1 -0
- package/dist/internal-common/src/utils/http.d.ts +1 -0
- package/dist/internal-common/src/utils/lock.manager.d.ts +14 -0
- package/dist/internal-common/src/utils/metric-utils.d.ts +4 -0
- package/dist/internal-common/src/utils/metrics.types.d.ts +7 -0
- package/dist/internal-common/src/utils/object.d.ts +49 -0
- package/dist/internal-common/src/utils/serialization.d.ts +5 -0
- package/dist/internal-common/src/utils/squid.constants.d.ts +1 -0
- package/dist/internal-common/src/utils/validation.d.ts +20 -0
- package/dist/internal-common/src/websocket.impl.d.ts +26 -0
- package/dist/typescript-client/src/ai-agent-client.d.ts +6 -1
- package/dist/typescript-client/src/ai-matchmaking-client.d.ts +1 -1
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiChatbotChatOptions, AiChatbotContext, AiChatbotProfileMetadata, AiProfileId, AiSearchOptions, AiSearchResponse, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse, MUTABLE_AI_CHATBOT_PROFILE_METADATA_FIELDS } from './public-types';
|
|
1
|
+
import { AiChatbotChatOptions, AiChatbotContext, AiChatbotProfileMetadata, AiObserveStatusOptions, AiProfileId, AiSearchOptions, AiSearchResponse, AiStatusMessage, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse, MUTABLE_AI_CHATBOT_PROFILE_METADATA_FIELDS } from './public-types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BlobAndFilename } from './types';
|
|
4
4
|
export interface TranscribeAndChatResponse {
|
|
@@ -25,6 +25,7 @@ export declare class AiAgentClient {
|
|
|
25
25
|
private readonly socketManager;
|
|
26
26
|
private readonly integrationId;
|
|
27
27
|
private readonly ongoingChatSequences;
|
|
28
|
+
private readonly statusUpdates;
|
|
28
29
|
/**
|
|
29
30
|
* Retrieves a profile reference for the provided id. A profile reference
|
|
30
31
|
* can be used to create and update profiles, add instructions and context
|
|
@@ -56,11 +57,14 @@ export declare class AiAgentClient {
|
|
|
56
57
|
* @returns A promise that resolves when the chat is complete. The resolved value is the entire response.
|
|
57
58
|
*/
|
|
58
59
|
ask(agentId: AiProfileId, prompt: string, options?: AskOptionsWithoutVoice): Promise<string>;
|
|
60
|
+
observeStatusUpdates(agentId: AiProfileId, options?: AiObserveStatusOptions): Observable<AiStatusMessage>;
|
|
59
61
|
transcribeAndAsk(profileId: string, fileToTranscribe: File, options?: AskOptionsWithoutVoice): Promise<AiTranscribeAndAskResponse>;
|
|
60
62
|
transcribeAndAskWithVoiceResponse(profileId: string, fileToTranscribe: File, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<TranscribeAndAskWithVoiceResponse>;
|
|
61
63
|
askWithVoiceResponse(profileId: string, prompt: string, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<AskWithVoiceResponse>;
|
|
62
64
|
askInternal<T>(profileId: AiProfileId, prompt: string | File, isVoiceResponse: boolean, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<T>;
|
|
63
65
|
private handleChatResponse;
|
|
66
|
+
private handleStatusMessage;
|
|
67
|
+
private createStatusSubject;
|
|
64
68
|
}
|
|
65
69
|
export interface AiChatBotContextData {
|
|
66
70
|
title: string;
|
|
@@ -90,6 +94,7 @@ export declare class AiAgentReference {
|
|
|
90
94
|
* @param options - The chat options.
|
|
91
95
|
*/
|
|
92
96
|
ask(prompt: string, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<string>;
|
|
97
|
+
observeStatusUpdates(options?: AiObserveStatusOptions): Observable<AiStatusMessage>;
|
|
93
98
|
transcribeAndAsk(fileToTranscribe: File, options?: AskOptionsWithoutVoice): Promise<AiTranscribeAndAskResponse>;
|
|
94
99
|
transcribeAndAskWithVoiceResponse(fileToTranscribe: File, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<TranscribeAndAskWithVoiceResponse>;
|
|
95
100
|
askWithVoiceResponse(prompt: string, options?: Omit<AiChatbotChatOptions, 'smoothTyping'>): Promise<AskWithVoiceResponse>;
|
|
@@ -24,7 +24,7 @@ export declare class AiMatchMakingClient {
|
|
|
24
24
|
export declare class MatchMaker {
|
|
25
25
|
id: string;
|
|
26
26
|
private readonly rpcManager;
|
|
27
|
-
/** Adds a new entity to the matchmaker. */
|
|
27
|
+
/** Adds a new entity to the matchmaker - replaces existing entity with the same ID if exists. */
|
|
28
28
|
insertEntity(entity: MmEntity): Promise<void>;
|
|
29
29
|
delete(): Promise<void>;
|
|
30
30
|
deleteEntity(entityId: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.312";
|