@deepgram/sdk 1.3.1-beta → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +203 -196
- package/CODE_OF_CONDUCT.md +127 -127
- package/CONTRIBUTING.md +50 -50
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/{dist → bundle}/billing.d.ts +19 -18
- package/{dist → bundle}/billing.js +72 -72
- package/bundle/billing.js.map +1 -0
- package/bundle/browser/httpFetch.d.ts +1 -0
- package/bundle/browser/httpFetch.js +75 -0
- package/bundle/browser/httpFetch.js.map +1 -0
- package/bundle/browser/index.d.ts +21 -0
- package/bundle/browser/index.js +35 -0
- package/bundle/browser/index.js.map +1 -0
- package/bundle/browser/transcription/index.d.ts +17 -0
- package/bundle/browser/transcription/index.js +75 -0
- package/bundle/browser/transcription/index.js.map +1 -0
- package/bundle/browser/transcription/preRecordedTranscription.d.ts +9 -0
- package/bundle/browser/transcription/preRecordedTranscription.js +87 -0
- package/bundle/browser/transcription/preRecordedTranscription.js.map +1 -0
- package/{dist → bundle}/constants/defaultOptions.d.ts +6 -6
- package/{dist → bundle}/constants/defaultOptions.js +9 -9
- package/{dist → bundle}/constants/defaultOptions.js.map +0 -0
- package/{dist → bundle}/constants/index.d.ts +1 -1
- package/{dist → bundle}/constants/index.js +17 -17
- package/{dist → bundle}/constants/index.js.map +0 -0
- package/{dist → bundle}/enums/alternatives.d.ts +4 -4
- package/{dist/enums/searchKind.js → bundle/enums/alternatives.js} +3 -3
- package/{dist → bundle}/enums/alternatives.js.map +0 -0
- package/{dist → bundle}/enums/connectionState.d.ts +6 -6
- package/{dist → bundle}/enums/connectionState.js +10 -10
- package/{dist → bundle}/enums/connectionState.js.map +0 -0
- package/{dist → bundle}/enums/diarization.d.ts +4 -4
- package/bundle/enums/diarization.js +3 -0
- package/{dist → bundle}/enums/diarization.js.map +0 -0
- package/{dist → bundle}/enums/index.d.ts +7 -7
- package/{dist → bundle}/enums/index.js +23 -23
- package/{dist → bundle}/enums/index.js.map +0 -0
- package/{dist → bundle}/enums/liveTranscriptionEvents.d.ts +6 -6
- package/bundle/enums/liveTranscriptionEvents.js +3 -0
- package/{dist → bundle}/enums/liveTranscriptionEvents.js.map +0 -0
- package/{dist → bundle}/enums/models.d.ts +5 -5
- package/{dist → bundle}/enums/models.js +2 -2
- package/{dist → bundle}/enums/models.js.map +0 -0
- package/{dist → bundle}/enums/punctuation.d.ts +4 -4
- package/bundle/enums/punctuation.js +3 -0
- package/{dist → bundle}/enums/punctuation.js.map +0 -0
- package/{dist → bundle}/enums/searchKind.d.ts +4 -4
- package/bundle/enums/searchKind.js +3 -0
- package/{dist → bundle}/enums/searchKind.js.map +0 -0
- package/{dist → bundle}/helpers/index.d.ts +2 -1
- package/{dist → bundle}/helpers/index.js +18 -17
- package/{dist → bundle}/helpers/index.js.map +1 -1
- package/{dist → bundle}/helpers/secondsToTimestamp.d.ts +1 -1
- package/{dist → bundle}/helpers/secondsToTimestamp.js +7 -7
- package/{dist → bundle}/helpers/secondsToTimestamp.js.map +0 -0
- package/bundle/helpers/validateOptions.d.ts +1 -0
- package/bundle/helpers/validateOptions.js +13 -0
- package/bundle/helpers/validateOptions.js.map +1 -0
- package/{dist → bundle}/httpRequest.d.ts +3 -3
- package/{dist → bundle}/httpRequest.js +90 -90
- package/{dist → bundle}/httpRequest.js.map +0 -0
- package/{dist → bundle}/index.d.ts +21 -25
- package/{dist → bundle}/index.js +34 -40
- package/bundle/index.js.map +1 -0
- package/{dist → bundle}/invitation.d.ts +30 -29
- package/{dist → bundle}/invitation.js +98 -98
- package/bundle/invitation.js.map +1 -0
- package/{dist → bundle}/keys.d.ts +33 -32
- package/{dist → bundle}/keys.js +131 -131
- package/bundle/keys.js.map +1 -0
- package/{dist → bundle}/members.d.ts +19 -18
- package/{dist → bundle}/members.js +72 -72
- package/bundle/members.js.map +1 -0
- package/{dist → bundle}/projects.d.ts +22 -21
- package/{dist → bundle}/projects.js +81 -81
- package/bundle/projects.js.map +1 -0
- package/{dist → bundle}/scopes.d.ts +21 -20
- package/{dist → bundle}/scopes.js +76 -76
- package/bundle/scopes.js.map +1 -0
- package/{dist → bundle}/transcription/index.d.ts +18 -18
- package/{dist → bundle}/transcription/index.js +71 -71
- package/{dist → bundle}/transcription/index.js.map +0 -0
- package/{dist → bundle}/transcription/liveTranscription.d.ts +23 -23
- package/{dist → bundle}/transcription/liveTranscription.js +82 -82
- package/{dist → bundle}/transcription/liveTranscription.js.map +0 -0
- package/{dist → bundle}/transcription/preRecordedTranscription.d.ts +8 -8
- package/{dist → bundle}/transcription/preRecordedTranscription.js +113 -113
- package/{dist → bundle}/transcription/preRecordedTranscription.js.map +0 -0
- package/{dist → bundle}/types/balance.d.ts +6 -6
- package/bundle/types/balance.js +3 -0
- package/{dist → bundle}/types/balance.js.map +0 -0
- package/{dist → bundle}/types/balanceList.d.ts +4 -4
- package/bundle/types/balanceList.js +3 -0
- package/{dist → bundle}/types/balanceList.js.map +0 -0
- package/{dist → bundle}/types/channel.d.ts +25 -25
- package/bundle/types/channel.js +3 -0
- package/{dist → bundle}/types/channel.js.map +0 -0
- package/{dist → bundle}/types/createKeyOptions.d.ts +13 -13
- package/bundle/types/createKeyOptions.js +3 -0
- package/{dist → bundle}/types/createKeyOptions.js.map +0 -0
- package/{dist → bundle}/types/hit.d.ts +21 -21
- package/{dist → bundle}/types/hit.js +2 -2
- package/{dist → bundle}/types/hit.js.map +0 -0
- package/{dist → bundle}/types/index.d.ts +38 -35
- package/{dist → bundle}/types/index.js +54 -51
- package/{dist → bundle}/types/index.js.map +1 -1
- package/{dist → bundle}/types/invitationList.d.ts +4 -4
- package/{dist/enums/alternatives.js → bundle/types/invitationList.js} +3 -3
- package/{dist → bundle}/types/invitationList.js.map +0 -0
- package/{dist → bundle}/types/invitationOptions.d.ts +4 -4
- package/bundle/types/invitationOptions.js +3 -0
- package/{dist → bundle}/types/invitationOptions.js.map +0 -0
- package/{dist → bundle}/types/key.d.ts +25 -25
- package/{dist → bundle}/types/key.js +2 -2
- package/{dist → bundle}/types/key.js.map +0 -0
- package/bundle/types/keyResponse.d.ts +10 -0
- package/bundle/types/keyResponse.js +3 -0
- package/{dist → bundle}/types/keyResponse.js.map +0 -0
- package/bundle/types/keyResponseObj.d.ts +42 -0
- package/bundle/types/keyResponseObj.js +3 -0
- package/bundle/types/keyResponseObj.js.map +1 -0
- package/{dist → bundle}/types/keyword.d.ts +4 -4
- package/bundle/types/keyword.js +3 -0
- package/{dist → bundle}/types/keyword.js.map +0 -0
- package/{dist → bundle}/types/liveTranscriptionOptions.d.ts +148 -148
- package/bundle/types/liveTranscriptionOptions.js +3 -0
- package/{dist → bundle}/types/liveTranscriptionOptions.js.map +0 -0
- package/{dist → bundle}/types/liveTranscriptionResponse.d.ts +9 -9
- package/{dist/enums/liveTranscriptionEvents.js → bundle/types/liveTranscriptionResponse.js} +3 -3
- package/{dist → bundle}/types/liveTranscriptionResponse.js.map +0 -0
- package/{dist → bundle}/types/member.d.ts +7 -7
- package/{dist → bundle}/types/member.js +2 -2
- package/{dist → bundle}/types/member.js.map +0 -0
- package/{dist → bundle}/types/memberList.d.ts +4 -4
- package/bundle/types/memberList.js +3 -0
- package/{dist → bundle}/types/memberList.js.map +0 -0
- package/{dist → bundle}/types/message.d.ts +3 -3
- package/bundle/types/message.js +3 -0
- package/{dist → bundle}/types/message.js.map +0 -0
- package/{dist → bundle}/types/metadata.d.ts +8 -8
- package/bundle/types/metadata.js +3 -0
- package/{dist → bundle}/types/metadata.js.map +0 -0
- package/{dist → bundle}/types/prerecordedTranscriptionOptions.d.ts +126 -126
- package/bundle/types/prerecordedTranscriptionOptions.js +3 -0
- package/{dist → bundle}/types/prerecordedTranscriptionOptions.js.map +0 -0
- package/{dist → bundle}/types/prerecordedTranscriptionResponse.d.ts +25 -25
- package/{dist → bundle}/types/prerecordedTranscriptionResponse.js +50 -50
- package/{dist → bundle}/types/prerecordedTranscriptionResponse.js.map +0 -0
- package/{dist → bundle}/types/project.d.ts +17 -17
- package/bundle/types/project.js +3 -0
- package/{dist → bundle}/types/project.js.map +0 -0
- package/bundle/types/projectPatchRequest.d.ts +4 -0
- package/bundle/types/projectPatchRequest.js +3 -0
- package/bundle/types/projectPatchRequest.js.map +1 -0
- package/{dist → bundle}/types/projectPatchResponse.d.ts +6 -6
- package/bundle/types/projectPatchResponse.js +3 -0
- package/{dist → bundle}/types/projectPatchResponse.js.map +0 -0
- package/{dist → bundle}/types/projectResponse.d.ts +4 -4
- package/bundle/types/projectResponse.js +3 -0
- package/{dist → bundle}/types/projectResponse.js.map +0 -0
- package/bundle/types/requestFunction.d.ts +5 -0
- package/bundle/types/requestFunction.js +3 -0
- package/bundle/types/requestFunction.js.map +1 -0
- package/{dist → bundle}/types/scopeList.d.ts +3 -3
- package/{dist/types/balance.js → bundle/types/scopeList.js} +3 -3
- package/{dist → bundle}/types/scopeList.js.map +0 -0
- package/{dist → bundle}/types/search.d.ts +14 -14
- package/{dist → bundle}/types/search.js +2 -2
- package/{dist → bundle}/types/search.js.map +0 -0
- package/{dist → bundle}/types/transcriptionSource.d.ts +14 -14
- package/bundle/types/transcriptionSource.js +3 -0
- package/{dist → bundle}/types/transcriptionSource.js.map +0 -0
- package/{dist → bundle}/types/usageCallback.d.ts +4 -4
- package/{dist/enums/diarization.js → bundle/types/usageCallback.js} +3 -3
- package/{dist → bundle}/types/usageCallback.js.map +0 -0
- package/{dist → bundle}/types/usageField.d.ts +7 -7
- package/bundle/types/usageField.js +3 -0
- package/{dist → bundle}/types/usageField.js.map +0 -0
- package/{dist → bundle}/types/usageFieldOptions.d.ts +4 -4
- package/bundle/types/usageFieldOptions.js +3 -0
- package/{dist → bundle}/types/usageFieldOptions.js.map +0 -0
- package/{dist → bundle}/types/usageOptions.d.ts +23 -23
- package/bundle/types/usageOptions.js +3 -0
- package/{dist → bundle}/types/usageOptions.js.map +0 -0
- package/{dist → bundle}/types/usageRequest.d.ts +11 -11
- package/bundle/types/usageRequest.js +3 -0
- package/{dist → bundle}/types/usageRequest.js.map +0 -0
- package/{dist → bundle}/types/usageRequestDetail.d.ts +30 -30
- package/bundle/types/usageRequestDetail.js +3 -0
- package/{dist → bundle}/types/usageRequestDetail.js.map +0 -0
- package/{dist → bundle}/types/usageRequestList.d.ts +6 -6
- package/bundle/types/usageRequestList.js +3 -0
- package/{dist → bundle}/types/usageRequestList.js.map +0 -0
- package/{dist → bundle}/types/usageRequestListOptions.d.ts +7 -7
- package/bundle/types/usageRequestListOptions.js +3 -0
- package/{dist → bundle}/types/usageRequestListOptions.js.map +0 -0
- package/{dist → bundle}/types/usageRequestMessage.d.ts +3 -3
- package/bundle/types/usageRequestMessage.js +3 -0
- package/{dist → bundle}/types/usageRequestMessage.js.map +0 -0
- package/{dist → bundle}/types/usageResponse.d.ts +10 -10
- package/{dist/enums/punctuation.js → bundle/types/usageResponse.js} +3 -3
- package/{dist → bundle}/types/usageResponse.js.map +0 -0
- package/{dist → bundle}/types/usageResponseDetail.d.ts +6 -6
- package/bundle/types/usageResponseDetail.js +3 -0
- package/{dist → bundle}/types/usageResponseDetail.js.map +0 -0
- package/{dist → bundle}/types/utterance.d.ts +39 -39
- package/{dist/types/channel.js → bundle/types/utterance.js} +3 -3
- package/{dist → bundle}/types/utterance.js.map +0 -0
- package/{dist → bundle}/types/wordBase.d.ts +8 -8
- package/bundle/types/wordBase.js +3 -0
- package/{dist → bundle}/types/wordBase.js.map +0 -0
- package/{dist → bundle}/usage.d.ts +35 -34
- package/{dist → bundle}/usage.js +121 -121
- package/bundle/usage.js.map +1 -0
- package/{dist → bundle}/userAgent.d.ts +1 -1
- package/{dist → bundle}/userAgent.js +19 -19
- package/bundle/userAgent.js.map +1 -0
- package/package.json +67 -59
- package/webpack.config.js +15 -0
- package/.devcontainer/Dockerfile +0 -16
- package/.devcontainer/devcontainer.json +0 -29
- package/dist/billing.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/invitation.js.map +0 -1
- package/dist/keys.js.map +0 -1
- package/dist/members.js.map +0 -1
- package/dist/projects.js.map +0 -1
- package/dist/scopes.js.map +0 -1
- package/dist/types/balanceList.js +0 -3
- package/dist/types/createKeyOptions.js +0 -3
- package/dist/types/invitationList.js +0 -3
- package/dist/types/invitationOptions.js +0 -3
- package/dist/types/keyResponse.d.ts +0 -50
- package/dist/types/keyResponse.js +0 -3
- package/dist/types/keyword.js +0 -3
- package/dist/types/liveTranscriptionOptions.js +0 -3
- package/dist/types/liveTranscriptionResponse.js +0 -3
- package/dist/types/memberList.js +0 -3
- package/dist/types/message.js +0 -3
- package/dist/types/metadata.js +0 -3
- package/dist/types/prerecordedTranscriptionOptions.js +0 -3
- package/dist/types/project.js +0 -3
- package/dist/types/projectPatchResponse.js +0 -3
- package/dist/types/projectResponse.js +0 -3
- package/dist/types/scopeList.js +0 -3
- package/dist/types/transcriptionSource.js +0 -3
- package/dist/types/usageCallback.js +0 -3
- package/dist/types/usageField.js +0 -3
- package/dist/types/usageFieldOptions.js +0 -3
- package/dist/types/usageOptions.js +0 -3
- package/dist/types/usageRequest.js +0 -3
- package/dist/types/usageRequestDetail.js +0 -3
- package/dist/types/usageRequestList.js +0 -3
- package/dist/types/usageRequestListOptions.js +0 -3
- package/dist/types/usageRequestMessage.js +0 -3
- package/dist/types/usageResponse.js +0 -3
- package/dist/types/usageResponseDetail.js +0 -3
- package/dist/types/utterance.js +0 -3
- package/dist/types/wordBase.js +0 -3
- package/dist/usage.js.map +0 -1
- package/dist/userAgent.js.map +0 -1
package/{dist → bundle}/usage.js
RENAMED
|
@@ -1,122 +1,122 @@
|
|
|
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.Usage = void 0;
|
|
54
|
-
var querystring_1 = __importDefault(require("querystring"));
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.apiPath = "/v1/projects";
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves all requests associated with the provided projectId based
|
|
64
|
-
* on the provided options
|
|
65
|
-
* @param projectId Unique identifier of the project
|
|
66
|
-
* @param options Additional filter options
|
|
67
|
-
*/
|
|
68
|
-
Usage.prototype.listRequests = function (projectId, options) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
var requestOptions;
|
|
71
|
-
return __generator(this, function (_a) {
|
|
72
|
-
requestOptions = __assign({}, options);
|
|
73
|
-
return [2 /*return*/,
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Retrieves a specific request associated with the provided projectId
|
|
79
|
-
* @param projectId Unique identifier of the project
|
|
80
|
-
* @param requestId Unique identifier for the request to retrieve
|
|
81
|
-
*/
|
|
82
|
-
Usage.prototype.getRequest = function (projectId, requestId) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
return [2 /*return*/,
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Retrieves usage associated with the provided projectId based
|
|
91
|
-
* on the provided options
|
|
92
|
-
* @param projectId Unique identifier of the project
|
|
93
|
-
* @param options Options to filter usage
|
|
94
|
-
*/
|
|
95
|
-
Usage.prototype.getUsage = function (projectId, options) {
|
|
96
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
-
var requestOptions;
|
|
98
|
-
return __generator(this, function (_a) {
|
|
99
|
-
requestOptions = __assign({}, options);
|
|
100
|
-
return [2 /*return*/,
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Retrieves features used by the provided projectId based
|
|
106
|
-
* on the provided options
|
|
107
|
-
* @param projectId Unique identifier of the project
|
|
108
|
-
* @param options Options to filter usage
|
|
109
|
-
*/
|
|
110
|
-
Usage.prototype.getFields = function (projectId, options) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
var requestOptions;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
requestOptions = __assign({}, options);
|
|
115
|
-
return [2 /*return*/,
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
return Usage;
|
|
120
|
-
}());
|
|
121
|
-
exports.Usage = Usage;
|
|
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.Usage = void 0;
|
|
54
|
+
var querystring_1 = __importDefault(require("querystring"));
|
|
55
|
+
var Usage = /** @class */ (function () {
|
|
56
|
+
function Usage(_credentials, _apiUrl, _request) {
|
|
57
|
+
this._credentials = _credentials;
|
|
58
|
+
this._apiUrl = _apiUrl;
|
|
59
|
+
this._request = _request;
|
|
60
|
+
this.apiPath = "/v1/projects";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves all requests associated with the provided projectId based
|
|
64
|
+
* on the provided options
|
|
65
|
+
* @param projectId Unique identifier of the project
|
|
66
|
+
* @param options Additional filter options
|
|
67
|
+
*/
|
|
68
|
+
Usage.prototype.listRequests = function (projectId, options) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
+
var requestOptions;
|
|
71
|
+
return __generator(this, function (_a) {
|
|
72
|
+
requestOptions = __assign({}, options);
|
|
73
|
+
return [2 /*return*/, this._request("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/requests?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves a specific request associated with the provided projectId
|
|
79
|
+
* @param projectId Unique identifier of the project
|
|
80
|
+
* @param requestId Unique identifier for the request to retrieve
|
|
81
|
+
*/
|
|
82
|
+
Usage.prototype.getRequest = function (projectId, requestId) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
return [2 /*return*/, this._request("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/requests/").concat(requestId))];
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves usage associated with the provided projectId based
|
|
91
|
+
* on the provided options
|
|
92
|
+
* @param projectId Unique identifier of the project
|
|
93
|
+
* @param options Options to filter usage
|
|
94
|
+
*/
|
|
95
|
+
Usage.prototype.getUsage = function (projectId, options) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
+
var requestOptions;
|
|
98
|
+
return __generator(this, function (_a) {
|
|
99
|
+
requestOptions = __assign({}, options);
|
|
100
|
+
return [2 /*return*/, this._request("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/usage?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves features used by the provided projectId based
|
|
106
|
+
* on the provided options
|
|
107
|
+
* @param projectId Unique identifier of the project
|
|
108
|
+
* @param options Options to filter usage
|
|
109
|
+
*/
|
|
110
|
+
Usage.prototype.getFields = function (projectId, options) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var requestOptions;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
requestOptions = __assign({}, options);
|
|
115
|
+
return [2 /*return*/, this._request("GET", this._credentials, this._apiUrl, "".concat(this.apiPath, "/").concat(projectId, "/usage/fields?").concat(querystring_1.default.stringify(requestOptions)))];
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
return Usage;
|
|
120
|
+
}());
|
|
121
|
+
exports.Usage = Usage;
|
|
122
122
|
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAsC;AAYtC;IACE,eACU,YAAoB,EACpB,OAAe,EACf,QAAyB;QAFzB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,YAAO,GAAP,OAAO,CAAQ;QACf,aAAQ,GAAR,QAAQ,CAAiB;QAG3B,YAAO,GAAG,cAAc,CAAC;IAF9B,CAAC;IAIJ;;;;;OAKG;IACG,4BAAY,GAAlB,UACE,SAAiB,EACjB,OAAiC;;;;gBAE3B,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,uBAAa,qBAAW,CAAC,SAAS,CAC5D,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IAED;;;;OAIG;IACG,0BAAU,GAAhB,UACE,SAAiB,EACjB,SAAiB;;;gBAEjB,sBAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,uBAAa,SAAS,CAAE,CACrD,EAAC;;;KACH;IAED;;;;;OAKG;IACG,wBAAQ,GAAd,UACE,SAAiB,EACjB,OAAsB;;;;gBAEhB,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,oBAAU,qBAAW,CAAC,SAAS,CACzD,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IAED;;;;;OAKG;IACG,yBAAS,GAAf,UACE,SAAiB,EACjB,OAA2B;;;;gBAErB,cAAc,YAAQ,EAAE,EAAK,OAAO,CAAE,CAAC;gBAC7C,sBAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,2BAAiB,qBAAW,CAAC,SAAS,CAChE,cAAc,CACf,CAAE,CACJ,EAAC;;;KACH;IACH,YAAC;AAAD,CAAC,AAxFD,IAwFC;AAxFY,sBAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function userAgent(): string;
|
|
1
|
+
export declare function userAgent(): string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userAgent = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* The following const is replaced during the CD
|
|
6
|
-
* process to the version from package.json
|
|
7
|
-
*/
|
|
8
|
-
var sdkVersion = "1.
|
|
9
|
-
function userAgent() {
|
|
10
|
-
var agent = "@deepgram/sdk/UNKNOWN node/UNKNOWN";
|
|
11
|
-
try {
|
|
12
|
-
agent = "@deepgram/sdk/".concat(sdkVersion, " node/").concat(process.version.replace("v", ""));
|
|
13
|
-
}
|
|
14
|
-
catch (e) {
|
|
15
|
-
console.warn("Could not load package details");
|
|
16
|
-
}
|
|
17
|
-
return agent;
|
|
18
|
-
}
|
|
19
|
-
exports.userAgent = userAgent;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userAgent = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* The following const is replaced during the CD
|
|
6
|
+
* process to the version from package.json
|
|
7
|
+
*/
|
|
8
|
+
var sdkVersion = "1.4.0";
|
|
9
|
+
function userAgent() {
|
|
10
|
+
var agent = "@deepgram/sdk/UNKNOWN node/UNKNOWN";
|
|
11
|
+
try {
|
|
12
|
+
agent = "@deepgram/sdk/".concat(sdkVersion, " node/").concat(process.version.replace("v", ""));
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
console.warn("Could not load package details");
|
|
16
|
+
}
|
|
17
|
+
return agent;
|
|
18
|
+
}
|
|
19
|
+
exports.userAgent = userAgent;
|
|
20
20
|
//# sourceMappingURL=userAgent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../src/userAgent.ts"],"names":[],"mappings":";;;AAAA;;;EAGE;AACF,IAAM,UAAU,GAAG,OAAO,CAAC;AAE3B,SAAgB,SAAS;IACvB,IAAI,KAAK,GAAG,oCAAoC,CAAC;IACjD,IAAI;QACF,KAAK,GAAG,wBAAiB,UAAU,mBAAS,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAE,CAAC;KAChF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;KAChD;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AARD,8BAQC"}
|
package/package.json
CHANGED
|
@@ -1,59 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deepgram/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "An SDK for the Deepgram automated speech recognition platform",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@types/
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepgram/sdk",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "An SDK for the Deepgram automated speech recognition platform",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"browser": "dist/browser/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc -p .",
|
|
10
|
+
"coverage": "nyc npm run test",
|
|
11
|
+
"lint": "eslint ./src --ext .ts && prettier --config .prettierrc src/*.ts src/**/*.ts --write",
|
|
12
|
+
"test": "mocha -r ts-node/register tests/*test.ts tests/**/*test.ts --insect",
|
|
13
|
+
"watch": "nodemon -e ts --watch src --exec \"npm run build\"",
|
|
14
|
+
"build:all": "npm run build && npm run build:browser && webpack --config webpack.config.js && npm run bundle",
|
|
15
|
+
"build:browser": "browserify bundle/browser/index.js -o dist/browser/index.js",
|
|
16
|
+
"bundle": "dts-generator --project ./ --out dist/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/deepgram/deepgram-node-sdk.git"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"deepgram",
|
|
24
|
+
"asr",
|
|
25
|
+
"speech",
|
|
26
|
+
"sdk"
|
|
27
|
+
],
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Michael Jolley",
|
|
30
|
+
"email": "michael.jolley@deepgram.com"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/deepgram/deepgram-node-sdk/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/deepgram/deepgram-node-sdk#readme",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/chai": "^4.2.22",
|
|
39
|
+
"@types/mocha": "^9.0.0",
|
|
40
|
+
"@types/node": "^14.17.32",
|
|
41
|
+
"@types/sinon": "^10.0.6",
|
|
42
|
+
"@types/ws": "^7.4.7",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
44
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
45
|
+
"browserify": "^17.0.0",
|
|
46
|
+
"chai": "^4.3.4",
|
|
47
|
+
"eslint": "^7.32.0",
|
|
48
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
49
|
+
"eslint-plugin-import": "^2.25.2",
|
|
50
|
+
"mocha": "^9.1.3",
|
|
51
|
+
"nock": "^13.1.4",
|
|
52
|
+
"nodemon": "^2.0.14",
|
|
53
|
+
"nyc": "^15.1.0",
|
|
54
|
+
"prettier": "^2.4.1",
|
|
55
|
+
"sinon": "^10.0.0",
|
|
56
|
+
"ts-node": "^9.1.1",
|
|
57
|
+
"typescript": "^4.6.3",
|
|
58
|
+
"webpack": "^5.72.0",
|
|
59
|
+
"webpack-cli": "^4.9.2"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"bufferutil": "^4.0.6",
|
|
63
|
+
"dts-generator": "^3.0.0",
|
|
64
|
+
"utf-8-validate": "^5.0.9",
|
|
65
|
+
"ws": "^7.5.5"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
name: "server",
|
|
5
|
+
target: "node",
|
|
6
|
+
entry: "./bundle/index.js",
|
|
7
|
+
output: {
|
|
8
|
+
path: path.resolve(__dirname, "dist"),
|
|
9
|
+
filename: "index.js",
|
|
10
|
+
library: {
|
|
11
|
+
name: "dg-node-sdk",
|
|
12
|
+
type: "umd",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
package/.devcontainer/Dockerfile
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/javascript-node/.devcontainer/base.Dockerfile
|
|
2
|
-
|
|
3
|
-
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
|
|
4
|
-
ARG VARIANT="16-bullseye"
|
|
5
|
-
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
|
|
6
|
-
|
|
7
|
-
# [Optional] Uncomment this section to install additional OS packages.
|
|
8
|
-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
9
|
-
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
10
|
-
|
|
11
|
-
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
12
|
-
# ARG EXTRA_NODE_VERSION=10
|
|
13
|
-
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
|
|
14
|
-
|
|
15
|
-
# [Optional] Uncomment if you want to install more global node modules
|
|
16
|
-
# RUN su node -c "npm install -g <your-package-list-here>"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
2
|
-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/javascript-node
|
|
3
|
-
{
|
|
4
|
-
"name": "Node.js",
|
|
5
|
-
"build": {
|
|
6
|
-
"dockerfile": "Dockerfile",
|
|
7
|
-
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
|
|
8
|
-
// Append -bullseye or -buster to pin to an OS version.
|
|
9
|
-
// Use -bullseye variants on local arm64/Apple Silicon.
|
|
10
|
-
"args": { "VARIANT": "12" }
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
// Set *default* container specific settings.json values on container create.
|
|
14
|
-
"settings": {},
|
|
15
|
-
|
|
16
|
-
// Add the IDs of extensions you want installed when the container is created.
|
|
17
|
-
"extensions": [
|
|
18
|
-
"dbaeumer.vscode-eslint"
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
22
|
-
// "forwardPorts": [],
|
|
23
|
-
|
|
24
|
-
// Use 'postCreateCommand' to run commands after the container is created.
|
|
25
|
-
// "postCreateCommand": "yarn install",
|
|
26
|
-
|
|
27
|
-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
28
|
-
"remoteUser": "node"
|
|
29
|
-
}
|
package/dist/billing.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AAGzC;IACE,iBAAoB,YAAoB,EAAU,OAAe;QAA7C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AAC,AA1CD,IA0CC;AA1CY,4BAAQ"}
|
package/dist/scopes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AAGzC;IACE,gBAAoB,YAAoB,EAAU,OAAe;QAA7C,iBAAY,GAAZ,YAAY,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAQ;QAEzD,YAAO,GAAG,cAAc,CAAC;IAFmC,CAAC;IAIrE;;;;OAIG;IACG,oBAAG,GAAT,UAAU,SAAiB,EAAE,QAAgB;;;gBAC3C,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,sBAAY,QAAQ,YAAS,CAC1D,EAAC;;;KACH;IAED;;;;;OAKG;IACG,uBAAM,GAAZ,UACE,SAAiB,EACjB,QAAgB,EAChB,KAAa;;;gBAEb,sBAAO,IAAA,sBAAQ,EACb,KAAK,EACL,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,UAAG,IAAI,CAAC,OAAO,cAAI,SAAS,sBAAY,QAAQ,YAAS,EACzD,IAAI,CAAC,SAAS,CAAC;wBACb,KAAK,OAAA;qBACN,CAAC,CACH,EAAC;;;KACH;IACH,aAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,wBAAM"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Key } from "./key";
|
|
2
|
-
import { Member } from "./member";
|
|
3
|
-
/**
|
|
4
|
-
* Response from the Deepgram API to list keys
|
|
5
|
-
*/
|
|
6
|
-
export declare type KeyResponse = {
|
|
7
|
-
/**
|
|
8
|
-
* Array of API keys associated with the project
|
|
9
|
-
*/
|
|
10
|
-
api_keys: Array<{
|
|
11
|
-
/**
|
|
12
|
-
* Optional member associated with the API key
|
|
13
|
-
*/
|
|
14
|
-
member?: Member;
|
|
15
|
-
/**
|
|
16
|
-
* API key
|
|
17
|
-
*/
|
|
18
|
-
api_key: Key;
|
|
19
|
-
/**
|
|
20
|
-
* Unique identifier of the key to use in API requests
|
|
21
|
-
* @deprecated This property has moved to api_key.api_key_id and will
|
|
22
|
-
* be removed in future versions.
|
|
23
|
-
*/
|
|
24
|
-
api_key_id: string;
|
|
25
|
-
/**
|
|
26
|
-
* API key to send in API requests (Only displayed when first created)
|
|
27
|
-
* @deprecated This property has moved to api_key.key and will
|
|
28
|
-
* be removed in future versions.
|
|
29
|
-
*/
|
|
30
|
-
key?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Comment for user reference
|
|
33
|
-
* @deprecated This property has moved to api_key.comment and will
|
|
34
|
-
* be removed in future versions.
|
|
35
|
-
*/
|
|
36
|
-
comment: string;
|
|
37
|
-
/**
|
|
38
|
-
* Timestamp of the date/time the key was created
|
|
39
|
-
* @deprecated This property has moved to api_key.created and will
|
|
40
|
-
* be removed in future versions.
|
|
41
|
-
*/
|
|
42
|
-
created: string;
|
|
43
|
-
/**
|
|
44
|
-
* Array of scopes assigned to the key
|
|
45
|
-
* @deprecated This property has moved to api_key.scopes and will
|
|
46
|
-
* be removed in future versions.
|
|
47
|
-
*/
|
|
48
|
-
scopes: Array<string>;
|
|
49
|
-
}>;
|
|
50
|
-
};
|
package/dist/types/keyword.js
DELETED
package/dist/types/memberList.js
DELETED