@b3os/sdk 0.0.1 → 0.1.3
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/README.md +171 -42
- package/dist/cjs/core/bytes.d.ts +30 -0
- package/dist/cjs/core/bytes.js +115 -0
- package/dist/cjs/core/bytes.js.map +1 -0
- package/dist/cjs/core/client.d.ts +61 -3
- package/dist/cjs/core/client.js +211 -33
- package/dist/cjs/core/client.js.map +1 -1
- package/dist/cjs/core/errors.d.ts +16 -4
- package/dist/cjs/core/errors.js +9 -6
- package/dist/cjs/core/errors.js.map +1 -1
- package/dist/cjs/core/handle.d.ts +31 -0
- package/dist/cjs/core/handle.js +86 -0
- package/dist/cjs/core/handle.js.map +1 -0
- package/dist/cjs/core/index.d.ts +6 -4
- package/dist/cjs/core/index.js +8 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/login.d.ts +24 -0
- package/dist/cjs/core/login.js +93 -0
- package/dist/cjs/core/login.js.map +1 -0
- package/dist/cjs/core/namespace.d.ts +1 -1
- package/dist/cjs/core/namespace.js +1 -1
- package/dist/cjs/core/op.d.ts +11 -1
- package/dist/cjs/core/timing.d.ts +1 -1
- package/dist/cjs/core/timing.js +8 -1
- package/dist/cjs/core/timing.js.map +1 -1
- package/dist/cjs/core/transport.js +1 -1
- package/dist/cjs/core/transport.js.map +1 -1
- package/dist/cjs/core/util.d.ts +15 -3
- package/dist/cjs/core/util.js +54 -2
- package/dist/cjs/core/util.js.map +1 -1
- package/dist/cjs/core/ws.d.ts +4 -0
- package/dist/cjs/core/ws.js +7 -4
- package/dist/cjs/core/ws.js.map +1 -1
- package/dist/cjs/generated/client.d.ts +2 -2
- package/dist/cjs/generated/client.js +2 -2
- package/dist/cjs/generated/errors.d.ts +1 -1
- package/dist/cjs/generated/errors.js +30 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/jobs.js +1 -1
- package/dist/cjs/generated/ns/actions.d.ts +48 -6
- package/dist/cjs/generated/ns/actions.js +59 -6
- package/dist/cjs/generated/ns/actions.js.map +1 -1
- package/dist/cjs/generated/ns/infer.d.ts +185 -54
- package/dist/cjs/generated/ns/infer.js +28 -74
- package/dist/cjs/generated/ns/infer.js.map +1 -1
- package/dist/cjs/generated/ns/keys.d.ts +12 -0
- package/dist/cjs/generated/ns/keys.js +22 -0
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +95 -6
- package/dist/cjs/generated/ns/render.js +124 -7
- package/dist/cjs/generated/ns/render.js.map +1 -1
- package/dist/cjs/generated/ns/requests.d.ts +3 -1
- package/dist/cjs/generated/ns/requests.js +3 -1
- package/dist/cjs/generated/ns/requests.js.map +1 -1
- package/dist/cjs/generated/ns/routines.d.ts +131 -9
- package/dist/cjs/generated/ns/routines.js +186 -9
- package/dist/cjs/generated/ns/routines.js.map +1 -1
- package/dist/cjs/generated/ns/sandboxes.d.ts +298 -31
- package/dist/cjs/generated/ns/sandboxes.js +368 -29
- package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
- package/dist/cjs/generated/ns/vision.d.ts +133 -14
- package/dist/cjs/generated/ns/vision.js +158 -12
- package/dist/cjs/generated/ns/vision.js.map +1 -1
- package/dist/cjs/generated/ns/webhooks.d.ts +8 -5
- package/dist/cjs/generated/ns/webhooks.js +8 -5
- package/dist/cjs/generated/ns/webhooks.js.map +1 -1
- package/dist/cjs/generated/types.d.ts +1956 -301
- package/dist/cjs/helpers/agents.d.ts +95 -0
- package/dist/cjs/helpers/agents.js +205 -0
- package/dist/cjs/helpers/agents.js.map +1 -0
- package/dist/cjs/helpers/render.d.ts +15 -0
- package/dist/cjs/helpers/render.js +74 -0
- package/dist/cjs/helpers/render.js.map +1 -0
- package/dist/cjs/helpers/routines.d.ts +61 -0
- package/dist/cjs/helpers/routines.js +234 -0
- package/dist/cjs/helpers/routines.js.map +1 -0
- package/dist/cjs/helpers/sandboxes.d.ts +237 -0
- package/dist/cjs/helpers/sandboxes.js +608 -0
- package/dist/cjs/helpers/sandboxes.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/index.js +8 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/routines.d.ts +1 -0
- package/dist/cjs/routines.js +21 -0
- package/dist/cjs/routines.js.map +1 -0
- package/dist/cjs/webhooks.js.map +1 -1
- package/dist/esm/core/bytes.d.ts +30 -0
- package/dist/esm/core/bytes.js +111 -0
- package/dist/esm/core/bytes.js.map +1 -0
- package/dist/esm/core/client.d.ts +61 -3
- package/dist/esm/core/client.js +208 -31
- package/dist/esm/core/client.js.map +1 -1
- package/dist/esm/core/errors.d.ts +16 -4
- package/dist/esm/core/errors.js +9 -6
- package/dist/esm/core/errors.js.map +1 -1
- package/dist/esm/core/handle.d.ts +31 -0
- package/dist/esm/core/handle.js +82 -0
- package/dist/esm/core/handle.js.map +1 -0
- package/dist/esm/core/index.d.ts +6 -4
- package/dist/esm/core/index.js +4 -2
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/login.d.ts +24 -0
- package/dist/esm/core/login.js +85 -0
- package/dist/esm/core/login.js.map +1 -0
- package/dist/esm/core/namespace.d.ts +1 -1
- package/dist/esm/core/namespace.js +1 -1
- package/dist/esm/core/op.d.ts +11 -1
- package/dist/esm/core/timing.d.ts +1 -1
- package/dist/esm/core/timing.js +8 -1
- package/dist/esm/core/timing.js.map +1 -1
- package/dist/esm/core/transport.js +1 -1
- package/dist/esm/core/transport.js.map +1 -1
- package/dist/esm/core/util.d.ts +15 -3
- package/dist/esm/core/util.js +48 -1
- package/dist/esm/core/util.js.map +1 -1
- package/dist/esm/core/ws.d.ts +4 -0
- package/dist/esm/core/ws.js +7 -4
- package/dist/esm/core/ws.js.map +1 -1
- package/dist/esm/generated/client.d.ts +2 -2
- package/dist/esm/generated/client.js +2 -2
- package/dist/esm/generated/errors.d.ts +1 -1
- package/dist/esm/generated/errors.js +30 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/jobs.js +1 -1
- package/dist/esm/generated/ns/actions.d.ts +48 -6
- package/dist/esm/generated/ns/actions.js +59 -6
- package/dist/esm/generated/ns/actions.js.map +1 -1
- package/dist/esm/generated/ns/infer.d.ts +185 -54
- package/dist/esm/generated/ns/infer.js +28 -74
- package/dist/esm/generated/ns/infer.js.map +1 -1
- package/dist/esm/generated/ns/keys.d.ts +12 -0
- package/dist/esm/generated/ns/keys.js +22 -0
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +95 -6
- package/dist/esm/generated/ns/render.js +124 -7
- package/dist/esm/generated/ns/render.js.map +1 -1
- package/dist/esm/generated/ns/requests.d.ts +3 -1
- package/dist/esm/generated/ns/requests.js +3 -1
- package/dist/esm/generated/ns/requests.js.map +1 -1
- package/dist/esm/generated/ns/routines.d.ts +131 -9
- package/dist/esm/generated/ns/routines.js +186 -9
- package/dist/esm/generated/ns/routines.js.map +1 -1
- package/dist/esm/generated/ns/sandboxes.d.ts +298 -31
- package/dist/esm/generated/ns/sandboxes.js +368 -29
- package/dist/esm/generated/ns/sandboxes.js.map +1 -1
- package/dist/esm/generated/ns/vision.d.ts +133 -14
- package/dist/esm/generated/ns/vision.js +158 -12
- package/dist/esm/generated/ns/vision.js.map +1 -1
- package/dist/esm/generated/ns/webhooks.d.ts +8 -5
- package/dist/esm/generated/ns/webhooks.js +8 -5
- package/dist/esm/generated/ns/webhooks.js.map +1 -1
- package/dist/esm/generated/types.d.ts +1956 -301
- package/dist/esm/helpers/agents.d.ts +95 -0
- package/dist/esm/helpers/agents.js +199 -0
- package/dist/esm/helpers/agents.js.map +1 -0
- package/dist/esm/helpers/render.d.ts +15 -0
- package/dist/esm/helpers/render.js +70 -0
- package/dist/esm/helpers/render.js.map +1 -0
- package/dist/esm/helpers/routines.d.ts +61 -0
- package/dist/esm/helpers/routines.js +226 -0
- package/dist/esm/helpers/routines.js.map +1 -0
- package/dist/esm/helpers/sandboxes.d.ts +237 -0
- package/dist/esm/helpers/sandboxes.js +600 -0
- package/dist/esm/helpers/sandboxes.js.map +1 -0
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routines.d.ts +1 -0
- package/dist/esm/routines.js +5 -0
- package/dist/esm/routines.js.map +1 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/package.json +18 -7
- package/src/core/bytes.ts +112 -0
- package/src/core/client.ts +253 -33
- package/src/core/errors.ts +27 -10
- package/src/core/handle.ts +97 -0
- package/src/core/index.ts +7 -2
- package/src/core/login.ts +98 -0
- package/src/core/namespace.ts +1 -1
- package/src/core/op.ts +11 -1
- package/src/core/timing.ts +7 -2
- package/src/core/transport.ts +1 -1
- package/src/core/util.ts +53 -3
- package/src/core/ws.ts +11 -4
- package/src/generated/client.ts +2 -2
- package/src/generated/errors.ts +60 -0
- package/src/generated/jobs.ts +1 -1
- package/src/generated/ns/actions.ts +69 -6
- package/src/generated/ns/infer.ts +229 -61
- package/src/generated/ns/keys.ts +23 -0
- package/src/generated/ns/render.ts +152 -7
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +205 -9
- package/src/generated/ns/sandboxes.ts +434 -34
- package/src/generated/ns/vision.ts +168 -14
- package/src/generated/ns/webhooks.ts +8 -5
- package/src/generated/types.ts +2211 -422
- package/src/helpers/agents.ts +300 -0
- package/src/helpers/render.ts +91 -0
- package/src/helpers/routines.ts +278 -0
- package/src/helpers/sandboxes.ts +788 -0
- package/src/index.ts +29 -5
- package/src/routines.ts +5 -0
- package/src/webhooks.ts +5 -1
|
@@ -3,10 +3,13 @@ import { Namespace } from "../../core/namespace.ts";
|
|
|
3
3
|
import type { Op } from "../../core/op.ts";
|
|
4
4
|
import type { APIPromise, JobPromise, ListPromise } from "../../core/promise.ts";
|
|
5
5
|
import type { EventStream } from "../../core/sse.ts";
|
|
6
|
+
import { type ArtifactBytes } from "../../helpers/render.ts";
|
|
6
7
|
import type * as T from "../types.ts";
|
|
7
8
|
/** Descriptors of every render operation, keyed by method name (for tooling and custom clients). */
|
|
8
9
|
export declare const renderOps: {
|
|
9
10
|
readonly getArtifact: Op;
|
|
11
|
+
readonly listBackgrounds: Op;
|
|
12
|
+
readonly listBackgroundPacks: Op;
|
|
10
13
|
readonly listPresets: Op;
|
|
11
14
|
readonly listScreenshots: Op;
|
|
12
15
|
readonly createScreenshot: Op;
|
|
@@ -19,6 +22,8 @@ export declare const renderOps: {
|
|
|
19
22
|
readonly cancelVideo: Op;
|
|
20
23
|
readonly videoEvents: Op;
|
|
21
24
|
readonly restyleVideo: Op;
|
|
25
|
+
readonly unshareVideo: Op;
|
|
26
|
+
readonly shareVideo: Op;
|
|
22
27
|
readonly getVideoTimeline: Op;
|
|
23
28
|
};
|
|
24
29
|
/** Styled screenshots and product videos (`/v1/render`). */
|
|
@@ -33,12 +38,46 @@ export declare class RenderAPI extends Namespace {
|
|
|
33
38
|
* `GET /v1/render/artifacts/{artifact_id}` · scope `render:read` · served by the node
|
|
34
39
|
*/
|
|
35
40
|
getArtifact(artifactId: string, options?: RequestOptions): APIPromise<T.Artifact>;
|
|
41
|
+
/**
|
|
42
|
+
* List library backgrounds
|
|
43
|
+
*
|
|
44
|
+
* Lists the background library: backgrounds a style names with `overrides.background_ref`, with their license,
|
|
45
|
+
* source and a 360x200 thumbnail served by B3OS. Three kinds:
|
|
46
|
+
*
|
|
47
|
+
* - `css`: drawn by the compositor from CSS gradient layers (no image file), recolorable through `tokens`.
|
|
48
|
+
* - `procedural`: the `studio` pack, our own soft meshes computed by the compositor (no image file, no
|
|
49
|
+
* tokens); the ones tagged `auto` are the set the `auto` background preset picks from.
|
|
50
|
+
* - `image`: a lossless WebP from ScreenFramed's curated library (decisions T9 and T10: Sean's grants as owner
|
|
51
|
+
* of the library), up to 3840 px on the long edge, with its measured tone in `image` (theme, luminance, hue,
|
|
52
|
+
* detail; how `"auto"` matches a page). `image.coverage` is `full-bleed` for backgrounds; the `gradients`
|
|
53
|
+
* group holds transparent shapes (`cutout`) drawn over a matte.
|
|
54
|
+
*
|
|
55
|
+
* Rows are in `ref` order, paged by `limit` and `cursor`. A ref whose bytes equal an earlier one's still
|
|
56
|
+
* resolves but is not listed. Public: no API key, rate limited per client address, and answered from the
|
|
57
|
+
* edge's cache for up to 5 minutes.
|
|
58
|
+
*
|
|
59
|
+
* `GET /v1/render/backgrounds` · scope `public` · served by the node
|
|
60
|
+
*/
|
|
61
|
+
listBackgrounds(params?: T.RenderListBackgroundsParams, options?: RequestOptions): ListPromise<T.RenderBackgroundList, T.RenderBackground>;
|
|
62
|
+
/**
|
|
63
|
+
* List library background packs
|
|
64
|
+
*
|
|
65
|
+
* Lists the packs of the background library with their license, notice, source, entry count and a cover
|
|
66
|
+
* thumbnail: the CSS packs first, then the image packs by look (`quiet`, `bold`, `soft-photo`, `texture`,
|
|
67
|
+
* `scenic`, `loud`, `cutout`) and size. `auto` says whether `background_ref: "auto"` may pick from the pack.
|
|
68
|
+
* Public and edge-cached like `GET /v1/render/backgrounds`.
|
|
69
|
+
*
|
|
70
|
+
* `GET /v1/render/backgrounds/packs` · scope `public` · served by the node
|
|
71
|
+
*/
|
|
72
|
+
listBackgroundPacks(options?: RequestOptions): APIPromise<T.RenderBackgroundPackList>;
|
|
36
73
|
/**
|
|
37
74
|
* List style presets
|
|
38
75
|
*
|
|
39
|
-
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
76
|
+
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
77
|
+
* with a preview image for each. Public: no API key, rate limited per client address, and answered from the
|
|
78
|
+
* edge's cache for up to 5 minutes.
|
|
40
79
|
*
|
|
41
|
-
* `GET /v1/render/presets` · scope `
|
|
80
|
+
* `GET /v1/render/presets` · scope `public` · served by the node
|
|
42
81
|
*/
|
|
43
82
|
listPresets(params?: T.RenderListPresetsParams, options?: RequestOptions): APIPromise<T.PresetList>;
|
|
44
83
|
/**
|
|
@@ -57,6 +96,19 @@ export declare class RenderAPI extends Namespace {
|
|
|
57
96
|
* URLs, or the image bytes directly when `Accept` is `image/png`, `image/jpeg` or `image/webp`. `variants`
|
|
58
97
|
* adds extra encodings of the same capture. Bills one `render.screenshot` per capture plus one per variant.
|
|
59
98
|
*
|
|
99
|
+
* A page loaded from `url` is cleaned before the capture: consent walls, sign-up and app dialogs, dim layers
|
|
100
|
+
* and chat widgets are hidden (never clicked, so no consent is given), and with `block_ads` the empty slots of
|
|
101
|
+
* blocked ads collapse. The answer lists what was hidden in `overlays_removed`; `overlays: "keep"` leaves
|
|
102
|
+
* everything and says what is in view in `warnings`. A paywall or registration wall is the site's answer, not
|
|
103
|
+
* clutter: it stays in the image with its dim layer and scroll lock, and `page_state` says so. Readiness (`settle: "auto"`) finishes the page's
|
|
104
|
+
* entrance animations, and when the capture's main area comes back blank while the page is still loading or
|
|
105
|
+
* fading in, captures again every 100 ms for up to 1.5 s (`recapture_ms` in `timing`). Render cannot tell a
|
|
106
|
+
* beacon or a request that never answers from content on its way, so a sparse page that has finished can wait
|
|
107
|
+
* while one is open; a page with nothing coming pays only `ready_check_ms`. A page whose load event is held up (a script or tracker that never answers)
|
|
108
|
+
* is taken once its first screen has painted, from 2 s on (`wait_until: "auto"`, the default). `status_code`,
|
|
109
|
+
* `final_url` and `page_state` say what the site answered, and `warnings` what a caller should know: an error
|
|
110
|
+
* status, a main area that stayed blank, a page taken before its load event, overlays or a wall left in place.
|
|
111
|
+
*
|
|
60
112
|
* `POST /v1/render/screenshots` · scope `render:run` · served by the node
|
|
61
113
|
*/
|
|
62
114
|
createScreenshot(body: T.ScreenshotCreateRequest, options: RequestOptions & {
|
|
@@ -93,7 +145,9 @@ export declare class RenderAPI extends Namespace {
|
|
|
93
145
|
* Record a video
|
|
94
146
|
*
|
|
95
147
|
* Starts a job that records a scripted demo of `source.url`. Narration (`say`) is synthesized first with
|
|
96
|
-
* `/v1/infer/audio/speech
|
|
148
|
+
* `/v1/infer/audio/speech`, as the caller: it needs `infer:run` in the key's scopes too. Without it, or when
|
|
149
|
+
* speech is unavailable, the video is made silent with estimated word times and `result.narration.spoken` is
|
|
150
|
+
* false (without the scope, `result.warnings` has `narration_scope`, naming it); the director then places each beat's steps on its narration, plans cursor and
|
|
97
151
|
* camera, records segments in parallel on a virtual clock, composes at the output frame rate and encodes MP4
|
|
98
152
|
* (H.264, BT.709), GIF, poster and captions. Artifacts appear as they finish (`video.artifact` events, poster
|
|
99
153
|
* first). Bills `render.video_s` per second of output.
|
|
@@ -104,7 +158,7 @@ export declare class RenderAPI extends Namespace {
|
|
|
104
158
|
/**
|
|
105
159
|
* Delete a video
|
|
106
160
|
*
|
|
107
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts and its archived capture.
|
|
161
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share page and its archived capture.
|
|
108
162
|
*
|
|
109
163
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
110
164
|
*/
|
|
@@ -120,7 +174,8 @@ export declare class RenderAPI extends Namespace {
|
|
|
120
174
|
/**
|
|
121
175
|
* Cancel a video
|
|
122
176
|
*
|
|
123
|
-
* Stops the job
|
|
177
|
+
* Stops the job and marks the video canceled. A canceled video bills nothing: `render.video_s` is billed only
|
|
178
|
+
* when a video succeeds. A video that already finished answers 409.
|
|
124
179
|
*
|
|
125
180
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
126
181
|
*/
|
|
@@ -146,14 +201,48 @@ export declare class RenderAPI extends Namespace {
|
|
|
146
201
|
* `POST /v1/render/videos/{video_id}/restyle` · scope `render:run` · served by the node
|
|
147
202
|
*/
|
|
148
203
|
restyleVideo(videoId: string, body: T.VideoRestyleRequest, options?: RequestOptions): JobPromise<T.Video, T.VideoEvent>;
|
|
204
|
+
/**
|
|
205
|
+
* Stop sharing a video
|
|
206
|
+
*
|
|
207
|
+
* Deletes the video's share page; its link stops working within 60 seconds. The video stays, and so do the
|
|
208
|
+
* signed file links the page used (until the video expires); delete the video to end them. Works whether or not
|
|
209
|
+
* the `render.share_pages` flag is on.
|
|
210
|
+
*
|
|
211
|
+
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
212
|
+
*/
|
|
213
|
+
unshareVideo(videoId: string, options?: RequestOptions): APIPromise<T.Deleted>;
|
|
214
|
+
/**
|
|
215
|
+
* Share a video
|
|
216
|
+
*
|
|
217
|
+
* Makes a share page for a finished video: one HTML page on `usercontent.b3os.org` that plays the MP4 with its
|
|
218
|
+
* poster, captions and chapters, carries Open Graph tags for link previews, and works as an iframe embed on any
|
|
219
|
+
* site. No script runs on it (`Content-Security-Policy: sandbox`). The link is signed like every artifact URL and
|
|
220
|
+
* lasts as long as the video's MP4 (7 days by default). Sharing again returns the same page while it lasts
|
|
221
|
+
* (200); a new one answers 201.
|
|
222
|
+
*
|
|
223
|
+
* Off by default: creating a share page needs the `render.share_pages` feature flag on for your organization,
|
|
224
|
+
* and answers 404 `feature_not_enabled` without it. The page plays the video from the video's own signed file
|
|
225
|
+
* links, which stay valid until the video expires: stopping the share (or deleting the video) takes the page
|
|
226
|
+
* down within 60 seconds, but only deleting the video ends the file links a viewer or a link preview already
|
|
227
|
+
* has. There is no password option.
|
|
228
|
+
*
|
|
229
|
+
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
230
|
+
*/
|
|
231
|
+
shareVideo(videoId: string, body?: T.VideoShareRequest, options?: RequestOptions): APIPromise<T.VideoShare>;
|
|
149
232
|
/**
|
|
150
233
|
* Get a video's timeline
|
|
151
234
|
*
|
|
152
235
|
* Returns the compiled timeline of a video that has finished planning: beats, narration with word timings,
|
|
153
236
|
* the timed action list the recorder replayed, cursor path, camera keyframes, captions and style
|
|
154
|
-
* (`timeline.schema.json`). `frames=
|
|
237
|
+
* (`timeline.schema.json`). `frames=true` adds the per-frame compositor state (large; for debugging).
|
|
155
238
|
*
|
|
156
239
|
* `GET /v1/render/videos/{video_id}/timeline` · scope `render:read` · served by the node
|
|
157
240
|
*/
|
|
158
241
|
getVideoTimeline(videoId: string, params?: T.RenderGetVideoTimelineParams, options?: RequestOptions): APIPromise<T.RenderTimeline>;
|
|
242
|
+
/**
|
|
243
|
+
* An artifact's bytes (from a screenshot or video, or its URL). A client that reaches the node (its Unix socket,
|
|
244
|
+
* or a node URL inside a sandbox) reads them from the node's signed content route, so they never leave the
|
|
245
|
+
* machine; any other client fetches the usercontent URL as given.
|
|
246
|
+
*/
|
|
247
|
+
fetchArtifact(artifact: Pick<T.Artifact, "url" | "content_type"> | string, options?: RequestOptions): Promise<ArtifactBytes>;
|
|
159
248
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by packages/sdk/scripts/generate.mjs from packages/spec/dist. Do not edit; run `pnpm generate`.
|
|
2
2
|
import { isTerminalJobEvent } from "../../core/jobs.js";
|
|
3
3
|
import { Namespace } from "../../core/namespace.js";
|
|
4
|
+
import { fetchArtifact } from "../../helpers/render.js";
|
|
4
5
|
const getArtifactOp = {
|
|
5
6
|
id: "renderGetArtifact",
|
|
6
7
|
method: "GET",
|
|
@@ -9,12 +10,26 @@ const getArtifactOp = {
|
|
|
9
10
|
timeoutMs: 10000,
|
|
10
11
|
scope: "render:read",
|
|
11
12
|
};
|
|
13
|
+
const listBackgroundsOp = {
|
|
14
|
+
id: "renderListBackgrounds",
|
|
15
|
+
method: "GET",
|
|
16
|
+
path: "/v1/render/backgrounds",
|
|
17
|
+
timeoutMs: 10000,
|
|
18
|
+
scope: "public",
|
|
19
|
+
};
|
|
20
|
+
const listBackgroundPacksOp = {
|
|
21
|
+
id: "renderListBackgroundPacks",
|
|
22
|
+
method: "GET",
|
|
23
|
+
path: "/v1/render/backgrounds/packs",
|
|
24
|
+
timeoutMs: 10000,
|
|
25
|
+
scope: "public",
|
|
26
|
+
};
|
|
12
27
|
const listPresetsOp = {
|
|
13
28
|
id: "renderListPresets",
|
|
14
29
|
method: "GET",
|
|
15
30
|
path: "/v1/render/presets",
|
|
16
31
|
timeoutMs: 10000,
|
|
17
|
-
scope: "
|
|
32
|
+
scope: "public",
|
|
18
33
|
};
|
|
19
34
|
const listScreenshotsOp = {
|
|
20
35
|
id: "renderListScreenshots",
|
|
@@ -88,6 +103,23 @@ const videoEventsOp = {
|
|
|
88
103
|
timeoutMs: 3600000,
|
|
89
104
|
scope: "render:read",
|
|
90
105
|
};
|
|
106
|
+
const unshareVideoOp = {
|
|
107
|
+
id: "renderUnshareVideo",
|
|
108
|
+
method: "DELETE",
|
|
109
|
+
path: "/v1/render/videos/{video_id}/share",
|
|
110
|
+
params: ["video_id"],
|
|
111
|
+
timeoutMs: 10000,
|
|
112
|
+
scope: "render:write",
|
|
113
|
+
};
|
|
114
|
+
const shareVideoOp = {
|
|
115
|
+
id: "renderShareVideo",
|
|
116
|
+
method: "POST",
|
|
117
|
+
path: "/v1/render/videos/{video_id}/share",
|
|
118
|
+
params: ["video_id"],
|
|
119
|
+
body: "json",
|
|
120
|
+
timeoutMs: 10000,
|
|
121
|
+
scope: "render:write",
|
|
122
|
+
};
|
|
91
123
|
const getVideoTimelineOp = {
|
|
92
124
|
id: "renderGetVideoTimeline",
|
|
93
125
|
method: "GET",
|
|
@@ -122,6 +154,8 @@ const restyleVideoOp = {
|
|
|
122
154
|
/** Descriptors of every render operation, keyed by method name (for tooling and custom clients). */
|
|
123
155
|
export const renderOps = {
|
|
124
156
|
getArtifact: getArtifactOp,
|
|
157
|
+
listBackgrounds: listBackgroundsOp,
|
|
158
|
+
listBackgroundPacks: listBackgroundPacksOp,
|
|
125
159
|
listPresets: listPresetsOp,
|
|
126
160
|
listScreenshots: listScreenshotsOp,
|
|
127
161
|
createScreenshot: createScreenshotOp,
|
|
@@ -134,6 +168,8 @@ export const renderOps = {
|
|
|
134
168
|
cancelVideo: cancelVideoOp,
|
|
135
169
|
videoEvents: videoEventsOp,
|
|
136
170
|
restyleVideo: restyleVideoOp,
|
|
171
|
+
unshareVideo: unshareVideoOp,
|
|
172
|
+
shareVideo: shareVideoOp,
|
|
137
173
|
getVideoTimeline: getVideoTimelineOp,
|
|
138
174
|
};
|
|
139
175
|
/** Styled screenshots and product videos (`/v1/render`). */
|
|
@@ -150,12 +186,50 @@ export class RenderAPI extends Namespace {
|
|
|
150
186
|
getArtifact(artifactId, options) {
|
|
151
187
|
return this._client._call(getArtifactOp, { path: [artifactId] }, options);
|
|
152
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* List library backgrounds
|
|
191
|
+
*
|
|
192
|
+
* Lists the background library: backgrounds a style names with `overrides.background_ref`, with their license,
|
|
193
|
+
* source and a 360x200 thumbnail served by B3OS. Three kinds:
|
|
194
|
+
*
|
|
195
|
+
* - `css`: drawn by the compositor from CSS gradient layers (no image file), recolorable through `tokens`.
|
|
196
|
+
* - `procedural`: the `studio` pack, our own soft meshes computed by the compositor (no image file, no
|
|
197
|
+
* tokens); the ones tagged `auto` are the set the `auto` background preset picks from.
|
|
198
|
+
* - `image`: a lossless WebP from ScreenFramed's curated library (decisions T9 and T10: Sean's grants as owner
|
|
199
|
+
* of the library), up to 3840 px on the long edge, with its measured tone in `image` (theme, luminance, hue,
|
|
200
|
+
* detail; how `"auto"` matches a page). `image.coverage` is `full-bleed` for backgrounds; the `gradients`
|
|
201
|
+
* group holds transparent shapes (`cutout`) drawn over a matte.
|
|
202
|
+
*
|
|
203
|
+
* Rows are in `ref` order, paged by `limit` and `cursor`. A ref whose bytes equal an earlier one's still
|
|
204
|
+
* resolves but is not listed. Public: no API key, rate limited per client address, and answered from the
|
|
205
|
+
* edge's cache for up to 5 minutes.
|
|
206
|
+
*
|
|
207
|
+
* `GET /v1/render/backgrounds` · scope `public` · served by the node
|
|
208
|
+
*/
|
|
209
|
+
listBackgrounds(params, options) {
|
|
210
|
+
return this._client._list(listBackgroundsOp, { query: params }, options);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* List library background packs
|
|
214
|
+
*
|
|
215
|
+
* Lists the packs of the background library with their license, notice, source, entry count and a cover
|
|
216
|
+
* thumbnail: the CSS packs first, then the image packs by look (`quiet`, `bold`, `soft-photo`, `texture`,
|
|
217
|
+
* `scenic`, `loud`, `cutout`) and size. `auto` says whether `background_ref: "auto"` may pick from the pack.
|
|
218
|
+
* Public and edge-cached like `GET /v1/render/backgrounds`.
|
|
219
|
+
*
|
|
220
|
+
* `GET /v1/render/backgrounds/packs` · scope `public` · served by the node
|
|
221
|
+
*/
|
|
222
|
+
listBackgroundPacks(options) {
|
|
223
|
+
return this._client._call(listBackgroundPacksOp, {}, options);
|
|
224
|
+
}
|
|
153
225
|
/**
|
|
154
226
|
* List style presets
|
|
155
227
|
*
|
|
156
|
-
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
228
|
+
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
229
|
+
* with a preview image for each. Public: no API key, rate limited per client address, and answered from the
|
|
230
|
+
* edge's cache for up to 5 minutes.
|
|
157
231
|
*
|
|
158
|
-
* `GET /v1/render/presets` · scope `
|
|
232
|
+
* `GET /v1/render/presets` · scope `public` · served by the node
|
|
159
233
|
*/
|
|
160
234
|
listPresets(params, options) {
|
|
161
235
|
return this._client._call(listPresetsOp, { query: params }, options);
|
|
@@ -211,7 +285,9 @@ export class RenderAPI extends Namespace {
|
|
|
211
285
|
* Record a video
|
|
212
286
|
*
|
|
213
287
|
* Starts a job that records a scripted demo of `source.url`. Narration (`say`) is synthesized first with
|
|
214
|
-
* `/v1/infer/audio/speech
|
|
288
|
+
* `/v1/infer/audio/speech`, as the caller: it needs `infer:run` in the key's scopes too. Without it, or when
|
|
289
|
+
* speech is unavailable, the video is made silent with estimated word times and `result.narration.spoken` is
|
|
290
|
+
* false (without the scope, `result.warnings` has `narration_scope`, naming it); the director then places each beat's steps on its narration, plans cursor and
|
|
215
291
|
* camera, records segments in parallel on a virtual clock, composes at the output frame rate and encodes MP4
|
|
216
292
|
* (H.264, BT.709), GIF, poster and captions. Artifacts appear as they finish (`video.artifact` events, poster
|
|
217
293
|
* first). Bills `render.video_s` per second of output.
|
|
@@ -224,7 +300,7 @@ export class RenderAPI extends Namespace {
|
|
|
224
300
|
/**
|
|
225
301
|
* Delete a video
|
|
226
302
|
*
|
|
227
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts and its archived capture.
|
|
303
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share page and its archived capture.
|
|
228
304
|
*
|
|
229
305
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
230
306
|
*/
|
|
@@ -244,7 +320,8 @@ export class RenderAPI extends Namespace {
|
|
|
244
320
|
/**
|
|
245
321
|
* Cancel a video
|
|
246
322
|
*
|
|
247
|
-
* Stops the job
|
|
323
|
+
* Stops the job and marks the video canceled. A canceled video bills nothing: `render.video_s` is billed only
|
|
324
|
+
* when a video succeeds. A video that already finished answers 409.
|
|
248
325
|
*
|
|
249
326
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
250
327
|
*/
|
|
@@ -279,17 +356,57 @@ export class RenderAPI extends Namespace {
|
|
|
279
356
|
restyleVideo(videoId, body, options) {
|
|
280
357
|
return this._client._job(restyleVideoOp, { path: [videoId], body }, options);
|
|
281
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* Stop sharing a video
|
|
361
|
+
*
|
|
362
|
+
* Deletes the video's share page; its link stops working within 60 seconds. The video stays, and so do the
|
|
363
|
+
* signed file links the page used (until the video expires); delete the video to end them. Works whether or not
|
|
364
|
+
* the `render.share_pages` flag is on.
|
|
365
|
+
*
|
|
366
|
+
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
367
|
+
*/
|
|
368
|
+
unshareVideo(videoId, options) {
|
|
369
|
+
return this._client._call(unshareVideoOp, { path: [videoId] }, options);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Share a video
|
|
373
|
+
*
|
|
374
|
+
* Makes a share page for a finished video: one HTML page on `usercontent.b3os.org` that plays the MP4 with its
|
|
375
|
+
* poster, captions and chapters, carries Open Graph tags for link previews, and works as an iframe embed on any
|
|
376
|
+
* site. No script runs on it (`Content-Security-Policy: sandbox`). The link is signed like every artifact URL and
|
|
377
|
+
* lasts as long as the video's MP4 (7 days by default). Sharing again returns the same page while it lasts
|
|
378
|
+
* (200); a new one answers 201.
|
|
379
|
+
*
|
|
380
|
+
* Off by default: creating a share page needs the `render.share_pages` feature flag on for your organization,
|
|
381
|
+
* and answers 404 `feature_not_enabled` without it. The page plays the video from the video's own signed file
|
|
382
|
+
* links, which stay valid until the video expires: stopping the share (or deleting the video) takes the page
|
|
383
|
+
* down within 60 seconds, but only deleting the video ends the file links a viewer or a link preview already
|
|
384
|
+
* has. There is no password option.
|
|
385
|
+
*
|
|
386
|
+
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
387
|
+
*/
|
|
388
|
+
shareVideo(videoId, body, options) {
|
|
389
|
+
return this._client._call(shareVideoOp, { path: [videoId], body }, options);
|
|
390
|
+
}
|
|
282
391
|
/**
|
|
283
392
|
* Get a video's timeline
|
|
284
393
|
*
|
|
285
394
|
* Returns the compiled timeline of a video that has finished planning: beats, narration with word timings,
|
|
286
395
|
* the timed action list the recorder replayed, cursor path, camera keyframes, captions and style
|
|
287
|
-
* (`timeline.schema.json`). `frames=
|
|
396
|
+
* (`timeline.schema.json`). `frames=true` adds the per-frame compositor state (large; for debugging).
|
|
288
397
|
*
|
|
289
398
|
* `GET /v1/render/videos/{video_id}/timeline` · scope `render:read` · served by the node
|
|
290
399
|
*/
|
|
291
400
|
getVideoTimeline(videoId, params, options) {
|
|
292
401
|
return this._client._call(getVideoTimelineOp, { path: [videoId], query: params }, options);
|
|
293
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* An artifact's bytes (from a screenshot or video, or its URL). A client that reaches the node (its Unix socket,
|
|
405
|
+
* or a node URL inside a sandbox) reads them from the node's signed content route, so they never leave the
|
|
406
|
+
* machine; any other client fetches the usercontent URL as given.
|
|
407
|
+
*/
|
|
408
|
+
fetchArtifact(artifact, options) {
|
|
409
|
+
return fetchArtifact(this._client, artifact, options);
|
|
410
|
+
}
|
|
294
411
|
}
|
|
295
412
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/generated/ns/render.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/generated/ns/render.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAsB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG5E,MAAM,aAAa,GAAO;IACxB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oCAAoC;IAC1C,MAAM,EAAE,CAAC,aAAa,CAAC;IACvB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,iBAAiB,GAAO;IAC5B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,MAAM,qBAAqB,GAAO;IAChC,EAAE,EAAE,2BAA2B;IAC/B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,8BAA8B;IACpC,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,MAAM,aAAa,GAAO;IACxB,EA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ACf,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAmB,kBAAkB,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/G,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,QAA2D,EAC3D,OAAwB;QAExB,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -14,7 +14,9 @@ export declare class RequestsAPI extends Namespace {
|
|
|
14
14
|
* List requests
|
|
15
15
|
*
|
|
16
16
|
* Lists the requests the node served for your project in the last 7 days, newest first, over every connection
|
|
17
|
-
* kind, filterable by product, operation, status, key, connection kind and
|
|
17
|
+
* kind, filterable by product, operation, status, key, source, connection kind, sandbox and trace. Every source
|
|
18
|
+
* is listed unless `source` narrows it (the dashboard's Requests page leaves `dashboard` out until you show it).
|
|
19
|
+
* Requests the edge answered
|
|
18
20
|
* without forwarding them (edge-served operations, or requests refused before forwarding) are not listed; get
|
|
19
21
|
* those by ID. The edge forwards this operation and merges its `edge_*` phases into each record.
|
|
20
22
|
*
|
|
@@ -23,7 +23,9 @@ export class RequestsAPI extends Namespace {
|
|
|
23
23
|
* List requests
|
|
24
24
|
*
|
|
25
25
|
* Lists the requests the node served for your project in the last 7 days, newest first, over every connection
|
|
26
|
-
* kind, filterable by product, operation, status, key, connection kind and
|
|
26
|
+
* kind, filterable by product, operation, status, key, source, connection kind, sandbox and trace. Every source
|
|
27
|
+
* is listed unless `source` narrows it (the dashboard's Requests page leaves `dashboard` out until you show it).
|
|
28
|
+
* Requests the edge answered
|
|
27
29
|
* without forwarding them (edge-served operations, or requests refused before forwarding) are not listed; get
|
|
28
30
|
* those by ID. The edge forwards this operation and merges its `edge_*` phases into each record.
|
|
29
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../../src/generated/ns/requests.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,sBAAsB;IAC1B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,oBAAoB;IACxB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,CAAC,YAAY,CAAC;IACtB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AAEF,sGAAsG;AACtG,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAW,CAAC;AAE/F,sEAAsE;AACtE,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../../src/generated/ns/requests.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,sBAAsB;IAC1B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,oBAAoB;IACxB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,CAAC,YAAY,CAAC;IACtB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AAEF,sGAAsG;AACtG,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,YAAY,EAAE,cAAc,E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