@b3os/sdk 0.1.0 → 0.2.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/README.md +172 -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 +80 -3
- package/dist/cjs/core/client.js +236 -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 +36 -0
- package/dist/cjs/core/handle.js +97 -0
- package/dist/cjs/core/handle.js.map +1 -0
- package/dist/cjs/core/index.d.ts +8 -4
- package/dist/cjs/core/index.js +14 -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/traces-api.d.ts +42 -0
- package/dist/cjs/core/traces-api.js +54 -0
- package/dist/cjs/core/traces-api.js.map +1 -0
- package/dist/cjs/core/traces.d.ts +120 -0
- package/dist/cjs/core/traces.js +306 -0
- package/dist/cjs/core/traces.js.map +1 -0
- 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 +42 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/ids.d.ts +12 -0
- package/dist/cjs/generated/ids.js +3 -0
- package/dist/cjs/generated/ids.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 +14 -1
- package/dist/cjs/generated/ns/keys.js +24 -1
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +115 -6
- package/dist/cjs/generated/ns/render.js +135 -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 +327 -31
- package/dist/cjs/generated/ns/sandboxes.js +417 -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 +2750 -328
- 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 +80 -3
- package/dist/esm/core/client.js +233 -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 +36 -0
- package/dist/esm/core/handle.js +93 -0
- package/dist/esm/core/handle.js.map +1 -0
- package/dist/esm/core/index.d.ts +8 -4
- package/dist/esm/core/index.js +6 -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/traces-api.d.ts +42 -0
- package/dist/esm/core/traces-api.js +50 -0
- package/dist/esm/core/traces-api.js.map +1 -0
- package/dist/esm/core/traces.d.ts +120 -0
- package/dist/esm/core/traces.js +295 -0
- package/dist/esm/core/traces.js.map +1 -0
- 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 +42 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/ids.d.ts +12 -0
- package/dist/esm/generated/ids.js +3 -0
- package/dist/esm/generated/ids.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 +14 -1
- package/dist/esm/generated/ns/keys.js +24 -1
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +115 -6
- package/dist/esm/generated/ns/render.js +135 -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 +327 -31
- package/dist/esm/generated/ns/sandboxes.js +417 -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 +2750 -328
- 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 +14 -3
- package/src/core/bytes.ts +112 -0
- package/src/core/client.ts +285 -33
- package/src/core/errors.ts +27 -10
- package/src/core/handle.ts +107 -0
- package/src/core/index.ts +17 -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/traces-api.ts +80 -0
- package/src/core/traces.ts +375 -0
- 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 +84 -0
- package/src/generated/ids.ts +3 -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 +25 -1
- package/src/generated/ns/render.ts +172 -7
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +205 -9
- package/src/generated/ns/sandboxes.ts +493 -34
- package/src/generated/ns/vision.ts +168 -14
- package/src/generated/ns/webhooks.ts +8 -5
- package/src/generated/types.ts +3034 -472
- 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,48 @@ 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 a screenshot's `auto` background (and anything's `studio`)
|
|
50
|
+
* picks from.
|
|
51
|
+
* - `image`: a lossless WebP from ScreenFramed's curated library (decisions T9 and T10: Sean's grants as owner
|
|
52
|
+
* of the library), up to 3840 px on the long edge, with its measured tone in `image` (theme, luminance, hue,
|
|
53
|
+
* detail; how `"auto"` matches a page). `image.coverage` is `full-bleed` for backgrounds; the `gradients`
|
|
54
|
+
* group holds transparent shapes (`cutout`) drawn over a matte. The images tagged `video` are the set a video's
|
|
55
|
+
* `auto` background picks from.
|
|
56
|
+
*
|
|
57
|
+
* Rows are in `ref` order, paged by `limit` and `cursor`. A ref whose bytes equal an earlier one's still
|
|
58
|
+
* resolves but is not listed. Public: no API key, rate limited per client address, and answered from the
|
|
59
|
+
* edge's cache for up to 5 minutes.
|
|
60
|
+
*
|
|
61
|
+
* `GET /v1/render/backgrounds` · scope `public` · served by the node
|
|
62
|
+
*/
|
|
63
|
+
listBackgrounds(params?: T.RenderListBackgroundsParams, options?: RequestOptions): ListPromise<T.RenderBackgroundList, T.RenderBackground>;
|
|
64
|
+
/**
|
|
65
|
+
* List library background packs
|
|
66
|
+
*
|
|
67
|
+
* Lists the packs of the background library with their license, notice, source, entry count and a cover
|
|
68
|
+
* thumbnail: the CSS packs first, then the image packs by look (`quiet`, `bold`, `soft-photo`, `texture`,
|
|
69
|
+
* `scenic`, `loud`, `cutout`) and size. `auto` says whether `background_ref: "auto"` may pick from the pack.
|
|
70
|
+
* Public and edge-cached like `GET /v1/render/backgrounds`.
|
|
71
|
+
*
|
|
72
|
+
* `GET /v1/render/backgrounds/packs` · scope `public` · served by the node
|
|
73
|
+
*/
|
|
74
|
+
listBackgroundPacks(options?: RequestOptions): APIPromise<T.RenderBackgroundPackList>;
|
|
36
75
|
/**
|
|
37
76
|
* List style presets
|
|
38
77
|
*
|
|
39
|
-
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
78
|
+
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
79
|
+
* with a preview image for each. Public: no API key, rate limited per client address, and answered from the
|
|
80
|
+
* edge's cache for up to 5 minutes.
|
|
40
81
|
*
|
|
41
|
-
* `GET /v1/render/presets` · scope `
|
|
82
|
+
* `GET /v1/render/presets` · scope `public` · served by the node
|
|
42
83
|
*/
|
|
43
84
|
listPresets(params?: T.RenderListPresetsParams, options?: RequestOptions): APIPromise<T.PresetList>;
|
|
44
85
|
/**
|
|
@@ -57,6 +98,28 @@ export declare class RenderAPI extends Namespace {
|
|
|
57
98
|
* URLs, or the image bytes directly when `Accept` is `image/png`, `image/jpeg` or `image/webp`. `variants`
|
|
58
99
|
* adds extra encodings of the same capture. Bills one `render.screenshot` per capture plus one per variant.
|
|
59
100
|
*
|
|
101
|
+
* A page loaded from `url` is cleaned before the capture: consent walls, sign-up and app dialogs, dim layers
|
|
102
|
+
* and chat widgets are hidden (never clicked, so no consent is given), and with `block_ads` the empty slots of
|
|
103
|
+
* blocked ads collapse. The answer lists what was hidden in `overlays_removed`; `overlays: "keep"` leaves
|
|
104
|
+
* everything and says what is in view in `warnings`. A paywall or registration wall is the site's answer, not
|
|
105
|
+
* 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
|
|
106
|
+
* entrance animations, and when the capture's main area comes back blank while the page is still loading or
|
|
107
|
+
* fading in, captures again every 100 ms for up to 1.5 s (`recapture_ms` in `timing`). Render cannot tell a
|
|
108
|
+
* beacon or a request that never answers from content on its way, so a sparse page that has finished can wait
|
|
109
|
+
* 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)
|
|
110
|
+
* is taken once its first screen has painted, from 2 s on (`wait_until: "auto"`, the default). `status_code`,
|
|
111
|
+
* `final_url` and `page_state` say what the site answered, and `warnings` what a caller should know: an error
|
|
112
|
+
* status, a main area that stayed blank, a page taken before its load event, overlays or a wall left in place.
|
|
113
|
+
*
|
|
114
|
+
* `profile` names a vision profile (ID or name) of the key's project: its cookies and storage load into the
|
|
115
|
+
* page's own browser context before the page loads, so the capture shows the page signed in. It needs
|
|
116
|
+
* `vision:profiles:use` (403 without it, 404 `profile_not_found` for a profile the project does not have),
|
|
117
|
+
* and the answer's `source.profile` is the profile's `prof_` ID. Render writes the state into no answer,
|
|
118
|
+
* stored record or log line, but the image shows whatever the signed-in page shows: treat it and its link as
|
|
119
|
+
* private. A page that is still signed out after the profile loads (a sign-in form, a 401 or 403, a move to a
|
|
120
|
+
* sign-in page, or a sign-in wall) fails with 422 `profile_expired` and bills nothing: sign in again and save
|
|
121
|
+
* the profile.
|
|
122
|
+
*
|
|
60
123
|
* `POST /v1/render/screenshots` · scope `render:run` · served by the node
|
|
61
124
|
*/
|
|
62
125
|
createScreenshot(body: T.ScreenshotCreateRequest, options: RequestOptions & {
|
|
@@ -93,18 +156,29 @@ export declare class RenderAPI extends Namespace {
|
|
|
93
156
|
* Record a video
|
|
94
157
|
*
|
|
95
158
|
* Starts a job that records a scripted demo of `source.url`. Narration (`say`) is synthesized first with
|
|
96
|
-
* `/v1/infer/audio/speech
|
|
159
|
+
* `/v1/infer/audio/speech`, as the caller: it needs `infer:run` in the key's scopes too. Without it, or when
|
|
160
|
+
* speech is unavailable, the video is made silent with estimated word times and `result.narration.spoken` is
|
|
161
|
+
* 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
162
|
* camera, records segments in parallel on a virtual clock, composes at the output frame rate and encodes MP4
|
|
98
163
|
* (H.264, BT.709), GIF, poster and captions. Artifacts appear as they finish (`video.artifact` events, poster
|
|
99
164
|
* first). Bills `render.video_s` per second of output.
|
|
100
165
|
*
|
|
166
|
+
* `source.profile` names a vision profile (ID or name) of the key's project, found when the video is made
|
|
167
|
+
* (403 without `vision:profiles:use`, 404 `profile_not_found`). When the job runs, its state loads into the
|
|
168
|
+
* probe's browser context and every capture segment's, so the whole video is recorded signed in; the video,
|
|
169
|
+
* its timeline and its events name the profile by its `prof_` ID only, but the video shows whatever the
|
|
170
|
+
* signed-in pages show: treat it and its links as private. A page that opens still signed out (a sign-in form,
|
|
171
|
+
* a 401 or 403, or a move to a sign-in page) ends the job with `profile_expired` before any step runs, and
|
|
172
|
+
* nothing is billed. A recording made with a
|
|
173
|
+
* profile is reused (`recording.reuse`) only by videos with the same revision of the same profile.
|
|
174
|
+
*
|
|
101
175
|
* `POST /v1/render/videos` · scope `render:run` · served by the node
|
|
102
176
|
*/
|
|
103
177
|
createVideo(body: T.VideoCreateRequest, options?: RequestOptions): JobPromise<T.Video, T.VideoEvent>;
|
|
104
178
|
/**
|
|
105
179
|
* Delete a video
|
|
106
180
|
*
|
|
107
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts and its archived capture.
|
|
181
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share page and its archived capture.
|
|
108
182
|
*
|
|
109
183
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
110
184
|
*/
|
|
@@ -120,7 +194,8 @@ export declare class RenderAPI extends Namespace {
|
|
|
120
194
|
/**
|
|
121
195
|
* Cancel a video
|
|
122
196
|
*
|
|
123
|
-
* Stops the job
|
|
197
|
+
* Stops the job and marks the video canceled. A canceled video bills nothing: `render.video_s` is billed only
|
|
198
|
+
* when a video succeeds. A video that already finished answers 409.
|
|
124
199
|
*
|
|
125
200
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
126
201
|
*/
|
|
@@ -146,14 +221,48 @@ export declare class RenderAPI extends Namespace {
|
|
|
146
221
|
* `POST /v1/render/videos/{video_id}/restyle` · scope `render:run` · served by the node
|
|
147
222
|
*/
|
|
148
223
|
restyleVideo(videoId: string, body: T.VideoRestyleRequest, options?: RequestOptions): JobPromise<T.Video, T.VideoEvent>;
|
|
224
|
+
/**
|
|
225
|
+
* Stop sharing a video
|
|
226
|
+
*
|
|
227
|
+
* Deletes the video's share page; its link stops working within 60 seconds. The video stays, and so do the
|
|
228
|
+
* signed file links the page used (until the video expires); delete the video to end them. Works whether or not
|
|
229
|
+
* the `render.share_pages` flag is on.
|
|
230
|
+
*
|
|
231
|
+
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
232
|
+
*/
|
|
233
|
+
unshareVideo(videoId: string, options?: RequestOptions): APIPromise<T.Deleted>;
|
|
234
|
+
/**
|
|
235
|
+
* Share a video
|
|
236
|
+
*
|
|
237
|
+
* Makes a share page for a finished video: one HTML page on `usercontent.b3os.org` that plays the MP4 with its
|
|
238
|
+
* poster, captions and chapters, carries Open Graph tags for link previews, and works as an iframe embed on any
|
|
239
|
+
* site. No script runs on it (`Content-Security-Policy: sandbox`). The link is signed like every artifact URL and
|
|
240
|
+
* lasts as long as the video's MP4 (7 days by default). Sharing again returns the same page while it lasts
|
|
241
|
+
* (200); a new one answers 201.
|
|
242
|
+
*
|
|
243
|
+
* Off by default: creating a share page needs the `render.share_pages` feature flag on for your organization,
|
|
244
|
+
* and answers 404 `feature_not_enabled` without it. The page plays the video from the video's own signed file
|
|
245
|
+
* links, which stay valid until the video expires: stopping the share (or deleting the video) takes the page
|
|
246
|
+
* down within 60 seconds, but only deleting the video ends the file links a viewer or a link preview already
|
|
247
|
+
* has. There is no password option.
|
|
248
|
+
*
|
|
249
|
+
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
250
|
+
*/
|
|
251
|
+
shareVideo(videoId: string, body?: T.VideoShareRequest, options?: RequestOptions): APIPromise<T.VideoShare>;
|
|
149
252
|
/**
|
|
150
253
|
* Get a video's timeline
|
|
151
254
|
*
|
|
152
255
|
* Returns the compiled timeline of a video that has finished planning: beats, narration with word timings,
|
|
153
256
|
* the timed action list the recorder replayed, cursor path, camera keyframes, captions and style
|
|
154
|
-
* (`timeline.schema.json`). `frames=
|
|
257
|
+
* (`timeline.schema.json`). `frames=true` adds the per-frame compositor state (large; for debugging).
|
|
155
258
|
*
|
|
156
259
|
* `GET /v1/render/videos/{video_id}/timeline` · scope `render:read` · served by the node
|
|
157
260
|
*/
|
|
158
261
|
getVideoTimeline(videoId: string, params?: T.RenderGetVideoTimelineParams, options?: RequestOptions): APIPromise<T.RenderTimeline>;
|
|
262
|
+
/**
|
|
263
|
+
* An artifact's bytes (from a screenshot or video, or its URL). A client that reaches the node (its Unix socket,
|
|
264
|
+
* or a node URL inside a sandbox) reads them from the node's signed content route, so they never leave the
|
|
265
|
+
* machine; any other client fetches the usercontent URL as given.
|
|
266
|
+
*/
|
|
267
|
+
fetchArtifact(artifact: Pick<T.Artifact, "url" | "content_type"> | string, options?: RequestOptions): Promise<ArtifactBytes>;
|
|
159
268
|
}
|
|
@@ -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,52 @@ 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 a screenshot's `auto` background (and anything's `studio`)
|
|
198
|
+
* picks from.
|
|
199
|
+
* - `image`: a lossless WebP from ScreenFramed's curated library (decisions T9 and T10: Sean's grants as owner
|
|
200
|
+
* of the library), up to 3840 px on the long edge, with its measured tone in `image` (theme, luminance, hue,
|
|
201
|
+
* detail; how `"auto"` matches a page). `image.coverage` is `full-bleed` for backgrounds; the `gradients`
|
|
202
|
+
* group holds transparent shapes (`cutout`) drawn over a matte. The images tagged `video` are the set a video's
|
|
203
|
+
* `auto` background picks from.
|
|
204
|
+
*
|
|
205
|
+
* Rows are in `ref` order, paged by `limit` and `cursor`. A ref whose bytes equal an earlier one's still
|
|
206
|
+
* resolves but is not listed. Public: no API key, rate limited per client address, and answered from the
|
|
207
|
+
* edge's cache for up to 5 minutes.
|
|
208
|
+
*
|
|
209
|
+
* `GET /v1/render/backgrounds` · scope `public` · served by the node
|
|
210
|
+
*/
|
|
211
|
+
listBackgrounds(params, options) {
|
|
212
|
+
return this._client._list(listBackgroundsOp, { query: params }, options);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* List library background packs
|
|
216
|
+
*
|
|
217
|
+
* Lists the packs of the background library with their license, notice, source, entry count and a cover
|
|
218
|
+
* thumbnail: the CSS packs first, then the image packs by look (`quiet`, `bold`, `soft-photo`, `texture`,
|
|
219
|
+
* `scenic`, `loud`, `cutout`) and size. `auto` says whether `background_ref: "auto"` may pick from the pack.
|
|
220
|
+
* Public and edge-cached like `GET /v1/render/backgrounds`.
|
|
221
|
+
*
|
|
222
|
+
* `GET /v1/render/backgrounds/packs` · scope `public` · served by the node
|
|
223
|
+
*/
|
|
224
|
+
listBackgroundPacks(options) {
|
|
225
|
+
return this._client._call(listBackgroundPacksOp, {}, options);
|
|
226
|
+
}
|
|
153
227
|
/**
|
|
154
228
|
* List style presets
|
|
155
229
|
*
|
|
156
|
-
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
230
|
+
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
231
|
+
* with a preview image for each. Public: no API key, rate limited per client address, and answered from the
|
|
232
|
+
* edge's cache for up to 5 minutes.
|
|
157
233
|
*
|
|
158
|
-
* `GET /v1/render/presets` · scope `
|
|
234
|
+
* `GET /v1/render/presets` · scope `public` · served by the node
|
|
159
235
|
*/
|
|
160
236
|
listPresets(params, options) {
|
|
161
237
|
return this._client._call(listPresetsOp, { query: params }, options);
|
|
@@ -211,11 +287,22 @@ export class RenderAPI extends Namespace {
|
|
|
211
287
|
* Record a video
|
|
212
288
|
*
|
|
213
289
|
* Starts a job that records a scripted demo of `source.url`. Narration (`say`) is synthesized first with
|
|
214
|
-
* `/v1/infer/audio/speech
|
|
290
|
+
* `/v1/infer/audio/speech`, as the caller: it needs `infer:run` in the key's scopes too. Without it, or when
|
|
291
|
+
* speech is unavailable, the video is made silent with estimated word times and `result.narration.spoken` is
|
|
292
|
+
* 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
293
|
* camera, records segments in parallel on a virtual clock, composes at the output frame rate and encodes MP4
|
|
216
294
|
* (H.264, BT.709), GIF, poster and captions. Artifacts appear as they finish (`video.artifact` events, poster
|
|
217
295
|
* first). Bills `render.video_s` per second of output.
|
|
218
296
|
*
|
|
297
|
+
* `source.profile` names a vision profile (ID or name) of the key's project, found when the video is made
|
|
298
|
+
* (403 without `vision:profiles:use`, 404 `profile_not_found`). When the job runs, its state loads into the
|
|
299
|
+
* probe's browser context and every capture segment's, so the whole video is recorded signed in; the video,
|
|
300
|
+
* its timeline and its events name the profile by its `prof_` ID only, but the video shows whatever the
|
|
301
|
+
* signed-in pages show: treat it and its links as private. A page that opens still signed out (a sign-in form,
|
|
302
|
+
* a 401 or 403, or a move to a sign-in page) ends the job with `profile_expired` before any step runs, and
|
|
303
|
+
* nothing is billed. A recording made with a
|
|
304
|
+
* profile is reused (`recording.reuse`) only by videos with the same revision of the same profile.
|
|
305
|
+
*
|
|
219
306
|
* `POST /v1/render/videos` · scope `render:run` · served by the node
|
|
220
307
|
*/
|
|
221
308
|
createVideo(body, options) {
|
|
@@ -224,7 +311,7 @@ export class RenderAPI extends Namespace {
|
|
|
224
311
|
/**
|
|
225
312
|
* Delete a video
|
|
226
313
|
*
|
|
227
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts and its archived capture.
|
|
314
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share page and its archived capture.
|
|
228
315
|
*
|
|
229
316
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
230
317
|
*/
|
|
@@ -244,7 +331,8 @@ export class RenderAPI extends Namespace {
|
|
|
244
331
|
/**
|
|
245
332
|
* Cancel a video
|
|
246
333
|
*
|
|
247
|
-
* Stops the job
|
|
334
|
+
* Stops the job and marks the video canceled. A canceled video bills nothing: `render.video_s` is billed only
|
|
335
|
+
* when a video succeeds. A video that already finished answers 409.
|
|
248
336
|
*
|
|
249
337
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
250
338
|
*/
|
|
@@ -279,17 +367,57 @@ export class RenderAPI extends Namespace {
|
|
|
279
367
|
restyleVideo(videoId, body, options) {
|
|
280
368
|
return this._client._job(restyleVideoOp, { path: [videoId], body }, options);
|
|
281
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Stop sharing a video
|
|
372
|
+
*
|
|
373
|
+
* Deletes the video's share page; its link stops working within 60 seconds. The video stays, and so do the
|
|
374
|
+
* signed file links the page used (until the video expires); delete the video to end them. Works whether or not
|
|
375
|
+
* the `render.share_pages` flag is on.
|
|
376
|
+
*
|
|
377
|
+
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
378
|
+
*/
|
|
379
|
+
unshareVideo(videoId, options) {
|
|
380
|
+
return this._client._call(unshareVideoOp, { path: [videoId] }, options);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Share a video
|
|
384
|
+
*
|
|
385
|
+
* Makes a share page for a finished video: one HTML page on `usercontent.b3os.org` that plays the MP4 with its
|
|
386
|
+
* poster, captions and chapters, carries Open Graph tags for link previews, and works as an iframe embed on any
|
|
387
|
+
* site. No script runs on it (`Content-Security-Policy: sandbox`). The link is signed like every artifact URL and
|
|
388
|
+
* lasts as long as the video's MP4 (7 days by default). Sharing again returns the same page while it lasts
|
|
389
|
+
* (200); a new one answers 201.
|
|
390
|
+
*
|
|
391
|
+
* Off by default: creating a share page needs the `render.share_pages` feature flag on for your organization,
|
|
392
|
+
* and answers 404 `feature_not_enabled` without it. The page plays the video from the video's own signed file
|
|
393
|
+
* links, which stay valid until the video expires: stopping the share (or deleting the video) takes the page
|
|
394
|
+
* down within 60 seconds, but only deleting the video ends the file links a viewer or a link preview already
|
|
395
|
+
* has. There is no password option.
|
|
396
|
+
*
|
|
397
|
+
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
398
|
+
*/
|
|
399
|
+
shareVideo(videoId, body, options) {
|
|
400
|
+
return this._client._call(shareVideoOp, { path: [videoId], body }, options);
|
|
401
|
+
}
|
|
282
402
|
/**
|
|
283
403
|
* Get a video's timeline
|
|
284
404
|
*
|
|
285
405
|
* Returns the compiled timeline of a video that has finished planning: beats, narration with word timings,
|
|
286
406
|
* the timed action list the recorder replayed, cursor path, camera keyframes, captions and style
|
|
287
|
-
* (`timeline.schema.json`). `frames=
|
|
407
|
+
* (`timeline.schema.json`). `frames=true` adds the per-frame compositor state (large; for debugging).
|
|
288
408
|
*
|
|
289
409
|
* `GET /v1/render/videos/{video_id}/timeline` · scope `render:read` · served by the node
|
|
290
410
|
*/
|
|
291
411
|
getVideoTimeline(videoId, params, options) {
|
|
292
412
|
return this._client._call(getVideoTimelineOp, { path: [videoId], query: params }, options);
|
|
293
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* An artifact's bytes (from a screenshot or video, or its URL). A client that reaches the node (its Unix socket,
|
|
416
|
+
* or a node URL inside a sandbox) reads them from the node's signed content route, so they never leave the
|
|
417
|
+
* machine; any other client fetches the usercontent URL as given.
|
|
418
|
+
*/
|
|
419
|
+
fetchArtifact(artifact, options) {
|
|
420
|
+
return fetchArtifact(this._client, artifact, options);
|
|
421
|
+
}
|
|
294
422
|
}
|
|
295
423
|
//# 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,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oBAAoB;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,MAAM,iBAAiB,GAAO;IAC5B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,SAAS,EAAE,KAA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;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,E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