@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedra/sdk",
3
- "version": "2.0.2",
3
+ "version": "3.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -155,6 +155,6 @@
155
155
  "node": ">=18.0.0"
156
156
  },
157
157
  "sideEffects": false,
158
- "description": "The official TypeScript library for the Hedra API — API spec 3.3.0",
158
+ "description": "The official TypeScript library for the Hedra API — API spec 3.9.0",
159
159
  "author": "Hedra <support@hedra.com>"
160
160
  }
package/reference.md CHANGED
@@ -2825,7 +2825,6 @@ Submits an asynchronous job and returns `202` with a job id. Fetch the result at
2825
2825
  ```typescript
2826
2826
  await client.jobs.submitKlingO3({
2827
2827
  input: {
2828
- prompt: "prompt",
2829
2828
  aspect_ratio: "16:9",
2830
2829
  duration_ms: 1,
2831
2830
  quality: "standard"
@@ -3045,7 +3044,6 @@ Submits an asynchronous job and returns `202` with a job id. Fetch the result at
3045
3044
  ```typescript
3046
3045
  await client.jobs.submitKlingV3({
3047
3046
  input: {
3048
- prompt: "prompt",
3049
3047
  aspect_ratio: "16:9",
3050
3048
  duration_ms: 1,
3051
3049
  quality: "standard"
@@ -5245,6 +5243,78 @@ await client.jobs.submitVeedFabric10({
5245
5243
  </dl>
5246
5244
 
5247
5245
 
5246
+ </dd>
5247
+ </dl>
5248
+ </details>
5249
+
5250
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitVeedVideoBackgroundRemoval</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
5251
+ <dl>
5252
+ <dd>
5253
+
5254
+ #### 📝 Description
5255
+
5256
+ <dl>
5257
+ <dd>
5258
+
5259
+ <dl>
5260
+ <dd>
5261
+
5262
+ Remove a video's background and return transparent WebM.
5263
+
5264
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
5265
+ </dd>
5266
+ </dl>
5267
+ </dd>
5268
+ </dl>
5269
+
5270
+ #### 🔌 Usage
5271
+
5272
+ <dl>
5273
+ <dd>
5274
+
5275
+ <dl>
5276
+ <dd>
5277
+
5278
+ ```typescript
5279
+ await client.jobs.submitVeedVideoBackgroundRemoval({
5280
+ input: {
5281
+ source_video: {
5282
+ source: "url",
5283
+ url: "url"
5284
+ }
5285
+ }
5286
+ });
5287
+
5288
+ ```
5289
+ </dd>
5290
+ </dl>
5291
+ </dd>
5292
+ </dl>
5293
+
5294
+ #### ⚙️ Parameters
5295
+
5296
+ <dl>
5297
+ <dd>
5298
+
5299
+ <dl>
5300
+ <dd>
5301
+
5302
+ **request:** `Hedra.SubmitBodyVeedVideoBackgroundRemoval`
5303
+
5304
+ </dd>
5305
+ </dl>
5306
+
5307
+ <dl>
5308
+ <dd>
5309
+
5310
+ **requestOptions:** `JobsClient.RequestOptions`
5311
+
5312
+ </dd>
5313
+ </dl>
5314
+ </dd>
5315
+ </dl>
5316
+
5317
+
5248
5318
  </dd>
5249
5319
  </dl>
5250
5320
  </details>