@hedra/sdk 2.0.2 → 3.0.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 (76) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/api/resources/billing/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/jobs/client/Client.d.ts +31 -2
  6. package/dist/cjs/api/resources/jobs/client/Client.js +164 -83
  7. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +0 -1
  8. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +0 -1
  9. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.ts +19 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.js +3 -0
  11. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  13. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  14. package/dist/cjs/api/resources/models/client/Client.js +6 -6
  15. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  17. package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +1 -1
  18. package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
  19. package/dist/cjs/api/types/InputKlingO3.d.ts +29 -7
  20. package/dist/cjs/api/types/InputKlingO3.js +5 -0
  21. package/dist/cjs/api/types/InputKlingV3.d.ts +29 -7
  22. package/dist/cjs/api/types/InputKlingV3.js +5 -0
  23. package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -3
  24. package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
  25. package/dist/cjs/api/types/InputMinimaxH3StartImage.d.ts +1 -1
  26. package/dist/cjs/api/types/InputSeedance25.d.ts +1 -0
  27. package/dist/cjs/api/types/InputSeedance25.js +1 -0
  28. package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.d.ts +12 -0
  29. package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.js +3 -0
  30. package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.ts +23 -0
  31. package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.js +3 -0
  32. package/dist/cjs/api/types/ModelDetail.d.ts +2 -0
  33. package/dist/cjs/api/types/ModelSummary.d.ts +2 -0
  34. package/dist/cjs/api/types/index.d.ts +2 -0
  35. package/dist/cjs/api/types/index.js +2 -0
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/esm/BaseClient.d.mts +2 -2
  39. package/dist/esm/BaseClient.mjs +3 -3
  40. package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
  41. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  42. package/dist/esm/api/resources/jobs/client/Client.d.mts +31 -2
  43. package/dist/esm/api/resources/jobs/client/Client.mjs +164 -83
  44. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +0 -1
  45. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +0 -1
  46. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.mts +19 -0
  47. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.mjs +2 -0
  48. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
  49. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  50. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  51. package/dist/esm/api/resources/models/client/Client.mjs +6 -6
  52. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  53. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  54. package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +1 -1
  55. package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
  56. package/dist/esm/api/types/InputKlingO3.d.mts +29 -7
  57. package/dist/esm/api/types/InputKlingO3.mjs +5 -0
  58. package/dist/esm/api/types/InputKlingV3.d.mts +29 -7
  59. package/dist/esm/api/types/InputKlingV3.mjs +5 -0
  60. package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -3
  61. package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
  62. package/dist/esm/api/types/InputMinimaxH3StartImage.d.mts +1 -1
  63. package/dist/esm/api/types/InputSeedance25.d.mts +1 -0
  64. package/dist/esm/api/types/InputSeedance25.mjs +1 -0
  65. package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.d.mts +12 -0
  66. package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.mjs +2 -0
  67. package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.mts +23 -0
  68. package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.mjs +2 -0
  69. package/dist/esm/api/types/ModelDetail.d.mts +2 -0
  70. package/dist/esm/api/types/ModelSummary.d.mts +2 -0
  71. package/dist/esm/api/types/index.d.mts +2 -0
  72. package/dist/esm/api/types/index.mjs +2 -0
  73. package/dist/esm/version.d.mts +1 -1
  74. package/dist/esm/version.mjs +1 -1
  75. package/package.json +2 -2
  76. package/reference.md +72 -2
@@ -3,7 +3,6 @@ import type * as Hedra from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * input: {
6
- * prompt: "prompt",
7
6
  * aspect_ratio: "16:9",
8
7
  * duration_ms: 1,
9
8
  * quality: "standard"
@@ -3,7 +3,6 @@ import type * as Hedra from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * input: {
6
- * prompt: "prompt",
7
6
  * aspect_ratio: "16:9",
8
7
  * duration_ms: 1,
9
8
  * quality: "standard"
@@ -0,0 +1,19 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * }
10
+ * }
11
+ * }
12
+ */
13
+ export interface SubmitBodyVeedVideoBackgroundRemoval {
14
+ input: Hedra.InputVeedVideoBackgroundRemoval;
15
+ /** URL to receive a signed completion webhook. */
16
+ webhook?: string | null;
17
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
18
+ idempotency_key?: string | null;
19
+ }
@@ -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 });
@@ -73,6 +73,7 @@ export type { SubmitBodySeedream50Lite } from "./SubmitBodySeedream50Lite.js";
73
73
  export type { SubmitBodySeedream50Pro } from "./SubmitBodySeedream50Pro.js";
