@corti/sdk 0.1.2-alpha → 0.1.3-alpha
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/Client.js +2 -2
- package/dist/cjs/custom/CustomStream.js +2 -2
- package/dist/cjs/custom/CustomTranscribe.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/custom/CustomStream.mjs +2 -2
- package/dist/esm/custom/CustomTranscribe.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -63,8 +63,8 @@ class CortiClient {
|
|
|
63
63
|
"Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
66
|
-
"X-Fern-SDK-Version": "0.1.
|
|
67
|
-
"User-Agent": "@corti/sdk/0.1.
|
|
66
|
+
"X-Fern-SDK-Version": "0.1.3-alpha",
|
|
67
|
+
"User-Agent": "@corti/sdk/0.1.3-alpha",
|
|
68
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -105,7 +105,7 @@ class Stream extends Client_js_1.Stream {
|
|
|
105
105
|
|| parsedResponse.value.type === 'CONFIG_NOT_PROVIDED')) {
|
|
106
106
|
ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
|
|
107
107
|
name: parsedResponse.value.type,
|
|
108
|
-
message:
|
|
108
|
+
message: JSON.stringify(parsedResponse.value),
|
|
109
109
|
}, ''));
|
|
110
110
|
ws.close();
|
|
111
111
|
return;
|
|
@@ -113,7 +113,7 @@ class Stream extends Client_js_1.Stream {
|
|
|
113
113
|
if (parsedResponse.ok && parsedResponse.value.type === 'error') {
|
|
114
114
|
ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
|
|
115
115
|
name: 'error',
|
|
116
|
-
message: JSON.stringify(parsedResponse.value
|
|
116
|
+
message: JSON.stringify(parsedResponse.value),
|
|
117
117
|
}, ''));
|
|
118
118
|
ws.close();
|
|
119
119
|
return;
|
|
@@ -103,7 +103,7 @@ class Transcribe extends Client_js_1.Transcribe {
|
|
|
103
103
|
|| parsedResponse.value.type === 'CONFIG_TIMEOUT')) {
|
|
104
104
|
ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
|
|
105
105
|
name: parsedResponse.value.type,
|
|
106
|
-
message:
|
|
106
|
+
message: JSON.stringify(parsedResponse.value),
|
|
107
107
|
}, ''));
|
|
108
108
|
ws.close();
|
|
109
109
|
return;
|
|
@@ -111,7 +111,7 @@ class Transcribe extends Client_js_1.Transcribe {
|
|
|
111
111
|
if (parsedResponse.ok && parsedResponse.value.type === 'error') {
|
|
112
112
|
ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
|
|
113
113
|
name: 'error',
|
|
114
|
-
message: JSON.stringify(parsedResponse.value
|
|
114
|
+
message: JSON.stringify(parsedResponse.value),
|
|
115
115
|
}, ''));
|
|
116
116
|
ws.close();
|
|
117
117
|
return;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.3-alpha";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -27,8 +27,8 @@ export class CortiClient {
|
|
|
27
27
|
"Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
|
|
28
28
|
"X-Fern-Language": "JavaScript",
|
|
29
29
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
31
|
-
"User-Agent": "@corti/sdk/0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.3-alpha",
|
|
31
|
+
"User-Agent": "@corti/sdk/0.1.3-alpha",
|
|
32
32
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
33
33
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
34
34
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -69,7 +69,7 @@ export class Stream extends FernStream {
|
|
|
69
69
|
|| parsedResponse.value.type === 'CONFIG_NOT_PROVIDED')) {
|
|
70
70
|
ws.socket.dispatchEvent(new ErrorEvent({
|
|
71
71
|
name: parsedResponse.value.type,
|
|
72
|
-
message:
|
|
72
|
+
message: JSON.stringify(parsedResponse.value),
|
|
73
73
|
}, ''));
|
|
74
74
|
ws.close();
|
|
75
75
|
return;
|
|
@@ -77,7 +77,7 @@ export class Stream extends FernStream {
|
|
|
77
77
|
if (parsedResponse.ok && parsedResponse.value.type === 'error') {
|
|
78
78
|
ws.socket.dispatchEvent(new ErrorEvent({
|
|
79
79
|
name: 'error',
|
|
80
|
-
message: JSON.stringify(parsedResponse.value
|
|
80
|
+
message: JSON.stringify(parsedResponse.value),
|
|
81
81
|
}, ''));
|
|
82
82
|
ws.close();
|
|
83
83
|
return;
|
|
@@ -67,7 +67,7 @@ export class Transcribe extends FernTranscribe {
|
|
|
67
67
|
|| parsedResponse.value.type === 'CONFIG_TIMEOUT')) {
|
|
68
68
|
ws.socket.dispatchEvent(new ErrorEvent({
|
|
69
69
|
name: parsedResponse.value.type,
|
|
70
|
-
message:
|
|
70
|
+
message: JSON.stringify(parsedResponse.value),
|
|
71
71
|
}, ''));
|
|
72
72
|
ws.close();
|
|
73
73
|
return;
|
|
@@ -75,7 +75,7 @@ export class Transcribe extends FernTranscribe {
|
|
|
75
75
|
if (parsedResponse.ok && parsedResponse.value.type === 'error') {
|
|
76
76
|
ws.socket.dispatchEvent(new ErrorEvent({
|
|
77
77
|
name: 'error',
|
|
78
|
-
message: JSON.stringify(parsedResponse.value
|
|
78
|
+
message: JSON.stringify(parsedResponse.value),
|
|
79
79
|
}, ''));
|
|
80
80
|
ws.close();
|
|
81
81
|
return;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.3-alpha";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.3-alpha";
|