@hedra/sdk 5.2.0 → 5.3.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/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 +183 -0
- package/dist/cjs/api/resources/jobs/client/Client.js +594 -99
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.ts +18 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.ts +18 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.ts +18 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.d.ts +17 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +6 -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/InputFlux3VideoUpscalerCreative.d.ts +21 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerCreative.js +13 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.d.ts +21 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.js +13 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11.d.ts +42 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11.js +19 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.d.ts +23 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.js +3 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.js +3 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.js +3 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.js +3 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.js +3 -0
- package/dist/cjs/api/types/InputGptImage25Flare.d.ts +59 -0
- package/dist/cjs/api/types/InputGptImage25Flare.js +34 -0
- package/dist/cjs/api/types/InputGptImage25FlareImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGptImage25FlareImagesItem.js +3 -0
- package/dist/cjs/api/types/InputGptImage25Sunburst.d.ts +59 -0
- package/dist/cjs/api/types/InputGptImage25Sunburst.js +34 -0
- package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.js +3 -0
- package/dist/cjs/api/types/InputKrea2.d.ts +52 -0
- package/dist/cjs/api/types/InputKrea2.js +30 -0
- package/dist/cjs/api/types/InputKrea2ImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputKrea2ImagesItem.js +3 -0
- package/dist/cjs/api/types/index.d.ts +16 -0
- package/dist/cjs/api/types/index.js +16 -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 +183 -0
- package/dist/esm/api/resources/jobs/client/Client.mjs +594 -99
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.mts +18 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.mts +18 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.mts +18 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.d.mts +17 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +6 -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/InputFlux3VideoUpscalerCreative.d.mts +21 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerCreative.mjs +10 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.d.mts +21 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.mjs +10 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11.d.mts +42 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11.mjs +16 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.d.mts +23 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.mjs +2 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.d.mts +23 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.mjs +2 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.d.mts +20 -0
- package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.mjs +2 -0
- package/dist/esm/api/types/InputGptImage25Flare.d.mts +59 -0
- package/dist/esm/api/types/InputGptImage25Flare.mjs +31 -0
- package/dist/esm/api/types/InputGptImage25FlareImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputGptImage25FlareImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputGptImage25Sunburst.d.mts +59 -0
- package/dist/esm/api/types/InputGptImage25Sunburst.mjs +31 -0
- package/dist/esm/api/types/InputGptImage25SunburstImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputGptImage25SunburstImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputKrea2.d.mts +52 -0
- package/dist/esm/api/types/InputKrea2.mjs +27 -0
- package/dist/esm/api/types/InputKrea2ImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputKrea2ImagesItem.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +16 -0
- package/dist/esm/api/types/index.mjs +16 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +429 -0
package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* source_video: {
|
|
7
|
+
* source: "url",
|
|
8
|
+
* url: "url"
|
|
9
|
+
* },
|
|
10
|
+
* resolution: "1080p"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface SubmitBodyFlux3VideoUpscalerCreative {
|
|
15
|
+
input: Hedra.InputFlux3VideoUpscalerCreative;
|
|
16
|
+
/** URL to receive a signed completion webhook. */
|
|
17
|
+
webhook?: string | null;
|
|
18
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
19
|
+
idempotency_key?: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* source_video: {
|
|
7
|
+
* source: "url",
|
|
8
|
+
* url: "url"
|
|
9
|
+
* },
|
|
10
|
+
* resolution: "1080p"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface SubmitBodyFlux3VideoUpscalerPrecise {
|
|
15
|
+
input: Hedra.InputFlux3VideoUpscalerPrecise;
|
|
16
|
+
/** URL to receive a signed completion webhook. */
|
|
17
|
+
webhook?: string | null;
|
|
18
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
19
|
+
idempotency_key?: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* aspect_ratio: "16:9",
|
|
8
|
+
* resolution: "360p"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SubmitBodyGeminiOmniFlash11 {
|
|
13
|
+
input: Hedra.InputGeminiOmniFlash11;
|
|
14
|
+
/** URL to receive a signed completion webhook. */
|
|
15
|
+
webhook?: string | null;
|
|
16
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
17
|
+
idempotency_key?: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* aspect_ratio: "16:9",
|
|
8
|
+
* resolution: "1K"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SubmitBodyGptImage25Flare {
|
|
13
|
+
input: Hedra.InputGptImage25Flare;
|
|
14
|
+
/** URL to receive a signed completion webhook. */
|
|
15
|
+
webhook?: string | null;
|
|
16
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
17
|
+
idempotency_key?: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* aspect_ratio: "16:9",
|
|
8
|
+
* resolution: "1K"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SubmitBodyGptImage25Sunburst {
|
|
13
|
+
input: Hedra.InputGptImage25Sunburst;
|
|
14
|
+
/** URL to receive a signed completion webhook. */
|
|
15
|
+
webhook?: string | null;
|
|
16
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
17
|
+
idempotency_key?: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* aspect_ratio: "1:1"
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SubmitBodyKrea2 {
|
|
12
|
+
input: Hedra.InputKrea2;
|
|
13
|
+
/** URL to receive a signed completion webhook. */
|
|
14
|
+
webhook?: string | null;
|
|
15
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
16
|
+
idempotency_key?: string | null;
|
|
17
|
+
}
|
|
@@ -21,14 +21,19 @@ export type { SubmitBodyFlux2Klein9B } from "./SubmitBodyFlux2Klein9B.mjs";
|
|
|
21
21
|
export type { SubmitBodyFlux2Max } from "./SubmitBodyFlux2Max.mjs";
|
|
22
22
|
export type { SubmitBodyFlux2Pro } from "./SubmitBodyFlux2Pro.mjs";
|
|
23
23
|
export type { SubmitBodyFlux3 } from "./SubmitBodyFlux3.mjs";
|
|
24
|
+
export type { SubmitBodyFlux3VideoUpscalerCreative } from "./SubmitBodyFlux3VideoUpscalerCreative.mjs";
|
|
25
|
+
export type { SubmitBodyFlux3VideoUpscalerPrecise } from "./SubmitBodyFlux3VideoUpscalerPrecise.mjs";
|
|
24
26
|
export type { SubmitBodyFlux11Pro } from "./SubmitBodyFlux11Pro.mjs";
|
|
25
27
|
export type { SubmitBodyFlux11Ultra } from "./SubmitBodyFlux11Ultra.mjs";
|
|
26
28
|
export type { SubmitBodyFluxDev } from "./SubmitBodyFluxDev.mjs";
|
|
27
29
|
export type { SubmitBodyFluxKontextMax } from "./SubmitBodyFluxKontextMax.mjs";
|
|
28
30
|
export type { SubmitBodyFluxKontextPro } from "./SubmitBodyFluxKontextPro.mjs";
|
|
29
31
|
export type { SubmitBodyGeminiOmniFlash } from "./SubmitBodyGeminiOmniFlash.mjs";
|
|
32
|
+
export type { SubmitBodyGeminiOmniFlash11 } from "./SubmitBodyGeminiOmniFlash11.mjs";
|
|
30
33
|
export type { SubmitBodyGptImage2 } from "./SubmitBodyGptImage2.mjs";
|
|
31
34
|
export type { SubmitBodyGptImage15 } from "./SubmitBodyGptImage15.mjs";
|
|
35
|
+
export type { SubmitBodyGptImage25Flare } from "./SubmitBodyGptImage25Flare.mjs";
|
|
36
|
+
export type { SubmitBodyGptImage25Sunburst } from "./SubmitBodyGptImage25Sunburst.mjs";
|
|
32
37
|
export type { SubmitBodyGrokImagine } from "./SubmitBodyGrokImagine.mjs";
|
|
33
38
|
export type { SubmitBodyGrokImagine20 } from "./SubmitBodyGrokImagine20.mjs";
|
|
34
39
|
export type { SubmitBodyGrokVideo } from "./SubmitBodyGrokVideo.mjs";
|
|
@@ -53,6 +58,7 @@ export type { SubmitBodyKlingO3Edit } from "./SubmitBodyKlingO3Edit.mjs";
|
|
|
53
58
|
export type { SubmitBodyKlingO3Reference } from "./SubmitBodyKlingO3Reference.mjs";
|
|
54
59
|
export type { SubmitBodyKlingV3 } from "./SubmitBodyKlingV3.mjs";
|
|
55
60
|
export type { SubmitBodyKlingV3MotionControl } from "./SubmitBodyKlingV3MotionControl.mjs";
|
|
61
|
+
export type { SubmitBodyKrea2 } from "./SubmitBodyKrea2.mjs";
|
|
56
62
|
export type { SubmitBodyLtx23 } from "./SubmitBodyLtx23.mjs";
|
|
57
63
|
export type { SubmitBodyLumaRay32 } from "./SubmitBodyLumaRay32.mjs";
|
|
58
64
|
export type { SubmitBodyMaiImage25 } from "./SubmitBodyMaiImage25.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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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.6" }), 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,21 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `flux-3-video-upscaler-creative`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputFlux3VideoUpscalerCreative {
|
|
6
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
|
+
num_outputs?: number | undefined;
|
|
8
|
+
/** The video to upscale. At most 20s and at most 524.2 MB. */
|
|
9
|
+
source_video: Hedra.InputFlux3VideoUpscalerCreativeSourceVideo;
|
|
10
|
+
/** Output resolution. */
|
|
11
|
+
resolution: InputFlux3VideoUpscalerCreative.Resolution;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace InputFlux3VideoUpscalerCreative {
|
|
14
|
+
/** Output resolution. */
|
|
15
|
+
const Resolution: {
|
|
16
|
+
readonly OneThousandEightyP: "1080p";
|
|
17
|
+
readonly TwoK: "2K";
|
|
18
|
+
readonly FourK: "4K";
|
|
19
|
+
};
|
|
20
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var InputFlux3VideoUpscalerCreative;
|
|
3
|
+
(function (InputFlux3VideoUpscalerCreative) {
|
|
4
|
+
/** Output resolution. */
|
|
5
|
+
InputFlux3VideoUpscalerCreative.Resolution = {
|
|
6
|
+
OneThousandEightyP: "1080p",
|
|
7
|
+
TwoK: "2K",
|
|
8
|
+
FourK: "4K",
|
|
9
|
+
};
|
|
10
|
+
})(InputFlux3VideoUpscalerCreative || (InputFlux3VideoUpscalerCreative = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The video to upscale. At most 20s and at most 524.2 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputFlux3VideoUpscalerCreativeSourceVideo =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputFlux3VideoUpscalerCreativeSourceVideo.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputFlux3VideoUpscalerCreativeSourceVideo.Asset;
|
|
12
|
+
export declare namespace InputFlux3VideoUpscalerCreativeSourceVideo {
|
|
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,21 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `flux-3-video-upscaler-precise`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputFlux3VideoUpscalerPrecise {
|
|
6
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
|
+
num_outputs?: number | undefined;
|
|
8
|
+
/** The video to upscale. At most 20s and at most 524.2 MB. */
|
|
9
|
+
source_video: Hedra.InputFlux3VideoUpscalerPreciseSourceVideo;
|
|
10
|
+
/** Output resolution. */
|
|
11
|
+
resolution: InputFlux3VideoUpscalerPrecise.Resolution;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace InputFlux3VideoUpscalerPrecise {
|
|
14
|
+
/** Output resolution. */
|
|
15
|
+
const Resolution: {
|
|
16
|
+
readonly OneThousandEightyP: "1080p";
|
|
17
|
+
readonly TwoK: "2K";
|
|
18
|
+
readonly FourK: "4K";
|
|
19
|
+
};
|
|
20
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var InputFlux3VideoUpscalerPrecise;
|
|
3
|
+
(function (InputFlux3VideoUpscalerPrecise) {
|
|
4
|
+
/** Output resolution. */
|
|
5
|
+
InputFlux3VideoUpscalerPrecise.Resolution = {
|
|
6
|
+
OneThousandEightyP: "1080p",
|
|
7
|
+
TwoK: "2K",
|
|
8
|
+
FourK: "4K",
|
|
9
|
+
};
|
|
10
|
+
})(InputFlux3VideoUpscalerPrecise || (InputFlux3VideoUpscalerPrecise = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The video to upscale. At most 20s and at most 524.2 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputFlux3VideoUpscalerPreciseSourceVideo =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputFlux3VideoUpscalerPreciseSourceVideo.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputFlux3VideoUpscalerPreciseSourceVideo.Asset;
|
|
12
|
+
export declare namespace InputFlux3VideoUpscalerPreciseSourceVideo {
|
|
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,42 @@
|
|
|
1
|
+
import type * as Hedra from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `gemini-omni-flash-11`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputGeminiOmniFlash11 {
|
|
6
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
|
+
num_outputs?: number | undefined;
|
|
8
|
+
/** Generation prompt. */
|
|
9
|
+
prompt: string;
|
|
10
|
+
/** Output aspect ratio. */
|
|
11
|
+
aspect_ratio: InputGeminiOmniFlash11.AspectRatio;
|
|
12
|
+
/** Output resolution. */
|
|
13
|
+
resolution: InputGeminiOmniFlash11.Resolution;
|
|
14
|
+
/** Duration in ms. */
|
|
15
|
+
duration_ms?: number | undefined;
|
|
16
|
+
/** Start frame. At most 10.4 MB. */
|
|
17
|
+
start_image?: Hedra.InputGeminiOmniFlash11StartImage | undefined;
|
|
18
|
+
/** End frame. At most 10.4 MB. */
|
|
19
|
+
end_image?: Hedra.InputGeminiOmniFlash11EndImage | undefined;
|
|
20
|
+
/** Source video. From 1s to 10s and at most 524.2 MB. */
|
|
21
|
+
source_video?: Hedra.InputGeminiOmniFlash11SourceVideo | undefined;
|
|
22
|
+
/** Reference images. 1 to 10 images, each at most 10.4 MB. */
|
|
23
|
+
images?: Hedra.InputGeminiOmniFlash11ImagesItem[] | undefined;
|
|
24
|
+
/** Reference videos. 1 to 3 videos, each at most 10s and at most 524.2 MB. */
|
|
25
|
+
videos?: Hedra.InputGeminiOmniFlash11VideosItem[] | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace InputGeminiOmniFlash11 {
|
|
28
|
+
/** Output aspect ratio. */
|
|
29
|
+
const AspectRatio: {
|
|
30
|
+
readonly Sixteen9: "16:9";
|
|
31
|
+
readonly Nine16: "9:16";
|
|
32
|
+
};
|
|
33
|
+
type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
|
|
34
|
+
/** Output resolution. */
|
|
35
|
+
const Resolution: {
|
|
36
|
+
readonly ThreeHundredSixtyP: "360p";
|
|
37
|
+
readonly SevenHundredTwentyP: "720p";
|
|
38
|
+
readonly OneThousandEightyP: "1080p";
|
|
39
|
+
readonly FourK: "4k";
|
|
40
|
+
};
|
|
41
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
42
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var InputGeminiOmniFlash11;
|
|
3
|
+
(function (InputGeminiOmniFlash11) {
|
|
4
|
+
/** Output aspect ratio. */
|
|
5
|
+
InputGeminiOmniFlash11.AspectRatio = {
|
|
6
|
+
Sixteen9: "16:9",
|
|
7
|
+
Nine16: "9:16",
|
|
8
|
+
};
|
|
9
|
+
/** Output resolution. */
|
|
10
|
+
InputGeminiOmniFlash11.Resolution = {
|
|
11
|
+
ThreeHundredSixtyP: "360p",
|
|
12
|
+
SevenHundredTwentyP: "720p",
|
|
13
|
+
OneThousandEightyP: "1080p",
|
|
14
|
+
FourK: "4k",
|
|
15
|
+
};
|
|
16
|
+
})(InputGeminiOmniFlash11 || (InputGeminiOmniFlash11 = {}));
|