@deepgram/sdk 4.6.0 → 4.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.
- package/README.md +4 -2
- package/dist/main/lib/errors.d.ts +33 -0
- package/dist/main/lib/errors.d.ts.map +1 -1
- package/dist/main/lib/errors.js +35 -1
- package/dist/main/lib/errors.js.map +1 -1
- package/dist/main/lib/helpers.d.ts.map +1 -1
- package/dist/main/lib/helpers.js +7 -10
- package/dist/main/lib/helpers.js.map +1 -1
- package/dist/main/lib/types/AgentLiveSchema.d.ts +1 -1
- package/dist/main/lib/types/AgentLiveSchema.d.ts.map +1 -1
- package/dist/main/lib/types/CreateProjectKeySchema.d.ts +1 -1
- package/dist/main/lib/types/CreateProjectKeySchema.d.ts.map +1 -1
- package/dist/main/lib/types/DeepgramClientOptions.d.ts +6 -6
- package/dist/main/lib/types/DeepgramClientOptions.d.ts.map +1 -1
- package/dist/main/lib/types/DeepgramResponse.d.ts +1 -1
- package/dist/main/lib/types/DeepgramResponse.d.ts.map +1 -1
- package/dist/main/lib/types/DeepgramSource.d.ts +4 -3
- package/dist/main/lib/types/DeepgramSource.d.ts.map +1 -1
- package/dist/main/lib/types/Fetch.d.ts +3 -3
- package/dist/main/lib/types/Fetch.d.ts.map +1 -1
- package/dist/main/lib/types/GetModelsResponse.d.ts +3 -3
- package/dist/main/lib/types/GetModelsResponse.d.ts.map +1 -1
- package/dist/main/lib/types/LiveConfigOptions.d.ts +1 -1
- package/dist/main/lib/types/LiveConfigOptions.d.ts.map +1 -1
- package/dist/main/lib/types/VoidResponse.d.ts +1 -1
- package/dist/main/lib/types/VoidResponse.d.ts.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/packages/AbstractLiveClient.d.ts +165 -2
- package/dist/main/packages/AbstractLiveClient.d.ts.map +1 -1
- package/dist/main/packages/AbstractLiveClient.js +162 -0
- package/dist/main/packages/AbstractLiveClient.js.map +1 -1
- package/dist/main/packages/AbstractRestClient.d.ts +1 -0
- package/dist/main/packages/AbstractRestClient.d.ts.map +1 -1
- package/dist/main/packages/AgentLiveClient.d.ts +9 -0
- package/dist/main/packages/AgentLiveClient.d.ts.map +1 -1
- package/dist/main/packages/AgentLiveClient.js +25 -10
- package/dist/main/packages/AgentLiveClient.js.map +1 -1
- package/dist/main/packages/ListenLiveClient.d.ts.map +1 -1
- package/dist/main/packages/ListenLiveClient.js +12 -9
- package/dist/main/packages/ListenLiveClient.js.map +1 -1
- package/dist/main/packages/ManageRestClient.js +1 -1
- package/dist/main/packages/ManageRestClient.js.map +1 -1
- package/dist/main/packages/SpeakLiveClient.d.ts +1 -0
- package/dist/main/packages/SpeakLiveClient.d.ts.map +1 -1
- package/dist/main/packages/SpeakLiveClient.js +15 -9
- package/dist/main/packages/SpeakLiveClient.js.map +1 -1
- package/dist/module/lib/errors.d.ts +33 -0
- package/dist/module/lib/errors.d.ts.map +1 -1
- package/dist/module/lib/errors.js +33 -0
- package/dist/module/lib/errors.js.map +1 -1
- package/dist/module/lib/helpers.d.ts.map +1 -1
- package/dist/module/lib/helpers.js +7 -10
- package/dist/module/lib/helpers.js.map +1 -1
- package/dist/module/lib/types/AgentLiveSchema.d.ts +1 -1
- package/dist/module/lib/types/AgentLiveSchema.d.ts.map +1 -1
- package/dist/module/lib/types/CreateProjectKeySchema.d.ts +1 -1
- package/dist/module/lib/types/CreateProjectKeySchema.d.ts.map +1 -1
- package/dist/module/lib/types/DeepgramClientOptions.d.ts +6 -6
- package/dist/module/lib/types/DeepgramClientOptions.d.ts.map +1 -1
- package/dist/module/lib/types/DeepgramResponse.d.ts +1 -1
- package/dist/module/lib/types/DeepgramResponse.d.ts.map +1 -1
- package/dist/module/lib/types/DeepgramSource.d.ts +4 -3
- package/dist/module/lib/types/DeepgramSource.d.ts.map +1 -1
- package/dist/module/lib/types/Fetch.d.ts +3 -3
- package/dist/module/lib/types/Fetch.d.ts.map +1 -1
- package/dist/module/lib/types/GetModelsResponse.d.ts +3 -3
- package/dist/module/lib/types/GetModelsResponse.d.ts.map +1 -1
- package/dist/module/lib/types/LiveConfigOptions.d.ts +1 -1
- package/dist/module/lib/types/LiveConfigOptions.d.ts.map +1 -1
- package/dist/module/lib/types/VoidResponse.d.ts +1 -1
- package/dist/module/lib/types/VoidResponse.d.ts.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/packages/AbstractLiveClient.d.ts +165 -2
- package/dist/module/packages/AbstractLiveClient.d.ts.map +1 -1
- package/dist/module/packages/AbstractLiveClient.js +162 -0
- package/dist/module/packages/AbstractLiveClient.js.map +1 -1
- package/dist/module/packages/AbstractRestClient.d.ts +1 -0
- package/dist/module/packages/AbstractRestClient.d.ts.map +1 -1
- package/dist/module/packages/AgentLiveClient.d.ts +9 -0
- package/dist/module/packages/AgentLiveClient.d.ts.map +1 -1
- package/dist/module/packages/AgentLiveClient.js +25 -10
- package/dist/module/packages/AgentLiveClient.js.map +1 -1
- package/dist/module/packages/ListenLiveClient.d.ts.map +1 -1
- package/dist/module/packages/ListenLiveClient.js +12 -9
- package/dist/module/packages/ListenLiveClient.js.map +1 -1
- package/dist/module/packages/ManageRestClient.js +1 -1
- package/dist/module/packages/ManageRestClient.js.map +1 -1
- package/dist/module/packages/SpeakLiveClient.d.ts +1 -0
- package/dist/module/packages/SpeakLiveClient.d.ts.map +1 -1
- package/dist/module/packages/SpeakLiveClient.js +15 -9
- package/dist/module/packages/SpeakLiveClient.js.map +1 -1
- package/dist/umd/deepgram.js +2 -1
- package/dist/umd/deepgram.js.LICENSE.txt +10 -0
- package/package.json +21 -15
- package/src/lib/errors.ts +52 -0
- package/src/lib/helpers.ts +6 -10
- package/src/lib/version.ts +1 -1
- package/src/packages/AbstractLiveClient.ts +230 -0
- package/src/packages/AgentLiveClient.ts +27 -13
- package/src/packages/ListenLiveClient.ts +13 -12
- package/src/packages/ManageRestClient.ts +1 -1
- package/src/packages/SpeakLiveClient.ts +16 -12
package/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://discord.gg/xWRaCDBtW4) [](https://github.com/deepgram/node-sdk/actions/workflows/CI.yml) [](https://www.npmjs.com/package/@deepgram/sdk) [](CODE_OF_CONDUCT.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> 🎯 **Development Setup**: This project uses [Corepack](https://nodejs.org/api/corepack.html) for package manager consistency. Run `corepack enable` once, then use `pnpm` commands normally. See [DEVELOPMENT.md](./DEVELOPMENT.md) for details.
|
|
6
|
+
|
|
7
|
+
Isomorphic Javascript client for Deepgram's automated speech recognition APIs.
|
|
6
8
|
|
|
7
9
|
- [Documentation](#documentation)
|
|
8
10
|
- [Migrating from earlier versions](#migrating-from-earlier-versions)
|
|
@@ -1016,7 +1018,7 @@ To make sure our community is safe for all, be sure to review and agree to our
|
|
|
1016
1018
|
|
|
1017
1019
|
### Debugging and making changes locally
|
|
1018
1020
|
|
|
1019
|
-
If you want to make local changes to the SDK and run the [`examples/`](./examples/), you'll need to `
|
|
1021
|
+
If you want to make local changes to the SDK and run the [`examples/`](./examples/), you'll need to `pnpm run build` first, to ensure that your changes are included in the examples that are running.
|
|
1020
1022
|
|
|
1021
1023
|
## Getting Help
|
|
1022
1024
|
|
|
@@ -19,4 +19,37 @@ export declare class DeepgramUnknownError extends DeepgramError {
|
|
|
19
19
|
export declare class DeepgramVersionError extends DeepgramError {
|
|
20
20
|
constructor();
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Enhanced WebSocket error that captures additional debugging information
|
|
24
|
+
* including status codes, request IDs, and response headers when available.
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeepgramWebSocketError extends DeepgramError {
|
|
27
|
+
originalEvent?: ErrorEvent | Event;
|
|
28
|
+
statusCode?: number;
|
|
29
|
+
requestId?: string;
|
|
30
|
+
responseHeaders?: Record<string, string>;
|
|
31
|
+
url?: string;
|
|
32
|
+
readyState?: number;
|
|
33
|
+
constructor(message: string, options?: {
|
|
34
|
+
originalEvent?: ErrorEvent | Event;
|
|
35
|
+
statusCode?: number;
|
|
36
|
+
requestId?: string;
|
|
37
|
+
responseHeaders?: Record<string, string>;
|
|
38
|
+
url?: string;
|
|
39
|
+
readyState?: number;
|
|
40
|
+
});
|
|
41
|
+
toJSON(): {
|
|
42
|
+
name: string;
|
|
43
|
+
message: string;
|
|
44
|
+
statusCode: number | undefined;
|
|
45
|
+
requestId: string | undefined;
|
|
46
|
+
responseHeaders: Record<string, string> | undefined;
|
|
47
|
+
url: string | undefined;
|
|
48
|
+
readyState: number | undefined;
|
|
49
|
+
originalEvent: {
|
|
50
|
+
type: string;
|
|
51
|
+
timeStamp: number;
|
|
52
|
+
} | undefined;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
22
55
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,CAAC,SAAS,UAAQ;gBAEf,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAM3C,MAAM;;;;;CAOP;AAED,qBAAa,oBAAqB,SAAQ,aAAa;IACrD,aAAa,EAAE,OAAO,CAAC;gBAEX,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO;CAKpD;AAED,qBAAa,oBAAqB,SAAQ,aAAa;;CAQtD"}
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,CAAC,SAAS,UAAQ;gBAEf,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAM3C,MAAM;;;;;CAOP;AAED,qBAAa,oBAAqB,SAAQ,aAAa;IACrD,aAAa,EAAE,OAAO,CAAC;gBAEX,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO;CAKpD;AAED,qBAAa,oBAAqB,SAAQ,aAAa;;CAQtD;AAED;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACvD,aAAa,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;gBAGlB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;QACP,aAAa,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;QACnC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KAChB;IAYR,MAAM;;;;;;;;;;;;;CAiBP"}
|
package/dist/main/lib/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeepgramVersionError = exports.DeepgramUnknownError = exports.DeepgramApiError = exports.isDeepgramError = exports.DeepgramError = void 0;
|
|
3
|
+
exports.DeepgramWebSocketError = exports.DeepgramVersionError = exports.DeepgramUnknownError = exports.DeepgramApiError = exports.isDeepgramError = exports.DeepgramError = void 0;
|
|
4
4
|
class DeepgramError extends Error {
|
|
5
5
|
constructor(message) {
|
|
6
6
|
super(message);
|
|
@@ -43,4 +43,38 @@ class DeepgramVersionError extends DeepgramError {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeepgramVersionError = DeepgramVersionError;
|
|
46
|
+
/**
|
|
47
|
+
* Enhanced WebSocket error that captures additional debugging information
|
|
48
|
+
* including status codes, request IDs, and response headers when available.
|
|
49
|
+
*/
|
|
50
|
+
class DeepgramWebSocketError extends DeepgramError {
|
|
51
|
+
constructor(message, options = {}) {
|
|
52
|
+
super(message);
|
|
53
|
+
this.name = "DeepgramWebSocketError";
|
|
54
|
+
this.originalEvent = options.originalEvent;
|
|
55
|
+
this.statusCode = options.statusCode;
|
|
56
|
+
this.requestId = options.requestId;
|
|
57
|
+
this.responseHeaders = options.responseHeaders;
|
|
58
|
+
this.url = options.url;
|
|
59
|
+
this.readyState = options.readyState;
|
|
60
|
+
}
|
|
61
|
+
toJSON() {
|
|
62
|
+
return {
|
|
63
|
+
name: this.name,
|
|
64
|
+
message: this.message,
|
|
65
|
+
statusCode: this.statusCode,
|
|
66
|
+
requestId: this.requestId,
|
|
67
|
+
responseHeaders: this.responseHeaders,
|
|
68
|
+
url: this.url,
|
|
69
|
+
readyState: this.readyState,
|
|
70
|
+
originalEvent: this.originalEvent
|
|
71
|
+
? {
|
|
72
|
+
type: this.originalEvent.type,
|
|
73
|
+
timeStamp: this.originalEvent.timeStamp,
|
|
74
|
+
}
|
|
75
|
+
: undefined,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.DeepgramWebSocketError = DeepgramWebSocketError;
|
|
46
80
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAc,SAAQ,KAAK;IAGtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHP,cAAS,GAAG,IAAI,CAAC;QAIzB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAPD,sCAOC;AAED,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,WAAW,IAAI,KAAK,CAAC;AAC7E,CAAC;AAFD,0CAEC;AAED,MAAa,gBAAiB,SAAQ,aAAa;IAGjD,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF;AAhBD,4CAgBC;AAED,MAAa,oBAAqB,SAAQ,aAAa;IAGrD,YAAY,OAAe,EAAE,aAAsB;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AARD,oDAQC;AAED,MAAa,oBAAqB,SAAQ,aAAa;IACrD;QACE,KAAK,CACH,wGAAwG,CACzG,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AARD,oDAQC"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","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AUF,qBAAa,WAAY,SAAQ,GAAG;IAC3B,WAAW,UAAQ;CAC3B;AAED,eAAO,MAAM,mBAAmB,QAAS,MAAM,WAI9C,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,WACP,MAAM,GAAG,GAAG,wBACC,UAAU,GAAG,mBAAmB,KACrD,GAKF,CAAC;AAEF,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,qBAAqB,CAE9E;AAED,eAAO,MAAM,oBAAoB,eAAgB,qBAAqB,KAAG,qBA8DxE,CAAC"}
|
package/dist/main/lib/helpers.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.convertLegacyOptions = exports.isDeepgramClientOptions = exports.isLiveSchema = exports.buildRequestUrl = exports.convertProtocolToWs = exports.CallbackUrl = exports.isFileSource = exports.isTextSource = exports.isUrlSource = exports.resolveHeadersConstructor = exports.appendSearchParams = exports.applyDefaults = exports.stripTrailingSlash = void 0;
|
|
7
7
|
const cross_fetch_1 = require("cross-fetch");
|
|
8
|
+
const stream_1 = require("stream");
|
|
8
9
|
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
9
10
|
function stripTrailingSlash(url) {
|
|
10
11
|
return url.replace(/\/$/, "");
|
|
@@ -36,13 +37,13 @@ const resolveHeadersConstructor = () => {
|
|
|
36
37
|
};
|
|
37
38
|
exports.resolveHeadersConstructor = resolveHeadersConstructor;
|
|
38
39
|
const isUrlSource = (providedSource) => {
|
|
39
|
-
if (providedSource.url)
|
|
40
|
+
if (providedSource && providedSource.url)
|
|
40
41
|
return true;
|
|
41
42
|
return false;
|
|
42
43
|
};
|
|
43
44
|
exports.isUrlSource = isUrlSource;
|
|
44
45
|
const isTextSource = (providedSource) => {
|
|
45
|
-
if (providedSource.text)
|
|
46
|
+
if (providedSource && providedSource.text)
|
|
46
47
|
return true;
|
|
47
48
|
return false;
|
|
48
49
|
};
|
|
@@ -54,14 +55,10 @@ const isFileSource = (providedSource) => {
|
|
|
54
55
|
};
|
|
55
56
|
exports.isFileSource = isFileSource;
|
|
56
57
|
const isBufferSource = (providedSource) => {
|
|
57
|
-
|
|
58
|
-
return true;
|
|
59
|
-
return false;
|
|
58
|
+
return providedSource != null && Buffer.isBuffer(providedSource);
|
|
60
59
|
};
|
|
61
60
|
const isReadStreamSource = (providedSource) => {
|
|
62
|
-
|
|
63
|
-
return true;
|
|
64
|
-
return false;
|
|
61
|
+
return providedSource != null && providedSource instanceof stream_1.Readable;
|
|
65
62
|
};
|
|
66
63
|
class CallbackUrl extends URL {
|
|
67
64
|
constructor() {
|
|
@@ -82,11 +79,11 @@ const buildRequestUrl = (endpoint, baseUrl, transcriptionOptions) => {
|
|
|
82
79
|
};
|
|
83
80
|
exports.buildRequestUrl = buildRequestUrl;
|
|
84
81
|
function isLiveSchema(arg) {
|
|
85
|
-
return arg && typeof arg.interim_results !== "undefined";
|
|
82
|
+
return arg != null && typeof arg.interim_results !== "undefined";
|
|
86
83
|
}
|
|
87
84
|
exports.isLiveSchema = isLiveSchema;
|
|
88
85
|
function isDeepgramClientOptions(arg) {
|
|
89
|
-
return arg && typeof arg.global !== "undefined";
|
|
86
|
+
return arg != null && typeof arg.global !== "undefined";
|
|
90
87
|
}
|
|
91
88
|
exports.isDeepgramClientOptions = isDeepgramClientOptions;
|
|
92
89
|
const convertLegacyOptions = (optionsArg) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/lib/helpers.ts"],"names":[],"mappings":";;;;;;AAUA,6CAA2D;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/lib/helpers.ts"],"names":[],"mappings":";;;;;;AAUA,6CAA2D;AAC3D,mCA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,CAAC,MAAM,CAAC,GAAG;iBAC3B;aACF;SACF,CAAC;KACH;IAED,UAAU,GAAG,IAAA,mBAAK,EAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAE3C,IAAI,MAAA,UAAU,CAAC,MAAM,0CAAE,OAAO,EAAE;QAC9B,UAAU,CAAC,MAAM,GAAG;YAClB,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP,OAAO,EAAE,MAAA,UAAU,CAAC,MAAM,0CAAE,OAAO;iBACpC;aACF;YACD,SAAS,EAAE;gBACT,OAAO,EAAE;oBACP,gBAAgB,EAAE,MAAA,UAAU,CAAC,MAAM,0CAAE,OAAO;iBAC7C;aACF;SACF,CAAC;KACH;IAED,UAAU,GAAG,IAAA,mBAAK,EAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAE3C,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AA9DW,QAAA,oBAAoB,wBA8D/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentLiveSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/AgentLiveSchema.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AgentLiveSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/AgentLiveSchema.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3D;;GAEG;AACH,UAAU,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE;QACL,KAAK,CAAC,EAAE;YACN;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF;;WAEG;QACH,MAAM,CAAC,EAAE;YACP,QAAQ,CAAC,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YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateProjectKeySchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/CreateProjectKeySchema.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CreateProjectKeySchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/CreateProjectKeySchema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEpE,UAAU,iBAAkB,SAAQ,aAAa;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,UAAU,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fetch, FetchOptions } from "./Fetch";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type IKeyFactory = () => string;
|
|
3
|
+
export type IFetch = typeof fetch;
|
|
4
|
+
export type IWebSocket = typeof WebSocket;
|
|
5
5
|
interface TransportFetchOptions extends TransportOptions, FetchOptions {
|
|
6
6
|
}
|
|
7
7
|
interface TransportWebSocketOptions extends TransportOptions {
|
|
@@ -9,7 +9,7 @@ interface TransportWebSocketOptions extends TransportOptions {
|
|
|
9
9
|
[index: string]: any;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type TransportUrl = string;
|
|
13
13
|
interface TransportOptions {
|
|
14
14
|
url?: TransportUrl;
|
|
15
15
|
proxy?: {
|
|
@@ -20,7 +20,7 @@ interface ITransport<C, O> {
|
|
|
20
20
|
client?: C;
|
|
21
21
|
options?: O;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type DefaultNamespaceOptions = {
|
|
24
24
|
key?: string | IKeyFactory;
|
|
25
25
|
accessToken?: string | IKeyFactory;
|
|
26
26
|
fetch: {
|
|
@@ -40,7 +40,7 @@ export interface NamespaceOptions {
|
|
|
40
40
|
fetch?: ITransport<IFetch, TransportFetchOptions>;
|
|
41
41
|
websocket?: ITransport<IWebSocket, TransportWebSocketOptions>;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type DefaultClientOptions = {
|
|
44
44
|
global: Partial<DefaultNamespaceOptions>;
|
|
45
45
|
} & DeepgramClientOptions;
|
|
46
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepgramClientOptions.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramClientOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9C,
|
|
1
|
+
{"version":3,"file":"DeepgramClientOptions.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramClientOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,OAAO,KAAK,CAAC;AAClC,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC;AAE1C,UAAU,qBAAsB,SAAQ,gBAAgB,EAAE,YAAY;CAAG;AACzE,UAAU,yBAA0B,SAAQ,gBAAgB;IAC1D,gBAAgB,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C;AAED,KAAK,YAAY,GAAG,MAAM,CAAC;AAE3B,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,YAAY,CA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CAAC,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB;;OAEG;IACH,wBAAwB,CAAC,EAAE,KAAK,CAAC;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE;QACV,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepgramResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"DeepgramResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC;AAErE,UAAU,eAAe,CAAC,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,IAAI,CAAC;CACb;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,EAAE,aAAa,CAAC;CACtB"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
3
4
|
import { Readable } from "stream";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
5
|
+
export type PrerecordedSource = UrlSource | Buffer | Readable;
|
|
6
|
+
export type FileSource = Buffer | Readable;
|
|
6
7
|
export interface UrlSource {
|
|
7
8
|
url: string;
|
|
8
9
|
}
|
|
9
10
|
export interface TextSource {
|
|
10
11
|
text: string;
|
|
11
12
|
}
|
|
12
|
-
export
|
|
13
|
+
export type AnalyzeSource = UrlSource | TextSource;
|
|
13
14
|
//# sourceMappingURL=DeepgramSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepgramSource.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeepgramSource.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/DeepgramSource.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Fetch = typeof fetch;
|
|
2
|
+
export type FetchOptions = RequestInit & {
|
|
3
3
|
method?: RequestMethodType;
|
|
4
4
|
duplex?: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type RequestMethodType = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
7
7
|
//# sourceMappingURL=Fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fetch.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/Fetch.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Fetch.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/Fetch.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC;AAEjC,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type Model = {
|
|
2
2
|
name: string;
|
|
3
3
|
canonical_name: string;
|
|
4
4
|
architecture: string;
|
|
@@ -15,8 +15,8 @@ declare type Model = {
|
|
|
15
15
|
sample: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type GetModelResponse = Model;
|
|
19
|
+
export type GetModelsResponse = {
|
|
20
20
|
stt: Model[];
|
|
21
21
|
tts: Model[];
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetModelsResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/GetModelsResponse.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"GetModelsResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/GetModelsResponse.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAErC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,KAAK,EAAE,CAAC;IACb,GAAG,EAAE,KAAK,EAAE,CAAC;CACd,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { LiveSchema } from "./TranscriptionSchema";
|
|
|
3
3
|
* Partial configuration options for the LiveSchema, including:
|
|
4
4
|
* - `numerals`: Configures how numerals are handled in the live transcription.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type LiveConfigOptions = Partial<Pick<LiveSchema, "numerals">>;
|
|
7
7
|
//# sourceMappingURL=LiveConfigOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveConfigOptions.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/LiveConfigOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"LiveConfigOptions.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/LiveConfigOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoidResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/VoidResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"VoidResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/VoidResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3D,UAAU,eAAe;IACvB,KAAK,EAAE,IAAI,CAAC;CACb;AAED,UAAU,aAAa;IACrB,KAAK,EAAE,aAAa,CAAC;CACtB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/lib/version.js
CHANGED
|
@@ -2,6 +2,7 @@ import { AbstractClient } from "./AbstractClient";
|
|
|
2
2
|
import { CONNECTION_STATE, SOCKET_STATES } from "../lib/constants";
|
|
3
3
|
import type { DeepgramClientOptions, LiveSchema } from "../lib/types";
|
|
4
4
|
import type { WebSocket as WSWebSocket } from "ws";
|
|
5
|
+
import { DeepgramWebSocketError } from "../lib/errors";
|
|
5
6
|
/**
|
|
6
7
|
* Represents a constructor for a WebSocket-like object that can be used in the application.
|
|
7
8
|
* The constructor takes the following parameters:
|
|
@@ -21,11 +22,11 @@ interface WebSocketLikeConstructor {
|
|
|
21
22
|
* such as the native WebSocket API, a WebSocket wrapper library, or a dummy implementation
|
|
22
23
|
* for testing purposes.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
type WebSocketLike = WebSocket | WSWebSocket | WSWebSocketDummy;
|
|
25
26
|
/**
|
|
26
27
|
* Represents the types of data that can be sent or received over a WebSocket-like connection.
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
type SocketDataLike = string | ArrayBufferLike | Blob;
|
|
29
30
|
/**
|
|
30
31
|
* Represents an abstract live client that extends the AbstractClient class.
|
|
31
32
|
* The AbstractLiveClient class provides functionality for connecting, reconnecting, and disconnecting a WebSocket connection, as well as sending data over the connection.
|
|
@@ -89,6 +90,168 @@ export declare abstract class AbstractLiveClient extends AbstractClient {
|
|
|
89
90
|
* @returns {boolean} true if the current instance should proxy requests; otherwise, false
|
|
90
91
|
*/
|
|
91
92
|
get proxy(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Extracts enhanced error information from a WebSocket error event.
|
|
95
|
+
* This method attempts to capture additional debugging information such as
|
|
96
|
+
* status codes, request IDs, and response headers when available.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* // Enhanced error information is now available in error events:
|
|
101
|
+
* connection.on(LiveTranscriptionEvents.Error, (err) => {
|
|
102
|
+
* console.error("WebSocket Error:", err.message);
|
|
103
|
+
*
|
|
104
|
+
* // Access HTTP status code (e.g., 502, 403, etc.)
|
|
105
|
+
* if (err.statusCode) {
|
|
106
|
+
* console.error(`HTTP Status Code: ${err.statusCode}`);
|
|
107
|
+
* }
|
|
108
|
+
*
|
|
109
|
+
* // Access Deepgram request ID for support tickets
|
|
110
|
+
* if (err.requestId) {
|
|
111
|
+
* console.error(`Deepgram Request ID: ${err.requestId}`);
|
|
112
|
+
* }
|
|
113
|
+
*
|
|
114
|
+
* // Access WebSocket URL and connection state
|
|
115
|
+
* if (err.url) {
|
|
116
|
+
* console.error(`WebSocket URL: ${err.url}`);
|
|
117
|
+
* }
|
|
118
|
+
*
|
|
119
|
+
* if (err.readyState !== undefined) {
|
|
120
|
+
* const stateNames = ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'];
|
|
121
|
+
* console.error(`Connection State: ${stateNames[err.readyState]}`);
|
|
122
|
+
* }
|
|
123
|
+
*
|
|
124
|
+
* // Access response headers for additional debugging
|
|
125
|
+
* if (err.responseHeaders) {
|
|
126
|
+
* console.error("Response Headers:", err.responseHeaders);
|
|
127
|
+
* }
|
|
128
|
+
*
|
|
129
|
+
* // Access the enhanced error object for detailed debugging
|
|
130
|
+
* if (err.error?.name === 'DeepgramWebSocketError') {
|
|
131
|
+
* console.error("Enhanced Error Details:", err.error.toJSON());
|
|
132
|
+
* }
|
|
133
|
+
* });
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @param event - The error event from the WebSocket
|
|
137
|
+
* @param conn - The WebSocket connection object
|
|
138
|
+
* @returns Enhanced error information object
|
|
139
|
+
*/
|
|
140
|
+
protected extractErrorInformation(event: ErrorEvent | Event, conn?: WebSocketLike): {
|
|
141
|
+
statusCode?: number;
|
|
142
|
+
requestId?: string;
|
|
143
|
+
responseHeaders?: Record<string, string>;
|
|
144
|
+
url?: string;
|
|
145
|
+
readyState?: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Creates an enhanced error object with additional debugging information.
|
|
149
|
+
* This method provides backward compatibility by including both the original
|
|
150
|
+
* error event and enhanced error information.
|
|
151
|
+
*
|
|
152
|
+
* @param event - The original error event
|
|
153
|
+
* @param enhancedInfo - Additional error information extracted from the connection
|
|
154
|
+
* @returns An object containing both original and enhanced error information
|
|
155
|
+
*/
|
|
156
|
+
protected createEnhancedError(event: ErrorEvent | Event, enhancedInfo: {
|
|
157
|
+
statusCode?: number;
|
|
158
|
+
requestId?: string;
|
|
159
|
+
responseHeaders?: Record<string, string>;
|
|
160
|
+
url?: string;
|
|
161
|
+
readyState?: number;
|
|
162
|
+
}): {
|
|
163
|
+
error: DeepgramWebSocketError;
|
|
164
|
+
statusCode: number | undefined;
|
|
165
|
+
requestId: string | undefined;
|
|
166
|
+
responseHeaders: Record<string, string> | undefined;
|
|
167
|
+
url: string | undefined;
|
|
168
|
+
readyState: number | undefined;
|
|
169
|
+
message: string;
|
|
170
|
+
bubbles: boolean;
|
|
171
|
+
cancelBubble: boolean;
|
|
172
|
+
cancelable: boolean;
|
|
173
|
+
composed: boolean;
|
|
174
|
+
currentTarget: EventTarget | null;
|
|
175
|
+
defaultPrevented: boolean;
|
|
176
|
+
eventPhase: number;
|
|
177
|
+
isTrusted: boolean;
|
|
178
|
+
returnValue: boolean;
|
|
179
|
+
srcElement: EventTarget | null;
|
|
180
|
+
target: EventTarget | null;
|
|
181
|
+
timeStamp: number;
|
|
182
|
+
type: string;
|
|
183
|
+
composedPath(): EventTarget[];
|
|
184
|
+
initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void;
|
|
185
|
+
preventDefault(): void;
|
|
186
|
+
stopImmediatePropagation(): void;
|
|
187
|
+
stopPropagation(): void;
|
|
188
|
+
AT_TARGET: number;
|
|
189
|
+
BUBBLING_PHASE: number;
|
|
190
|
+
CAPTURING_PHASE: number;
|
|
191
|
+
NONE: number;
|
|
192
|
+
} | {
|
|
193
|
+
error: DeepgramWebSocketError;
|
|
194
|
+
statusCode: number | undefined;
|
|
195
|
+
requestId: string | undefined;
|
|
196
|
+
responseHeaders: Record<string, string> | undefined;
|
|
197
|
+
url: string | undefined;
|
|
198
|
+
readyState: number | undefined;
|
|
199
|
+
message: string;
|
|
200
|
+
colno: number;
|
|
201
|
+
filename: string;
|
|
202
|
+
lineno: number;
|
|
203
|
+
bubbles: boolean;
|
|
204
|
+
cancelBubble: boolean;
|
|
205
|
+
cancelable: boolean;
|
|
206
|
+
composed: boolean;
|
|
207
|
+
currentTarget: EventTarget | null;
|
|
208
|
+
defaultPrevented: boolean;
|
|
209
|
+
eventPhase: number;
|
|
210
|
+
isTrusted: boolean;
|
|
211
|
+
returnValue: boolean;
|
|
212
|
+
srcElement: EventTarget | null;
|
|
213
|
+
target: EventTarget | null;
|
|
214
|
+
timeStamp: number;
|
|
215
|
+
type: string;
|
|
216
|
+
composedPath(): EventTarget[];
|
|
217
|
+
initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void;
|
|
218
|
+
preventDefault(): void;
|
|
219
|
+
stopImmediatePropagation(): void;
|
|
220
|
+
stopPropagation(): void;
|
|
221
|
+
AT_TARGET: number;
|
|
222
|
+
BUBBLING_PHASE: number;
|
|
223
|
+
CAPTURING_PHASE: number;
|
|
224
|
+
NONE: number;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Builds an enhanced error message with additional context information.
|
|
228
|
+
*
|
|
229
|
+
* @param event - The original error event
|
|
230
|
+
* @param enhancedInfo - Additional error information
|
|
231
|
+
* @returns A more descriptive error message
|
|
232
|
+
*/
|
|
233
|
+
protected buildEnhancedErrorMessage(event: ErrorEvent | Event, enhancedInfo: {
|
|
234
|
+
statusCode?: number;
|
|
235
|
+
requestId?: string;
|
|
236
|
+
responseHeaders?: Record<string, string>;
|
|
237
|
+
url?: string;
|
|
238
|
+
readyState?: number;
|
|
239
|
+
}): string;
|
|
240
|
+
/**
|
|
241
|
+
* Sets up the standard connection event handlers (open, close, error) for WebSocket connections.
|
|
242
|
+
* This method abstracts the common connection event registration pattern used across all live clients.
|
|
243
|
+
*
|
|
244
|
+
* @param events - Object containing the event constants for the specific client type
|
|
245
|
+
* @param events.Open - Event constant for connection open
|
|
246
|
+
* @param events.Close - Event constant for connection close
|
|
247
|
+
* @param events.Error - Event constant for connection error
|
|
248
|
+
* @protected
|
|
249
|
+
*/
|
|
250
|
+
protected setupConnectionEvents(events: {
|
|
251
|
+
Open: string;
|
|
252
|
+
Close: string;
|
|
253
|
+
Error: string;
|
|
254
|
+
}): void;
|
|
92
255
|
/**
|
|
93
256
|
* Sets up the connection event handlers.
|
|
94
257
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractLiveClient.d.ts","sourceRoot":"","sources":["../../../src/packages/AbstractLiveClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AbstractLiveClient.d.ts","sourceRoot":"","sources":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