@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.mjs";
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.mjs";
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.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -73,6 +73,7 @@ export type { SubmitBodySeedream50Lite } from "./SubmitBodySeedream50Lite.mjs";
73
73
  export type { SubmitBodySeedream50Pro } from "./SubmitBodySeedream50Pro.mjs";
74
74
  export type { SubmitBodySora2Pro } from "./SubmitBodySora2Pro.mjs";
75
75
  export type { SubmitBodyVeedFabric10 } from "./SubmitBodyVeedFabric10.mjs";
76
+ export type { SubmitBodyVeedVideoBackgroundRemoval } from "./SubmitBodyVeedVideoBackgroundRemoval.mjs";
76
77
  export type { SubmitBodyVeo2 } from "./SubmitBodyVeo2.mjs";
77
78
  export type { SubmitBodyVeo3 } from "./SubmitBodyVeo3.mjs";
78
79
  export type { SubmitBodyVeo31 } from "./SubmitBodyVeo31.mjs";
@@ -47,7 +47,7 @@ export class KeysClient {
47
47
  workspace_id: workspaceId,
48
48
  };
49
49
  const _authRequest = yield this._options.authProvider.getAuthRequest();
50
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
51
51
  const _response = yield core.fetcher({
52
52
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
53
53
  method: "GET",
@@ -114,7 +114,7 @@ export class KeysClient {
114
114
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
115
115
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
116
116
  const _authRequest = yield this._options.authProvider.getAuthRequest();
117
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
117
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
118
118
  const _response = yield core.fetcher({
119
119
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
120
120
  method: "POST",
@@ -181,7 +181,7 @@ export class KeysClient {
181
181
  return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
182
182
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
183
183
  const _authRequest = yield this._options.authProvider.getAuthRequest();
184
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
184
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
185
185
  const _response = yield core.fetcher({
186
186
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}/rotate`),
187
187
  method: "POST",
@@ -248,7 +248,7 @@ export class KeysClient {
248
248
  return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
249
249
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
250
250
  const _authRequest = yield this._options.authProvider.getAuthRequest();
251
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
251
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
252
252
  const _response = yield core.fetcher({
253
253
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}`),
254
254
  method: "DELETE",
@@ -64,7 +64,7 @@ export class LogDrainsClient {
64
64
  return __awaiter(this, void 0, void 0, function* () {
65
65
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
66
66
  const _authRequest = yield this._options.authProvider.getAuthRequest();
67
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
67
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
68
68
  const _response = yield core.fetcher({
69
69
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
70
70
  method: "GET",
@@ -130,7 +130,7 @@ export class LogDrainsClient {
130
130
  return __awaiter(this, void 0, void 0, function* () {
131
131
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
132
132
  const _authRequest = yield this._options.authProvider.getAuthRequest();
133
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
133
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
134
134
  const _response = yield core.fetcher({
135
135
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
136
136
  method: "POST",
@@ -197,7 +197,7 @@ export class LogDrainsClient {
197
197
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
198
198
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
199
199
  const _authRequest = yield this._options.authProvider.getAuthRequest();
200
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
200
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
201
201
  const _response = yield core.fetcher({
202
202
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
203
203
  method: "GET",
@@ -261,7 +261,7 @@ export class LogDrainsClient {
261
261
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
262
262
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
263
263
  const _authRequest = yield this._options.authProvider.getAuthRequest();
264
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
264
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
265
265
  const _response = yield core.fetcher({
266
266
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
267
267
  method: "DELETE",
@@ -325,7 +325,7 @@ export class LogDrainsClient {
325
325
  return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
326
326
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
327
327
  const _authRequest = yield this._options.authProvider.getAuthRequest();
328
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
328
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
329
329
  const _response = yield core.fetcher({
330
330
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
331
331
  method: "PATCH",
@@ -392,7 +392,7 @@ export class LogDrainsClient {
392
392
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
393
393
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
394
394
  const _authRequest = yield this._options.authProvider.getAuthRequest();
395
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
395
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
396
396
  const _response = yield core.fetcher({
397
397
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}/test`),
398
398
  method: "POST",
@@ -48,7 +48,7 @@ export class ModelsClient {
48
48
  const _queryParams = {
49
49
  modality: modality !== undefined ? modality : undefined,
50
50
  };
51
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
51
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
52
52
  const _response = yield core.fetcher({
53
53
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "models"),
54
54
  method: "GET",
@@ -112,7 +112,7 @@ export class ModelsClient {
112
112
  __get(model_1) {
113
113
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
114
114
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
115
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
115
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
116
116
  const _response = yield core.fetcher({
117
117
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}`),
118
118
  method: "GET",
@@ -177,7 +177,7 @@ export class ModelsClient {
177
177
  cursor,
178
178
  };
179
179
  const _authRequest = yield this._options.authProvider.getAuthRequest();
180
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
180
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
181
181
  const _response = yield core.fetcher({
182
182
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/jobs`),
183
183
  method: "GET",
@@ -257,7 +257,7 @@ export class ModelsClient {
257
257
  __listVoices(model_1) {
258
258
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
259
259
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
260
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
260
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
261
261
  const _response = yield core.fetcher({
262
262
  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`),
263
263
  method: "GET",
@@ -319,7 +319,7 @@ export class ModelsClient {
319
319
  __getOpenapi(model_1) {
320
320
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
321
321
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
322
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
322
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
323
323
  const _response = yield core.fetcher({
324
324
  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`),
325
325
  method: "GET",
@@ -381,7 +381,7 @@ export class ModelsClient {
381
381
  return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
382
382
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
383
383
  const _authRequest = yield this._options.authProvider.getAuthRequest();
384
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
384
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
385
385
  const _response = yield core.fetcher({
386
386
  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`),
387
387
  method: "POST",
@@ -43,7 +43,7 @@ export class TokensClient {
43
43
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
44
44
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
45
  const _authRequest = yield this._options.authProvider.getAuthRequest();
46
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
46
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
47
47
  const _response = yield core.fetcher({
48
48
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "tokens"),
49
49
  method: "POST",
@@ -84,7 +84,7 @@ export class WebhooksClient {
84
84
  __getPublicKey(requestOptions) {
85
85
  return __awaiter(this, void 0, void 0, function* () {
86
86
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
87
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.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, "webhooks/public-key"),
90
90
  method: "GET",
@@ -144,7 +144,7 @@ export class WebhooksClient {
144
144
  return __awaiter(this, void 0, void 0, function* () {
145
145
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
146
146
  const _authRequest = yield this._options.authProvider.getAuthRequest();
147
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
148
148
  const _response = yield core.fetcher({
149
149
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
150
150
  method: "GET",
@@ -209,7 +209,7 @@ export class WebhooksClient {
209
209
  return __awaiter(this, void 0, void 0, function* () {
210
210
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
211
211
  const _authRequest = yield this._options.authProvider.getAuthRequest();
212
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
212
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
213
213
  const _response = yield core.fetcher({
214
214
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
215
215
  method: "PUT",
@@ -274,7 +274,7 @@ export class WebhooksClient {
274
274
  return __awaiter(this, void 0, void 0, function* () {
275
275
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
276
276
  const _authRequest = yield this._options.authProvider.getAuthRequest();
277
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
277
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
278
278
  const _response = yield core.fetcher({
279
279
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
280
280
  method: "DELETE",
@@ -336,7 +336,7 @@ export class WebhooksClient {
336
336
  return __awaiter(this, void 0, void 0, function* () {
337
337
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
338
338
  const _authRequest = yield this._options.authProvider.getAuthRequest();
339
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
339
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
340
340
  const _response = yield core.fetcher({
341
341
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default/test"),
342
342
  method: "POST",
@@ -402,7 +402,7 @@ export class WebhooksClient {
402
402
  cursor,
403
403
  };
404
404
  const _authRequest = yield this._options.authProvider.getAuthRequest();
405
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
405
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
406
406
  const _response = yield core.fetcher({
407
407
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/deliveries"),
408
408
  method: "GET",
@@ -498,7 +498,7 @@ export class WebhooksClient {
498
498
  return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
499
499
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
500
500
  const _authRequest = yield this._options.authProvider.getAuthRequest();
501
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
501
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
502
502
  const _response = yield core.fetcher({
503
503
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `webhooks/deliveries/${core.url.encodePathParam(job_id)}/redeliver`),
504
504
  method: "POST",
@@ -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.mjs";
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.mjs";
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";
@@ -1,6 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export var InputKlingO3;
3
3
  (function (InputKlingO3) {
4
+ /** 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. */
5
+ InputKlingO3.ShotType = {
6
+ Customize: "customize",
7
+ Intelligent: "intelligent",
8
+ };
4
9
  /** Output aspect ratio. */
5
10
  InputKlingO3.AspectRatio = {
6
11
  Sixteen9: "16:9",
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.mjs";
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";
@@ -1,6 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export var InputKlingV3;
3
3
  (function (InputKlingV3) {
4
+ /** 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. */
5
+ InputKlingV3.ShotType = {
6
+ Customize: "customize",
7
+ Intelligent: "intelligent",
8
+ };
4
9
  /** Output aspect ratio. */
5
10
  InputKlingV3.AspectRatio = {
6
11
  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.mjs";
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.mjs";
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
  }
@@ -15,5 +15,6 @@ export var InputSeedance25;
15
15
  InputSeedance25.Resolution = {
16
16
  FourHundredEightyP: "480p",
17
17
  SevenHundredTwentyP: "720p",
18
+ OneThousandEightyP: "1080p",
18
19
  };
19
20
  })(InputSeedance25 || (InputSeedance25 = {}));
@@ -0,0 +1,12 @@
1
+ import type * as Hedra from "../index.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,23 @@
1
+ import type * as Hedra from "../index.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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.mjs";
168
168
  export * from "./InputVeedFabric10.mjs";
169
169
  export * from "./InputVeedFabric10Audio.mjs";
170
170
  export * from "./InputVeedFabric10StartImage.mjs";
171
+ export * from "./InputVeedVideoBackgroundRemoval.mjs";
172
+ export * from "./InputVeedVideoBackgroundRemovalSourceVideo.mjs";
171
173
  export * from "./InputVeo2.mjs";
172
174
  export * from "./InputVeo2StartImage.mjs";
173
175
  export * from "./InputVeo3.mjs";
@@ -168,6 +168,8 @@ export * from "./InputSora2ProStartImage.mjs";
168
168
  export * from "./InputVeedFabric10.mjs";
169
169
  export * from "./InputVeedFabric10Audio.mjs";
170
170
  export * from "./InputVeedFabric10StartImage.mjs";
171
+ export * from "./InputVeedVideoBackgroundRemoval.mjs";
172
+ export * from "./InputVeedVideoBackgroundRemovalSourceVideo.mjs";
171
173
  export * from "./InputVeo2.mjs";
172
174
  export * from "./InputVeo2StartImage.mjs";
173
175
  export * from "./InputVeo3.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.2";
1
+ export declare const SDK_VERSION = "3.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.2";
1
+ export const SDK_VERSION = "3.0.0";