retell-sdk 1.15.18 → 1.15.19

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/sdk/sdk.d.ts CHANGED
@@ -59,6 +59,7 @@ export declare function convertFloat32ToPCM16(array: Float32Array): Uint8Array;
59
59
  export declare class RetellClient {
60
60
  private sdkConfiguration;
61
61
  constructor(props?: SDKProps);
62
+ createWebCall(apikey: string, agentId: string, sampleRate?: number, agentPromptParams?: never[], websocketEndpoint?: string): Promise<LiveClient>;
62
63
  /**
63
64
  * Create a new agent
64
65
  */
package/dist/sdk/sdk.js CHANGED
@@ -260,6 +260,24 @@ var RetellClient = /** @class */ (function () {
260
260
  retryConfig: props === null || props === void 0 ? void 0 : props.retryConfig,
261
261
  });
262
262
  }
263
+ RetellClient.prototype.createWebCall = function (apikey, agentId, sampleRate, agentPromptParams, websocketEndpoint) {
264
+ if (sampleRate === void 0) { sampleRate = 16000; }
265
+ if (agentPromptParams === void 0) { agentPromptParams = []; }
266
+ if (websocketEndpoint === void 0) { websocketEndpoint = "wss://api.re-tell.ai"; }
267
+ return __awaiter(this, void 0, void 0, function () {
268
+ var liveClient;
269
+ return __generator(this, function (_a) {
270
+ switch (_a.label) {
271
+ case 0:
272
+ liveClient = new LiveClient(apikey, agentId, sampleRate, agentPromptParams, websocketEndpoint);
273
+ return [4 /*yield*/, liveClient.waitForReady()];
274
+ case 1:
275
+ _a.sent();
276
+ return [2 /*return*/, liveClient];
277
+ }
278
+ });
279
+ });
280
+ };
263
281
  /**
264
282
  * Create a new agent
265
283
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-sdk",
3
- "version": "1.15.18",
3
+ "version": "1.15.19",
4
4
  "author": "Retell",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",