@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,87 +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 httpFetch_1 = require("../httpFetch");
57
- function isUrlSource(providedSource) {
58
- if (providedSource.url)
59
- return true;
60
- return false;
61
- }
62
- /**
63
- * Transcribes audio from a url
64
- * @param credentials Base64 encoded API key & secret
65
- * @param apiUrl url string of Deepgram's API
66
- * @param source Url or Buffer of file to transcribe
67
- * @param options Options to modify transcriptions
68
- */
69
- var preRecordedTranscription = function (apiKey, apiUrl, source, options) { return __awaiter(void 0, void 0, void 0, function () {
70
- var transcriptionOptions, body, response;
71
- return __generator(this, function (_a) {
72
- switch (_a.label) {
73
- case 0:
74
- transcriptionOptions = __assign({}, options);
75
- if (!isUrlSource(source)) {
76
- throw new Error("DG: Source must be a URL string");
77
- }
78
- body = JSON.stringify(source);
79
- return [4 /*yield*/, (0, httpFetch_1._request)("POST", apiKey, apiUrl, "/v1/listen?".concat(querystring_1.default.stringify(transcriptionOptions)), body)];
80
- case 1:
81
- response = _a.sent();
82
- return [2 /*return*/, Object.assign(new types_1.PrerecordedTranscriptionResponse(), response)];
83
- }
84
- });
85
- }); };
86
- exports.preRecordedTranscription = preRecordedTranscription;
87
- //# sourceMappingURL=preRecordedTranscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preRecordedTranscription.js","sourceRoot":"","sources":["../../../src/browser/transcription/preRecordedTranscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AACtC,qCAIqB;AACrB,0CAAwC;AAExC,SAAS,WAAW,CAAC,cAAyB;IAC5C,IAAK,cAA4B,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACnD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;GAMG;AACI,IAAM,wBAAwB,GAAG,UACtC,MAAc,EACd,MAAc,EACd,MAAiB,EACjB,OAAyC;;;;;gBAEnC,oBAAoB,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBACnD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;oBACxB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;iBACpD;gBAEK,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAEnB,qBAAM,IAAA,oBAAQ,EAC7B,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAc,qBAAW,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAE,EAC3D,IAAI,CACL,EAAA;;gBANK,QAAQ,GAAG,SAMhB;gBAED,sBAAO,MAAM,CAAC,MAAM,CAAC,IAAI,wCAAgC,EAAE,EAAE,QAAQ,CAAC,EAAC;;;KACxE,CAAC;AAtBW,QAAA,wBAAwB,4BAsBnC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Default SDK options
3
- */
4
- export declare const DefaultOptions: {
5
- apiUrl: string;
6
- };
@@ -1,10 +0,0 @@
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
- //# sourceMappingURL=defaultOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultOptions.js","sourceRoot":"","sources":["../../src/constants/defaultOptions.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,kBAAkB;CAC3B,CAAC"}
@@ -1 +0,0 @@
1
- export * from "./defaultOptions";
@@ -1,18 +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("./defaultOptions"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1,4 +0,0 @@
1
- export declare const enum Alternatives {
2
- One = "one-alternative",
3
- Multiple = "multiple-alternatives"
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=alternatives.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternatives.js","sourceRoot":"","sources":["../../src/enums/alternatives.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export declare enum ConnectionState {
2
- CONNECTING = 0,
3
- OPEN = 1,
4
- CLOSING = 2,
5
- CLOSED = 3
6
- }
@@ -1,11 +0,0 @@
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
- //# sourceMappingURL=connectionState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectionState.js","sourceRoot":"","sources":["../../src/enums/connectionState.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,iEAAc,CAAA;IACd,qDAAQ,CAAA;IACR,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B"}
@@ -1,4 +0,0 @@
1
- export declare const enum Diarization {
2
- Diarized = "diarized",
3
- NonDiarized = "non-diarized"
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=diarization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diarization.js","sourceRoot":"","sources":["../../src/enums/diarization.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
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 +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("./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
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,4DAA0C;AAC1C,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B"}
@@ -1,6 +0,0 @@
1
- export declare const enum LiveTranscriptionEvents {
2
- Open = "open",
3
- Close = "close",
4
- TranscriptReceived = "transcriptReceived",
5
- Error = "error"
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=liveTranscriptionEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveTranscriptionEvents.js","sourceRoot":"","sources":["../../src/enums/liveTranscriptionEvents.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export declare const enum Models {
2
- General = "general",
3
- Meeting = "meeting",
4
- PhoneCall = "phonecall"
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/enums/models.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare const enum Punctuation {
2
- NonPunctuated = "non-punctuated",
3
- Punctuated = "punctuated"
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=punctuation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"punctuation.js","sourceRoot":"","sources":["../../src/enums/punctuation.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare const enum SearchKind {
2
- NoSearch = "no-search",
3
- WithSearch = "with-search"
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=searchKind.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"searchKind.js","sourceRoot":"","sources":["../../src/enums/searchKind.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./secondsToTimestamp";
2
- export * from "./validateOptions";
@@ -1,19 +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("./secondsToTimestamp"), exports);
18
- __exportStar(require("./validateOptions"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC"}
@@ -1 +0,0 @@
1
- export declare function secondsToTimestamp(seconds: number): string;
@@ -1,8 +0,0 @@
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
- //# sourceMappingURL=secondsToTimestamp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"secondsToTimestamp.js","sourceRoot":"","sources":["../../src/helpers/secondsToTimestamp.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAAC,OAAe;IAChD,OAAO,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/D,CAAC;AAFD,gDAEC"}
@@ -1 +0,0 @@
1
- export declare function validateOptions(apiKey: string, apiUrl: string): void;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOptions = void 0;
4
- function validateOptions(apiKey, apiUrl) {
5
- if (!apiKey || apiKey.trim().length === 0) {
6
- throw new Error("DG: API key is required");
7
- }
8
- if (!apiUrl || apiUrl.trim().length === 0) {
9
- throw new Error("DG: API url should be a valid url or not provided");
10
- }
11
- }
12
- exports.validateOptions = validateOptions;
13
- //# sourceMappingURL=validateOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateOptions.js","sourceRoot":"","sources":["../../src/helpers/validateOptions.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,MAAc,EAAE,MAAc;IAC5D,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IAED,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;KACtE;AACH,CAAC;AARD,0CAQC"}
@@ -1,3 +0,0 @@
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,91 +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
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports._request = void 0;
15
- var fs_1 = require("fs");
16
- var https_1 = require("https");
17
- var userAgent_1 = require("./userAgent");
18
- var _requestOptions = function (api_key, apiUrl, path, method, payload,
19
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- override_options) {
21
- var additionalHeaders = {};
22
- if (payload && !(payload instanceof fs_1.ReadStream)) {
23
- additionalHeaders["Content-Length"] = Buffer.byteLength(payload);
24
- }
25
- var options = {
26
- host: apiUrl,
27
- path: path,
28
- method: method,
29
- headers: __assign({ "User-Agent": (0, userAgent_1.userAgent)(), "Content-Type": "application/json", Authorization: "token ".concat(api_key) }, additionalHeaders),
30
- };
31
- var headers = options.headers;
32
- if (override_options && override_options.headers) {
33
- headers = __assign(__assign({}, headers), override_options.headers);
34
- }
35
- return __assign(__assign(__assign({}, options), override_options), { headers: headers });
36
- };
37
- function _request(method, api_key, apiUrl, path, payload,
38
- // eslint-disable-next-line @typescript-eslint/ban-types
39
- options) {
40
- var requestOptions = _requestOptions(api_key, apiUrl, path, method, payload, options);
41
- return new Promise(function (resolve, reject) {
42
- try {
43
- var httpRequest_1 = (0, https_1.request)(requestOptions, function (dgRes) {
44
- var dgResContent = "";
45
- dgRes.on("data", function (chunk) {
46
- dgResContent += chunk;
47
- });
48
- dgRes.on("end", function () {
49
- var dgResponse;
50
- try {
51
- dgResponse = JSON.parse(dgResContent);
52
- }
53
- catch (err) {
54
- dgResponse = { error: dgResContent };
55
- }
56
- if (dgResponse.error) {
57
- reject("DG: ".concat(dgResContent));
58
- }
59
- resolve(dgResponse);
60
- });
61
- dgRes.on("error", function (err) {
62
- reject("DG: ".concat(err));
63
- });
64
- });
65
- httpRequest_1.on("error", function (err) {
66
- reject("DG: ".concat(err));
67
- });
68
- if (payload) {
69
- if (payload instanceof fs_1.ReadStream) {
70
- payload.pipe(httpRequest_1);
71
- payload.on("finish", function () {
72
- httpRequest_1.end();
73
- });
74
- }
75
- else {
76
- // It's a buffer
77
- httpRequest_1.write(payload);
78
- httpRequest_1.end();
79
- }
80
- }
81
- else {
82
- httpRequest_1.end();
83
- }
84
- }
85
- catch (err) {
86
- reject("DG: ".concat(err));
87
- }
88
- });
89
- }
90
- exports._request = _request;
91
- //# sourceMappingURL=httpRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"httpRequest.js","sourceRoot":"","sources":["../src/httpRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yBAAgC;AAChC,+BAAgD;AAChD,yCAAwC;AAExC,IAAM,eAAe,GAAG,UACtB,OAAe,EACf,MAAc,EACd,IAAY,EACZ,MAAc,EACd,OAAsC;AACtC,8DAA8D;AAC9D,gBAAsB;IAEtB,IAAM,iBAAiB,GAAwC,EAAE,CAAC;IAClE,IAAI,OAAO,IAAI,CAAC,CAAC,OAAO,YAAY,eAAU,CAAC,EAAE;QAC/C,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAClE;IAED,IAAM,OAAO,GAAG;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,OAAO,aACL,YAAY,EAAE,IAAA,qBAAS,GAAE,EACzB,cAAc,EAAE,kBAAkB,EAClC,aAAa,EAAE,gBAAS,OAAO,CAAE,IAC9B,iBAAiB,CACrB;KACF,CAAC;IACF,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAC9B,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,OAAO,EAAE;QAChD,OAAO,yBAAQ,OAAO,GAAK,gBAAgB,CAAC,OAAO,CAAE,CAAC;KACvD;IAED,sCAAY,OAAO,GAAK,gBAAgB,GAAK,EAAE,OAAO,SAAA,EAAE,EAAG;AAC7D,CAAC,CAAC;AAEF,SAAgB,QAAQ,CACtB,MAAc,EACd,OAAe,EACf,MAAc,EACd,IAAY,EACZ,OAAsC;AACtC,wDAAwD;AACxD,OAAgB;IAEhB,IAAM,cAAc,GAAG,eAAe,CACpC,OAAO,EACP,MAAM,EACN,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC;IACF,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAI;YACF,IAAM,aAAW,GAAG,IAAA,eAAO,EAAC,cAAc,EAAE,UAAC,KAAK;gBAChD,IAAI,YAAY,GAAG,EAAE,CAAC;gBAEtB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,UAAC,KAAK;oBACrB,YAAY,IAAI,KAAK,CAAC;gBACxB,CAAC,CAAC,CAAC;gBAEH,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;oBACd,IAAI,UAAU,CAAC;oBACf,IAAI;wBACF,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;qBACvC;oBAAC,OAAO,GAAG,EAAE;wBACZ,UAAU,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;qBACtC;oBAED,IAAI,UAAU,CAAC,KAAK,EAAE;wBACpB,MAAM,CAAC,cAAO,YAAY,CAAE,CAAC,CAAC;qBAC/B;oBACD,OAAO,CAAC,UAAU,CAAC,CAAC;gBACtB,CAAC,CAAC,CAAC;gBAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,GAAG;oBACpB,MAAM,CAAC,cAAO,GAAG,CAAE,CAAC,CAAC;gBACvB,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,aAAW,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,GAAG;gBAC1B,MAAM,CAAC,cAAO,GAAG,CAAE,CAAC,CAAC;YACvB,CAAC,CAAC,CAAC;YAEH,IAAI,OAAO,EAAE;gBACX,IAAI,OAAO,YAAY,eAAU,EAAE;oBACjC,OAAO,CAAC,IAAI,CAAC,aAAW,CAAC,CAAC;oBAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE;wBACnB,aAAW,CAAC,GAAG,EAAE,CAAC;oBACpB,CAAC,CAAC,CAAC;iBACJ;qBAAM;oBACL,gBAAgB;oBAChB,aAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;oBAC3B,aAAW,CAAC,GAAG,EAAE,CAAC;iBACnB;aACF;iBAAM;gBACL,aAAW,CAAC,GAAG,EAAE,CAAC;aACnB;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,CAAC,cAAO,GAAG,CAAE,CAAC,CAAC;SACtB;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAnED,4BAmEC"}
package/bundle/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { Keys } from "./keys";
2
- import { Projects } from "./projects";
3
- import { Transcriber } from "./transcription";
4
- import { Usage } from "./usage";
5
- import { Members } from "./members";
6
- import { Invitation } from "./invitation";
7
- import { Billing } from "./billing";
8
- import { Scopes } from "./scopes";
9
- export declare class Deepgram {
10
- private _apiUrl;
11
- private _apiKey;
12
- keys: Keys;
13
- projects: Projects;
14
- transcription: Transcriber;
15
- usage: Usage;
16
- members: Members;
17
- invitation: Invitation;
18
- billing: Billing;
19
- scopes: Scopes;
20
- constructor(apiKey: string, apiUrl?: string);
21
- }
package/bundle/index.js DELETED
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Deepgram = void 0;
4
- var constants_1 = require("./constants");
5
- var keys_1 = require("./keys");
6
- var projects_1 = require("./projects");
7
- var transcription_1 = require("./transcription");
8
- var usage_1 = require("./usage");
9
- var members_1 = require("./members");
10
- var invitation_1 = require("./invitation");
11
- var billing_1 = require("./billing");
12
- var scopes_1 = require("./scopes");
13
- var helpers_1 = require("./helpers");
14
- var httpRequest_1 = require("./httpRequest");
15
- var Deepgram = /** @class */ (function () {
16
- function Deepgram(apiKey, apiUrl) {
17
- this._apiKey = apiKey;
18
- this._apiUrl = apiUrl || constants_1.DefaultOptions.apiUrl;
19
- /**
20
- * Ensures that the provided options were provided
21
- */
22
- (0, helpers_1.validateOptions)(this._apiKey, this._apiUrl);
23
- this.keys = new keys_1.Keys(this._apiKey, this._apiUrl, httpRequest_1._request);
24
- this.projects = new projects_1.Projects(this._apiKey, this._apiUrl, httpRequest_1._request);
25
- this.transcription = new transcription_1.Transcriber(this._apiKey, this._apiUrl);
26
- this.usage = new usage_1.Usage(this._apiKey, this._apiUrl, httpRequest_1._request);
27
- this.members = new members_1.Members(this._apiKey, this._apiUrl, httpRequest_1._request);
28
- this.invitation = new invitation_1.Invitation(this._apiKey, this._apiUrl, httpRequest_1._request);
29
- this.billing = new billing_1.Billing(this._apiKey, this._apiUrl, httpRequest_1._request);
30
- this.scopes = new scopes_1.Scopes(this._apiKey, this._apiUrl, httpRequest_1._request);
31
- }
32
- return Deepgram;
33
- }());
34
- exports.Deepgram = Deepgram;
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAA6C;AAC7C,+BAA8B;AAC9B,uCAAsC;AACtC,iDAA8C;AAC9C,iCAAgC;AAChC,qCAAoC;AACpC,2CAA0C;AAC1C,qCAAoC;AACpC,mCAAkC;AAElC,qCAA4C;AAC5C,6CAAyC;AAEzC;IAaE,kBAAY,MAAc,EAAE,MAAe;QACzC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,0BAAc,CAAC,MAAM,CAAC;QAE/C;;WAEG;QACH,IAAA,yBAAe,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAE5C,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QACnE,IAAI,CAAC,aAAa,GAAG,IAAI,2BAAW,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjE,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QACjE,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QACvE,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,sBAAQ,CAAC,CAAC;IACjE,CAAC;IACH,eAAC;AAAD,CAAC,AA/BD,IA+BC;AA/BY,4BAAQ"}
@@ -1,30 +0,0 @@
1
- import { Message, InvitationOptions, InvitationList, RequestFunction } from "./types";
2
- export declare class Invitation {
3
- private _credentials;
4
- private _apiUrl;
5
- private _request;
6
- constructor(_credentials: string, _apiUrl: string, _request: RequestFunction);
7
- private apiPath;
8
- /**
9
- * Lists all the current invites of a specified project.
10
- * @param projectId Unique identifier of the project
11
- */
12
- list(projectId: string): Promise<InvitationList>;
13
- /**
14
- * Sends an invitation to join the specified project.
15
- * @param projectId Unique identifier of the project
16
- */
17
- send(projectId: string, options: InvitationOptions): Promise<Message>;
18
- /**
19
- * Removes the authenticated account from the specified project.
20
- * @param projectId Unique identifier of the project
21
- */
22
- leave(projectId: string): Promise<Message>;
23
- /**
24
- * Removes the specified email from the invitations on the specified project.
25
- * @param projectId Unique identifier of the project
26
- * @param email email address of the invitee
27
- * NOTE: This will return successful even if the email does not have an invite on the project.
28
- */
29
- delete(projectId: string, email: string): Promise<Message>;
30
- }