@deepgram/sdk 1.3.1-beta → 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.
Files changed (127) hide show
  1. package/dist/billing.d.ts +18 -18
  2. package/dist/billing.js +72 -72
  3. package/dist/constants/defaultOptions.d.ts +6 -6
  4. package/dist/constants/defaultOptions.js +9 -9
  5. package/dist/constants/index.d.ts +1 -1
  6. package/dist/constants/index.js +17 -17
  7. package/dist/enums/alternatives.d.ts +4 -4
  8. package/dist/enums/alternatives.js +2 -2
  9. package/dist/enums/connectionState.d.ts +6 -6
  10. package/dist/enums/connectionState.js +10 -10
  11. package/dist/enums/diarization.d.ts +4 -4
  12. package/dist/enums/diarization.js +2 -2
  13. package/dist/enums/index.d.ts +7 -7
  14. package/dist/enums/index.js +23 -23
  15. package/dist/enums/liveTranscriptionEvents.d.ts +6 -6
  16. package/dist/enums/liveTranscriptionEvents.js +2 -2
  17. package/dist/enums/models.d.ts +5 -5
  18. package/dist/enums/models.js +2 -2
  19. package/dist/enums/punctuation.d.ts +4 -4
  20. package/dist/enums/punctuation.js +2 -2
  21. package/dist/enums/searchKind.d.ts +4 -4
  22. package/dist/enums/searchKind.js +2 -2
  23. package/dist/helpers/index.d.ts +1 -1
  24. package/dist/helpers/index.js +17 -17
  25. package/dist/helpers/secondsToTimestamp.d.ts +1 -1
  26. package/dist/helpers/secondsToTimestamp.js +7 -7
  27. package/dist/httpRequest.d.ts +3 -3
  28. package/dist/httpRequest.js +90 -90
  29. package/dist/index.d.ts +25 -25
  30. package/dist/index.js +40 -40
  31. package/dist/invitation.d.ts +29 -29
  32. package/dist/invitation.js +98 -98
  33. package/dist/keys.d.ts +32 -32
  34. package/dist/keys.js +131 -131
  35. package/dist/members.d.ts +18 -18
  36. package/dist/members.js +72 -72
  37. package/dist/projects.d.ts +21 -21
  38. package/dist/projects.js +81 -81
  39. package/dist/scopes.d.ts +20 -20
  40. package/dist/scopes.js +76 -76
  41. package/dist/transcription/index.d.ts +18 -18
  42. package/dist/transcription/index.js +71 -71
  43. package/dist/transcription/liveTranscription.d.ts +23 -23
  44. package/dist/transcription/liveTranscription.js +82 -82
  45. package/dist/transcription/preRecordedTranscription.d.ts +8 -8
  46. package/dist/transcription/preRecordedTranscription.js +113 -113
  47. package/dist/types/balance.d.ts +6 -6
  48. package/dist/types/balance.js +2 -2
  49. package/dist/types/balanceList.d.ts +4 -4
  50. package/dist/types/balanceList.js +2 -2
  51. package/dist/types/channel.d.ts +25 -25
  52. package/dist/types/channel.js +2 -2
  53. package/dist/types/createKeyOptions.d.ts +13 -13
  54. package/dist/types/createKeyOptions.js +2 -2
  55. package/dist/types/hit.d.ts +21 -21
  56. package/dist/types/hit.js +2 -2
  57. package/dist/types/index.d.ts +35 -35
  58. package/dist/types/index.js +51 -51
  59. package/dist/types/invitationList.d.ts +4 -4
  60. package/dist/types/invitationList.js +2 -2
  61. package/dist/types/invitationOptions.d.ts +4 -4
  62. package/dist/types/invitationOptions.js +2 -2
  63. package/dist/types/key.d.ts +25 -25
  64. package/dist/types/key.js +2 -2
  65. package/dist/types/keyResponse.d.ts +50 -50
  66. package/dist/types/keyResponse.js +2 -2
  67. package/dist/types/keyword.d.ts +4 -4
  68. package/dist/types/keyword.js +2 -2
  69. package/dist/types/liveTranscriptionOptions.d.ts +148 -148
  70. package/dist/types/liveTranscriptionOptions.js +2 -2
  71. package/dist/types/liveTranscriptionResponse.d.ts +9 -9
  72. package/dist/types/liveTranscriptionResponse.js +2 -2
  73. package/dist/types/member.d.ts +7 -7
  74. package/dist/types/member.js +2 -2
  75. package/dist/types/memberList.d.ts +4 -4
  76. package/dist/types/memberList.js +2 -2
  77. package/dist/types/message.d.ts +3 -3
  78. package/dist/types/message.js +2 -2
  79. package/dist/types/metadata.d.ts +8 -8
  80. package/dist/types/metadata.js +2 -2
  81. package/dist/types/prerecordedTranscriptionOptions.d.ts +126 -126
  82. package/dist/types/prerecordedTranscriptionOptions.js +2 -2
  83. package/dist/types/prerecordedTranscriptionResponse.d.ts +25 -25
  84. package/dist/types/prerecordedTranscriptionResponse.js +50 -50
  85. package/dist/types/project.d.ts +17 -17
  86. package/dist/types/project.js +2 -2
  87. package/dist/types/projectPatchResponse.d.ts +6 -6
  88. package/dist/types/projectPatchResponse.js +2 -2
  89. package/dist/types/projectResponse.d.ts +4 -4
  90. package/dist/types/projectResponse.js +2 -2
  91. package/dist/types/scopeList.d.ts +3 -3
  92. package/dist/types/scopeList.js +2 -2
  93. package/dist/types/search.d.ts +14 -14
  94. package/dist/types/search.js +2 -2
  95. package/dist/types/transcriptionSource.d.ts +14 -14
  96. package/dist/types/transcriptionSource.js +2 -2
  97. package/dist/types/usageCallback.d.ts +4 -4
  98. package/dist/types/usageCallback.js +2 -2
  99. package/dist/types/usageField.d.ts +7 -7
  100. package/dist/types/usageField.js +2 -2
  101. package/dist/types/usageFieldOptions.d.ts +4 -4
  102. package/dist/types/usageFieldOptions.js +2 -2
  103. package/dist/types/usageOptions.d.ts +23 -23
  104. package/dist/types/usageOptions.js +2 -2
  105. package/dist/types/usageRequest.d.ts +11 -11
  106. package/dist/types/usageRequest.js +2 -2
  107. package/dist/types/usageRequestDetail.d.ts +30 -30
  108. package/dist/types/usageRequestDetail.js +2 -2
  109. package/dist/types/usageRequestList.d.ts +6 -6
  110. package/dist/types/usageRequestList.js +2 -2
  111. package/dist/types/usageRequestListOptions.d.ts +7 -7
  112. package/dist/types/usageRequestListOptions.js +2 -2
  113. package/dist/types/usageRequestMessage.d.ts +3 -3
  114. package/dist/types/usageRequestMessage.js +2 -2
  115. package/dist/types/usageResponse.d.ts +10 -10
  116. package/dist/types/usageResponse.js +2 -2
  117. package/dist/types/usageResponseDetail.d.ts +6 -6
  118. package/dist/types/usageResponseDetail.js +2 -2
  119. package/dist/types/utterance.d.ts +39 -39
  120. package/dist/types/utterance.js +2 -2
  121. package/dist/types/wordBase.d.ts +8 -8
  122. package/dist/types/wordBase.js +2 -2
  123. package/dist/usage.d.ts +34 -34
  124. package/dist/usage.js +121 -121
  125. package/dist/userAgent.d.ts +1 -1
  126. package/dist/userAgent.js +19 -19
  127. package/package.json +4 -4
