@deepgram/sdk 1.2.4 → 1.3.1-beta.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/.devcontainer/Dockerfile +16 -0
- package/.devcontainer/devcontainer.json +29 -0
- package/CHANGELOG.md +196 -171
- package/CODE_OF_CONDUCT.md +127 -127
- package/CONTRIBUTING.md +50 -50
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/dist/billing.d.ts +18 -0
- package/dist/billing.js +73 -0
- package/dist/billing.js.map +1 -0
- package/dist/constants/defaultOptions.d.ts +0 -0
- package/dist/constants/defaultOptions.js +0 -0
- package/dist/constants/defaultOptions.js.map +0 -0
- package/dist/constants/index.d.ts +0 -0
- package/dist/constants/index.js +5 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/enums/alternatives.d.ts +0 -0
- package/dist/enums/alternatives.js +0 -0
- package/dist/enums/alternatives.js.map +0 -0
- package/dist/enums/connectionState.d.ts +0 -0
- package/dist/enums/connectionState.js +0 -0
- package/dist/enums/connectionState.js.map +0 -0
- package/dist/enums/diarization.d.ts +0 -0
- package/dist/enums/diarization.js +0 -0
- package/dist/enums/diarization.js.map +0 -0
- package/dist/enums/index.d.ts +0 -0
- package/dist/enums/index.js +5 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/liveTranscriptionEvents.d.ts +0 -0
- package/dist/enums/liveTranscriptionEvents.js +0 -0
- package/dist/enums/liveTranscriptionEvents.js.map +0 -0
- package/dist/enums/models.d.ts +0 -0
- package/dist/enums/models.js +0 -0
- package/dist/enums/models.js.map +0 -0
- package/dist/enums/punctuation.d.ts +0 -0
- package/dist/enums/punctuation.js +0 -0
- package/dist/enums/punctuation.js.map +0 -0
- package/dist/enums/searchKind.d.ts +0 -0
- package/dist/enums/searchKind.js +0 -0
- package/dist/enums/searchKind.js.map +0 -0
- package/dist/helpers/index.d.ts +0 -0
- package/dist/helpers/index.js +5 -1
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/secondsToTimestamp.d.ts +0 -0
- package/dist/helpers/secondsToTimestamp.js +0 -0
- package/dist/helpers/secondsToTimestamp.js.map +0 -0
- package/dist/httpRequest.d.ts +0 -0
- package/dist/httpRequest.js +5 -5
- package/dist/httpRequest.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/invitation.d.ts +29 -0
- package/dist/invitation.js +99 -0
- package/dist/invitation.js.map +1 -0
- package/dist/keys.d.ts +0 -0
- package/dist/keys.js +4 -4
- package/dist/keys.js.map +1 -1
- package/dist/members.d.ts +18 -0
- package/dist/members.js +73 -0
- package/dist/members.js.map +1 -0
- package/dist/projects.d.ts +0 -0
- package/dist/projects.js +2 -2
- package/dist/projects.js.map +1 -1
- package/dist/scopes.d.ts +20 -0
- package/dist/scopes.js +77 -0
- package/dist/scopes.js.map +1 -0
- package/dist/transcription/index.d.ts +0 -0
- package/dist/transcription/index.js +0 -0
- package/dist/transcription/index.js.map +0 -0
- package/dist/transcription/liveTranscription.d.ts +0 -0
- package/dist/transcription/liveTranscription.js +2 -2
- package/dist/transcription/liveTranscription.js.map +1 -1
- package/dist/transcription/preRecordedTranscription.d.ts +0 -0
- package/dist/transcription/preRecordedTranscription.js +1 -1
- package/dist/transcription/preRecordedTranscription.js.map +1 -1
- package/dist/types/balance.d.ts +6 -0
- package/dist/types/balance.js +3 -0
- package/dist/types/balance.js.map +1 -0
- package/dist/types/balanceList.d.ts +4 -0
- package/dist/types/balanceList.js +3 -0
- package/dist/types/balanceList.js.map +1 -0
- package/dist/types/channel.d.ts +0 -0
- package/dist/types/channel.js +0 -0
- package/dist/types/channel.js.map +0 -0
- package/dist/types/createKeyOptions.d.ts +0 -0
- package/dist/types/createKeyOptions.js +0 -0
- package/dist/types/createKeyOptions.js.map +0 -0
- package/dist/types/hit.d.ts +0 -0
- package/dist/types/hit.js +0 -0
- package/dist/types/hit.js.map +0 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +12 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/invitationList.d.ts +4 -0
- package/dist/types/invitationList.js +3 -0
- package/dist/types/invitationList.js.map +1 -0
- package/dist/types/invitationOptions.d.ts +4 -0
- package/dist/types/invitationOptions.js +3 -0
- package/dist/types/invitationOptions.js.map +1 -0
- package/dist/types/key.d.ts +0 -0
- package/dist/types/key.js +0 -0
- package/dist/types/key.js.map +0 -0
- package/dist/types/keyResponse.d.ts +0 -0
- package/dist/types/keyResponse.js +0 -0
- package/dist/types/keyResponse.js.map +0 -0
- package/dist/types/keyword.d.ts +0 -0
- package/dist/types/keyword.js +0 -0
- package/dist/types/keyword.js.map +0 -0
- package/dist/types/liveTranscriptionOptions.d.ts +0 -0
- package/dist/types/liveTranscriptionOptions.js +0 -0
- package/dist/types/liveTranscriptionOptions.js.map +0 -0
- package/dist/types/liveTranscriptionResponse.d.ts +0 -0
- package/dist/types/liveTranscriptionResponse.js +0 -0
- package/dist/types/liveTranscriptionResponse.js.map +0 -0
- package/dist/types/member.d.ts +2 -1
- package/dist/types/member.js +0 -0
- package/dist/types/member.js.map +0 -0
- package/dist/types/memberList.d.ts +4 -0
- package/dist/types/memberList.js +3 -0
- package/dist/types/memberList.js.map +1 -0
- package/dist/types/message.d.ts +3 -0
- package/dist/types/message.js +3 -0
- package/dist/types/message.js.map +1 -0
- package/dist/types/metadata.d.ts +0 -0
- package/dist/types/metadata.js +0 -0
- package/dist/types/metadata.js.map +0 -0
- package/dist/types/prerecordedTranscriptionOptions.d.ts +0 -0
- package/dist/types/prerecordedTranscriptionOptions.js +0 -0
- package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
- package/dist/types/prerecordedTranscriptionResponse.d.ts +0 -0
- package/dist/types/prerecordedTranscriptionResponse.js +3 -3
- package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
- package/dist/types/project.d.ts +0 -0
- package/dist/types/project.js +0 -0
- package/dist/types/project.js.map +0 -0
- package/dist/types/projectPatchResponse.d.ts +0 -0
- package/dist/types/projectPatchResponse.js +0 -0
- package/dist/types/projectPatchResponse.js.map +0 -0
- package/dist/types/projectResponse.d.ts +0 -0
- package/dist/types/projectResponse.js +0 -0
- package/dist/types/projectResponse.js.map +0 -0
- package/dist/types/scopeList.d.ts +3 -0
- package/dist/types/scopeList.js +3 -0
- package/dist/types/scopeList.js.map +1 -0
- package/dist/types/search.d.ts +0 -0
- package/dist/types/search.js +0 -0
- package/dist/types/search.js.map +0 -0
- package/dist/types/transcriptionSource.d.ts +0 -0
- package/dist/types/transcriptionSource.js +0 -0
- package/dist/types/transcriptionSource.js.map +0 -0
- package/dist/types/usageCallback.d.ts +0 -0
- package/dist/types/usageCallback.js +0 -0
- package/dist/types/usageCallback.js.map +0 -0
- package/dist/types/usageField.d.ts +0 -0
- package/dist/types/usageField.js +0 -0
- package/dist/types/usageField.js.map +0 -0
- package/dist/types/usageFieldOptions.d.ts +0 -0
- package/dist/types/usageFieldOptions.js +0 -0
- package/dist/types/usageFieldOptions.js.map +0 -0
- package/dist/types/usageOptions.d.ts +0 -0
- package/dist/types/usageOptions.js +0 -0
- package/dist/types/usageOptions.js.map +0 -0
- package/dist/types/usageRequest.d.ts +0 -0
- package/dist/types/usageRequest.js +0 -0
- package/dist/types/usageRequest.js.map +0 -0
- package/dist/types/usageRequestDetail.d.ts +0 -0
- package/dist/types/usageRequestDetail.js +0 -0
- package/dist/types/usageRequestDetail.js.map +0 -0
- package/dist/types/usageRequestList.d.ts +0 -0
- package/dist/types/usageRequestList.js +0 -0
- package/dist/types/usageRequestList.js.map +0 -0
- package/dist/types/usageRequestListOptions.d.ts +0 -0
- package/dist/types/usageRequestListOptions.js +0 -0
- package/dist/types/usageRequestListOptions.js.map +0 -0
- package/dist/types/usageRequestMessage.d.ts +0 -0
- package/dist/types/usageRequestMessage.js +0 -0
- package/dist/types/usageRequestMessage.js.map +0 -0
- package/dist/types/usageResponse.d.ts +0 -0
- package/dist/types/usageResponse.js +0 -0
- package/dist/types/usageResponse.js.map +0 -0
- package/dist/types/usageResponseDetail.d.ts +0 -0
- package/dist/types/usageResponseDetail.js +0 -0
- package/dist/types/usageResponseDetail.js.map +0 -0
- package/dist/types/utterance.d.ts +0 -0
- package/dist/types/utterance.js +0 -0
- package/dist/types/utterance.js.map +0 -0
- package/dist/types/wordBase.d.ts +0 -0
- package/dist/types/wordBase.js +0 -0
- package/dist/types/wordBase.js.map +0 -0
- package/dist/usage.d.ts +0 -0
- package/dist/usage.js +4 -4
- package/dist/usage.js.map +1 -1
- package/dist/userAgent.d.ts +0 -0
- package/dist/userAgent.js +6 -7
- package/dist/userAgent.js.map +1 -1
- package/package.json +59 -57
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitationOptions.js","sourceRoot":"","sources":["../../src/types/invitationOptions.ts"],"names":[],"mappings":""}
|
package/dist/types/key.d.ts
CHANGED
|
File without changes
|
package/dist/types/key.js
CHANGED
|
File without changes
|
package/dist/types/key.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/keyword.d.ts
CHANGED
|
File without changes
|
package/dist/types/keyword.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/member.d.ts
CHANGED
package/dist/types/member.js
CHANGED
|
File without changes
|
package/dist/types/member.js.map
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memberList.js","sourceRoot":"","sources":["../../src/types/memberList.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":""}
|
package/dist/types/metadata.d.ts
CHANGED
|
File without changes
|
package/dist/types/metadata.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,12 +17,12 @@ var PrerecordedTranscriptionResponse = /** @class */ (function () {
|
|
|
17
17
|
throw new Error("This function requires a transcript that was generated with the utterances feature.");
|
|
18
18
|
}
|
|
19
19
|
var webVTT = "WEBVTT\n\n";
|
|
20
|
-
webVTT += "NOTE\nTranscription provided by Deepgram\nRequest Id: "
|
|
20
|
+
webVTT += "NOTE\nTranscription provided by Deepgram\nRequest Id: ".concat((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.request_id, "\nCreated: ").concat((_b = this.metadata) === null || _b === void 0 ? void 0 : _b.created, "\nDuration: ").concat((_c = this.metadata) === null || _c === void 0 ? void 0 : _c.duration, "\nChannels: ").concat((_d = this.metadata) === null || _d === void 0 ? void 0 : _d.channels, "\n\n");
|
|
21
21
|
for (var i = 0; i < this.results.utterances.length; i++) {
|
|
22
22
|
var utterance = this.results.utterances[i];
|
|
23
23
|
var start = (0, helpers_1.secondsToTimestamp)(utterance.start);
|
|
24
24
|
var end = (0, helpers_1.secondsToTimestamp)(utterance.end);
|
|
25
|
-
webVTT += i + 1
|
|
25
|
+
webVTT += "".concat(i + 1, "\n").concat(start, " --> ").concat(end, "\n- ").concat(utterance.transcript, "\n\n");
|
|
26
26
|
}
|
|
27
27
|
return webVTT;
|
|
28
28
|
};
|
|
@@ -41,7 +41,7 @@ var PrerecordedTranscriptionResponse = /** @class */ (function () {
|
|
|
41
41
|
var utterance = this.results.utterances[i];
|
|
42
42
|
var start = (0, helpers_1.secondsToTimestamp)(utterance.start).replace(".", ",");
|
|
43
43
|
var end = (0, helpers_1.secondsToTimestamp)(utterance.end).replace(".", ",");
|
|
44
|
-
srt += i + 1
|
|
44
|
+
srt += "".concat(i + 1, "\n").concat(start, " --> ").concat(end, "\n").concat(utterance.transcript, "\n\n");
|
|
45
45
|
}
|
|
46
46
|
return srt;
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prerecordedTranscriptionResponse.js","sourceRoot":"","sources":["../../src/types/prerecordedTranscriptionResponse.ts"],"names":[],"mappings":";;;AAGA,sCAAgD;AAEhD;IAAA;IA2DA,CAAC;IAnDC;;;;;OAKG;IACI,mDAAQ,GAAf;;QACE,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC7C,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;SACH;QAED,IAAI,MAAM,GAAG,YAAY,CAAC;QAE1B,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"prerecordedTranscriptionResponse.js","sourceRoot":"","sources":["../../src/types/prerecordedTranscriptionResponse.ts"],"names":[],"mappings":";;;AAGA,sCAAgD;AAEhD;IAAA;IA2DA,CAAC;IAnDC;;;;;OAKG;IACI,mDAAQ,GAAf;;QACE,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC7C,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;SACH;QAED,IAAI,MAAM,GAAG,YAAY,CAAC;QAE1B,MAAM,IAAI,gEAAyD,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,wBAAc,MAAA,IAAI,CAAC,QAAQ,0CAAE,OAAO,yBAAe,MAAA,IAAI,CAAC,QAAQ,0CAAE,QAAQ,yBAAe,MAAA,IAAI,CAAC,QAAQ,0CAAE,QAAQ,SAAM,CAAC;QAEnN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvD,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7C,IAAM,KAAK,GAAG,IAAA,4BAAkB,EAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAClD,IAAM,GAAG,GAAG,IAAA,4BAAkB,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAC9C,MAAM,IAAI,UAAG,CAAC,GAAG,CAAC,eAAK,KAAK,kBAAQ,GAAG,iBAAO,SAAS,CAAC,UAAU,SAAM,CAAC;SAC1E;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,gDAAK,GAAZ;QACE,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC7C,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;SACH;QAED,IAAI,GAAG,GAAG,EAAE,CAAC;QAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvD,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7C,IAAM,KAAK,GAAG,IAAA,4BAAkB,EAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACpE,IAAM,GAAG,GAAG,IAAA,4BAAkB,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAChE,GAAG,IAAI,UAAG,CAAC,GAAG,CAAC,eAAK,KAAK,kBAAQ,GAAG,eAAK,SAAS,CAAC,UAAU,SAAM,CAAC;SACrE;QAED,OAAO,GAAG,CAAC;IACb,CAAC;IACH,uCAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,4EAAgC"}
|
package/dist/types/project.d.ts
CHANGED
|
File without changes
|
package/dist/types/project.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopeList.js","sourceRoot":"","sources":["../../src/types/scopeList.ts"],"names":[],"mappings":""}
|
package/dist/types/search.d.ts
CHANGED
|
File without changes
|
package/dist/types/search.js
CHANGED
|
File without changes
|
package/dist/types/search.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/usageField.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/utterance.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/types/wordBase.d.ts
CHANGED
|
File without changes
|
package/dist/types/wordBase.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/usage.d.ts
CHANGED
|
File without changes
|
package/dist/usage.js
CHANGED
|
@@ -70,7 +70,7 @@ var Usage = /** @class */ (function () {
|
|
|
70
70
|
var requestOptions;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
requestOptions = __assign({}, options);
|
|
73
|
-
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, this.apiPath
|
|
73
|
+
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/requests?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
};
|
|
@@ -82,7 +82,7 @@ var Usage = /** @class */ (function () {
|
|
|
82
82
|
Usage.prototype.getRequest = function (projectId, requestId) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
|
-
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, this.apiPath
|
|
85
|
+
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/requests/").concat(requestId))];
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
};
|
|
@@ -97,7 +97,7 @@ var Usage = /** @class */ (function () {
|
|
|
97
97
|
var requestOptions;
|
|
98
98
|
return __generator(this, function (_a) {
|
|
99
99
|
requestOptions = __assign({}, options);
|
|
100
|
-
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, this.apiPath
|
|
100
|
+
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/usage?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
};
|
|
@@ -112,7 +112,7 @@ var Usage = /** @class */ (function () {
|
|
|
112
112
|
var requestOptions;
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
requestOptions = __assign({}, options);
|
|
115
|
-
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, this.apiPath
|
|
115
|
+
return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/usage/fields?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
};
|
package/dist/usage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AACtC,6CAAyC;AAWzC;IACE,eAAoB,YAAoB,EAAU,OAAe;QAA7C,iBAAY,GAAZ,YAAY,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAQ;QAEzD,YAAO,GAAG,cAAc,CAAC;IAFmC,CAAC;IAIrE;;;;;OAKG;IACG,4BAAY,GAAlB,UACE,SAAiB,EACjB,OAAiC;;;;gBAE3B,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AACtC,6CAAyC;AAWzC;IACE,eAAoB,YAAoB,EAAU,OAAe;QAA7C,iBAAY,GAAZ,YAAY,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAQ;QAEzD,YAAO,GAAG,cAAc,CAAC;IAFmC,CAAC;IAIrE;;;;;OAKG;IACG,4BAAY,GAAlB,UACE,SAAiB,EACjB,OAAiC;;;;gBAE3B,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,uBAAa,qBAAW,CAAC,SAAS,CAC5D,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IAED;;;;OAIG;IACG,0BAAU,GAAhB,UACE,SAAiB,EACjB,SAAiB;;;gBAEjB,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,uBAAa,SAAS,CAAE,CACrD,EAAC;;;KACH;IAED;;;;;OAKG;IACG,wBAAQ,GAAd,UACE,SAAiB,EACjB,OAAsB;;;;gBAEhB,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,oBAAU,qBAAW,CAAC,SAAS,CACzD,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IAED;;;;;OAKG;IACG,yBAAS,GAAf,UACE,SAAiB,EACjB,OAA2B;;;;gBAErB,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,2BAAiB,qBAAW,CAAC,SAAS,CAChE,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IACH,YAAC;AAAD,CAAC,AApFD,IAoFC;AApFY,sBAAK"}
|
package/dist/userAgent.d.ts
CHANGED
|
File without changes
|
package/dist/userAgent.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.userAgent = void 0;
|
|
7
|
-
|
|
4
|
+
/*
|
|
5
|
+
* The following const is replaced during the CD
|
|
6
|
+
* process to the version from package.json
|
|
7
|
+
*/
|
|
8
|
+
var sdkVersion = "1.3.1-beta.1";
|
|
8
9
|
function userAgent() {
|
|
9
10
|
var agent = "@deepgram/sdk/UNKNOWN node/UNKNOWN";
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
-
var packageDetails = require(path_1.default.join(__dirname, "..", "package.json"));
|
|
13
|
-
agent = "@deepgram/sdk/" + packageDetails.version + " node/" + process.version.replace("v", "");
|
|
12
|
+
agent = "@deepgram/sdk/".concat(sdkVersion, " node/").concat(process.version.replace("v", ""));
|
|
14
13
|
}
|
|
15
14
|
catch (e) {
|
|
16
15
|
console.warn("Could not load package details");
|
package/dist/userAgent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../src/userAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../src/userAgent.ts"],"names":[],"mappings":";;;AAAA;;;EAGE;AACF,IAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC,SAAgB,SAAS;IACvB,IAAI,KAAK,GAAG,oCAAoC,CAAC;IACjD,IAAI;QACF,KAAK,GAAG,wBAAiB,UAAU,mBAAS,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAE,CAAC;KAChF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;KAChD;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AARD,8BAQC"}
|
package/package.json
CHANGED
|
@@ -1,57 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deepgram/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "An SDK for the Deepgram automated speech recognition platform",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc -p
|
|
9
|
-
"coverage": "nyc npm run test",
|
|
10
|
-
"lint": "eslint ./src --ext .ts && prettier --config .prettierrc src/*.ts src/**/*.ts --write",
|
|
11
|
-
"test": "mocha -r ts-node/register tests/*test.ts tests/**/*test.ts --insect",
|
|
12
|
-
"watch": "nodemon -e ts --watch src --exec \"npm run build\""
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/deepgram/deepgram-node-sdk.git"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"deepgram",
|
|
20
|
-
"asr",
|
|
21
|
-
"speech",
|
|
22
|
-
"sdk"
|
|
23
|
-
],
|
|
24
|
-
"author": {
|
|
25
|
-
"name": "Michael Jolley",
|
|
26
|
-
"email": "michael.jolley@deepgram.com"
|
|
27
|
-
},
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/deepgram/deepgram-node-sdk/issues"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/deepgram/deepgram-node-sdk#readme",
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/chai": "^4.2.22",
|
|
35
|
-
"@types/mocha": "^9.0.0",
|
|
36
|
-
"@types/node": "^14.17.32",
|
|
37
|
-
"@types/sinon": "^10.0.6",
|
|
38
|
-
"@types/ws": "^7.4.7",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
40
|
-
"@typescript-eslint/parser": "^4.33.0",
|
|
41
|
-
"chai": "^4.3.4",
|
|
42
|
-
"eslint": "^7.32.0",
|
|
43
|
-
"eslint-config-airbnb-base": "^14.2.1",
|
|
44
|
-
"eslint-plugin-import": "^2.25.2",
|
|
45
|
-
"mocha": "^9.1.3",
|
|
46
|
-
"nock": "^13.1.4",
|
|
47
|
-
"nodemon": "^2.0.14",
|
|
48
|
-
"nyc": "^15.1.0",
|
|
49
|
-
"prettier": "^2.4.1",
|
|
50
|
-
"sinon": "^10.0.0",
|
|
51
|
-
"ts-node": "^9.1.1",
|
|
52
|
-
"typescript": "^4.
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepgram/sdk",
|
|
3
|
+
"version": "1.3.1-beta.1",
|
|
4
|
+
"description": "An SDK for the Deepgram automated speech recognition platform",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -p .",
|
|
9
|
+
"coverage": "nyc npm run test",
|
|
10
|
+
"lint": "eslint ./src --ext .ts && prettier --config .prettierrc src/*.ts src/**/*.ts --write",
|
|
11
|
+
"test": "mocha -r ts-node/register tests/*test.ts tests/**/*test.ts --insect",
|
|
12
|
+
"watch": "nodemon -e ts --watch src --exec \"npm run build\""
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/deepgram/deepgram-node-sdk.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"deepgram",
|
|
20
|
+
"asr",
|
|
21
|
+
"speech",
|
|
22
|
+
"sdk"
|
|
23
|
+
],
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "Michael Jolley",
|
|
26
|
+
"email": "michael.jolley@deepgram.com"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/deepgram/deepgram-node-sdk/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/deepgram/deepgram-node-sdk#readme",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/chai": "^4.2.22",
|
|
35
|
+
"@types/mocha": "^9.0.0",
|
|
36
|
+
"@types/node": "^14.17.32",
|
|
37
|
+
"@types/sinon": "^10.0.6",
|
|
38
|
+
"@types/ws": "^7.4.7",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
40
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
41
|
+
"chai": "^4.3.4",
|
|
42
|
+
"eslint": "^7.32.0",
|
|
43
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
44
|
+
"eslint-plugin-import": "^2.25.2",
|
|
45
|
+
"mocha": "^9.1.3",
|
|
46
|
+
"nock": "^13.1.4",
|
|
47
|
+
"nodemon": "^2.0.14",
|
|
48
|
+
"nyc": "^15.1.0",
|
|
49
|
+
"prettier": "^2.4.1",
|
|
50
|
+
"sinon": "^10.0.0",
|
|
51
|
+
"ts-node": "^9.1.1",
|
|
52
|
+
"typescript": "^4.6.3"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"bufferutil": "^4.0.6",
|
|
56
|
+
"utf-8-validate": "^5.0.9",
|
|
57
|
+
"ws": "^7.5.5"
|
|
58
|
+
}
|
|
59
|
+
}
|