@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.
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +31 -2
- package/dist/cjs/api/resources/jobs/client/Client.js +164 -83
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.ts +19 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/keys/client/Client.js +4 -4
- package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
- package/dist/cjs/api/resources/models/client/Client.js +6 -6
- package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3.d.ts +29 -7
- package/dist/cjs/api/types/InputKlingO3.js +5 -0
- package/dist/cjs/api/types/InputKlingV3.d.ts +29 -7
- package/dist/cjs/api/types/InputKlingV3.js +5 -0
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxH3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25.d.ts +1 -0
- package/dist/cjs/api/types/InputSeedance25.js +1 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.d.ts +12 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.js +3 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.js +3 -0
- package/dist/cjs/api/types/ModelDetail.d.ts +2 -0
- package/dist/cjs/api/types/ModelSummary.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +31 -2
- package/dist/esm/api/resources/jobs/client/Client.mjs +164 -83
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.mts +19 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
- package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
- package/dist/esm/api/resources/models/client/Client.mjs +6 -6
- package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3.d.mts +29 -7
- package/dist/esm/api/types/InputKlingO3.mjs +5 -0
- package/dist/esm/api/types/InputKlingV3.d.mts +29 -7
- package/dist/esm/api/types/InputKlingV3.mjs +5 -0
- package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxH3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25.d.mts +1 -0
- package/dist/esm/api/types/InputSeedance25.mjs +1 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.d.mts +12 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.mjs +2 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.mjs +2 -0
- package/dist/esm/api/types/ModelDetail.d.mts +2 -0
- package/dist/esm/api/types/ModelSummary.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +72 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hedra/sdk",
|
|
3
|
-
"version": "
|
|
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.
|
|
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>
|