package/dist/billing.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { BalanceList, Balance } from "./types";
2
- export declare class Billing {
3
- private _credentials;
4
- private _apiUrl;
5
- constructor(_credentials: string, _apiUrl: string);
6
- private apiPath;
7
- /**
8
- * Retrieves list of balance info of the specified project.
9
- * @param projectId Unique identifier of the project
10
- */
11
- listBalances(projectId: string): Promise<BalanceList>;
12
- /**
13
- * Retrieves balance info of a specified balance_id in the specified project.
14
- * @param projectId Unique identifier of the project
15
- * @param balanceId Unique identifier of the balance
16
- */
17
- getBalance(projectId: string, balanceId: string): Promise<Balance>;
18
- }
1
+ import { BalanceList, Balance } from "./types";
2
+ export declare class Billing {
3
+ private _credentials;
4
+ private _apiUrl;
5
+ constructor(_credentials: string, _apiUrl: string);
6
+ private apiPath;
7
+ /**
8
+ * Retrieves list of balance info of the specified project.
9
+ * @param projectId Unique identifier of the project
10
+ */
11
+ listBalances(projectId: string): Promise<BalanceList>;
12
+ /**
13
+ * Retrieves balance info of a specified balance_id in the specified project.
14
+ * @param projectId Unique identifier of the project
15
+ * @param balanceId Unique identifier of the balance
16
+ */
17
+ getBalance(projectId: string, balanceId: string): Promise<Balance>;
18
+ }
package/dist/billing.js CHANGED
@@ -1,73 +1,73 @@
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.Billing = void 0;
40
- var httpRequest_1 = require("./httpRequest");
41
- var Billing = /** @class */ (function () {
42
- function Billing(_credentials, _apiUrl) {
43
- this._credentials = _credentials;
44
- this._apiUrl = _apiUrl;
45
- this.apiPath = "/v1/projects";
46
- }
47
- /**
48
- * Retrieves list of balance info of the specified project.
49
- * @param projectId Unique identifier of the project
50
- */
51
- Billing.prototype.listBalances = function (projectId) {
52
- return __awaiter(this, void 0, void 0, function () {
53
- return __generator(this, function (_a) {
54
- return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/balances"))];
55
- });
56
- });
57
- };
58
- /**
59
- * Retrieves balance info of a specified balance_id in the specified project.
60
- * @param projectId Unique identifier of the project
61
- * @param balanceId Unique identifier of the balance
62
- */
63
- Billing.prototype.getBalance = function (projectId, balanceId) {
64
- return __awaiter(this, void 0, void 0, function () {
65
- return __generator(this, function (_a) {
66
- return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/balances/").concat(balanceId))];
67
- });
68
- });
69
- };
70
- return Billing;
71
- }());
72
- exports.Billing = Billing;
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.Billing = void 0;
40
+ var httpRequest_1 = require("./httpRequest");
41
+ var Billing = /** @class */ (function () {
42
+ function Billing(_credentials, _apiUrl) {
43
+ this._credentials = _credentials;
44
+ this._apiUrl = _apiUrl;
45
+ this.apiPath = "/v1/projects";
46
+ }
47
+ /**
48
+ * Retrieves list of balance info of the specified project.
49
+ * @param projectId Unique identifier of the project
50
+ */
51
+ Billing.prototype.listBalances = function (projectId) {
52
+ return __awaiter(this, void 0, void 0, function () {
53
+ return __generator(this, function (_a) {
54
+ return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/balances"))];
55
+ });
56
+ });
57
+ };
58
+ /**
59
+ * Retrieves balance info of a specified balance_id in the specified project.
60
+ * @param projectId Unique identifier of the project
61
+ * @param balanceId Unique identifier of the balance
62
+ */
63
+ Billing.prototype.getBalance = function (projectId, balanceId) {
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ return __generator(this, function (_a) {
66
+ return [2 /*return*/, (0, httpRequest_1._request)("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/balances/").concat(balanceId))];
67
+ });
68
+ });
69
+ };
70
+ return Billing;
71
+ }());
72
+ exports.Billing = Billing;
73
73
  //# sourceMappingURL=billing.js.map
