@squidcloud/client 1.0.310 → 1.0.311

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.
@@ -157,6 +157,16 @@ export interface AiChatbotChatOptions {
157
157
  /** Current budget for nested or recursive AI chat calls per single prompt. */
158
158
  quotas?: AiChatPromptQuotas;
159
159
  }
160
+ export interface AiObserveStatusOptions {
161
+ /** A unique chat ID for the conversation. */
162
+ chatId?: string;
163
+ }
164
+ export interface AiStatusMessage {
165
+ agentId: string;
166
+ chatId?: string;
167
+ title: string;
168
+ tags?: Record<string, any>;
169
+ }
160
170
  export interface AiAskResponse {
161
171
  responseString: string;
162
172
  }
@@ -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.310";
1
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.311";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.310",
3
+ "version": "1.0.311",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",