@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.
Files changed (69) hide show
  1. package/README.md +196 -49
  2. package/dist/cjs/BaseClient.d.ts +2 -2
  3. package/dist/cjs/BaseClient.js +3 -3
  4. package/dist/cjs/api/resources/billing/client/Client.js +3 -3
  5. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/jobs/client/Client.d.ts +73 -0
  7. package/dist/cjs/api/resources/jobs/client/Client.js +274 -97
  8. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.ts +24 -0
  9. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.js +3 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.ts +25 -0
  11. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.js +3 -0
  12. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  14. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  15. package/dist/cjs/api/resources/models/client/Client.js +7 -7
  16. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  18. package/dist/cjs/api/types/InputCreatifyAurora.d.ts +24 -0
  19. package/dist/cjs/api/types/InputCreatifyAurora.js +12 -0
  20. package/dist/cjs/api/types/InputCreatifyAuroraAudio.d.ts +23 -0
  21. package/dist/cjs/api/types/InputCreatifyAuroraAudio.js +3 -0
  22. package/dist/cjs/api/types/InputCreatifyAuroraStartImage.d.ts +23 -0
  23. package/dist/cjs/api/types/InputCreatifyAuroraStartImage.js +3 -0
  24. package/dist/cjs/api/types/InputGptImage2.d.ts +1 -1
  25. package/dist/cjs/api/types/InputHeygenPhotoAvatar4.d.ts +39 -0
  26. package/dist/cjs/api/types/InputHeygenPhotoAvatar4.js +24 -0
  27. package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.d.ts +23 -0
  28. package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.js +3 -0
  29. package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.d.ts +23 -0
  30. package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.js +3 -0
  31. package/dist/cjs/api/types/index.d.ts +6 -0
  32. package/dist/cjs/api/types/index.js +6 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/BaseClient.d.mts +2 -2
  36. package/dist/esm/BaseClient.mjs +3 -3
  37. package/dist/esm/api/resources/billing/client/Client.mjs +3 -3
  38. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  39. package/dist/esm/api/resources/jobs/client/Client.d.mts +73 -0
  40. package/dist/esm/api/resources/jobs/client/Client.mjs +274 -97
  41. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.mts +24 -0
  42. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.mjs +2 -0
  43. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.mts +25 -0
  44. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.mjs +2 -0
  45. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -0
  46. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  47. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  48. package/dist/esm/api/resources/models/client/Client.mjs +7 -7
  49. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  50. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  51. package/dist/esm/api/types/InputCreatifyAurora.d.mts +24 -0
  52. package/dist/esm/api/types/InputCreatifyAurora.mjs +9 -0
  53. package/dist/esm/api/types/InputCreatifyAuroraAudio.d.mts +23 -0
  54. package/dist/esm/api/types/InputCreatifyAuroraAudio.mjs +2 -0
  55. package/dist/esm/api/types/InputCreatifyAuroraStartImage.d.mts +23 -0
  56. package/dist/esm/api/types/InputCreatifyAuroraStartImage.mjs +2 -0
  57. package/dist/esm/api/types/InputGptImage2.d.mts +1 -1
  58. package/dist/esm/api/types/InputHeygenPhotoAvatar4.d.mts +39 -0
  59. package/dist/esm/api/types/InputHeygenPhotoAvatar4.mjs +21 -0
  60. package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.d.mts +23 -0
  61. package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.mjs +2 -0
  62. package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.d.mts +23 -0
  63. package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.mjs +2 -0
  64. package/dist/esm/api/types/index.d.mts +6 -0
  65. package/dist/esm/api/types/index.mjs +6 -0
  66. package/dist/esm/version.d.mts +1 -1
  67. package/dist/esm/version.mjs +1 -1
  68. package/package.json +2 -2
  69. package/reference.md +155 -0
@@ -0,0 +1,24 @@
1
+ import type * as Hedra from "../../../../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import type * as Hedra from "../../../../index.js";
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export type { JobsListJobLogsRequest } from "./JobsListJobLogsRequest.js";
4
4
  export type { JobsListRequest } from "./JobsListRequest.js";
5
5
  export type { JobsStreamRequest } from "./JobsStreamRequest.js";
6
6
  export type { SubmitBody } from "./SubmitBody.js";
7
+ export type { SubmitBodyCreatifyAurora } from "./SubmitBodyCreatifyAurora.js";
7
8
  export type { SubmitBodyDreamina31 } from "./SubmitBodyDreamina31.js";
8
9
  export type { SubmitBodyElevenlabsAudioIsolation } from "./SubmitBodyElevenlabsAudioIsolation.js";
