@hedra/sdk 5.0.0 → 5.2.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/README.md +196 -49
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.js +3 -3
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +73 -0
- package/dist/cjs/api/resources/jobs/client/Client.js +274 -97
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.ts +24 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.ts +25 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/keys/client/Client.js +4 -4
- package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
- package/dist/cjs/api/resources/models/client/Client.js +7 -7
- package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
- package/dist/cjs/api/types/InputCreatifyAurora.d.ts +24 -0
- package/dist/cjs/api/types/InputCreatifyAurora.js +12 -0
- package/dist/cjs/api/types/InputCreatifyAuroraAudio.d.ts +23 -0
- package/dist/cjs/api/types/InputCreatifyAuroraAudio.js +3 -0
- package/dist/cjs/api/types/InputCreatifyAuroraStartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputCreatifyAuroraStartImage.js +3 -0
- package/dist/cjs/api/types/InputGptImage2.d.ts +1 -1
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4.d.ts +39 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4.js +24 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.d.ts +23 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.js +3 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/api/resources/billing/client/Client.mjs +3 -3
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +73 -0
- package/dist/esm/api/resources/jobs/client/Client.mjs +274 -97
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.mts +24 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.mts +25 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
- package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
- package/dist/esm/api/resources/models/client/Client.mjs +7 -7
- package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
- package/dist/esm/api/types/InputCreatifyAurora.d.mts +24 -0
- package/dist/esm/api/types/InputCreatifyAurora.mjs +9 -0
- package/dist/esm/api/types/InputCreatifyAuroraAudio.d.mts +23 -0
- package/dist/esm/api/types/InputCreatifyAuroraAudio.mjs +2 -0
- package/dist/esm/api/types/InputCreatifyAuroraStartImage.d.mts +23 -0
- package/dist/esm/api/types/InputCreatifyAuroraStartImage.mjs +2 -0
- package/dist/esm/api/types/InputGptImage2.d.mts +1 -1
- package/dist/esm/api/types/InputHeygenPhotoAvatar4.d.mts +39 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4.mjs +21 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.d.mts +23 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.mjs +2 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.d.mts +23 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +155 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* resolution: "480p",
|
|
7
|
+
* start_image: {
|
|
8
|
+
* source: "url",
|
|
9
|
+
* url: "url"
|
|
10
|
+
* },
|
|
11
|
+
* audio: {
|
|
12
|
+
* source: "url",
|
|
13
|
+
* url: "url"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface SubmitBodyCreatifyAurora {
|
|
19
|
+
input: Hedra.InputCreatifyAurora;
|
|
20
|
+
/** URL to receive a signed completion webhook. */
|
|
21
|
+
webhook?: string | null;
|
|
22
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
23
|
+
idempotency_key?: string | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* aspect_ratio: "16:9",
|
|
7
|
+
* resolution: "360p",
|
|
8
|
+
* start_image: {
|
|
9
|
+
* source: "url",
|
|
10
|
+
* url: "url"
|
|
11
|
+
* },
|
|
12
|
+
* audio: {
|
|
13
|
+
* source: "url",
|
|
14
|
+
* url: "url"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export interface SubmitBodyHeygenPhotoAvatar4 {
|
|
20
|
+
input: Hedra.InputHeygenPhotoAvatar4;
|
|
21
|
+
/** URL to receive a signed completion webhook. */
|
|
22
|
+
webhook?: string | null;
|
|
23
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
24
|
+
idempotency_key?: string | null;
|
|
25
|
+
}
|
|
@@ -4,6 +4,7 @@ export type { JobsListJobLogsRequest } from "./JobsListJobLogsRequest.mjs";
|
|
|
4
4
|
export type { JobsListRequest } from "./JobsListRequest.mjs";
|
|
5
5
|
export type { JobsStreamRequest } from "./JobsStreamRequest.mjs";
|
|
6
6
|
export type { SubmitBody } from "./SubmitBody.mjs";
|
|
7
|
+
export type { SubmitBodyCreatifyAurora } from "./SubmitBodyCreatifyAurora.mjs";
|
|
7
8
|
export type { SubmitBodyDreamina31 } from "./SubmitBodyDreamina31.mjs";
|
|
8
9
|
export type { SubmitBodyElevenlabsAudioIsolation } from "./SubmitBodyElevenlabsAudioIsolation.mjs";
|
|
9
10
|
export type { SubmitBodyElevenlabsEnglishStsV2 } from "./SubmitBodyElevenlabsEnglishStsV2.mjs";
|
|
@@ -34,6 +35,7 @@ export type { SubmitBodyGrokVideo } from "./SubmitBodyGrokVideo.mjs";
|
|
|
34
35
|
export type { SubmitBodyHappyHorse } from "./SubmitBodyHappyHorse.mjs";
|
|
35
36
|
export type { SubmitBodyHedraAvatar } from "./SubmitBodyHedraAvatar.mjs";
|
|
36
37
|
export type { SubmitBodyHedraCharacter3 } from "./SubmitBodyHedraCharacter3.mjs";
|
|
38
|
+
export type { SubmitBodyHeygenPhotoAvatar4 } from "./SubmitBodyHeygenPhotoAvatar4.mjs";
|
|
37
39
|
export type { SubmitBodyHidreamO1Image } from "./SubmitBodyHidreamO1Image.mjs";
|
|
38
40
|
export type { SubmitBodyIdeogramV2 } from "./SubmitBodyIdeogramV2.mjs";
|
|
39
41
|
export type { SubmitBodyIdeogramV4 } from "./SubmitBodyIdeogramV4.mjs";
|
|
@@ -47,7 +47,7 @@ export class KeysClient {
|
|
|
47
47
|
workspace_id: workspaceId,
|
|
48
48
|
};
|
|
49
49
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
50
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
50
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
51
51
|
const _response = yield core.fetcher({
|
|
52
52
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
|
|
53
53
|
method: "GET",
|
|
@@ -114,7 +114,7 @@ export class KeysClient {
|
|
|
114
114
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
115
115
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
116
116
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
117
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
117
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
118
118
|
const _response = yield core.fetcher({
|
|
119
119
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
|
|
120
120
|
method: "POST",
|
|
@@ -181,7 +181,7 @@ export class KeysClient {
|
|
|
181
181
|
return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
|
|
182
182
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
183
183
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
184
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
184
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
185
185
|
const _response = yield core.fetcher({
|
|
186
186
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}/rotate`),
|
|
187
187
|
method: "POST",
|
|
@@ -248,7 +248,7 @@ export class KeysClient {
|
|
|
248
248
|
return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
|
|
249
249
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
250
250
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
251
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
251
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
252
252
|
const _response = yield core.fetcher({
|
|
253
253
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}`),
|
|
254
254
|
method: "DELETE",
|
|
@@ -64,7 +64,7 @@ export class LogDrainsClient {
|
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
66
66
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
67
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
67
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
68
68
|
const _response = yield core.fetcher({
|
|
69
69
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
|
|
70
70
|
method: "GET",
|
|
@@ -130,7 +130,7 @@ export class LogDrainsClient {
|
|
|
130
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
131
131
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
132
132
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
133
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
133
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
134
134
|
const _response = yield core.fetcher({
|
|
135
135
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
|
|
136
136
|
method: "POST",
|
|
@@ -197,7 +197,7 @@ export class LogDrainsClient {
|
|
|
197
197
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
198
198
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
199
199
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
200
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
200
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
201
201
|
const _response = yield core.fetcher({
|
|
202
202
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
203
203
|
method: "GET",
|
|
@@ -261,7 +261,7 @@ export class LogDrainsClient {
|
|
|
261
261
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
262
262
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
263
263
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
264
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
264
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
265
265
|
const _response = yield core.fetcher({
|
|
266
266
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
267
267
|
method: "DELETE",
|
|
@@ -325,7 +325,7 @@ export class LogDrainsClient {
|
|
|
325
325
|
return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
|
|
326
326
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
327
327
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
328
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
328
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
329
329
|
const _response = yield core.fetcher({
|
|
330
330
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
331
331
|
method: "PATCH",
|
|
@@ -392,7 +392,7 @@ export class LogDrainsClient {
|
|
|
392
392
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
393
393
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
394
394
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
395
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
395
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
396
396
|
const _response = yield core.fetcher({
|
|
397
397
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}/test`),
|
|
398
398
|
method: "POST",
|
|
@@ -48,7 +48,7 @@ export class ModelsClient {
|
|
|
48
48
|
const _queryParams = {
|
|
49
49
|
modality: modality !== undefined ? modality : undefined,
|
|
50
50
|
};
|
|
51
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
51
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
52
52
|
const _response = yield core.fetcher({
|
|
53
53
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "models"),
|
|
54
54
|
method: "GET",
|
|
@@ -112,7 +112,7 @@ export class ModelsClient {
|
|
|
112
112
|
__get(model_1) {
|
|
113
113
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
114
114
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
115
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
115
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
116
116
|
const _response = yield core.fetcher({
|
|
117
117
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}`),
|
|
118
118
|
method: "GET",
|
|
@@ -177,7 +177,7 @@ export class ModelsClient {
|
|
|
177
177
|
cursor,
|
|
178
178
|
};
|
|
179
179
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
180
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
180
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
181
181
|
const _response = yield core.fetcher({
|
|
182
182
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/jobs`),
|
|
183
183
|
method: "GET",
|
|
@@ -259,7 +259,7 @@ export class ModelsClient {
|
|
|
259
259
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
260
260
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
261
261
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
262
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
262
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
263
263
|
const _response = yield core.fetcher({
|
|
264
264
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/voices`),
|
|
265
265
|
method: "GET",
|
|
@@ -334,7 +334,7 @@ export class ModelsClient {
|
|
|
334
334
|
language,
|
|
335
335
|
};
|
|
336
336
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
337
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
337
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
338
338
|
const _response = yield core.fetcher({
|
|
339
339
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/voices/search`),
|
|
340
340
|
method: "GET",
|
|
@@ -402,7 +402,7 @@ export class ModelsClient {
|
|
|
402
402
|
__getOpenapi(model_1) {
|
|
403
403
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
404
404
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
405
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
405
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
406
406
|
const _response = yield core.fetcher({
|
|
407
407
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/openapi.json`),
|
|
408
408
|
method: "GET",
|
|
@@ -464,7 +464,7 @@ export class ModelsClient {
|
|
|
464
464
|
return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
|
|
465
465
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
466
466
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
467
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
467
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
468
468
|
const _response = yield core.fetcher({
|
|
469
469
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/estimate`),
|
|
470
470
|
method: "POST",
|
|
@@ -43,7 +43,7 @@ export class TokensClient {
|
|
|
43
43
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
46
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
46
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
47
47
|
const _response = yield core.fetcher({
|
|
48
48
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "tokens"),
|
|
49
49
|
method: "POST",
|
|
@@ -84,7 +84,7 @@ export class WebhooksClient {
|
|
|
84
84
|
__getPublicKey(requestOptions) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
87
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
88
|
const _response = yield core.fetcher({
|
|
89
89
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/public-key"),
|
|
90
90
|
method: "GET",
|
|
@@ -144,7 +144,7 @@ export class WebhooksClient {
|
|
|
144
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
145
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
146
146
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
147
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
147
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
148
148
|
const _response = yield core.fetcher({
|
|
149
149
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
150
150
|
method: "GET",
|
|
@@ -209,7 +209,7 @@ export class WebhooksClient {
|
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
210
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
211
211
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
212
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
212
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
213
213
|
const _response = yield core.fetcher({
|
|
214
214
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
215
215
|
method: "PUT",
|
|
@@ -274,7 +274,7 @@ export class WebhooksClient {
|
|
|
274
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
275
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
276
276
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
277
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
277
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
278
278
|
const _response = yield core.fetcher({
|
|
279
279
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
280
280
|
method: "DELETE",
|
|
@@ -336,7 +336,7 @@ export class WebhooksClient {
|
|
|
336
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
337
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
338
338
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
339
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
339
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
340
340
|
const _response = yield core.fetcher({
|
|
341
341
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default/test"),
|
|
342
342
|
method: "POST",
|
|
@@ -402,7 +402,7 @@ export class WebhooksClient {
|
|
|
402
402
|
cursor,
|
|
403
403
|
};
|
|
404
404
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
405
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
405
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
406
406
|
const _response = yield core.fetcher({
|
|
407
407
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/deliveries"),
|
|
408
408
|
method: "GET",
|
|
@@ -498,7 +498,7 @@ export class WebhooksClient {
|
|
|
498
498
|
return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
|
|
499
499
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
500
500
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
501
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.
|
|
501
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.2" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
502
502
|
const _response = yield core.fetcher({
|
|
503
503
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `webhooks/deliveries/${core.url.encodePathParam(job_id)}/redeliver`),
|
|
504
504
|
method: "POST",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `creatify-aurora`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputCreatifyAurora {
|
|
6
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
|
+
num_outputs?: number | undefined;
|
|
8
|
+
/** Generation prompt. */
|
|
9
|
+
prompt?: string | undefined;
|
|
10
|
+
/** Output resolution. */
|
|
11
|
+
resolution: InputCreatifyAurora.Resolution;
|
|
12
|
+
/** Start frame. At most 10.4 MB. */
|
|
13
|
+
start_image: Hedra.InputCreatifyAuroraStartImage;
|
|
14
|
+
/** Driving audio. At most 104.8 MB. */
|
|
15
|
+
audio: Hedra.InputCreatifyAuroraAudio;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace InputCreatifyAurora {
|
|
18
|
+
/** Output resolution. */
|
|
19
|
+
const Resolution: {
|
|
20
|
+
readonly FourHundredEightyP: "480p";
|
|
21
|
+
readonly SevenHundredTwentyP: "720p";
|
|
22
|
+
};
|
|
23
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var InputCreatifyAurora;
|
|
3
|
+
(function (InputCreatifyAurora) {
|
|
4
|
+
/** Output resolution. */
|
|
5
|
+
InputCreatifyAurora.Resolution = {
|
|
6
|
+
FourHundredEightyP: "480p",
|
|
7
|
+
SevenHundredTwentyP: "720p",
|
|
8
|
+
};
|
|
9
|
+
})(InputCreatifyAurora || (InputCreatifyAurora = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Driving audio. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputCreatifyAuroraAudio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputCreatifyAuroraAudio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputCreatifyAuroraAudio.Asset;
|
|
12
|
+
export declare namespace InputCreatifyAuroraAudio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Start frame. At most 10.4 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputCreatifyAuroraStartImage =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputCreatifyAuroraStartImage.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputCreatifyAuroraStartImage.Asset;
|
|
12
|
+
export declare namespace InputCreatifyAuroraStartImage {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface InputGptImage2 {
|
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
14
|
-
/**
|
|
14
|
+
/** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputGptImage2.AspectRatio;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `heygen-photo-avatar-4`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputHeygenPhotoAvatar4 {
|
|
6
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
|
+
num_outputs?: number | undefined;
|
|
8
|
+
/** Generation prompt. */
|
|
9
|
+
prompt?: string | undefined;
|
|
10
|
+
/** Output aspect ratio. */
|
|
11
|
+
aspect_ratio: InputHeygenPhotoAvatar4.AspectRatio;
|
|
12
|
+
/** Output resolution. */
|
|
13
|
+
resolution: InputHeygenPhotoAvatar4.Resolution;
|
|
14
|
+
/** Start frame. At most 10.4 MB. */
|
|
15
|
+
start_image: Hedra.InputHeygenPhotoAvatar4StartImage;
|
|
16
|
+
/** Driving audio. At most 104.8 MB. */
|
|
17
|
+
audio: Hedra.InputHeygenPhotoAvatar4Audio;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace InputHeygenPhotoAvatar4 {
|
|
20
|
+
/** Output aspect ratio. */
|
|
21
|
+
const AspectRatio: {
|
|
22
|
+
readonly Sixteen9: "16:9";
|
|
23
|
+
readonly Nine16: "9:16";
|
|
24
|
+
readonly Four5: "4:5";
|
|
25
|
+
readonly Five4: "5:4";
|
|
26
|
+
readonly One1: "1:1";
|
|
27
|
+
readonly Auto: "auto";
|
|
28
|
+
};
|
|
29
|
+
type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
|
|
30
|
+
/** Output resolution. */
|
|
31
|
+
const Resolution: {
|
|
32
|
+
readonly ThreeHundredSixtyP: "360p";
|
|
33
|
+
readonly FourHundredEightyP: "480p";
|
|
34
|
+
readonly FiveHundredFortyP: "540p";
|
|
35
|
+
readonly SevenHundredTwentyP: "720p";
|
|
36
|
+
readonly OneThousandEightyP: "1080p";
|
|
37
|
+
};
|
|
38
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var InputHeygenPhotoAvatar4;
|
|
3
|
+
(function (InputHeygenPhotoAvatar4) {
|
|
4
|
+
/** Output aspect ratio. */
|
|
5
|
+
InputHeygenPhotoAvatar4.AspectRatio = {
|
|
6
|
+
Sixteen9: "16:9",
|
|
7
|
+
Nine16: "9:16",
|
|
8
|
+
Four5: "4:5",
|
|
9
|
+
Five4: "5:4",
|
|
10
|
+
One1: "1:1",
|
|
11
|
+
Auto: "auto",
|
|
12
|
+
};
|
|
13
|
+
/** Output resolution. */
|
|
14
|
+
InputHeygenPhotoAvatar4.Resolution = {
|
|
15
|
+
ThreeHundredSixtyP: "360p",
|
|
16
|
+
FourHundredEightyP: "480p",
|
|
17
|
+
FiveHundredFortyP: "540p",
|
|
18
|
+
SevenHundredTwentyP: "720p",
|
|
19
|
+
OneThousandEightyP: "1080p",
|
|
20
|
+
};
|
|
21
|
+
})(InputHeygenPhotoAvatar4 || (InputHeygenPhotoAvatar4 = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Driving audio. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputHeygenPhotoAvatar4Audio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputHeygenPhotoAvatar4Audio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputHeygenPhotoAvatar4Audio.Asset;
|
|
12
|
+
export declare namespace InputHeygenPhotoAvatar4Audio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Start frame. At most 10.4 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputHeygenPhotoAvatar4StartImage =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputHeygenPhotoAvatar4StartImage.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputHeygenPhotoAvatar4StartImage.Asset;
|
|
12
|
+
export declare namespace InputHeygenPhotoAvatar4StartImage {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -8,6 +8,9 @@ export * from "./ErrorResponse.mjs";
|
|
|
8
8
|
export * from "./EstimateResponse.mjs";
|
|
9
9
|
export * from "./FieldError.mjs";
|
|
10
10
|
export * from "./FileUploadResponse.mjs";
|
|
11
|
+
export * from "./InputCreatifyAurora.mjs";
|
|
12
|
+
export * from "./InputCreatifyAuroraAudio.mjs";
|
|
13
|
+
export * from "./InputCreatifyAuroraStartImage.mjs";
|
|
11
14
|
export * from "./InputDreamina31.mjs";
|
|
12
15
|
export * from "./InputElevenlabsAudioIsolation.mjs";
|
|
13
16
|
export * from "./InputElevenlabsAudioIsolationAudio.mjs";
|
|
@@ -67,6 +70,9 @@ export * from "./InputHedraCharacter3.mjs";
|
|
|
67
70
|
export * from "./InputHedraCharacter3AudioOneItem.mjs";
|
|
68
71
|
export * from "./InputHedraCharacter3AudioZero.mjs";
|
|
69
72
|
export * from "./InputHedraCharacter3StartImage.mjs";
|
|
73
|
+
export * from "./InputHeygenPhotoAvatar4.mjs";
|
|
74
|
+
export * from "./InputHeygenPhotoAvatar4Audio.mjs";
|
|
75
|
+
export * from "./InputHeygenPhotoAvatar4StartImage.mjs";
|
|
70
76
|
export * from "./InputHidreamO1Image.mjs";
|
|
71
77
|
export * from "./InputHidreamO1ImageImagesItem.mjs";
|
|
72
78
|
export * from "./InputIdeogramV2.mjs";
|
|
@@ -8,6 +8,9 @@ export * from "./ErrorResponse.mjs";
|
|
|
8
8
|
export * from "./EstimateResponse.mjs";
|
|
9
9
|
export * from "./FieldError.mjs";
|
|
10
10
|
export * from "./FileUploadResponse.mjs";
|
|
11
|
+
export * from "./InputCreatifyAurora.mjs";
|
|
12
|
+
export * from "./InputCreatifyAuroraAudio.mjs";
|
|
13
|
+
export * from "./InputCreatifyAuroraStartImage.mjs";
|
|
11
14
|
export * from "./InputDreamina31.mjs";
|
|
12
15
|
export * from "./InputElevenlabsAudioIsolation.mjs";
|
|
13
16
|
export * from "./InputElevenlabsAudioIsolationAudio.mjs";
|
|
@@ -67,6 +70,9 @@ export * from "./InputHedraCharacter3.mjs";
|
|
|
67
70
|
export * from "./InputHedraCharacter3AudioOneItem.mjs";
|
|
68
71
|
export * from "./InputHedraCharacter3AudioZero.mjs";
|
|
69
72
|
export * from "./InputHedraCharacter3StartImage.mjs";
|
|
73
|
+
export * from "./InputHeygenPhotoAvatar4.mjs";
|
|
74
|
+
export * from "./InputHeygenPhotoAvatar4Audio.mjs";
|
|
75
|
+
export * from "./InputHeygenPhotoAvatar4StartImage.mjs";
|
|
70
76
|
export * from "./InputHidreamO1Image.mjs";
|
|
71
77
|
export * from "./InputHidreamO1ImageImagesItem.mjs";
|
|
72
78
|
export * from "./InputIdeogramV2.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.
|
|
1
|
+
export const SDK_VERSION = "5.2.0";
|