@@ -1,6 +1,6 @@
1
- /**
2
- * Default SDK options
3
- */
4
- export declare const DefaultOptions: {
5
- apiUrl: string;
6
- };
1
+ /**
2
+ * Default SDK options
3
+ */
4
+ export declare const DefaultOptions: {
5
+ apiUrl: string;
6
+ };
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultOptions = void 0;
4
- /**
5
- * Default SDK options
6
- */
7
- exports.DefaultOptions = {
8
- apiUrl: "api.deepgram.com",
9
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultOptions = void 0;
4
+ /**
5
+ * Default SDK options
6
+ */
7
+ exports.DefaultOptions = {
8
+ apiUrl: "api.deepgram.com",
9
+ };
10
10
  //# sourceMappingURL=defaultOptions.js.map
@@ -1 +1 @@
1
- export * from "./defaultOptions";
1
+ export * from "./defaultOptions";
@@ -1,18 +1,18 @@
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("./defaultOptions"), exports);
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("./defaultOptions"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export declare const enum Alternatives {
2
- One = "one-alternative",
3
- Multiple = "multiple-alternatives"
4
- }
1
+ export declare const enum Alternatives {
2
+ One = "one-alternative",
3
+ Multiple = "multiple-alternatives"
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=alternatives.js.map
@@ -1,6 +1,6 @@
1
- export declare enum ConnectionState {
2
- CONNECTING = 0,
3
- OPEN = 1,
4
- CLOSING = 2,
5
- CLOSED = 3
6
- }
1
+ export declare enum ConnectionState {
2
+ CONNECTING = 0,
3
+ OPEN = 1,
4
+ CLOSING = 2,
5
+ CLOSED = 3
6
+ }
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConnectionState = void 0;
4
- var ConnectionState;
5
- (function (ConnectionState) {
6
- ConnectionState[ConnectionState["CONNECTING"] = 0] = "CONNECTING";
7
- ConnectionState[ConnectionState["OPEN"] = 1] = "OPEN";
8
- ConnectionState[ConnectionState["CLOSING"] = 2] = "CLOSING";
9
- ConnectionState[ConnectionState["CLOSED"] = 3] = "CLOSED";
10
- })(ConnectionState = exports.ConnectionState || (exports.ConnectionState = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectionState = void 0;
4
+ var ConnectionState;
5
+ (function (ConnectionState) {
6
+ ConnectionState[ConnectionState["CONNECTING"] = 0] = "CONNECTING";
7
+ ConnectionState[ConnectionState["OPEN"] = 1] = "OPEN";
8
+ ConnectionState[ConnectionState["CLOSING"] = 2] = "CLOSING";
9
+ ConnectionState[ConnectionState["CLOSED"] = 3] = "CLOSED";
10
+ })(ConnectionState = exports.ConnectionState || (exports.ConnectionState = {}));
11
11
  //# sourceMappingURL=connectionState.js.map
@@ -1,4 +1,4 @@
1
- export declare const enum Diarization {
2
- Diarized = "diarized",
3
- NonDiarized = "non-diarized"
4
- }
1
+ export declare const enum Diarization {
2
+ Diarized = "diarized",
3
+ NonDiarized = "non-diarized"
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=diarization.js.map
@@ -1,7 +1,7 @@
1
- export * from "./alternatives";
2
- export * from "./connectionState";
3
- export * from "./diarization";
4
- export * from "./liveTranscriptionEvents";
5
- export * from "./models";
6
- export * from "./punctuation";
7
- export * from "./searchKind";
1
+ export * from "./alternatives";
2
+ export * from "./connectionState";
3
+ export * from "./diarization";
4
+ export * from "./liveTranscriptionEvents";
5
+ export * from "./models";
6
+ export * from "./punctuation";
7
+ export * from "./searchKind";
@@ -1,24 +1,24 @@
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("./alternatives"), exports);
18
- __exportStar(require("./connectionState"), exports);
19
- __exportStar(require("./diarization"), exports);
20
- __exportStar(require("./liveTranscriptionEvents"), exports);
21
- __exportStar(require("./models"), exports);
22
- __exportStar(require("./punctuation"), exports);
23
- __exportStar(require("./searchKind"), exports);
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("./alternatives"), exports);
18
+ __exportStar(require("./connectionState"), exports);
19
+ __exportStar(require("./diarization"), exports);
20
+ __exportStar(require("./liveTranscriptionEvents"), exports);
21
+ __exportStar(require("./models"), exports);
22
+ __exportStar(require("./punctuation"), exports);
23
+ __exportStar(require("./searchKind"), exports);
24
24
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- export declare const enum LiveTranscriptionEvents {
2
- Open = "open",
3
- Close = "close",
4
- TranscriptReceived = "transcriptReceived",
5
- Error = "error"
6
- }
1
+ export declare const enum LiveTranscriptionEvents {
2
+ Open = "open",
3
+ Close = "close",
4
+ TranscriptReceived = "transcriptReceived",
5
+ Error = "error"
6
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=liveTranscriptionEvents.js.map
@@ -1,5 +1,5 @@
1
- export declare const enum Models {
2
- General = "general",
3
- Meeting = "meeting",
4
- PhoneCall = "phonecall"
5
- }
1
+ export declare const enum Models {
2
+ General = "general",
3
+ Meeting = "meeting",
4
+ PhoneCall = "phonecall"
5
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=models.js.map
@@ -1,4 +1,4 @@
1
- export declare const enum Punctuation {
2
- NonPunctuated = "non-punctuated",
3
- Punctuated = "punctuated"
4
- }
1
+ export declare const enum Punctuation {
2
+ NonPunctuated = "non-punctuated",
3
+ Punctuated = "punctuated"
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=punctuation.js.map
@@ -1,4 +1,4 @@
1
- export declare const enum SearchKind {
2
- NoSearch = "no-search",
3
- WithSearch = "with-search"
4
- }
1
+ export declare const enum SearchKind {
2
+ NoSearch = "no-search",
3
+ WithSearch = "with-search"
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=searchKind.js.map
@@ -1 +1 @@
1
- export * from "./secondsToTimestamp";
1
+ export * from "./secondsToTimestamp";
@@ -1,18 +1,18 @@
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("./secondsToTimestamp"), exports);
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("./secondsToTimestamp"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function secondsToTimestamp(seconds: number): string;
1
+ export declare function secondsToTimestamp(seconds: number): string;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.secondsToTimestamp = void 0;
4
- function secondsToTimestamp(seconds) {
5
- return new Date(seconds * 1000).toISOString().substr(11, 12);
6
- }
7
- exports.secondsToTimestamp = secondsToTimestamp;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.secondsToTimestamp = void 0;
4
+ function secondsToTimestamp(seconds) {
5
+ return new Date(seconds * 1000).toISOString().substr(11, 12);
6
+ }
7
+ exports.secondsToTimestamp = secondsToTimestamp;
8
8
  //# sourceMappingURL=secondsToTimestamp.js.map
@@ -1,3 +1,3 @@
1
- /// <reference types="node" />
2
- import { ReadStream } from "fs";
3
- export declare function _request<T>(method: string, api_key: string, apiUrl: string, path: string, payload?: string | Buffer | ReadStream, options?: Object): Promise<T>;
1
+ /// <reference types="node" />
2
+ import { ReadStream } from "fs";
3
+ export declare function _request<T>(method: string, api_key: string, apiUrl: string, path: string, payload?: string | Buffer | ReadStream, options?: Object): Promise<T>;