9
10
  export type { SubmitBodyElevenlabsEnglishStsV2 } from "./SubmitBodyElevenlabsEnglishStsV2.js";
@@ -34,6 +35,7 @@ export type { SubmitBodyGrokVideo } from "./SubmitBodyGrokVideo.js";
34
35
  export type { SubmitBodyHappyHorse } from "./SubmitBodyHappyHorse.js";
35
36
  export type { SubmitBodyHedraAvatar } from "./SubmitBodyHedraAvatar.js";
36
37
  export type { SubmitBodyHedraCharacter3 } from "./SubmitBodyHedraCharacter3.js";
38
+ export type { SubmitBodyHeygenPhotoAvatar4 } from "./SubmitBodyHeygenPhotoAvatar4.js";
37
39
  export type { SubmitBodyHidreamO1Image } from "./SubmitBodyHidreamO1Image.js";
38
40
  export type { SubmitBodyIdeogramV2 } from "./SubmitBodyIdeogramV2.js";
39
41
  export type { SubmitBodyIdeogramV4 } from "./SubmitBodyIdeogramV4.js";
@@ -83,7 +83,7 @@ class KeysClient {
83
83
  workspace_id: workspaceId,
84
84
  };
85
85
  const _authRequest = yield this._options.authProvider.getAuthRequest();
