@corti/sdk 0.8.0-rc → 0.8.0

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.
@@ -64,8 +64,8 @@ class CortiClient {
64
64
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "@corti/sdk",
67
- "X-Fern-SDK-Version": "0.8.0-rc",
68
- "User-Agent": "@corti/sdk/0.8.0-rc",
67
+ "X-Fern-SDK-Version": "0.8.0",
68
+ "User-Agent": "@corti/sdk/0.8.0",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -61,7 +61,7 @@ class Stream {
61
61
  _queryParams["token"] = token;
62
62
  let _headers = Object.assign({}, headers);
63
63
  const socket = new core.ReconnectingWebSocket({
64
- url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, `/audio-bridge/v2/interactions/${encodeURIComponent(id)}/streams`),
64
+ url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, `/interactions/${encodeURIComponent(id)}/streams`),
65
65
  protocols: [],
66
66
  queryParameters: _queryParams,
67
67
  headers: _headers,
@@ -61,7 +61,7 @@ class Transcribe {
61
61
  _queryParams["token"] = token;
62
62
  let _headers = Object.assign({}, headers);
63
63
  const socket = new core.ReconnectingWebSocket({
64
- url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, "/audio-bridge/v2/transcribe"),
64
+ url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, "/transcribe"),
65
65
  protocols: [],
66
66
  queryParameters: _queryParams,
67
67
  headers: _headers,
@@ -5,7 +5,7 @@ function getEnvironment(environment = "eu") {
5
5
  return typeof environment === "string"
6
6
  ? {
7
7
  base: `https://api.${environment}.corti.app/v2`,
8
- wss: `wss://api.${environment}.corti.app`,
8
+ wss: `wss://api.${environment}.corti.app/audio-bridge/v2`,
9
9
  login: `https://auth.${environment}.corti.app/realms`,
10
10
  agents: `https://api.${environment}.corti.app`,
11
11
  }
@@ -10,13 +10,13 @@ export interface CortiEnvironmentUrls {
10
10
  export declare const CortiEnvironment: {
11
11
  readonly Eu: {
12
12
  readonly base: "https://api.eu.corti.app/v2";
13
- readonly wss: "wss://api.eu.corti.app";
13
+ readonly wss: "wss://api.eu.corti.app/audio-bridge/v2";
14
14
  readonly login: "https://auth.eu.corti.app/realms";
15
15
  readonly agents: "https://api.eu.corti.app";
16
16
  };
17
17
  readonly Us: {
18
18
  readonly base: "https://api.us.corti.app/v2";
19
- readonly wss: "wss://api.us.corti.app";
19
+ readonly wss: "wss://api.us.corti.app/audio-bridge/v2";
20
20
  readonly login: "https://auth.us.corti.app/realms";
21
21
  readonly agents: "https://api.us.corti.app";
22
22
  };
@@ -7,13 +7,13 @@ exports.CortiEnvironment = void 0;
7
7
  exports.CortiEnvironment = {
8
8
  Eu: {
9
9
  base: "https://api.eu.corti.app/v2",
10
- wss: "wss://api.eu.corti.app",
10
+ wss: "wss://api.eu.corti.app/audio-bridge/v2",
11
11
  login: "https://auth.eu.corti.app/realms",
12
12
  agents: "https://api.eu.corti.app",
13
13
  },
14
14
  Us: {
15
15
  base: "https://api.us.corti.app/v2",
16
- wss: "wss://api.us.corti.app",
16
+ wss: "wss://api.us.corti.app/audio-bridge/v2",
17
17
  login: "https://auth.us.corti.app/realms",
18
18
  agents: "https://api.us.corti.app",
19
19
  },
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.8.0-rc";
1
+ export declare const SDK_VERSION = "0.8.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.8.0-rc";
4
+ exports.SDK_VERSION = "0.8.0";
@@ -28,8 +28,8 @@ export class CortiClient {
28
28
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
29
29
  "X-Fern-Language": "JavaScript",
30
30
  "X-Fern-SDK-Name": "@corti/sdk",
31
- "X-Fern-SDK-Version": "0.8.0-rc",
32
- "User-Agent": "@corti/sdk/0.8.0-rc",
31
+ "X-Fern-SDK-Version": "0.8.0",
32
+ "User-Agent": "@corti/sdk/0.8.0",
33
33
  "X-Fern-Runtime": core.RUNTIME.type,
34
34
  "X-Fern-Runtime-Version": core.RUNTIME.version,
35
35
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -25,7 +25,7 @@ export class Stream {
25
25
  _queryParams["token"] = token;
26
26
  let _headers = Object.assign({}, headers);
27
27
  const socket = new core.ReconnectingWebSocket({
28
- url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, `/audio-bridge/v2/interactions/${encodeURIComponent(id)}/streams`),
28
+ url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, `/interactions/${encodeURIComponent(id)}/streams`),
29
29
  protocols: [],
30
30
  queryParameters: _queryParams,
31
31
  headers: _headers,
@@ -25,7 +25,7 @@ export class Transcribe {
25
25
  _queryParams["token"] = token;
26
26
  let _headers = Object.assign({}, headers);
27
27
  const socket = new core.ReconnectingWebSocket({
28
- url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, "/audio-bridge/v2/transcribe"),
28
+ url: core.url.join((_a = (yield core.Supplier.get(this._options["baseUrl"]))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options["environment"])).wss, "/transcribe"),
29
29
  protocols: [],
30
30
  queryParameters: _queryParams,
31
31
  headers: _headers,
@@ -2,7 +2,7 @@ export function getEnvironment(environment = "eu") {
2
2
  return typeof environment === "string"
3
3
  ? {
4
4
  base: `https://api.${environment}.corti.app/v2`,
5
- wss: `wss://api.${environment}.corti.app`,
5
+ wss: `wss://api.${environment}.corti.app/audio-bridge/v2`,
6
6
  login: `https://auth.${environment}.corti.app/realms`,
7
7
  agents: `https://api.${environment}.corti.app`,
8
8
  }
@@ -10,13 +10,13 @@ export interface CortiEnvironmentUrls {
10
10
  export declare const CortiEnvironment: {
11
11
  readonly Eu: {
12
12
  readonly base: "https://api.eu.corti.app/v2";
13
- readonly wss: "wss://api.eu.corti.app";
13
+ readonly wss: "wss://api.eu.corti.app/audio-bridge/v2";
14
14
  readonly login: "https://auth.eu.corti.app/realms";
15
15
  readonly agents: "https://api.eu.corti.app";
16
16
  };
17
17
  readonly Us: {
18
18
  readonly base: "https://api.us.corti.app/v2";
19
- readonly wss: "wss://api.us.corti.app";
19
+ readonly wss: "wss://api.us.corti.app/audio-bridge/v2";
20
20
  readonly login: "https://auth.us.corti.app/realms";
21
21
  readonly agents: "https://api.us.corti.app";
22
22
  };
@@ -4,13 +4,13 @@
4
4
  export const CortiEnvironment = {
5
5
  Eu: {
6
6
  base: "https://api.eu.corti.app/v2",
7
- wss: "wss://api.eu.corti.app",
7
+ wss: "wss://api.eu.corti.app/audio-bridge/v2",
8
8
  login: "https://auth.eu.corti.app/realms",
9
9
  agents: "https://api.eu.corti.app",
10
10
  },
11
11
  Us: {
12
12
  base: "https://api.us.corti.app/v2",
13
- wss: "wss://api.us.corti.app",
13
+ wss: "wss://api.us.corti.app/audio-bridge/v2",
14
14
  login: "https://auth.us.corti.app/realms",
15
15
  agents: "https://api.us.corti.app",
16
16
  },
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.8.0-rc";
1
+ export declare const SDK_VERSION = "0.8.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.8.0-rc";
1
+ export const SDK_VERSION = "0.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.8.0-rc",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "repository": "github:corticph/corti-sdk-javascript",
6
6
  "license": "MIT",