@realtimex/sdk 1.3.0 → 1.3.1

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/index.d.mts CHANGED
@@ -165,12 +165,23 @@ interface STTListenOptions {
165
165
  interface STTModel {
166
166
  id: string;
167
167
  name: string;
168
- provider: string;
168
+ provider?: string;
169
169
  description?: string;
170
170
  language?: string;
171
171
  size?: string;
172
172
  recommended?: boolean;
173
173
  }
174
+ interface STTProvider {
175
+ id: string;
176
+ name: string;
177
+ description?: string;
178
+ models: STTModel[];
179
+ }
180
+ interface STTProvidersResponse {
181
+ success: boolean;
182
+ providers: STTProvider[];
183
+ error?: string;
184
+ }
174
185
  interface STTModelsResponse {
175
186
  success: boolean;
176
187
  models: STTModel[];
@@ -787,10 +798,10 @@ declare class TTSModule {
787
798
 
788
799
  declare class STTModule extends ApiModule {
789
800
  /**
790
- * Get available STT models.
791
- * @returns Promise resolving to list of models
801
+ * Get available STT providers and their models.
802
+ * @returns Promise resolving to list of providers
792
803
  */
793
- models(): Promise<STTModel[]>;
804
+ listProviders(): Promise<STTProvider[]>;
794
805
  /**
795
806
  * Listen to microphone and transcribe speech to text.
796
807
  * Performed on the client device (Electron) via the RealtimeX Hub.
@@ -850,4 +861,4 @@ declare class RealtimeXSDK {
850
861
  getAppDataDir(): Promise<string>;
851
862
  }
852
863
 
853
- export { ActivitiesModule, type Activity, type Agent, ApiModule, type ChatMessage, type ChatOptions, type ChatResponse, type EmbedOptions, type EmbedResponse, LLMModule, LLMPermissionError, LLMProviderError, PermissionDeniedError, PermissionRequiredError, PortModule, type Provider, type ProvidersResponse, RealtimeXSDK, type SDKConfig, type STTListenOptions, type STTModel, type STTModelsResponse, STTModule, type STTResponse, type StreamChunk, type TTSChunk, type TTSChunkEvent, TTSModule, type TTSOptions, type TTSProvider, type TTSProviderConfig, type TTSProvidersResponse, type Task, TaskModule, type TaskRun, type Thread, type TriggerAgentPayload, type TriggerAgentResponse, type VectorDeleteOptions, type VectorDeleteResponse, type VectorQueryOptions, type VectorQueryResponse, type VectorQueryResult, type VectorRecord, VectorStore, type VectorUpsertOptions, type VectorUpsertResponse, WebhookModule, type Workspace };
864
+ export { ActivitiesModule, type Activity, type Agent, ApiModule, type ChatMessage, type ChatOptions, type ChatResponse, type EmbedOptions, type EmbedResponse, LLMModule, LLMPermissionError, LLMProviderError, PermissionDeniedError, PermissionRequiredError, PortModule, type Provider, type ProvidersResponse, RealtimeXSDK, type SDKConfig, type STTListenOptions, type STTModel, type STTModelsResponse, STTModule, type STTProvider, type STTProvidersResponse, type STTResponse, type StreamChunk, type TTSChunk, type TTSChunkEvent, TTSModule, type TTSOptions, type TTSProvider, type TTSProviderConfig, type TTSProvidersResponse, type Task, TaskModule, type TaskRun, type Thread, type TriggerAgentPayload, type TriggerAgentResponse, type VectorDeleteOptions, type VectorDeleteResponse, type VectorQueryOptions, type VectorQueryResponse, type VectorQueryResult, type VectorRecord, VectorStore, type VectorUpsertOptions, type VectorUpsertResponse, WebhookModule, type Workspace };
package/dist/index.d.ts CHANGED
@@ -165,12 +165,23 @@ interface STTListenOptions {
165
165
  interface STTModel {
166
166
  id: string;
167
167
  name: string;
168
- provider: string;
168
+ provider?: string;
169
169
  description?: string;
170
170
  language?: string;
171
171
  size?: string;
172
172
  recommended?: boolean;
173
173
  }
174
+ interface STTProvider {
175
+ id: string;
176
+ name: string;
177
+ description?: string;
178
+ models: STTModel[];
179
+ }
180
+ interface STTProvidersResponse {
181
+ success: boolean;
182
+ providers: STTProvider[];
183
+ error?: string;
184
+ }
174
185
  interface STTModelsResponse {
175
186
  success: boolean;
176
187
  models: STTModel[];
@@ -787,10 +798,10 @@ declare class TTSModule {
787
798
 
788
799
  declare class STTModule extends ApiModule {
789
800
  /**
790
- * Get available STT models.
791
- * @returns Promise resolving to list of models
801
+ * Get available STT providers and their models.
802
+ * @returns Promise resolving to list of providers
792
803
  */
793
- models(): Promise<STTModel[]>;
804
+ listProviders(): Promise<STTProvider[]>;
794
805
  /**
795
806
  * Listen to microphone and transcribe speech to text.
796
807
  * Performed on the client device (Electron) via the RealtimeX Hub.
@@ -850,4 +861,4 @@ declare class RealtimeXSDK {
850
861
  getAppDataDir(): Promise<string>;
851
862
  }
852
863
 
853
- export { ActivitiesModule, type Activity, type Agent, ApiModule, type ChatMessage, type ChatOptions, type ChatResponse, type EmbedOptions, type EmbedResponse, LLMModule, LLMPermissionError, LLMProviderError, PermissionDeniedError, PermissionRequiredError, PortModule, type Provider, type ProvidersResponse, RealtimeXSDK, type SDKConfig, type STTListenOptions, type STTModel, type STTModelsResponse, STTModule, type STTResponse, type StreamChunk, type TTSChunk, type TTSChunkEvent, TTSModule, type TTSOptions, type TTSProvider, type TTSProviderConfig, type TTSProvidersResponse, type Task, TaskModule, type TaskRun, type Thread, type TriggerAgentPayload, type TriggerAgentResponse, type VectorDeleteOptions, type VectorDeleteResponse, type VectorQueryOptions, type VectorQueryResponse, type VectorQueryResult, type VectorRecord, VectorStore, type VectorUpsertOptions, type VectorUpsertResponse, WebhookModule, type Workspace };
864
+ export { ActivitiesModule, type Activity, type Agent, ApiModule, type ChatMessage, type ChatOptions, type ChatResponse, type EmbedOptions, type EmbedResponse, LLMModule, LLMPermissionError, LLMProviderError, PermissionDeniedError, PermissionRequiredError, PortModule, type Provider, type ProvidersResponse, RealtimeXSDK, type SDKConfig, type STTListenOptions, type STTModel, type STTModelsResponse, STTModule, type STTProvider, type STTProvidersResponse, type STTResponse, type StreamChunk, type TTSChunk, type TTSChunkEvent, TTSModule, type TTSOptions, type TTSProvider, type TTSProviderConfig, type TTSProvidersResponse, type Task, TaskModule, type TaskRun, type Thread, type TriggerAgentPayload, type TriggerAgentResponse, type VectorDeleteOptions, type VectorDeleteResponse, type VectorQueryOptions, type VectorQueryResponse, type VectorQueryResult, type VectorRecord, VectorStore, type VectorUpsertOptions, type VectorUpsertResponse, WebhookModule, type Workspace };
package/dist/index.js CHANGED
@@ -1170,18 +1170,18 @@ var TTSModule = class {
1170
1170
  // src/modules/stt.ts
1171
1171
  var STTModule = class extends ApiModule {
1172
1172
  /**
1173
- * Get available STT models.
1174
- * @returns Promise resolving to list of models
1173
+ * Get available STT providers and their models.
1174
+ * @returns Promise resolving to list of providers
1175
1175
  */
1176
- async models() {
1176
+ async listProviders() {
1177
1177
  try {
1178
- const response = await this.apiCall("GET", "/sdk/stt/models");
1178
+ const response = await this.apiCall("GET", "/sdk/stt/providers");
1179
1179
  if (!response.success) {
1180
- throw new Error(response.error || "Failed to fetch models");
1180
+ throw new Error(response.error || "Failed to fetch providers");
1181
1181
  }
1182
- return response.models;
1182
+ return response.providers;
1183
1183
  } catch (error) {
1184
- throw new Error(`STT models fetch failed: ${error.message}`);
1184
+ throw new Error(`STT providers fetch failed: ${error.message}`);
1185
1185
  }
1186
1186
  }
1187
1187
  /**
package/dist/index.mjs CHANGED
@@ -1121,18 +1121,18 @@ var TTSModule = class {
1121
1121
  // src/modules/stt.ts
1122
1122
  var STTModule = class extends ApiModule {
1123
1123
  /**
1124
- * Get available STT models.
1125
- * @returns Promise resolving to list of models
1124
+ * Get available STT providers and their models.
1125
+ * @returns Promise resolving to list of providers
1126
1126
  */
1127
- async models() {
1127
+ async listProviders() {
1128
1128
  try {
1129
- const response = await this.apiCall("GET", "/sdk/stt/models");
1129
+ const response = await this.apiCall("GET", "/sdk/stt/providers");
1130
1130
  if (!response.success) {
1131
- throw new Error(response.error || "Failed to fetch models");
1131
+ throw new Error(response.error || "Failed to fetch providers");
1132
1132
  }
1133
- return response.models;
1133
+ return response.providers;
1134
1134
  } catch (error) {
1135
- throw new Error(`STT models fetch failed: ${error.message}`);
1135
+ throw new Error(`STT providers fetch failed: ${error.message}`);
1136
1136
  }
1137
1137
  }
1138
1138
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",