86
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
87
87
  const _response = yield core.fetcher({
88
88
  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"),
89
89
  method: "GET",
@@ -150,7 +150,7 @@ class KeysClient {
150
150
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
151
151
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
152
152
  const _authRequest = yield this._options.authProvider.getAuthRequest();
153
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
154
154
  const _response = yield core.fetcher({
155
155
  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"),
156
156
  method: "POST",
@@ -217,7 +217,7 @@ class KeysClient {
217
217
  return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
218
218
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
219
219
  const _authRequest = yield this._options.authProvider.getAuthRequest();
220
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
220
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
221
221
  const _response = yield core.fetcher({
222
222
  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`),
223
223
  method: "POST",
@@ -284,7 +284,7 @@ class KeysClient {
284
284
  return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
285
285
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
286
286
  const _authRequest = yield this._options.authProvider.getAuthRequest();
287
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
287
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
288
288
  const _response = yield core.fetcher({
289
289
  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)}`),
290
290
  method: "DELETE",
@@ -100,7 +100,7 @@ class LogDrainsClient {
100
100
  return __awaiter(this, void 0, void 0, function* () {
101
101
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
102
102
  const _authRequest = yield this._options.authProvider.getAuthRequest();
103
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
104
104
  const _response = yield core.fetcher({
105
105
  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"),
106
106
  method: "GET",
@@ -166,7 +166,7 @@ class LogDrainsClient {
166
166
  return __awaiter(this, void 0, void 0, function* () {
167
167
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
168
168
  const _authRequest = yield this._options.authProvider.getAuthRequest();
169
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
169
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
170
170
  const _response = yield core.fetcher({
171
171
  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"),
172
172
  method: "POST",
@@ -233,7 +233,7 @@ class LogDrainsClient {
233
233
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
234
234
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
235
235
  const _authRequest = yield this._options.authProvider.getAuthRequest();
236
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
236
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
237
237
  const _response = yield core.fetcher({
238
238
  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)}`),
239
239
  method: "GET",
@@ -297,7 +297,7 @@ class LogDrainsClient {
297
297
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
298
298
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
299
299
  const _authRequest = yield this._options.authProvider.getAuthRequest();
300
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
300
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
301
301
  const _response = yield core.fetcher({
302
302
  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)}`),
303
303
  method: "DELETE",
@@ -361,7 +361,7 @@ class LogDrainsClient {
361
361
  return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
362
362
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
363
363
  const _authRequest = yield this._options.authProvider.getAuthRequest();
364
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
364
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
365
365
  const _response = yield core.fetcher({
366
366
  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)}`),
367
367
  method: "PATCH",
@@ -428,7 +428,7 @@ class LogDrainsClient {
428
428
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
429
429
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
430
430
  const _authRequest = yield this._options.authProvider.getAuthRequest();
431
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
431
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
432
432
  const _response = yield core.fetcher({
433
433
  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`),
434
434
  method: "POST",
@@ -84,7 +84,7 @@ class ModelsClient {
84
84
  const _queryParams = {
85
85
  modality: modality !== undefined ? modality : undefined,
86
86
  };
87
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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, "models"),
90
90
  method: "GET",
@@ -148,7 +148,7 @@ class ModelsClient {
148
148
  __get(model_1) {
149
149
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
150
150
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
151
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
151
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
152
152
  const _response = yield core.fetcher({
153
153
  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)}`),
154
154
  method: "GET",
@@ -213,7 +213,7 @@ class ModelsClient {
213
213
  cursor,
214
214
  };
215
215
  const _authRequest = yield this._options.authProvider.getAuthRequest();
216
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
216
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
217
217
  const _response = yield core.fetcher({
218
218
  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`),
219
219
  method: "GET",
@@ -295,7 +295,7 @@ class ModelsClient {
295
295
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
296
296
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
297
297
  const _authRequest = yield this._options.authProvider.getAuthRequest();
298
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
298
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
299
299
  const _response = yield core.fetcher({
300
300
  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`),
301
301
  method: "GET",
@@ -370,7 +370,7 @@ class ModelsClient {
370
370
  language,
371
371
  };
372
372
  const _authRequest = yield this._options.authProvider.getAuthRequest();
373
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
373
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
374
374
  const _response = yield core.fetcher({
375
375
  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`),
376
376
  method: "GET",
@@ -438,7 +438,7 @@ class ModelsClient {
438
438
  __getOpenapi(model_1) {
439
439
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
440
440
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
441
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
441
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
442
442
  const _response = yield core.fetcher({
443
443
  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`),
444
444
  method: "GET",
@@ -500,7 +500,7 @@ class ModelsClient {
500
500
  return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
501
501
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
502
502
  const _authRequest = yield this._options.authProvider.getAuthRequest();
503
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
503
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
504
504
  const _response = yield core.fetcher({
505
505
  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`),
506
506
  method: "POST",
@@ -79,7 +79,7 @@ class TokensClient {
79
79
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
80
80
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const _authRequest = yield this._options.authProvider.getAuthRequest();
82
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
83
83
  const _response = yield core.fetcher({
84
84
  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"),
85
85
  method: "POST",
@@ -120,7 +120,7 @@ class WebhooksClient {
120
120
  __getPublicKey(requestOptions) {
121
121
  return __awaiter(this, void 0, void 0, function* () {
122
122
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
123
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
123
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
124
124
  const _response = yield core.fetcher({
125
125
  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"),
126
126
  method: "GET",
@@ -180,7 +180,7 @@ class WebhooksClient {
180
180
  return __awaiter(this, void 0, void 0, function* () {
181
181
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
182
182
  const _authRequest = yield this._options.authProvider.getAuthRequest();
183
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
183
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
184
184
  const _response = yield core.fetcher({
185
185
  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"),
186
186
  method: "GET",
@@ -245,7 +245,7 @@ class WebhooksClient {
245
245
  return __awaiter(this, void 0, void 0, function* () {
246
246
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
247
247
  const _authRequest = yield this._options.authProvider.getAuthRequest();
248
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
248
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
249
249
  const _response = yield core.fetcher({
250
250
  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"),
251
251
  method: "PUT",
@@ -310,7 +310,7 @@ class WebhooksClient {
310
310
  return __awaiter(this, void 0, void 0, function* () {
311
311
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
312
312
  const _authRequest = yield this._options.authProvider.getAuthRequest();
313
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
313
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
314
314
  const _response = yield core.fetcher({
315
315
  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"),
316
316
  method: "DELETE",
@@ -372,7 +372,7 @@ class WebhooksClient {
372
372
  return __awaiter(this, void 0, void 0, function* () {
373
373
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
374
374
  const _authRequest = yield this._options.authProvider.getAuthRequest();
375
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
375
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
376
376
  const _response = yield core.fetcher({
377
377
  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"),
378
378
  method: "POST",
@@ -438,7 +438,7 @@ class WebhooksClient {
438
438
  cursor,
439
439
  };
440
440
  const _authRequest = yield this._options.authProvider.getAuthRequest();
441
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
441
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
442
442
  const _response = yield core.fetcher({
443
443
  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"),
444
444
  method: "GET",
@@ -534,7 +534,7 @@ class WebhooksClient {
534
534
  return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
535
535
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
536
536
  const _authRequest = yield this._options.authProvider.getAuthRequest();
537
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
537
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
538
538
  const _response = yield core.fetcher({
539
539
  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`),
540
540
  method: "POST",
@@ -0,0 +1,24 @@
1
+ import type * as Hedra from "../index.js";
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,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InputCreatifyAurora = void 0;
5
+ var InputCreatifyAurora;
6
+ (function (InputCreatifyAurora) {
7
+ /** Output resolution. */
8
+ InputCreatifyAurora.Resolution = {
9
+ FourHundredEightyP: "480p",
10
+ SevenHundredTwentyP: "720p",
11
+ };
12
+ })(InputCreatifyAurora || (exports.InputCreatifyAurora = InputCreatifyAurora = {}));
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.js";
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- /** Not available on this model. Its price is computed from the exact prompt submitted, which a rewrite would invalidate. */
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.js";
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,24 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InputHeygenPhotoAvatar4 = void 0;
5
+ var InputHeygenPhotoAvatar4;
6
+ (function (InputHeygenPhotoAvatar4) {
7
+ /** Output aspect ratio. */
8
+ InputHeygenPhotoAvatar4.AspectRatio = {
9
+ Sixteen9: "16:9",
10
+ Nine16: "9:16",
11
+ Four5: "4:5",
12
+ Five4: "5:4",
13
+ One1: "1:1",
14
+ Auto: "auto",
15
+ };
16
+ /** Output resolution. */
17
+ InputHeygenPhotoAvatar4.Resolution = {
18
+ ThreeHundredSixtyP: "360p",
19
+ FourHundredEightyP: "480p",
20
+ FiveHundredFortyP: "540p",
21
+ SevenHundredTwentyP: "720p",
22
+ OneThousandEightyP: "1080p",
23
+ };
24
+ })(InputHeygenPhotoAvatar4 || (exports.InputHeygenPhotoAvatar4 = InputHeygenPhotoAvatar4 = {}));
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.js";
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,9 @@ export * from "./ErrorResponse.js";
8
8
  export * from "./EstimateResponse.js";
9
9
  export * from "./FieldError.js";
10
10
  export * from "./FileUploadResponse.js";
11
+ export * from "./InputCreatifyAurora.js";
12
+ export * from "./InputCreatifyAuroraAudio.js";
13
+ export * from "./InputCreatifyAuroraStartImage.js";
11
14
  export * from "./InputDreamina31.js";
12
15
  export * from "./InputElevenlabsAudioIsolation.js";
13
16
  export * from "./InputElevenlabsAudioIsolationAudio.js";
@@ -67,6 +70,9 @@ export * from "./InputHedraCharacter3.js";
67
70
  export * from "./InputHedraCharacter3AudioOneItem.js";
68
71
  export * from "./InputHedraCharacter3AudioZero.js";
69
72
  export * from "./InputHedraCharacter3StartImage.js";
73
+ export * from "./InputHeygenPhotoAvatar4.js";
74
+ export * from "./InputHeygenPhotoAvatar4Audio.js";
75
+ export * from "./InputHeygenPhotoAvatar4StartImage.js";
70
76
  export * from "./InputHidreamO1Image.js";
71
77
  export * from "./InputHidreamO1ImageImagesItem.js";
72
78
  export * from "./InputIdeogramV2.js";
@@ -24,6 +24,9 @@ __exportStar(require("./ErrorResponse.js"), exports);
24
24
  __exportStar(require("./EstimateResponse.js"), exports);
25
25
  __exportStar(require("./FieldError.js"), exports);
26
26
  __exportStar(require("./FileUploadResponse.js"), exports);
27
+ __exportStar(require("./InputCreatifyAurora.js"), exports);
28
+ __exportStar(require("./InputCreatifyAuroraAudio.js"), exports);
29
+ __exportStar(require("./InputCreatifyAuroraStartImage.js"), exports);
27
30
  __exportStar(require("./InputDreamina31.js"), exports);
28
31
  __exportStar(require("./InputElevenlabsAudioIsolation.js"), exports);
29
32
  __exportStar(require("./InputElevenlabsAudioIsolationAudio.js"), exports);
@@ -83,6 +86,9 @@ __exportStar(require("./InputHedraCharacter3.js"), exports);
83
86
  __exportStar(require("./InputHedraCharacter3AudioOneItem.js"), exports);
84
87
  __exportStar(require("./InputHedraCharacter3AudioZero.js"), exports);
85
88
  __exportStar(require("./InputHedraCharacter3StartImage.js"), exports);
89
+ __exportStar(require("./InputHeygenPhotoAvatar4.js"), exports);
90
+ __exportStar(require("./InputHeygenPhotoAvatar4Audio.js"), exports);
91
+ __exportStar(require("./InputHeygenPhotoAvatar4StartImage.js"), exports);
86
92
  __exportStar(require("./InputHidreamO1Image.js"), exports);
87
93
  __exportStar(require("./InputHidreamO1ImageImagesItem.js"), exports);
88
94
  __exportStar(require("./InputIdeogramV2.js"), exports);