@deepgram/sdk 5.0.0-alpha.2 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/browser/index.global.js +674 -1135
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/CustomClient.d.ts +9 -1
- package/dist/cjs/CustomClient.js +346 -232
- package/dist/cjs/api/resources/agent/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.d.ts +8 -8
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.js +9 -9
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +3 -43
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +26 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.js +3 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.ts +115 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.js +57 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.ts +18 -3
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.js +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.js +2 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/resources/tokens/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +29 -80
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.js +5 -5
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.js +76 -298
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +3 -3
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.js +11 -26
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.d.ts +2 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.js +3 -3
- package/dist/cjs/api/resources/manage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.js +9 -27
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +12 -31
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.js +46 -133
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.js +47 -136
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/read/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.js +14 -52
- package/dist/cjs/api/resources/selfHosted/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.js +4 -12
- package/dist/cjs/api/resources/speak/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.js +6 -13
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.js +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.js +11 -33
- package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
- package/dist/cjs/api/types/SpeakV1SampleRate.js +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -8
- package/dist/cjs/auth/HeaderAuthProvider.js +19 -9
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/CustomClient.d.mts +9 -1
- package/dist/esm/CustomClient.mjs +347 -233
- package/dist/esm/api/resources/agent/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.d.mts +8 -8
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.mjs +9 -9
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +3 -43
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +26 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.mts +115 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.mjs +54 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.mts +18 -3
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +2 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/resources/tokens/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +29 -80
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.mjs +5 -5
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.mjs +76 -298
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +3 -3
- package/dist/esm/api/resources/listen/resources/v2/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Client.mjs +11 -26
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.d.mts +2 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.mjs +3 -3
- package/dist/esm/api/resources/manage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.mjs +9 -27
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +12 -31
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.mjs +46 -133
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.mjs +47 -136
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/read/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.mjs +14 -52
- package/dist/esm/api/resources/selfHosted/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.mjs +4 -12
- package/dist/esm/api/resources/speak/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.mjs +6 -13
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.mjs +4 -4
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.mjs +11 -33
- package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
- package/dist/esm/api/types/SpeakV1SampleRate.mjs +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -8
- package/dist/esm/auth/HeaderAuthProvider.mjs +19 -9
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +11 -10
|
@@ -81,33 +81,15 @@ class BreakdownClient {
|
|
|
81
81
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
82
82
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
83
|
const { start, end, accessor, deployment, tag, line_item: lineItem, grouping } = request;
|
|
84
|
-
const _queryParams = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
if (deployment != null) {
|
|
95
|
-
_queryParams.deployment = deployment;
|
|
96
|
-
}
|
|
97
|
-
if (tag != null) {
|
|
98
|
-
_queryParams.tag = tag;
|
|
99
|
-
}
|
|
100
|
-
if (lineItem != null) {
|
|
101
|
-
_queryParams.line_item = lineItem;
|
|
102
|
-
}
|
|
103
|
-
if (grouping != null) {
|
|
104
|
-
if (Array.isArray(grouping)) {
|
|
105
|
-
_queryParams.grouping = grouping.map((item) => item);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
_queryParams.grouping = grouping;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
84
|
+
const _queryParams = {
|
|
85
|
+
start,
|
|
86
|
+
end,
|
|
87
|
+
accessor,
|
|
88
|
+
deployment: deployment != null ? deployment : undefined,
|
|
89
|
+
tag,
|
|
90
|
+
line_item: lineItem,
|
|
91
|
+
grouping: Array.isArray(grouping) ? grouping.map((item) => item) : grouping != null ? grouping : undefined,
|
|
92
|
+
};
|
|
111
93
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
112
94
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
113
95
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace FieldsClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -77,13 +77,10 @@ class FieldsClient {
|
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
78
78
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
79
|
const { start, end } = request;
|
|
80
|
-
const _queryParams = {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
if (end != null) {
|
|
85
|
-
_queryParams.end = end;
|
|
86
|
-
}
|
|
80
|
+
const _queryParams = {
|
|
81
|
+
start,
|
|
82
|
+
end,
|
|
83
|
+
};
|
|
87
84
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
85
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
89
86
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace PurchasesClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -76,10 +76,9 @@ class PurchasesClient {
|
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
77
77
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
78
78
|
const { limit } = request;
|
|
79
|
-
const _queryParams = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
limit,
|
|
81
|
+
};
|
|
83
82
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
83
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
84
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace KeysClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -76,10 +76,9 @@ class KeysClient {
|
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
77
77
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
78
78
|
const { status } = request;
|
|
79
|
-
const _queryParams = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
status: status != null ? status : undefined,
|
|
81
|
+
};
|
|
83
82
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
83
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
84
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -5,8 +5,7 @@ import * as Deepgram from "../../../../../../../../../index.js";
|
|
|
5
5
|
import { InvitesClient } from "../resources/invites/client/Client.js";
|
|
6
6
|
import { ScopesClient } from "../resources/scopes/client/Client.js";
|
|
7
7
|
export declare namespace MembersClient {
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
type Options = BaseClientOptions;
|
|
10
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace InvitesClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace ScopesClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace ModelsClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -76,10 +76,9 @@ class ModelsClient {
|
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
77
77
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
78
78
|
const { include_outdated: includeOutdated } = request;
|
|
79
|
-
const _queryParams = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
include_outdated: includeOutdated,
|
|
81
|
+
};
|
|
83
82
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
83
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
84
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace RequestsClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -85,37 +85,18 @@ class RequestsClient {
|
|
|
85
85
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
86
86
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
87
|
const { start, end, limit, page, accessor, request_id: requestId, deployment, endpoint, method, status, } = request;
|
|
88
|
-
const _queryParams = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
if (accessor != null) {
|
|
102
|
-
_queryParams.accessor = accessor;
|
|
103
|
-
}
|
|
104
|
-
if (requestId != null) {
|
|
105
|
-
_queryParams.request_id = requestId;
|
|
106
|
-
}
|
|
107
|
-
if (deployment != null) {
|
|
108
|
-
_queryParams.deployment = deployment;
|
|
109
|
-
}
|
|
110
|
-
if (endpoint != null) {
|
|
111
|
-
_queryParams.endpoint = endpoint;
|
|
112
|
-
}
|
|
113
|
-
if (method != null) {
|
|
114
|
-
_queryParams.method = method;
|
|
115
|
-
}
|
|
116
|
-
if (status != null) {
|
|
117
|
-
_queryParams.status = status;
|
|
118
|
-
}
|
|
88
|
+
const _queryParams = {
|
|
89
|
+
start,
|
|
90
|
+
end,
|
|
91
|
+
limit,
|
|
92
|
+
page,
|
|
93
|
+
accessor,
|
|
94
|
+
request_id: requestId,
|
|
95
|
+
deployment: deployment != null ? deployment : undefined,
|
|
96
|
+
endpoint: endpoint != null ? endpoint : undefined,
|
|
97
|
+
method: method != null ? method : undefined,
|
|
98
|
+
status: status != null ? status : undefined,
|
|
99
|
+
};
|
|
119
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
120
101
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
121
102
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -5,8 +5,7 @@ import * as Deepgram from "../../../../../../../../../index.js";
|
|
|
5
5
|
import { BreakdownClient } from "../resources/breakdown/client/Client.js";
|
|
6
6
|
import { FieldsClient } from "../resources/fields/client/Client.js";
|
|
7
7
|
export declare namespace UsageClient {
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
type Options = BaseClientOptions;
|
|
10
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -129,139 +129,52 @@ class UsageClient {
|
|
|
129
129
|
return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
|
|
130
130
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
131
131
|
const { start, end, accessor, alternatives, callback_method: callbackMethod, callback, channels, custom_intent_mode: customIntentMode, custom_intent: customIntent, custom_topic_mode: customTopicMode, custom_topic: customTopic, deployment, detect_entities: detectEntities, detect_language: detectLanguage, diarize, dictation, encoding, endpoint, extra, filler_words: fillerWords, intents, keyterm, keywords, language, measurements, method, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, sample_rate: sampleRate, search, sentiment, smart_format: smartFormat, summarize, tag, topics, utt_split: uttSplit, utterances, version, } = request;
|
|
132
|
-
const _queryParams = {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
if (dictation != null) {
|
|
179
|
-
_queryParams.dictation = dictation.toString();
|
|
180
|
-
}
|
|
181
|
-
if (encoding != null) {
|
|
182
|
-
_queryParams.encoding = encoding.toString();
|
|
183
|
-
}
|
|
184
|
-
if (endpoint != null) {
|
|
185
|
-
_queryParams.endpoint = endpoint;
|
|
186
|
-
}
|
|
187
|
-
if (extra != null) {
|
|
188
|
-
_queryParams.extra = extra.toString();
|
|
189
|
-
}
|
|
190
|
-
if (fillerWords != null) {
|
|
191
|
-
_queryParams.filler_words = fillerWords.toString();
|
|
192
|
-
}
|
|
193
|
-
if (intents != null) {
|
|
194
|
-
_queryParams.intents = intents.toString();
|
|
195
|
-
}
|
|
196
|
-
if (keyterm != null) {
|
|
197
|
-
_queryParams.keyterm = keyterm.toString();
|
|
198
|
-
}
|
|
199
|
-
if (keywords != null) {
|
|
200
|
-
_queryParams.keywords = keywords.toString();
|
|
201
|
-
}
|
|
202
|
-
if (language != null) {
|
|
203
|
-
_queryParams.language = language.toString();
|
|
204
|
-
}
|
|
205
|
-
if (measurements != null) {
|
|
206
|
-
_queryParams.measurements = measurements.toString();
|
|
207
|
-
}
|
|
208
|
-
if (method != null) {
|
|
209
|
-
_queryParams.method = method;
|
|
210
|
-
}
|
|
211
|
-
if (model != null) {
|
|
212
|
-
_queryParams.model = model;
|
|
213
|
-
}
|
|
214
|
-
if (multichannel != null) {
|
|
215
|
-
_queryParams.multichannel = multichannel.toString();
|
|
216
|
-
}
|
|
217
|
-
if (numerals != null) {
|
|
218
|
-
_queryParams.numerals = numerals.toString();
|
|
219
|
-
}
|
|
220
|
-
if (paragraphs != null) {
|
|
221
|
-
_queryParams.paragraphs = paragraphs.toString();
|
|
222
|
-
}
|
|
223
|
-
if (profanityFilter != null) {
|
|
224
|
-
_queryParams.profanity_filter = profanityFilter.toString();
|
|
225
|
-
}
|
|
226
|
-
if (punctuate != null) {
|
|
227
|
-
_queryParams.punctuate = punctuate.toString();
|
|
228
|
-
}
|
|
229
|
-
if (redact != null) {
|
|
230
|
-
_queryParams.redact = redact.toString();
|
|
231
|
-
}
|
|
232
|
-
if (replace != null) {
|
|
233
|
-
_queryParams.replace = replace.toString();
|
|
234
|
-
}
|
|
235
|
-
if (sampleRate != null) {
|
|
236
|
-
_queryParams.sample_rate = sampleRate.toString();
|
|
237
|
-
}
|
|
238
|
-
if (search != null) {
|
|
239
|
-
_queryParams.search = search.toString();
|
|
240
|
-
}
|
|
241
|
-
if (sentiment != null) {
|
|
242
|
-
_queryParams.sentiment = sentiment.toString();
|
|
243
|
-
}
|
|
244
|
-
if (smartFormat != null) {
|
|
245
|
-
_queryParams.smart_format = smartFormat.toString();
|
|
246
|
-
}
|
|
247
|
-
if (summarize != null) {
|
|
248
|
-
_queryParams.summarize = summarize.toString();
|
|
249
|
-
}
|
|
250
|
-
if (tag != null) {
|
|
251
|
-
_queryParams.tag = tag;
|
|
252
|
-
}
|
|
253
|
-
if (topics != null) {
|
|
254
|
-
_queryParams.topics = topics.toString();
|
|
255
|
-
}
|
|
256
|
-
if (uttSplit != null) {
|
|
257
|
-
_queryParams.utt_split = uttSplit.toString();
|
|
258
|
-
}
|
|
259
|
-
if (utterances != null) {
|
|
260
|
-
_queryParams.utterances = utterances.toString();
|
|
261
|
-
}
|
|
262
|
-
if (version != null) {
|
|
263
|
-
_queryParams.version = version.toString();
|
|
264
|
-
}
|
|
132
|
+
const _queryParams = {
|
|
133
|
+
start,
|
|
134
|
+
end,
|
|
135
|
+
accessor,
|
|
136
|
+
alternatives,
|
|
137
|
+
callback_method: callbackMethod,
|
|
138
|
+
callback,
|
|
139
|
+
channels,
|
|
140
|
+
custom_intent_mode: customIntentMode,
|
|
141
|
+
custom_intent: customIntent,
|
|
142
|
+
custom_topic_mode: customTopicMode,
|
|
143
|
+
custom_topic: customTopic,
|
|
144
|
+
deployment: deployment != null ? deployment : undefined,
|
|
145
|
+
detect_entities: detectEntities,
|
|
146
|
+
detect_language: detectLanguage,
|
|
147
|
+
diarize,
|
|
148
|
+
dictation,
|
|
149
|
+
encoding,
|
|
150
|
+
endpoint: endpoint != null ? endpoint : undefined,
|
|
151
|
+
extra,
|
|
152
|
+
filler_words: fillerWords,
|
|
153
|
+
intents,
|
|
154
|
+
keyterm,
|
|
155
|
+
keywords,
|
|
156
|
+
language,
|
|
157
|
+
measurements,
|
|
158
|
+
method: method != null ? method : undefined,
|
|
159
|
+
model,
|
|
160
|
+
multichannel,
|
|
161
|
+
numerals,
|
|
162
|
+
paragraphs,
|
|
163
|
+
profanity_filter: profanityFilter,
|
|
164
|
+
punctuate,
|
|
165
|
+
redact,
|
|
166
|
+
replace,
|
|
167
|
+
sample_rate: sampleRate,
|
|
168
|
+
search,
|
|
169
|
+
sentiment,
|
|
170
|
+
smart_format: smartFormat,
|
|
171
|
+
summarize,
|
|
172
|
+
tag,
|
|
173
|
+
topics,
|
|
174
|
+
utt_split: uttSplit,
|
|
175
|
+
utterances,
|
|
176
|
+
version,
|
|
177
|
+
};
|
|
265
178
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
266
179
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
267
180
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace BreakdownClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|