@blitzreels/sdk 0.2.0 → 0.2.1
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/LICENSE +25 -21
- package/README.md +25 -0
- package/dist/types/exports.d.ts +5 -0
- package/dist/types/exports.d.ts.map +1 -1
- package/package.json +9 -6
package/LICENSE
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) BlitzReels
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
BlitzReels Developer Package License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BlitzReels. All rights reserved.
|
|
4
|
+
|
|
5
|
+
1. Grant
|
|
6
|
+
|
|
7
|
+
Permission is granted to install and use this package to build software that accesses the BlitzReels service.
|
|
8
|
+
You may redistribute the package only in its unmodified published form as a dependency of such software,
|
|
9
|
+
including commercial software.
|
|
10
|
+
|
|
11
|
+
2. Restrictions
|
|
12
|
+
|
|
13
|
+
Except where applicable law permits, you may not modify, adapt, translate, reverse engineer, decompile,
|
|
14
|
+
disassemble, create derivative works from, sublicense, sell, or redistribute this package except as allowed
|
|
15
|
+
above. You may not remove this notice.
|
|
16
|
+
|
|
17
|
+
3. Service and trademarks
|
|
18
|
+
|
|
19
|
+
Use of the BlitzReels service is governed by https://www.blitzreels.com/terms. This license grants no
|
|
20
|
+
ownership rights in the BlitzReels service, API, data, names, logos, or brand assets.
|
|
21
|
+
|
|
22
|
+
4. Warranty and liability
|
|
23
|
+
|
|
24
|
+
THE PACKAGE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY LAW,
|
|
25
|
+
BLITZREELS IS NOT LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE PACKAGE OR ITS USE.
|
package/README.md
CHANGED
|
@@ -148,6 +148,19 @@ await client.media.attachToProject({
|
|
|
148
148
|
layerIndex: undefined,
|
|
149
149
|
placementIntent: "overlay",
|
|
150
150
|
allowDuplicate: undefined,
|
|
151
|
+
volume: 0.4,
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
await client.media.deleteMany({
|
|
155
|
+
ids: ["asset_id"],
|
|
156
|
+
search: null,
|
|
157
|
+
namePrefix: null,
|
|
158
|
+
confirmDelete: true,
|
|
159
|
+
dryRun: false,
|
|
160
|
+
reason: "Remove duplicate upload",
|
|
161
|
+
idempotencyKey: "media-delete:asset_id:v1",
|
|
162
|
+
deleteGeneratedClips: false,
|
|
163
|
+
deleteLinkedProjects: false,
|
|
151
164
|
});
|
|
152
165
|
|
|
153
166
|
await client.media.folders.create({
|
|
@@ -228,3 +241,15 @@ const client = new BlitzReelsClient({
|
|
|
228
241
|
```
|
|
229
242
|
|
|
230
243
|
Local/development API keys use `br_test_...`; production keys use `br_live_...`.
|
|
244
|
+
|
|
245
|
+
## Source, releases, and license
|
|
246
|
+
|
|
247
|
+
The npm package is publicly installable, but its canonical source is private and proprietary.
|
|
248
|
+
Version `0.2.0` added generation, bulk deletion, folder-emptying, clip-batch deletion, and richer media models.
|
|
249
|
+
|
|
250
|
+
Workspace `0.2.1` also contains unreleased deletion-impact, overlay-volume, and caption-receipt changes.
|
|
251
|
+
Published behavior depends on the installed package version.
|
|
252
|
+
|
|
253
|
+
Admin recovery and other internal operator resources are not exported or included in the public artifact.
|
|
254
|
+
|
|
255
|
+
See `LICENSE` for the package terms.
|
package/dist/types/exports.d.ts
CHANGED
|
@@ -31,11 +31,16 @@ export type ProjectExportList = {
|
|
|
31
31
|
export type JobStatus = {
|
|
32
32
|
job_id: string;
|
|
33
33
|
type: string;
|
|
34
|
+
kind?: string;
|
|
34
35
|
status: string;
|
|
35
36
|
progress: number;
|
|
37
|
+
status_url?: string;
|
|
38
|
+
cancel_url?: string;
|
|
36
39
|
project_id: string | null;
|
|
37
40
|
export_id: string | null;
|
|
38
41
|
media_id: string | null;
|
|
42
|
+
download_url?: string | null;
|
|
43
|
+
estimated_credits?: number | null;
|
|
39
44
|
created_at: string;
|
|
40
45
|
completed_at: string | null;
|
|
41
46
|
error: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/types/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE;QACT,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gB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
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "TypeScript SDK for AI agents and developers to edit videos inside BlitzReels.",
|
|
5
5
|
"homepage": "https://blitzreels.com/",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/blitzreels/
|
|
9
|
+
"url": "git+https://github.com/blitzreels/blitzreels.git",
|
|
10
10
|
"directory": "packages/sdk"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/blitzreels/
|
|
13
|
+
"url": "https://github.com/blitzreels/blitzreels/issues"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
26
|
-
"
|
|
26
|
+
"!dist/resources/admin-recovery.*",
|
|
27
|
+
"!dist/types/admin-recovery.*",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
27
30
|
],
|
|
28
31
|
"dependencies": {
|
|
29
|
-
"@blitzreels/contracts": "^0.2.
|
|
32
|
+
"@blitzreels/contracts": "^0.2.1"
|
|
30
33
|
},
|
|
31
34
|
"publishConfig": {
|
|
32
35
|
"access": "public"
|