74
74
  export type { SubmitBodySora2Pro } from "./SubmitBodySora2Pro.js";
75
75
  export type { SubmitBodyVeedFabric10 } from "./SubmitBodyVeedFabric10.js";
76
+ export type { SubmitBodyVeedVideoBackgroundRemoval } from "./SubmitBodyVeedVideoBackgroundRemoval.js";
76
77
  export type { SubmitBodyVeo2 } from "./SubmitBodyVeo2.js";
77
78
  export type { SubmitBodyVeo3 } from "./SubmitBodyVeo3.js";
78
79
  export type { SubmitBodyVeo31 } from "./SubmitBodyVeo31.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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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",
@@ -293,7 +293,7 @@ class ModelsClient {
293
293
  __listVoices(model_1) {
294
294
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
295
295
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
296
- 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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
296
+ 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.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
297
297
  const _response = yield core.fetcher({
298
298
  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`),
299
299
  method: "GET",
@@ -355,7 +355,7 @@ class ModelsClient {
355
355
  __getOpenapi(model_1) {
356
356
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
357
357
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
358
- 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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
358
+ 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.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
359
359
  const _response = yield core.fetcher({
360
360
  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`),
361
361
  method: "GET",
@@ -417,7 +417,7 @@ class ModelsClient {
417
417
  return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
418
418
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
419
419
  const _authRequest = yield this._options.authProvider.getAuthRequest();
420
- 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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
420
+ 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.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
421
421
  const _response = yield core.fetcher({
422
422
  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`),
423
423
  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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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.3.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.9.0" }), 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",
@@ -13,7 +13,7 @@ export interface InputKlingAiAvatarV2 {
13
13
  resolution?: InputKlingAiAvatarV2.Resolution | undefined;
14
14
  /** Start frame (image-to-video). At most 10.4 MB. */
15
15
  start_image: Hedra.InputKlingAiAvatarV2StartImage;
16
- /** Driving audio. At most 104.8 MB. */
16
+ /** Driving audio. From 2s to 60s and at most 5 MB. */
17
17
  audio: Hedra.InputKlingAiAvatarV2Audio;
18
18
  /** Quality level to generate at. */
19
19
  quality: InputKlingAiAvatarV2.Quality;
@@ -1,6 +1,6 @@
1
1
  import type * as Hedra from "../index.js";
2
2
  /**
3
- * Driving audio. At most 104.8 MB.
3
+ * Driving audio. From 2s to 60s and at most 5 MB.
4
4
  */
5
5
  export type InputKlingAiAvatarV2Audio =
6
6
  /**
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.js";
3
3
  * Model-specific inputs for `kling-o3`.
4
4
  *
5
5
  * Accepted field combinations (one per input mode):
6
- * (1) requires: aspect_ratio, duration_ms, prompt, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
7
- * (2) requires: aspect_ratio, duration_ms, images, prompt, resolution; accepts quality: pro; resolution: 1080p | 4K
8
- * (3) requires: aspect_ratio, duration_ms, prompt, resolution; must omit: end_image, images, start_image; accepts quality: pro; resolution: 1080p | 4K
9
- * (4) requires: aspect_ratio, duration_ms, prompt, start_image; accepts quality: standard; resolution: 720p
10
- * (5) requires: aspect_ratio, duration_ms, images, prompt; accepts quality: standard; resolution: 720p
11
- * (6) requires: aspect_ratio, duration_ms, prompt; must omit: end_image, images, start_image; accepts quality: standard; resolution: 720p
6
+ * (1) requires: aspect_ratio, duration_ms, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
7
+ * (2) requires: aspect_ratio, duration_ms, images, resolution; accepts quality: pro; resolution: 1080p | 4K
8
+ * (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, images, start_image; accepts quality: pro; resolution: 1080p | 4K
9
+ * (4) requires: aspect_ratio, duration_ms, start_image; accepts quality: standard; resolution: 720p
10
+ * (5) requires: aspect_ratio, duration_ms, images; accepts quality: standard; resolution: 720p
11
+ * (6) requires: aspect_ratio, duration_ms; must omit: end_image, images, start_image; accepts quality: standard; resolution: 720p
12
12
  */
13
13
  export interface InputKlingO3 {
14
14
  /** Number of outputs generated per job. Only 1 is supported. */
15
15
  num_outputs?: number | undefined;
16
16
  /** Generation prompt. At most 2500 characters. */
17
- prompt: string;
17
+ prompt?: string | undefined;
18
+ /** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
19
+ multi_prompt?: InputKlingO3.MultiPrompt.Item[] | undefined;
20
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
21
+ shot_type?: InputKlingO3.ShotType | undefined;
18
22
  /** Whether to generate native audio for the video. */
19
23
  generate_audio?: boolean | undefined;
20
24
  /** Output aspect ratio. */
@@ -33,6 +37,24 @@ export interface InputKlingO3 {
33
37
  quality: InputKlingO3.Quality;
34
38
  }
35
39
  export declare namespace InputKlingO3 {
40
+ type MultiPrompt = MultiPrompt.Item[];
41
+ namespace MultiPrompt {
42
+ /**
43
+ * One shot of a published multi-shot storyboard.
44
+ */
45
+ interface Item {
46
+ /** The prompt for this shot. */
47
+ prompt: string;
48
+ /** Duration of this shot in milliseconds. */
49
+ duration_ms?: number | undefined;
50
+ }
51
+ }
52
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
53
+ const ShotType: {
54
+ readonly Customize: "customize";
55
+ readonly Intelligent: "intelligent";
56
+ };
57
+ type ShotType = (typeof ShotType)[keyof typeof ShotType];
36
58
  /** Output aspect ratio. */
37
59
  const AspectRatio: {
38
60
  readonly Sixteen9: "16:9";
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.InputKlingO3 = void 0;
5
5
  var InputKlingO3;
6
6
  (function (InputKlingO3) {
7
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
8
+ InputKlingO3.ShotType = {
9
+ Customize: "customize",
10
+ Intelligent: "intelligent",
11
+ };
7
12
  /** Output aspect ratio. */
8
13
  InputKlingO3.AspectRatio = {
9
14
  Sixteen9: "16:9",
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.js";
3
3
  * Model-specific inputs for `kling-v3`.
4
4
  *
5
5
  * Accepted field combinations (one per input mode):
6
- * (1) requires: aspect_ratio, duration_ms, prompt, resolution, start_image; must omit: end_image; accepts quality: pro; resolution: 1080p | 4K
7
- * (2) requires: aspect_ratio, duration_ms, end_image, prompt, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
8
- * (3) requires: aspect_ratio, duration_ms, prompt, resolution; must omit: end_image, start_image; accepts quality: pro; resolution: 1080p | 4K
9
- * (4) requires: aspect_ratio, duration_ms, prompt, start_image; must omit: end_image; accepts quality: standard; resolution: 720p
10
- * (5) requires: aspect_ratio, duration_ms, end_image, prompt, start_image; accepts quality: standard; resolution: 720p
11
- * (6) requires: aspect_ratio, duration_ms, prompt; must omit: end_image, start_image; accepts quality: standard; resolution: 720p
6
+ * (1) requires: aspect_ratio, duration_ms, resolution, start_image; must omit: end_image; accepts quality: pro; resolution: 1080p | 4K
7
+ * (2) requires: aspect_ratio, duration_ms, end_image, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
8
+ * (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, start_image; accepts quality: pro; resolution: 1080p | 4K
9
+ * (4) requires: aspect_ratio, duration_ms, start_image; must omit: end_image; accepts quality: standard; resolution: 720p
10
+ * (5) requires: aspect_ratio, duration_ms, end_image, start_image; accepts quality: standard; resolution: 720p
11
+ * (6) requires: aspect_ratio, duration_ms; must omit: end_image, start_image; accepts quality: standard; resolution: 720p
12
12
  */
13
13
  export interface InputKlingV3 {
14
14
  /** Number of outputs generated per job. Only 1 is supported. */
15
15
  num_outputs?: number | undefined;
16
16
  /** Generation prompt. At most 2500 characters. */
17
- prompt: string;
17
+ prompt?: string | undefined;
18
+ /** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
19
+ multi_prompt?: InputKlingV3.MultiPrompt.Item[] | undefined;
20
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
21
+ shot_type?: InputKlingV3.ShotType | undefined;
18
22
  /** Whether to generate native audio for the video. */
19
23
  generate_audio?: boolean | undefined;
20
24
  /** What to avoid in the generated video. At most 2500 characters. */
@@ -35,6 +39,24 @@ export interface InputKlingV3 {
35
39
  quality: InputKlingV3.Quality;
36
40
  }
37
41
  export declare namespace InputKlingV3 {
42
+ type MultiPrompt = MultiPrompt.Item[];
43
+ namespace MultiPrompt {
44
+ /**
45
+ * One shot of a published multi-shot storyboard.
46
+ */
47
+ interface Item {
48
+ /** The prompt for this shot. */
49
+ prompt: string;
50
+ /** Duration of this shot in milliseconds. */
51
+ duration_ms?: number | undefined;
52
+ }
53
+ }
54
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
55
+ const ShotType: {
56
+ readonly Customize: "customize";
57
+ readonly Intelligent: "intelligent";
58
+ };
59
+ type ShotType = (typeof ShotType)[keyof typeof ShotType];
38
60
  /** Output aspect ratio. */
39
61
  const AspectRatio: {
40
62
  readonly Sixteen9: "16:9";
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.InputKlingV3 = void 0;
5
5
  var InputKlingV3;
6
6
  (function (InputKlingV3) {
7
+ /** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
8
+ InputKlingV3.ShotType = {
9
+ Customize: "customize",
10
+ Intelligent: "intelligent",
11
+ };
7
12
  /** Output aspect ratio. */
8
13
  InputKlingV3.AspectRatio = {
9
14
  Sixteen9: "16:9",
@@ -17,13 +17,13 @@ export interface InputMinimaxH3 {
17
17
  resolution: InputMinimaxH3.Resolution;
18
18
  /** Duration in ms. */
19
19
  duration_ms: number;
20
- /** Start frame (image-to-video). At most 10.4 MB. */
20
+ /** Start frame (image-to-video). From 256px to 5760px on each side, with an aspect ratio from 0.4 to 2.5, and at most 30 MB. */
21
21
  start_image?: Hedra.InputMinimaxH3StartImage | undefined;
22
- /** End frame (first-last-frame-to-video). At most 10.4 MB. */
22
+ /** End frame (first-last-frame-to-video). From 256px to 5760px on each side, with an aspect ratio from 0.4 to 2.5, and at most 30 MB. */
23
23
  end_image?: Hedra.InputMinimaxH3EndImage | undefined;
24
24
  /** Output aspect ratio. */
25
25
  aspect_ratio?: InputMinimaxH3.AspectRatio | undefined;
26
- /** Reference images. 1 to 5 images, each at most 10.4 MB. */
26
+ /** Reference images. 1 to 5 images, each from 256px to 5760px on each side, with an aspect ratio from 0.4 to 2.5, and at most 30 MB. */
27
27
  images?: Hedra.InputMinimaxH3ImagesItem[] | undefined;
28
28
  /** Reference videos. 1 to 3 videos, each from 2s to 15s and at most 524.2 MB, at most 15s in total. */
29
29
  videos?: Hedra.InputMinimaxH3VideosItem[] | undefined;
@@ -1,6 +1,6 @@
1
1
  import type * as Hedra from "../index.js";
2
2
  /**
3
- * End frame (first-last-frame-to-video). At most 10.4 MB.
3
+ * End frame (first-last-frame-to-video). From 256px to 5760px on each side, with an aspect ratio from 0.4 to 2.5, and at most 30 MB.
4
4
  */
5
5
  export type InputMinimaxH3EndImage =
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import type * as Hedra from "../index.js";
2
2
  /**
3
- * Start frame (image-to-video). At most 10.4 MB.
3
+ * Start frame (image-to-video). From 256px to 5760px on each side, with an aspect ratio from 0.4 to 2.5, and at most 30 MB.
4
4
  */
5
5
  export type InputMinimaxH3StartImage =
6
6
  /**
@@ -42,6 +42,7 @@ export declare namespace InputSeedance25 {
42
42
  const Resolution: {
43
43
  readonly FourHundredEightyP: "480p";
44
44
  readonly SevenHundredTwentyP: "720p";
45
+ readonly OneThousandEightyP: "1080p";
45
46
  };
46
47
  type Resolution = (typeof Resolution)[keyof typeof Resolution];
47
48
  }
@@ -18,5 +18,6 @@ var InputSeedance25;
18
18
  InputSeedance25.Resolution = {
19
19
  FourHundredEightyP: "480p",
20
20
  SevenHundredTwentyP: "720p",
21
+ OneThousandEightyP: "1080p",
21
22
  };
22
23
  })(InputSeedance25 || (exports.InputSeedance25 = InputSeedance25 = {}));
@@ -0,0 +1,12 @@
1
+ import type * as Hedra from "../index.js";
2
+ /**
3
+ * Model-specific inputs for `veed-video-background-removal`.
4
+ */
5
+ export interface InputVeedVideoBackgroundRemoval {
6
+ /** Number of outputs generated per job. Only 1 is supported. */
7
+ num_outputs?: number | undefined;
8
+ /** Video whose background should be made transparent. At most 120s and at most 524.2 MB. */
9
+ source_video: Hedra.InputVeedVideoBackgroundRemovalSourceVideo;
10
+ /** Optimize segmentation for a person rather than an object. */
11
+ subject_is_person?: boolean | undefined;
12
+ }
@@ -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
+ * Video whose background should be made transparent. At most 120s and at most 524.2 MB.
4
+ */
5
+ export type InputVeedVideoBackgroundRemovalSourceVideo =
6
+ /**
7
+ * A file uploaded via POST /v3/files, referenced by the returned url. */
8
+ Hedra.InputVeedVideoBackgroundRemovalSourceVideo.Url
9
+ /**
10
+ * An existing asset you own, referenced by its id. */
11
+ | Hedra.InputVeedVideoBackgroundRemovalSourceVideo.Asset;
12
+ export declare namespace InputVeedVideoBackgroundRemovalSourceVideo {
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 });
@@ -7,6 +7,8 @@ export interface ModelDetail {
7
7
  name?: (string | null) | undefined;
8
8
  /** One-line summary of what the model does. */
9
9
  description?: (string | null) | undefined;
10
+ /** Short USD pricing summary for this model. Exact cost depends on input. */
11
+ price_description?: string | undefined;
10
12
  /** URL of the provider's logo. */
11
13
  logo_url?: (string | null) | undefined;
12
14
  /** JSON Schema for this model's `input` object on submit — the same schema `GET /v3/models/{model}/openapi.json` embeds. */
@@ -7,6 +7,8 @@ export interface ModelSummary {
7
7
  name?: (string | null) | undefined;
8
8
  /** One-line summary of what the model does. */
9
9
  description?: (string | null) | undefined;
10
+ /** Short USD pricing summary for this model. Exact cost depends on input. */
11
+ price_description?: string | undefined;
10
12
  /** URL of the provider's logo. */
11
13
  logo_url?: (string | null) | undefined;
12
14
  }
@@ -168,6 +168,8 @@ export * from "./InputSora2ProStartImage.js";
168
168
  export * from "./InputVeedFabric10.js";
169
169
  export * from "./InputVeedFabric10Audio.js";
170
170
  export * from "./InputVeedFabric10StartImage.js";
171
+ export * from "./InputVeedVideoBackgroundRemoval.js";
172
+ export * from "./InputVeedVideoBackgroundRemovalSourceVideo.js";
171
173
  export * from "./InputVeo2.js";
172
174
  export * from "./InputVeo2StartImage.js";
173
175
  export * from "./InputVeo3.js";
@@ -184,6 +184,8 @@ __exportStar(require("./InputSora2ProStartImage.js"), exports);
184
184
  __exportStar(require("./InputVeedFabric10.js"), exports);
185
185
  __exportStar(require("./InputVeedFabric10Audio.js"), exports);
186
186
  __exportStar(require("./InputVeedFabric10StartImage.js"), exports);
187
+ __exportStar(require("./InputVeedVideoBackgroundRemoval.js"), exports);
188
+ __exportStar(require("./InputVeedVideoBackgroundRemovalSourceVideo.js"), exports);
187
189
  __exportStar(require("./InputVeo2.js"), exports);
188
190
  __exportStar(require("./InputVeo2StartImage.js"), exports);
189
191
  __exportStar(require("./InputVeo3.js"), exports);