@deepgram/sdk 1.4.0 → 1.4.4

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.
Files changed (220) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/browser/index.js +1 -0
  3. package/dist/index.d.ts +1342 -0
  4. package/dist/index.js +1 -0
  5. package/package.json +9 -6
  6. package/tsconfig-es6.json +16 -0
  7. package/webpack.config.js +21 -1
  8. package/bundle/billing.d.ts +0 -19
  9. package/bundle/billing.js +0 -73
  10. package/bundle/billing.js.map +0 -1
  11. package/bundle/browser/httpFetch.d.ts +0 -1
  12. package/bundle/browser/httpFetch.js +0 -75
  13. package/bundle/browser/httpFetch.js.map +0 -1
  14. package/bundle/browser/index.d.ts +0 -21
  15. package/bundle/browser/index.js +0 -35
  16. package/bundle/browser/index.js.map +0 -1
  17. package/bundle/browser/transcription/index.d.ts +0 -17
  18. package/bundle/browser/transcription/index.js +0 -75
  19. package/bundle/browser/transcription/index.js.map +0 -1
  20. package/bundle/browser/transcription/preRecordedTranscription.d.ts +0 -9
  21. package/bundle/browser/transcription/preRecordedTranscription.js +0 -87
  22. package/bundle/browser/transcription/preRecordedTranscription.js.map +0 -1
  23. package/bundle/constants/defaultOptions.d.ts +0 -6
  24. package/bundle/constants/defaultOptions.js +0 -10
  25. package/bundle/constants/defaultOptions.js.map +0 -1
  26. package/bundle/constants/index.d.ts +0 -1
  27. package/bundle/constants/index.js +0 -18
  28. package/bundle/constants/index.js.map +0 -1
  29. package/bundle/enums/alternatives.d.ts +0 -4
  30. package/bundle/enums/alternatives.js +0 -3
  31. package/bundle/enums/alternatives.js.map +0 -1
  32. package/bundle/enums/connectionState.d.ts +0 -6
  33. package/bundle/enums/connectionState.js +0 -11
  34. package/bundle/enums/connectionState.js.map +0 -1
  35. package/bundle/enums/diarization.d.ts +0 -4
  36. package/bundle/enums/diarization.js +0 -3
  37. package/bundle/enums/diarization.js.map +0 -1
  38. package/bundle/enums/index.d.ts +0 -7
  39. package/bundle/enums/index.js +0 -24
  40. package/bundle/enums/index.js.map +0 -1
  41. package/bundle/enums/liveTranscriptionEvents.d.ts +0 -6
  42. package/bundle/enums/liveTranscriptionEvents.js +0 -3
  43. package/bundle/enums/liveTranscriptionEvents.js.map +0 -1
  44. package/bundle/enums/models.d.ts +0 -5
  45. package/bundle/enums/models.js +0 -3
  46. package/bundle/enums/models.js.map +0 -1
  47. package/bundle/enums/punctuation.d.ts +0 -4
  48. package/bundle/enums/punctuation.js +0 -3
  49. package/bundle/enums/punctuation.js.map +0 -1
  50. package/bundle/enums/searchKind.d.ts +0 -4
  51. package/bundle/enums/searchKind.js +0 -3
  52. package/bundle/enums/searchKind.js.map +0 -1
  53. package/bundle/helpers/index.d.ts +0 -2
  54. package/bundle/helpers/index.js +0 -19
  55. package/bundle/helpers/index.js.map +0 -1
  56. package/bundle/helpers/secondsToTimestamp.d.ts +0 -1
  57. package/bundle/helpers/secondsToTimestamp.js +0 -8
  58. package/bundle/helpers/secondsToTimestamp.js.map +0 -1
  59. package/bundle/helpers/validateOptions.d.ts +0 -1
  60. package/bundle/helpers/validateOptions.js +0 -13
  61. package/bundle/helpers/validateOptions.js.map +0 -1
  62. package/bundle/httpRequest.d.ts +0 -3
  63. package/bundle/httpRequest.js +0 -91
  64. package/bundle/httpRequest.js.map +0 -1
  65. package/bundle/index.d.ts +0 -21
  66. package/bundle/index.js +0 -35
  67. package/bundle/index.js.map +0 -1
  68. package/bundle/invitation.d.ts +0 -30
  69. package/bundle/invitation.js +0 -99
  70. package/bundle/invitation.js.map +0 -1
  71. package/bundle/keys.d.ts +0 -33
  72. package/bundle/keys.js +0 -132
  73. package/bundle/keys.js.map +0 -1
  74. package/bundle/members.d.ts +0 -19
  75. package/bundle/members.js +0 -73
  76. package/bundle/members.js.map +0 -1
  77. package/bundle/projects.d.ts +0 -22
  78. package/bundle/projects.js +0 -82
  79. package/bundle/projects.js.map +0 -1
  80. package/bundle/scopes.d.ts +0 -21
  81. package/bundle/scopes.js +0 -77
  82. package/bundle/scopes.js.map +0 -1
  83. package/bundle/transcription/index.d.ts +0 -18
  84. package/bundle/transcription/index.js +0 -72
  85. package/bundle/transcription/index.js.map +0 -1
  86. package/bundle/transcription/liveTranscription.d.ts +0 -23
  87. package/bundle/transcription/liveTranscription.js +0 -83
  88. package/bundle/transcription/liveTranscription.js.map +0 -1
  89. package/bundle/transcription/preRecordedTranscription.d.ts +0 -8
  90. package/bundle/transcription/preRecordedTranscription.js +0 -114
  91. package/bundle/transcription/preRecordedTranscription.js.map +0 -1
  92. package/bundle/types/balance.d.ts +0 -6
  93. package/bundle/types/balance.js +0 -3
  94. package/bundle/types/balance.js.map +0 -1
  95. package/bundle/types/balanceList.d.ts +0 -4
  96. package/bundle/types/balanceList.js +0 -3
  97. package/bundle/types/balanceList.js.map +0 -1
  98. package/bundle/types/channel.d.ts +0 -25
  99. package/bundle/types/channel.js +0 -3
  100. package/bundle/types/channel.js.map +0 -1
  101. package/bundle/types/createKeyOptions.d.ts +0 -13
  102. package/bundle/types/createKeyOptions.js +0 -3
  103. package/bundle/types/createKeyOptions.js.map +0 -1
  104. package/bundle/types/hit.d.ts +0 -21
  105. package/bundle/types/hit.js +0 -3
  106. package/bundle/types/hit.js.map +0 -1
  107. package/bundle/types/index.d.ts +0 -38
  108. package/bundle/types/index.js +0 -55
  109. package/bundle/types/index.js.map +0 -1
  110. package/bundle/types/invitationList.d.ts +0 -4
  111. package/bundle/types/invitationList.js +0 -3
  112. package/bundle/types/invitationList.js.map +0 -1
  113. package/bundle/types/invitationOptions.d.ts +0 -4
  114. package/bundle/types/invitationOptions.js +0 -3
  115. package/bundle/types/invitationOptions.js.map +0 -1
  116. package/bundle/types/key.d.ts +0 -25
  117. package/bundle/types/key.js +0 -3
  118. package/bundle/types/key.js.map +0 -1
  119. package/bundle/types/keyResponse.d.ts +0 -10
  120. package/bundle/types/keyResponse.js +0 -3
  121. package/bundle/types/keyResponse.js.map +0 -1
  122. package/bundle/types/keyResponseObj.d.ts +0 -42
  123. package/bundle/types/keyResponseObj.js +0 -3
  124. package/bundle/types/keyResponseObj.js.map +0 -1
  125. package/bundle/types/keyword.d.ts +0 -4
  126. package/bundle/types/keyword.js +0 -3
  127. package/bundle/types/keyword.js.map +0 -1
  128. package/bundle/types/liveTranscriptionOptions.d.ts +0 -148
  129. package/bundle/types/liveTranscriptionOptions.js +0 -3
  130. package/bundle/types/liveTranscriptionOptions.js.map +0 -1
  131. package/bundle/types/liveTranscriptionResponse.d.ts +0 -9
  132. package/bundle/types/liveTranscriptionResponse.js +0 -3
  133. package/bundle/types/liveTranscriptionResponse.js.map +0 -1
  134. package/bundle/types/member.d.ts +0 -7
  135. package/bundle/types/member.js +0 -3
  136. package/bundle/types/member.js.map +0 -1
  137. package/bundle/types/memberList.d.ts +0 -4
  138. package/bundle/types/memberList.js +0 -3
  139. package/bundle/types/memberList.js.map +0 -1
  140. package/bundle/types/message.d.ts +0 -3
  141. package/bundle/types/message.js +0 -3
  142. package/bundle/types/message.js.map +0 -1
  143. package/bundle/types/metadata.d.ts +0 -8
  144. package/bundle/types/metadata.js +0 -3
  145. package/bundle/types/metadata.js.map +0 -1
  146. package/bundle/types/prerecordedTranscriptionOptions.d.ts +0 -126
  147. package/bundle/types/prerecordedTranscriptionOptions.js +0 -3
  148. package/bundle/types/prerecordedTranscriptionOptions.js.map +0 -1
  149. package/bundle/types/prerecordedTranscriptionResponse.d.ts +0 -25
  150. package/bundle/types/prerecordedTranscriptionResponse.js +0 -51
  151. package/bundle/types/prerecordedTranscriptionResponse.js.map +0 -1
  152. package/bundle/types/project.d.ts +0 -17
  153. package/bundle/types/project.js +0 -3
  154. package/bundle/types/project.js.map +0 -1
  155. package/bundle/types/projectPatchRequest.d.ts +0 -4
  156. package/bundle/types/projectPatchRequest.js +0 -3
  157. package/bundle/types/projectPatchRequest.js.map +0 -1
  158. package/bundle/types/projectPatchResponse.d.ts +0 -6
  159. package/bundle/types/projectPatchResponse.js +0 -3
  160. package/bundle/types/projectPatchResponse.js.map +0 -1
  161. package/bundle/types/projectResponse.d.ts +0 -4
  162. package/bundle/types/projectResponse.js +0 -3
  163. package/bundle/types/projectResponse.js.map +0 -1
  164. package/bundle/types/requestFunction.d.ts +0 -5
  165. package/bundle/types/requestFunction.js +0 -3
  166. package/bundle/types/requestFunction.js.map +0 -1
  167. package/bundle/types/scopeList.d.ts +0 -3
  168. package/bundle/types/scopeList.js +0 -3
  169. package/bundle/types/scopeList.js.map +0 -1
  170. package/bundle/types/search.d.ts +0 -14
  171. package/bundle/types/search.js +0 -3
  172. package/bundle/types/search.js.map +0 -1
  173. package/bundle/types/transcriptionSource.d.ts +0 -14
  174. package/bundle/types/transcriptionSource.js +0 -3
  175. package/bundle/types/transcriptionSource.js.map +0 -1
  176. package/bundle/types/usageCallback.d.ts +0 -4
  177. package/bundle/types/usageCallback.js +0 -3
  178. package/bundle/types/usageCallback.js.map +0 -1
  179. package/bundle/types/usageField.d.ts +0 -7
  180. package/bundle/types/usageField.js +0 -3
  181. package/bundle/types/usageField.js.map +0 -1
  182. package/bundle/types/usageFieldOptions.d.ts +0 -4
  183. package/bundle/types/usageFieldOptions.js +0 -3
  184. package/bundle/types/usageFieldOptions.js.map +0 -1
  185. package/bundle/types/usageOptions.d.ts +0 -23
  186. package/bundle/types/usageOptions.js +0 -3
  187. package/bundle/types/usageOptions.js.map +0 -1
  188. package/bundle/types/usageRequest.d.ts +0 -11
  189. package/bundle/types/usageRequest.js +0 -3
  190. package/bundle/types/usageRequest.js.map +0 -1
  191. package/bundle/types/usageRequestDetail.d.ts +0 -30
  192. package/bundle/types/usageRequestDetail.js +0 -3
  193. package/bundle/types/usageRequestDetail.js.map +0 -1
  194. package/bundle/types/usageRequestList.d.ts +0 -6
  195. package/bundle/types/usageRequestList.js +0 -3
  196. package/bundle/types/usageRequestList.js.map +0 -1
  197. package/bundle/types/usageRequestListOptions.d.ts +0 -7
  198. package/bundle/types/usageRequestListOptions.js +0 -3
  199. package/bundle/types/usageRequestListOptions.js.map +0 -1
  200. package/bundle/types/usageRequestMessage.d.ts +0 -3
  201. package/bundle/types/usageRequestMessage.js +0 -3
  202. package/bundle/types/usageRequestMessage.js.map +0 -1
  203. package/bundle/types/usageResponse.d.ts +0 -10
  204. package/bundle/types/usageResponse.js +0 -3
  205. package/bundle/types/usageResponse.js.map +0 -1
  206. package/bundle/types/usageResponseDetail.d.ts +0 -6
  207. package/bundle/types/usageResponseDetail.js +0 -3
  208. package/bundle/types/usageResponseDetail.js.map +0 -1
  209. package/bundle/types/utterance.d.ts +0 -39
  210. package/bundle/types/utterance.js +0 -3
  211. package/bundle/types/utterance.js.map +0 -1
  212. package/bundle/types/wordBase.d.ts +0 -8
  213. package/bundle/types/wordBase.js +0 -3
  214. package/bundle/types/wordBase.js.map +0 -1
  215. package/bundle/usage.d.ts +0 -35
  216. package/bundle/usage.js +0 -122
  217. package/bundle/usage.js.map +0 -1
  218. package/bundle/userAgent.d.ts +0 -1
  219. package/bundle/userAgent.js +0 -20
  220. package/bundle/userAgent.js.map +0 -1
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Transcriber = void 0;
40
- var liveTranscription_1 = require("./liveTranscription");
41
- var preRecordedTranscription_1 = require("./preRecordedTranscription");
42
- var Transcriber = /** @class */ (function () {
43
- function Transcriber(_credentials, _apiUrl) {
44
- this._credentials = _credentials;
45
- this._apiUrl = _apiUrl;
46
- }
47
- /**
48
- * Transcribes prerecorded audio from a file or buffer
49
- * @param source Url or Buffer of file to transcribe
50
- * @param options Options to modify transcriptions
51
- */
52
- Transcriber.prototype.preRecorded = function (source, options) {
53
- return __awaiter(this, void 0, void 0, function () {
54
- return __generator(this, function (_a) {
55
- switch (_a.label) {
56
- case 0: return [4 /*yield*/, (0, preRecordedTranscription_1.preRecordedTranscription)(this._credentials, this._apiUrl || "", source, options)];
57
- case 1: return [2 /*return*/, _a.sent()];
58
- }
59
- });
60
- });
61
- };
62
- /**
63
- * Opens a websocket to Deepgram's API for live transcriptions
64
- * @param options Options to modify transcriptions
65
- */
66
- Transcriber.prototype.live = function (options) {
67
- return new liveTranscription_1.LiveTranscription(this._credentials, this._apiUrl || "", options);
68
- };
69
- return Transcriber;
70
- }());
71
- exports.Transcriber = Transcriber;
72
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transcription/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,yDAAwD;AACxD,uEAAsE;AAEtE;IACE,qBAAoB,YAAoB,EAAU,OAAe;QAA7C,iBAAY,GAAZ,YAAY,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAErE;;;;OAIG;IACG,iCAAW,GAAjB,UACE,MAA2B,EAC3B,OAAyC;;;;4BAElC,qBAAM,IAAA,mDAAwB,EACnC,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,IAAI,EAAE,EAClB,MAAM,EACN,OAAO,CACR,EAAA;4BALD,sBAAO,SAKN,EAAC;;;;KACH;IAED;;;OAGG;IACH,0BAAI,GAAJ,UAAK,OAAkC;QACrC,OAAO,IAAI,qCAAiB,CAC1B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,IAAI,EAAE,EAClB,OAAO,CACR,CAAC;IACJ,CAAC;IACH,kBAAC;AAAD,CAAC,AA/BD,IA+BC;AA/BY,kCAAW"}
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
- import EventEmitter from "events";
3
- import { ConnectionState } from "../enums";
4
- import { LiveTranscriptionOptions } from "../types";
5
- export declare class LiveTranscription extends EventEmitter {
6
- private _socket;
7
- constructor(credentials: string, apiUrl: string, options?: LiveTranscriptionOptions);
8
- private _bindSocketEvents;
9
- /**
10
- * Returns the ready state of the websocket connection
11
- */
12
- getReadyState(): ConnectionState;
13
- /**
14
- * Sends data to the Deepgram API via websocket connection
15
- * @param data Audio data to send to Deepgram
16
- */
17
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
18
- /**
19
- * Denote that you are finished sending audio and close
20
- * the websocket connection when transcription is finished
21
- */
22
- finish(): void;
23
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.LiveTranscription = void 0;
22
- var events_1 = __importDefault(require("events"));
23
- var querystring_1 = __importDefault(require("querystring"));
24
- var ws_1 = __importDefault(require("ws"));
25
- var enums_1 = require("../enums");
26
- var userAgent_1 = require("../userAgent");
27
- var LiveTranscription = /** @class */ (function (_super) {
28
- __extends(LiveTranscription, _super);
29
- function LiveTranscription(credentials, apiUrl, options) {
30
- var _this = _super.call(this, undefined) || this;
31
- _this._socket = new ws_1.default("wss://".concat(apiUrl, "/v1/listen?").concat(querystring_1.default.stringify(options)), {
32
- headers: {
33
- Authorization: "token ".concat(credentials),
34
- "User-Agent": (0, userAgent_1.userAgent)(),
35
- },
36
- });
37
- _this._bindSocketEvents();
38
- return _this;
39
- }
40
- LiveTranscription.prototype._bindSocketEvents = function () {
41
- var _this = this;
42
- this._socket.onopen = function () {
43
- _this.emit("open" /* Open */, _this);
44
- };
45
- this._socket.onclose = function (event) {
46
- _this.emit("close" /* Close */, event);
47
- };
48
- this._socket.onerror = function (event) {
49
- _this.emit("error" /* Error */, event);
50
- };
51
- this._socket.onmessage = function (m) {
52
- _this.emit("transcriptReceived" /* TranscriptReceived */, m.data);
53
- };
54
- };
55
- /**
56
- * Returns the ready state of the websocket connection
57
- */
58
- LiveTranscription.prototype.getReadyState = function () {
59
- return this._socket.readyState;
60
- };
61
- /**
62
- * Sends data to the Deepgram API via websocket connection
63
- * @param data Audio data to send to Deepgram
64
- */
65
- LiveTranscription.prototype.send = function (data) {
66
- if (this._socket.readyState === enums_1.ConnectionState.OPEN) {
67
- this._socket.send(data);
68
- }
69
- else {
70
- this.emit("error" /* Error */, "Could not send. Connection not open.");
71
- }
72
- };
73
- /**
74
- * Denote that you are finished sending audio and close
75
- * the websocket connection when transcription is finished
76
- */
77
- LiveTranscription.prototype.finish = function () {
78
- this._socket.send(new Uint8Array(0));
79
- };
80
- return LiveTranscription;
81
- }(events_1.default));
82
- exports.LiveTranscription = LiveTranscription;
83
- //# sourceMappingURL=liveTranscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveTranscription.js","sourceRoot":"","sources":["../../src/transcription/liveTranscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,kDAAkC;AAClC,4DAAsC;AACtC,0CAA2B;AAC3B,kCAAoE;AAEpE,0CAAyC;AAEzC;IAAuC,qCAAY;IAGjD,2BACE,WAAmB,EACnB,MAAc,EACd,OAAkC;QAHpC,YAKE,kBAAM,SAAS,CAAC,SAWjB;QAVC,KAAI,CAAC,OAAO,GAAG,IAAI,YAAS,CAC1B,gBAAS,MAAM,wBAAc,qBAAW,CAAC,SAAS,CAAC,OAAO,CAAC,CAAE,EAC7D;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,gBAAS,WAAW,CAAE;gBACrC,YAAY,EAAE,IAAA,qBAAS,GAAE;aAC1B;SACF,CACF,CAAC;QACF,KAAI,CAAC,iBAAiB,EAAE,CAAC;;IAC3B,CAAC;IAEO,6CAAiB,GAAzB;QAAA,iBAgBC;QAfC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG;YACpB,KAAI,CAAC,IAAI,oBAA+B,KAAI,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,UAAC,KAA2B;YACjD,KAAI,CAAC,IAAI,sBAAgC,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,UAAC,KAAK;YAC3B,KAAI,CAAC,IAAI,sBAAgC,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,UAAC,CAAC;YACzB,KAAI,CAAC,IAAI,gDAA6C,CAAC,CAAC,IAAI,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG;IACI,yCAAa,GAApB;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,gCAAI,GAAX,UAAY,IAAuD;QACjE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,uBAAe,CAAC,IAAI,EAAE;YACpD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;aAAM;YACL,IAAI,CAAC,IAAI,sBAEP,sCAAsC,CACvC,CAAC;SACH;IACH,CAAC;IAED;;;OAGG;IACI,kCAAM,GAAb;QACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IACH,wBAAC;AAAD,CAAC,AApED,CAAuC,gBAAY,GAoElD;AApEY,8CAAiB"}
@@ -1,8 +0,0 @@
1
- import { PrerecordedTranscriptionOptions, PrerecordedTranscriptionResponse, TranscriptionSource } from "../types";
2
- /**
3
- * Transcribes audio from a file or buffer
4
- * @param credentials Base64 encoded API key & secret
5
- * @param source Url or Buffer of file to transcribe
6
- * @param options Options to modify transcriptions
7
- */
8
- export declare const preRecordedTranscription: (apiKey: string, apiUrl: string, source: TranscriptionSource, options?: PrerecordedTranscriptionOptions | undefined) => Promise<PrerecordedTranscriptionResponse>;
@@ -1,114 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.preRecordedTranscription = void 0;
54
- var querystring_1 = __importDefault(require("querystring"));
55
- var types_1 = require("../types");
56
- var httpRequest_1 = require("../httpRequest");
57
- function isUrlSource(providedSource) {
58
- if (providedSource.url)
59
- return true;
60
- return false;
61
- }
62
- function isBufferSource(providedSource) {
63
- if (providedSource.buffer)
64
- return true;
65
- return false;
66
- }
67
- function isReadStreamSource(providedSource) {
68
- if (providedSource.stream)
69
- return true;
70
- return false;
71
- }
72
- /**
73
- * Transcribes audio from a file or buffer
74
- * @param credentials Base64 encoded API key & secret
75
- * @param source Url or Buffer of file to transcribe
76
- * @param options Options to modify transcriptions
77
- */
78
- var preRecordedTranscription = function (apiKey, apiUrl, source, options) { return __awaiter(void 0, void 0, void 0, function () {
79
- var transcriptionOptions, body, requestOptions, response;
80
- return __generator(this, function (_a) {
81
- switch (_a.label) {
82
- case 0:
83
- transcriptionOptions = __assign({}, options);
84
- if (!isUrlSource(source) &&
85
- (source.mimetype === undefined || source.mimetype.length === 0)) {
86
- throw new Error("DG: Mimetype must be provided if the source is a Buffer or a ReadStream");
87
- }
88
- if (isUrlSource(source)) {
89
- body = JSON.stringify(source);
90
- }
91
- else if (isBufferSource(source)) {
92
- body = source.buffer;
93
- }
94
- else if (isReadStreamSource(source)) {
95
- body = source.stream;
96
- }
97
- else {
98
- throw new Error("Unknown TranscriptionSource type");
99
- }
100
- requestOptions = {};
101
- if (!isUrlSource(source)) {
102
- requestOptions.headers = {
103
- "Content-Type": source.mimetype,
104
- };
105
- }
106
- return [4 /*yield*/, (0, httpRequest_1._request)("POST", apiKey, apiUrl, "/v1/listen?".concat(querystring_1.default.stringify(transcriptionOptions)), body, requestOptions)];
107
- case 1:
108
- response = _a.sent();
109
- return [2 /*return*/, Object.assign(new types_1.PrerecordedTranscriptionResponse(), response)];
110
- }
111
- });
112
- }); };
113
- exports.preRecordedTranscription = preRecordedTranscription;
114
- //# sourceMappingURL=preRecordedTranscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preRecordedTranscription.js","sourceRoot":"","sources":["../../src/transcription/preRecordedTranscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AACtC,kCAOkB;AAClB,8CAA0C;AAE1C,SAAS,WAAW,CAClB,cAAmC;IAEnC,IAAK,cAA4B,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACnD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,cAAc,CACrB,cAAmC;IAEnC,IAAK,cAA+B,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,kBAAkB,CACzB,cAAmC;IAEnC,IAAK,cAAmC,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAC7D,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACI,IAAM,wBAAwB,GAAG,UACtC,MAAc,EACd,MAAc,EACd,MAA2B,EAC3B,OAAyC;;;;;gBAEnC,oBAAoB,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAEnD,IACE,CAAC,WAAW,CAAC,MAAM,CAAC;oBACpB,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,EAC/D;oBACA,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;iBACH;gBAGD,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;oBACvB,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;iBAC/B;qBAAM,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE;oBACjC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;iBACtB;qBAAM,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE;oBACrC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;iBACtB;qBAAM;oBACL,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;iBACrD;gBAEK,cAAc,GAAkD,EAAE,CAAC;gBACzE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;oBACxB,cAAc,CAAC,OAAO,GAAG;wBACvB,cAAc,EAAE,MAAM,CAAC,QAAQ;qBAChC,CAAC;iBACH;gBAEgB,qBAAM,IAAA,sBAAQ,EAC7B,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAc,qBAAW,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAE,EAC3D,IAAI,EACJ,cAAc,CACf,EAAA;;gBAPK,QAAQ,GAAG,SAOhB;gBAED,sBAAO,MAAM,CAAC,MAAM,CAAC,IAAI,wCAAgC,EAAE,EAAE,QAAQ,CAAC,EAAC;;;KACxE,CAAC;AA7CW,QAAA,wBAAwB,4BA6CnC"}
@@ -1,6 +0,0 @@
1
- export declare type Balance = {
2
- balance_id: string;
3
- amount: number;
4
- units: string;
5
- purchase: string;
6
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=balance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.js","sourceRoot":"","sources":["../../src/types/balance.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { Balance } from "./balance";
2
- export declare type BalanceList = {
3
- balances?: Array<Balance>;
4
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=balanceList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balanceList.js","sourceRoot":"","sources":["../../src/types/balanceList.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { Search } from "./search";
2
- import { WordBase } from "./wordBase";
3
- /**
4
- * Channel of speech identified by Deepgram
5
- */
6
- export declare type Channel = {
7
- /**
8
- * Searched terms & results
9
- */
10
- search?: Array<Search>;
11
- alternatives: Array<{
12
- /**
13
- * Text of speech identified by API
14
- */
15
- transcript: string;
16
- /**
17
- * Confidence in transcript generated
18
- */
19
- confidence: number;
20
- /**
21
- * Array of words included in the transcript
22
- */
23
- words: Array<WordBase>;
24
- }>;
25
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=channel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- /**
2
- * Optional options used when creating an API key
3
- */
4
- export declare type CreateKeyOptions = {
5
- /**
6
- * Date on which the key you would like to create should expire.
7
- */
8
- expirationDate?: Date;
9
- /**
10
- * Length of time (in seconds) during which the key you would like to create will remain valid.
11
- */
12
- timeToLive?: number;
13
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=createKeyOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createKeyOptions.js","sourceRoot":"","sources":["../../src/types/createKeyOptions.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- /**
2
- * Represents an identified search term in the transcript
3
- */
4
- export declare type Hit = {
5
- /**
6
- * Value between 0 and 1 that indicates the model's relative confidence in this hit.
7
- */
8
- confidence: number;
9
- /**
10
- * Offset in seconds from the start of the audio to where the hit occurs.
11
- */
12
- start: number;
13
- /**
14
- * Offset in seconds from the start of the audio to where the hit ends.
15
- */
16
- end: number;
17
- /**
18
- * Transcript that corresponds to the time between start and end.
19
- */
20
- snippet: string;
21
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=hit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hit.js","sourceRoot":"","sources":["../../src/types/hit.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- export * from "./balance";
2
- export * from "./balanceList";
3
- export * from "./channel";
4
- export * from "./createKeyOptions";
5
- export * from "./hit";
6
- export * from "./invitationList";
7
- export * from "./invitationOptions";
8
- export * from "./key";
9
- export * from "./keyResponse";
10
- export * from "./liveTranscriptionOptions";
11
- export * from "./liveTranscriptionResponse";
12
- export * from "./member";
13
- export * from "./memberList";
14
- export * from "./message";
15
- export * from "./metadata";
16
- export * from "./prerecordedTranscriptionOptions";
17
- export * from "./prerecordedTranscriptionResponse";
18
- export * from "./project";
19
- export * from "./projectPatchResponse";
20
- export * from "./projectResponse";
21
- export * from "./scopeList";
22
- export * from "./search";
23
- export * from "./transcriptionSource";
24
- export * from "./usageCallback";
25
- export * from "./usageField";
26
- export * from "./usageFieldOptions";
27
- export * from "./usageOptions";
28
- export * from "./usageRequest";
29
- export * from "./usageRequestDetail";
30
- export * from "./usageRequestList";
31
- export * from "./usageRequestListOptions";
32
- export * from "./usageResponse";
33
- export * from "./usageResponseDetail";
34
- export * from "./utterance";
35
- export * from "./wordBase";
36
- export * from "./keyResponseObj";
37
- export * from "./projectPatchRequest";
38
- export * from "./requestFunction";
@@ -1,55 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./balance"), exports);
18
- __exportStar(require("./balanceList"), exports);
19
- __exportStar(require("./channel"), exports);
20
- __exportStar(require("./createKeyOptions"), exports);
21
- __exportStar(require("./hit"), exports);
22
- __exportStar(require("./invitationList"), exports);
23
- __exportStar(require("./invitationOptions"), exports);
24
- __exportStar(require("./key"), exports);
25
- __exportStar(require("./keyResponse"), exports);
26
- __exportStar(require("./liveTranscriptionOptions"), exports);
27
- __exportStar(require("./liveTranscriptionResponse"), exports);
28
- __exportStar(require("./member"), exports);
29
- __exportStar(require("./memberList"), exports);
30
- __exportStar(require("./message"), exports);
31
- __exportStar(require("./metadata"), exports);
32
- __exportStar(require("./prerecordedTranscriptionOptions"), exports);
33
- __exportStar(require("./prerecordedTranscriptionResponse"), exports);
34
- __exportStar(require("./project"), exports);
35
- __exportStar(require("./projectPatchResponse"), exports);
36
- __exportStar(require("./projectResponse"), exports);
37
- __exportStar(require("./scopeList"), exports);
38
- __exportStar(require("./search"), exports);
39
- __exportStar(require("./transcriptionSource"), exports);
40
- __exportStar(require("./usageCallback"), exports);
41
- __exportStar(require("./usageField"), exports);
42
- __exportStar(require("./usageFieldOptions"), exports);
43
- __exportStar(require("./usageOptions"), exports);
44
- __exportStar(require("./usageRequest"), exports);
45
- __exportStar(require("./usageRequestDetail"), exports);
46
- __exportStar(require("./usageRequestList"), exports);
47
- __exportStar(require("./usageRequestListOptions"), exports);
48
- __exportStar(require("./usageResponse"), exports);
49
- __exportStar(require("./usageResponseDetail"), exports);
50
- __exportStar(require("./utterance"), exports);
51
- __exportStar(require("./wordBase"), exports);
52
- __exportStar(require("./keyResponseObj"), exports);
53
- __exportStar(require("./projectPatchRequest"), exports);
54
- __exportStar(require("./requestFunction"), exports);
55
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,qDAAmC;AACnC,wCAAsB;AACtB,mDAAiC;AACjC,sDAAoC;AACpC,wCAAsB;AACtB,gDAA8B;AAC9B,6DAA2C;AAC3C,8DAA4C;AAC5C,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,6CAA2B;AAC3B,oEAAkD;AAClD,qEAAmD;AACnD,4CAA0B;AAC1B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,wDAAsC;AACtC,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,wDAAsC;AACtC,oDAAkC"}
@@ -1,4 +0,0 @@
1
- import { InvitationOptions } from "./invitationOptions";
2
- export declare type InvitationList = {
3
- invites?: Array<InvitationOptions>;
4
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invitationList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invitationList.js","sourceRoot":"","sources":["../../src/types/invitationList.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare type InvitationOptions = {
2
- email?: string;
3
- scope?: string;
4
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invitationOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invitationOptions.js","sourceRoot":"","sources":["../../src/types/invitationOptions.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- /**
2
- * API key used for authenticating with the Deepgram API
3
- */
4
- export declare type Key = {
5
- /**
6
- * Unique identifier of the key to use in API requests
7
- */
8
- api_key_id: string;
9
- /**
10
- * API key to send in API requests (Only displayed when first created)
11
- */
12
- key?: string;
13
- /**
14
- * Comment for user reference
15
- */
16
- comment: string;
17
- /**
18
- * Timestamp of the date/time the key was created
19
- */
20
- created: string;
21
- /**
22
- * Array of scopes assigned to the key
23
- */
24
- scopes: Array<string>;
25
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=key.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/types/key.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import { KeyResponseObj } from "./keyResponseObj";
2
- /**
3
- * Response from the Deepgram API to list keys
4
- */
5
- export declare type KeyResponse = {
6
- /**
7
- * Array of API keys associated with the project
8
- */
9
- api_keys: Array<KeyResponseObj>;
10
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=keyResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyResponse.js","sourceRoot":"","sources":["../../src/types/keyResponse.ts"],"names":[],"mappings":""}