@b3os/sdk 0.2.1 → 0.2.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 +1 -1
- package/dist/cjs/core/util.d.ts +1 -1
- package/dist/cjs/core/util.js +1 -1
- package/dist/cjs/generated/client.d.ts +18 -0
- package/dist/cjs/generated/client.js +34 -0
- package/dist/cjs/generated/client.js.map +1 -1
- package/dist/cjs/generated/errors.d.ts +1 -1
- package/dist/cjs/generated/errors.js +120 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/ids.d.ts +89 -0
- package/dist/cjs/generated/ids.js +22 -0
- package/dist/cjs/generated/ids.js.map +1 -1
- package/dist/cjs/generated/jobs.js +4 -0
- package/dist/cjs/generated/jobs.js.map +1 -1
- package/dist/cjs/generated/ns/actions.d.ts +267 -33
- package/dist/cjs/generated/ns/actions.js +375 -33
- package/dist/cjs/generated/ns/actions.js.map +1 -1
- package/dist/cjs/generated/ns/agents.d.ts +656 -0
- package/dist/cjs/generated/ns/agents.js +989 -0
- package/dist/cjs/generated/ns/agents.js.map +1 -0
- package/dist/cjs/generated/ns/images.d.ts +162 -0
- package/dist/cjs/generated/ns/images.js +246 -0
- package/dist/cjs/generated/ns/images.js.map +1 -0
- package/dist/cjs/generated/ns/infer.d.ts +71 -3
- package/dist/cjs/generated/ns/infer.js +98 -3
- package/dist/cjs/generated/ns/infer.js.map +1 -1
- package/dist/cjs/generated/ns/keys.d.ts +3 -1
- package/dist/cjs/generated/ns/keys.js +3 -1
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/listeners.d.ts +163 -0
- package/dist/cjs/generated/ns/listeners.js +268 -0
- package/dist/cjs/generated/ns/listeners.js.map +1 -0
- package/dist/cjs/generated/ns/orgs.d.ts +10 -0
- package/dist/cjs/generated/ns/orgs.js +26 -1
- package/dist/cjs/generated/ns/orgs.js.map +1 -1
- package/dist/cjs/generated/ns/projects.d.ts +32 -0
- package/dist/cjs/generated/ns/projects.js +66 -0
- package/dist/cjs/generated/ns/projects.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +192 -21
- package/dist/cjs/generated/ns/render.js +267 -24
- 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 +22 -4
- package/dist/cjs/generated/ns/routines.js +22 -4
- package/dist/cjs/generated/ns/routines.js.map +1 -1
- package/dist/cjs/generated/ns/sandboxes.d.ts +431 -7
- package/dist/cjs/generated/ns/sandboxes.js +633 -6
- package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
- package/dist/cjs/generated/ns/usage.d.ts +1 -1
- package/dist/cjs/generated/ns/usage.js +1 -1
- package/dist/cjs/generated/ns/vision.d.ts +113 -17
- package/dist/cjs/generated/ns/vision.js +152 -21
- package/dist/cjs/generated/ns/vision.js.map +1 -1
- package/dist/cjs/generated/ns/workspaces.d.ts +225 -0
- package/dist/cjs/generated/ns/workspaces.js +410 -0
- package/dist/cjs/generated/ns/workspaces.js.map +1 -0
- package/dist/cjs/generated/types.d.ts +5259 -605
- package/dist/cjs/helpers/sandboxes.d.ts +20 -1
- package/dist/cjs/helpers/sandboxes.js +13 -1
- package/dist/cjs/helpers/sandboxes.js.map +1 -1
- package/dist/esm/core/util.d.ts +1 -1
- package/dist/esm/core/util.js +1 -1
- package/dist/esm/generated/client.d.ts +18 -0
- package/dist/esm/generated/client.js +34 -0
- package/dist/esm/generated/client.js.map +1 -1
- package/dist/esm/generated/errors.d.ts +1 -1
- package/dist/esm/generated/errors.js +120 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/ids.d.ts +89 -0
- package/dist/esm/generated/ids.js +22 -0
- package/dist/esm/generated/ids.js.map +1 -1
- package/dist/esm/generated/jobs.js +4 -0
- package/dist/esm/generated/jobs.js.map +1 -1
- package/dist/esm/generated/ns/actions.d.ts +267 -33
- package/dist/esm/generated/ns/actions.js +375 -33
- package/dist/esm/generated/ns/actions.js.map +1 -1
- package/dist/esm/generated/ns/agents.d.ts +656 -0
- package/dist/esm/generated/ns/agents.js +985 -0
- package/dist/esm/generated/ns/agents.js.map +1 -0
- package/dist/esm/generated/ns/images.d.ts +162 -0
- package/dist/esm/generated/ns/images.js +242 -0
- package/dist/esm/generated/ns/images.js.map +1 -0
- package/dist/esm/generated/ns/infer.d.ts +71 -3
- package/dist/esm/generated/ns/infer.js +98 -3
- package/dist/esm/generated/ns/infer.js.map +1 -1
- package/dist/esm/generated/ns/keys.d.ts +3 -1
- package/dist/esm/generated/ns/keys.js +3 -1
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/listeners.d.ts +163 -0
- package/dist/esm/generated/ns/listeners.js +264 -0
- package/dist/esm/generated/ns/listeners.js.map +1 -0
- package/dist/esm/generated/ns/orgs.d.ts +10 -0
- package/dist/esm/generated/ns/orgs.js +26 -1
- package/dist/esm/generated/ns/orgs.js.map +1 -1
- package/dist/esm/generated/ns/projects.d.ts +32 -0
- package/dist/esm/generated/ns/projects.js +66 -0
- package/dist/esm/generated/ns/projects.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +192 -21
- package/dist/esm/generated/ns/render.js +267 -24
- 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 +22 -4
- package/dist/esm/generated/ns/routines.js +22 -4
- package/dist/esm/generated/ns/routines.js.map +1 -1
- package/dist/esm/generated/ns/sandboxes.d.ts +431 -7
- package/dist/esm/generated/ns/sandboxes.js +633 -6
- package/dist/esm/generated/ns/sandboxes.js.map +1 -1
- package/dist/esm/generated/ns/usage.d.ts +1 -1
- package/dist/esm/generated/ns/usage.js +1 -1
- package/dist/esm/generated/ns/vision.d.ts +113 -17
- package/dist/esm/generated/ns/vision.js +152 -21
- package/dist/esm/generated/ns/vision.js.map +1 -1
- package/dist/esm/generated/ns/workspaces.d.ts +225 -0
- package/dist/esm/generated/ns/workspaces.js +406 -0
- package/dist/esm/generated/ns/workspaces.js.map +1 -0
- package/dist/esm/generated/types.d.ts +5259 -605
- package/dist/esm/helpers/sandboxes.d.ts +20 -1
- package/dist/esm/helpers/sandboxes.js +13 -1
- package/dist/esm/helpers/sandboxes.js.map +1 -1
- package/package.json +1 -1
- package/src/core/util.ts +1 -1
- package/src/generated/client.ts +38 -0
- package/src/generated/errors.ts +240 -0
- package/src/generated/ids.ts +22 -0
- package/src/generated/jobs.ts +4 -0
- package/src/generated/ns/actions.ts +403 -33
- package/src/generated/ns/agents.ts +1102 -0
- package/src/generated/ns/images.ts +256 -0
- package/src/generated/ns/infer.ts +100 -3
- package/src/generated/ns/keys.ts +3 -1
- package/src/generated/ns/listeners.ts +300 -0
- package/src/generated/ns/orgs.ts +27 -1
- package/src/generated/ns/projects.ts +74 -0
- package/src/generated/ns/render.ts +277 -24
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +22 -4
- package/src/generated/ns/sandboxes.ts +694 -7
- package/src/generated/ns/usage.ts +1 -1
- package/src/generated/ns/vision.ts +159 -21
- package/src/generated/ns/workspaces.ts +448 -0
- package/src/generated/types.ts +5684 -601
- package/src/helpers/sandboxes.ts +31 -2
|
@@ -2,6 +2,55 @@
|
|
|
2
2
|
import { isTerminalJobEvent } from "../../core/jobs.js";
|
|
3
3
|
import { Namespace } from "../../core/namespace.js";
|
|
4
4
|
import { fetchArtifact } from "../../helpers/render.js";
|
|
5
|
+
const listAliasesOp = {
|
|
6
|
+
id: "renderListAliases",
|
|
7
|
+
method: "GET",
|
|
8
|
+
path: "/v1/render/aliases",
|
|
9
|
+
timeoutMs: 10000,
|
|
10
|
+
scope: "render:read",
|
|
11
|
+
};
|
|
12
|
+
const deleteAliasOp = {
|
|
13
|
+
id: "renderDeleteAlias",
|
|
14
|
+
method: "DELETE",
|
|
15
|
+
path: "/v1/render/aliases/{alias}",
|
|
16
|
+
params: ["alias"],
|
|
17
|
+
timeoutMs: 15000,
|
|
18
|
+
scope: "render:write",
|
|
19
|
+
};
|
|
20
|
+
const getAliasOp = {
|
|
21
|
+
id: "renderGetAlias",
|
|
22
|
+
method: "GET",
|
|
23
|
+
path: "/v1/render/aliases/{alias}",
|
|
24
|
+
params: ["alias"],
|
|
25
|
+
timeoutMs: 10000,
|
|
26
|
+
scope: "render:read",
|
|
27
|
+
};
|
|
28
|
+
const putAliasOp = {
|
|
29
|
+
id: "renderPutAlias",
|
|
30
|
+
method: "PUT",
|
|
31
|
+
path: "/v1/render/aliases/{alias}",
|
|
32
|
+
params: ["alias"],
|
|
33
|
+
body: "json",
|
|
34
|
+
timeoutMs: 15000,
|
|
35
|
+
scope: "render:write",
|
|
36
|
+
};
|
|
37
|
+
const unshareAliasOp = {
|
|
38
|
+
id: "renderUnshareAlias",
|
|
39
|
+
method: "DELETE",
|
|
40
|
+
path: "/v1/render/aliases/{alias}/share",
|
|
41
|
+
params: ["alias"],
|
|
42
|
+
timeoutMs: 15000,
|
|
43
|
+
scope: "render:write",
|
|
44
|
+
};
|
|
45
|
+
const shareAliasOp = {
|
|
46
|
+
id: "renderShareAlias",
|
|
47
|
+
method: "POST",
|
|
48
|
+
path: "/v1/render/aliases/{alias}/share",
|
|
49
|
+
params: ["alias"],
|
|
50
|
+
body: "json",
|
|
51
|
+
timeoutMs: 15000,
|
|
52
|
+
scope: "render:write",
|
|
53
|
+
};
|
|
5
54
|
const getArtifactOp = {
|
|
6
55
|
id: "renderGetArtifact",
|
|
7
56
|
method: "GET",
|
|
@@ -24,6 +73,15 @@ const listBackgroundPacksOp = {
|
|
|
24
73
|
timeoutMs: 10000,
|
|
25
74
|
scope: "public",
|
|
26
75
|
};
|
|
76
|
+
const createInspectionOp = {
|
|
77
|
+
id: "renderCreateInspection",
|
|
78
|
+
method: "POST",
|
|
79
|
+
path: "/v1/render/inspections",
|
|
80
|
+
body: "json",
|
|
81
|
+
idem: true,
|
|
82
|
+
timeoutMs: 65000,
|
|
83
|
+
scope: "render:run",
|
|
84
|
+
};
|
|
27
85
|
const listPresetsOp = {
|
|
28
86
|
id: "renderListPresets",
|
|
29
87
|
method: "GET",
|
|
@@ -84,7 +142,7 @@ const getVideoOp = {
|
|
|
84
142
|
path: "/v1/render/videos/{video_id}",
|
|
85
143
|
params: ["video_id"],
|
|
86
144
|
timeoutMs: 10000,
|
|
87
|
-
scope: "
|
|
145
|
+
scope: "authenticated",
|
|
88
146
|
};
|
|
89
147
|
const cancelVideoOp = {
|
|
90
148
|
id: "renderCancelVideo",
|
|
@@ -108,7 +166,7 @@ const unshareVideoOp = {
|
|
|
108
166
|
method: "DELETE",
|
|
109
167
|
path: "/v1/render/videos/{video_id}/share",
|
|
110
168
|
params: ["video_id"],
|
|
111
|
-
timeoutMs:
|
|
169
|
+
timeoutMs: 15000,
|
|
112
170
|
scope: "render:write",
|
|
113
171
|
};
|
|
114
172
|
const shareVideoOp = {
|
|
@@ -117,7 +175,7 @@ const shareVideoOp = {
|
|
|
117
175
|
path: "/v1/render/videos/{video_id}/share",
|
|
118
176
|
params: ["video_id"],
|
|
119
177
|
body: "json",
|
|
120
|
-
timeoutMs:
|
|
178
|
+
timeoutMs: 15000,
|
|
121
179
|
scope: "render:write",
|
|
122
180
|
};
|
|
123
181
|
const getVideoTimelineOp = {
|
|
@@ -153,9 +211,16 @@ const restyleVideoOp = {
|
|
|
153
211
|
};
|
|
154
212
|
/** Descriptors of every render operation, keyed by method name (for tooling and custom clients). */
|
|
155
213
|
export const renderOps = {
|
|
214
|
+
listAliases: listAliasesOp,
|
|
215
|
+
deleteAlias: deleteAliasOp,
|
|
216
|
+
getAlias: getAliasOp,
|
|
217
|
+
putAlias: putAliasOp,
|
|
218
|
+
unshareAlias: unshareAliasOp,
|
|
219
|
+
shareAlias: shareAliasOp,
|
|
156
220
|
getArtifact: getArtifactOp,
|
|
157
221
|
listBackgrounds: listBackgroundsOp,
|
|
158
222
|
listBackgroundPacks: listBackgroundPacksOp,
|
|
223
|
+
createInspection: createInspectionOp,
|
|
159
224
|
listPresets: listPresetsOp,
|
|
160
225
|
listScreenshots: listScreenshotsOp,
|
|
161
226
|
createScreenshot: createScreenshotOp,
|
|
@@ -174,6 +239,85 @@ export const renderOps = {
|
|
|
174
239
|
};
|
|
175
240
|
/** Styled screenshots and product videos (`/v1/render`). */
|
|
176
241
|
export class RenderAPI extends Namespace {
|
|
242
|
+
/**
|
|
243
|
+
* List aliases
|
|
244
|
+
*
|
|
245
|
+
* Lists the project's aliases, by name. An alias names a recording (`onboarding`, `billing-tour`): it points at
|
|
246
|
+
* the newest succeeded video tagged with it, so a share of the alias always plays the latest re-record with no
|
|
247
|
+
* change to the embed.
|
|
248
|
+
*
|
|
249
|
+
* `GET /v1/render/aliases` · scope `render:read` · served by the node
|
|
250
|
+
*/
|
|
251
|
+
listAliases(params, options) {
|
|
252
|
+
return this._client._list(listAliasesOp, { query: params }, options);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Delete an alias
|
|
256
|
+
*
|
|
257
|
+
* Stops the alias's share (as `DELETE /v1/render/aliases/{alias}/share` does: 503 and nothing changed when
|
|
258
|
+
* storage cannot be reached), releases the video it pointed at to the normal retention (it expires 24 hours
|
|
259
|
+
* from now, or at its own expiry when that is later) and removes the alias. The tagged videos stay.
|
|
260
|
+
*
|
|
261
|
+
* `DELETE /v1/render/aliases/{alias}` · scope `render:write` · served by the node
|
|
262
|
+
*/
|
|
263
|
+
deleteAlias(alias, options) {
|
|
264
|
+
return this._client._call(deleteAliasOp, { path: [alias] }, options);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Get an alias
|
|
268
|
+
*
|
|
269
|
+
* The alias, the video it points at, its newest 20 tagged videos and its share.
|
|
270
|
+
*
|
|
271
|
+
* `GET /v1/render/aliases/{alias}` · scope `render:read` · served by the node
|
|
272
|
+
*/
|
|
273
|
+
getAlias(alias, options) {
|
|
274
|
+
return this._client._call(getAliasOp, { path: [alias] }, options);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Point or pin an alias
|
|
278
|
+
*
|
|
279
|
+
* Makes the alias (201) or changes it (200). `video_id` points it at a video tagged with it that has not
|
|
280
|
+
* expired, and pins it there (`follow: false`): re-records no longer move it, which is how to roll an embed
|
|
281
|
+
* back. `follow: true` makes it follow again and moves it to the newest succeeded tagged video at once (while
|
|
282
|
+
* the alias has a share, not to one recorded with `source.profile`: only `video_id` puts that on a share). A
|
|
283
|
+
* video not tagged with the alias is refused with 409 `conflict`: restyle it with `alias: <name>` to add it
|
|
284
|
+
* (its files then go to the alias's storage). The video an alias points at is kept past the 7-day retention;
|
|
285
|
+
* the one it leaves is kept 24 hours more, and its versioned file URLs keep working for an hour.
|
|
286
|
+
*
|
|
287
|
+
* `PUT /v1/render/aliases/{alias}` · scope `render:write` · served by the node
|
|
288
|
+
*/
|
|
289
|
+
putAlias(alias, body, options) {
|
|
290
|
+
return this._client._call(putAliasOp, { path: [alias], body }, options);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Stop sharing an alias
|
|
294
|
+
*
|
|
295
|
+
* Stops the alias's share, the same way as stopping a video's share: the answer comes once storage confirmed
|
|
296
|
+
* it, the next request to the page, its files or its oEmbed answer answers 404, caches keep a copy for at most
|
|
297
|
+
* 60 seconds, and 503 `product_unavailable` leaves it live. Stopping a share that does not exist succeeds.
|
|
298
|
+
*
|
|
299
|
+
* `DELETE /v1/render/aliases/{alias}/share` · scope `render:write` · served by the node
|
|
300
|
+
*/
|
|
301
|
+
unshareAlias(alias, options) {
|
|
302
|
+
return this._client._call(unshareAliasOp, { path: [alias] }, options);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Share an alias
|
|
306
|
+
*
|
|
307
|
+
* Makes a public share of the alias: the same page, files and oEmbed answer as a video's share, but they play
|
|
308
|
+
* the video the alias points at, so an embed shows the newest re-record with no change to its HTML. Its stable
|
|
309
|
+
* URLs (`url`, `media`) change bytes when the alias moves; the page names the files of one version, so a
|
|
310
|
+
* player that loaded it before the move keeps playing that video. The share lasts while the alias exists
|
|
311
|
+
* (`expires_at: null`). Sharing again returns the live share (200). Answers 409 `conflict` while the alias
|
|
312
|
+
* points at no video or its video's MP4 does not reach storage (files are served from storage only; while a
|
|
313
|
+
* re-record's files upload, the page plays the video the alias left), 403 `share_blocked` when B3 took its
|
|
314
|
+
* share down, and 503 `product_unavailable` without object storage.
|
|
315
|
+
*
|
|
316
|
+
* `POST /v1/render/aliases/{alias}/share` · scope `render:write` · served by the node
|
|
317
|
+
*/
|
|
318
|
+
shareAlias(alias, body, options) {
|
|
319
|
+
return this._client._call(shareAliasOp, { path: [alias], body }, options);
|
|
320
|
+
}
|
|
177
321
|
/**
|
|
178
322
|
* Get an artifact
|
|
179
323
|
*
|
|
@@ -224,6 +368,42 @@ export class RenderAPI extends Namespace {
|
|
|
224
368
|
listBackgroundPacks(options) {
|
|
225
369
|
return this._client._call(listBackgroundPacksOp, {}, options);
|
|
226
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* Inspect a page or a video
|
|
373
|
+
*
|
|
374
|
+
* Records a short window frame by frame and reports what changed from each frame to the next. With `url`, it
|
|
375
|
+
* loads the page in a browser at device scale 1, runs `steps` on a virtual clock and takes every frame of
|
|
376
|
+
* `duration_ms` at `fps` (at most 300 frames). With `video_id`, it reads the same window from a finished video
|
|
377
|
+
* of this project. It answers in one call: up to 8 `summary` lines, the change `report` (changed regions,
|
|
378
|
+
* layout shifts, flashes, cuts, scroll stalls), a `trace` of each `watch` target's box over time, and one
|
|
379
|
+
* contact sheet (`sheet`, WebP, at most 1568x1176 px) with up to 12 timestamped frames and before/after crops
|
|
380
|
+
* of the two main changes. Nothing is drawn over the page's pixels except outlines of the changed regions.
|
|
381
|
+
*
|
|
382
|
+
* Positions are CSS px for a page and video px for a video (`window.units`); times are ms from the start of
|
|
383
|
+
* the page's clock, or of the video. Page time is virtual: it holds while code, data, style and font requests
|
|
384
|
+
* are in flight, so network waits never show as page time (`report.network` says how long it held). Web
|
|
385
|
+
* workers and other wall-clock work run in real time against it. Unlike a video's capture, banners are left
|
|
386
|
+
* in place, lazy content is not loaded ahead and client-side routes are not run ahead of the clock. The window
|
|
387
|
+
* starts after the page's `load` event, its images, a short network quiet and 1 s of page time, so how the page
|
|
388
|
+
* loaded is not in it: to see a change, make it with `steps` (a click, or a `navigate`).
|
|
389
|
+
*
|
|
390
|
+
* The browser, the page's load and the capture must fit in about a minute: a load or a step that waits past
|
|
391
|
+
* that answers 504 `job_timed_out`.
|
|
392
|
+
*
|
|
393
|
+
* A video source drops shifts and flashes while the video's camera moves, reports the camera's planned cuts
|
|
394
|
+
* as `camera_cut`, and leaves the caption rows out (`report.masked`). `steps`, `watch`, `viewport` and `theme`
|
|
395
|
+
* are for `url` only.
|
|
396
|
+
*
|
|
397
|
+
* The sheet is an artifact kept for 24 hours; the inspection itself is not stored (there is no GET for it).
|
|
398
|
+
* `sheet.tokens` is what the sheet costs a vision model that reads 28 px patches: ceil(width / 28) x
|
|
399
|
+
* ceil(height / 28), at most 2352. Bills `render.inspection_s`, one per second of window rounded up, once the
|
|
400
|
+
* sheet is saved; an error bills nothing.
|
|
401
|
+
*
|
|
402
|
+
* `POST /v1/render/inspections` · scope `render:run` · served by the node
|
|
403
|
+
*/
|
|
404
|
+
createInspection(body, options) {
|
|
405
|
+
return this._client._call(createInspectionOp, { body }, options);
|
|
406
|
+
}
|
|
227
407
|
/**
|
|
228
408
|
* List style presets
|
|
229
409
|
*
|
|
@@ -303,6 +483,27 @@ export class RenderAPI extends Namespace {
|
|
|
303
483
|
* nothing is billed. A recording made with a
|
|
304
484
|
* profile is reused (`recording.reuse`) only by videos with the same revision of the same profile.
|
|
305
485
|
*
|
|
486
|
+
* `goal` instead of `beats` says what the video should show and lets the node plan the steps: the job's first
|
|
487
|
+
* phase, `draft`, reads the start page with a vision scrape (as the caller), asks the node's chat model for
|
|
488
|
+
* beats whose steps can only click, hover or type into controls that page listed, runs those steps once in a
|
|
489
|
+
* second scrape to check them, and asks once more for the rest of the goal when they revealed new controls. At most 2 vision pages, 2 model answers and 6 beats, within the
|
|
490
|
+
* `render.goal.plan_s` limit (90 s). The drafted beats are the video's script from then on (`goal.beats`, the
|
|
491
|
+
* `video.drafted` event); send them back as `beats` to record the same steps again. Planning needs `vision:run`
|
|
492
|
+
* and `infer:run` in the key's scopes (403 `forbidden` before the job exists otherwise). When it fails, the job
|
|
493
|
+
* fails with `goal_unplanned` and its `reason`, and no `render.video_s` is billed; the vision pages and model
|
|
494
|
+
* tokens planning used are billed by those operations (`vision.page`, `infer.input_tokens`,
|
|
495
|
+
* `infer.output_tokens`), whether or not it succeeds. A goal is planned on public pages only: with
|
|
496
|
+
* `source.profile` it is refused with 422 `script_invalid` at `/source/profile` before the job exists, since the
|
|
497
|
+
* check runs the drafted steps on the page before anyone sees them; send `beats` for a signed-in page.
|
|
498
|
+
*
|
|
499
|
+
* `alias` tags the video with a name of the project, such as `onboarding`, and makes the alias if it does not
|
|
500
|
+
* exist: when the video succeeds the alias points at it (it never moves back to an older video), and a share
|
|
501
|
+
* of the alias (`POST /v1/render/aliases/{alias}/share`) plays it. While an alias points at a video, the video
|
|
502
|
+
* is kept past the 7-day retention (`expires_at: null`, `kept_by_alias`). A tag can change what a live share
|
|
503
|
+
* plays, so `alias` needs `render:write` besides `render:run` (403 `forbidden`, reason `scope`, otherwise). A
|
|
504
|
+
* video recorded with `source.profile` never moves an alias that has a share: the alias stays where it is,
|
|
505
|
+
* `result.warnings` says `alias_signed_in`, and `PUT /v1/render/aliases/{alias}` with `video_id` moves it.
|
|
506
|
+
*
|
|
306
507
|
* `POST /v1/render/videos` · scope `render:run` · served by the node
|
|
307
508
|
*/
|
|
308
509
|
createVideo(body, options) {
|
|
@@ -311,7 +512,9 @@ export class RenderAPI extends Namespace {
|
|
|
311
512
|
/**
|
|
312
513
|
* Delete a video
|
|
313
514
|
*
|
|
314
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts, its share
|
|
515
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share and its archived
|
|
516
|
+
* capture. When an alias points at the video, the alias moves to the newest other succeeded video tagged with
|
|
517
|
+
* it that has not expired, or to none (its share page then answers 404 until a new video succeeds).
|
|
315
518
|
*
|
|
316
519
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
317
520
|
*/
|
|
@@ -323,7 +526,15 @@ export class RenderAPI extends Namespace {
|
|
|
323
526
|
*
|
|
324
527
|
* Returns the video job; once it succeeded, `result.artifacts` lists its files with fresh signed URLs.
|
|
325
528
|
*
|
|
326
|
-
* `
|
|
529
|
+
* Needs `render:read`, or `render:run` when the caller created the video (node release 1119): the creating
|
|
530
|
+
* sandbox for a video a sandbox made, the creating key for one a key made, so a service that may only record
|
|
531
|
+
* videos can wait for its own. A fork is a new sandbox, so it reads the videos its parent made only with
|
|
532
|
+
* `render:read`. A `render:run` caller that did not create the video gets the `404 video_not_found` an unknown
|
|
533
|
+
* id gets; a credential with neither scope gets `403 forbidden` (`reason: scope`, `required_scope:
|
|
534
|
+
* render:read`). A video created before the release, or by a credential with neither a sandbox nor a key (a
|
|
535
|
+
* dashboard session), has no recorded creator: only `render:read` reads it.
|
|
536
|
+
*
|
|
537
|
+
* `GET /v1/render/videos/{video_id}` · scope `authenticated` · served by the node
|
|
327
538
|
*/
|
|
328
539
|
getVideo(videoId, options) {
|
|
329
540
|
return this._client._call(getVideoOp, { path: [videoId] }, options);
|
|
@@ -332,7 +543,9 @@ export class RenderAPI extends Namespace {
|
|
|
332
543
|
* Cancel a video
|
|
333
544
|
*
|
|
334
545
|
* 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.
|
|
546
|
+
* when a video succeeds. A video that already finished answers 409. Since node release 1119 the caller must
|
|
547
|
+
* be able to read the video: its creator, or a credential with `render:read`; anyone else gets the
|
|
548
|
+
* `404 video_not_found` an unknown id gets.
|
|
336
549
|
*
|
|
337
550
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
338
551
|
*/
|
|
@@ -342,9 +555,10 @@ export class RenderAPI extends Namespace {
|
|
|
342
555
|
/**
|
|
343
556
|
* Stream a video's events
|
|
344
557
|
*
|
|
345
|
-
* Server-sent events for the video job: lifecycle events, `video.phase` as the job moves through
|
|
346
|
-
* capture, compose, encode and upload,
|
|
347
|
-
*
|
|
558
|
+
* Server-sent events for the video job: lifecycle events, `video.phase` as the job moves through draft (a
|
|
559
|
+
* video made from a `goal`), voice, plan, capture, compose, encode and upload, `video.drafted` once a goal's
|
|
560
|
+
* beats are planned, and `video.artifact` as each file becomes available. Ends after the terminal event;
|
|
561
|
+
* reconnect with `Last-Event-ID` to resume.
|
|
348
562
|
*
|
|
349
563
|
* `GET /v1/render/videos/{video_id}/events` · scope `render:read` · served by the node
|
|
350
564
|
*/
|
|
@@ -360,7 +574,20 @@ export class RenderAPI extends Namespace {
|
|
|
360
574
|
* Starts a job that re-composes the source video's archived raw capture with a new style, captions, output
|
|
361
575
|
* size or formats. No browser runs and narration is reused, so it takes seconds. Camera moves are not
|
|
362
576
|
* changed. The result is a new video (`restyled_from` names the source). The raw capture is kept as long as
|
|
363
|
-
* the source video (7 days).
|
|
577
|
+
* the source video (7 days, or while an alias keeps it).
|
|
578
|
+
*
|
|
579
|
+
* A restyle does not inherit its source's alias, so trying styles never moves a live embed. Give `alias` to
|
|
580
|
+
* tag the new video with one: when it succeeds the alias points at it, in seconds and without a browser. That
|
|
581
|
+
* is also how a video made without an alias joins one. `alias` needs `render:write` besides `render:run` (403
|
|
582
|
+
* `forbidden`, reason `scope`, otherwise). A restyle of a video recorded with `source.profile` keeps its
|
|
583
|
+
* `source.profile`, and so never moves an alias that has a share (`alias_signed_in`).
|
|
584
|
+
*
|
|
585
|
+
* Since node release 1119 the caller must be able to read the source: its creator, or a credential with
|
|
586
|
+
* `render:read`; anyone else gets the `404 video_not_found` an unknown id gets. The new video's creator is the
|
|
587
|
+
* caller, who reads it with `render:run`.
|
|
588
|
+
*
|
|
589
|
+
* A video B3 took down is not restyled while the takedown stands (403 `share_blocked`): the node asks B3OS's
|
|
590
|
+
* storage first, and answers 503 `product_unavailable` with `Retry-After` when it cannot.
|
|
364
591
|
*
|
|
365
592
|
* `POST /v1/render/videos/{video_id}/restyle` · scope `render:run` · served by the node
|
|
366
593
|
*/
|
|
@@ -370,9 +597,11 @@ export class RenderAPI extends Namespace {
|
|
|
370
597
|
/**
|
|
371
598
|
* Stop sharing a video
|
|
372
599
|
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
600
|
+
* Stops the video's share. The answer comes once B3OS's storage confirmed the share is gone: from then on its
|
|
601
|
+
* page, its files and its oEmbed answer answer 404 at once, and a browser or shared cache keeps a copy for at
|
|
602
|
+
* most 60 seconds. When storage cannot be reached the share stays live and the call answers 503
|
|
603
|
+
* `product_unavailable` with `Retry-After`; call it again. The video stays. Stopping a share that does not
|
|
604
|
+
* exist succeeds.
|
|
376
605
|
*
|
|
377
606
|
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
378
607
|
*/
|
|
@@ -382,17 +611,31 @@ export class RenderAPI extends Namespace {
|
|
|
382
611
|
/**
|
|
383
612
|
* Share a video
|
|
384
613
|
*
|
|
385
|
-
* Makes a share
|
|
386
|
-
* poster, captions and chapters, carries Open Graph tags
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
614
|
+
* Makes a public share of a finished video: a page at `https://usercontent.b3os.org/s/<share id>` that plays
|
|
615
|
+
* the MP4 with its poster, captions and chapters, carries Open Graph tags and a JSON-LD `VideoObject` for link
|
|
616
|
+
* previews, is its own iframe embed (`embed_html`), and answers oEmbed (`oembed_url`). `media` gives stable
|
|
617
|
+
* URLs of the files for a README image or a `<video>` written by hand (`…/video.gif`, `…/poster.jpg`,
|
|
618
|
+
* `…/video.mp4`). The share ID is 128 random bits: the URL is the only key, and the page is `noindex`. No
|
|
619
|
+
* script runs on the page (`Content-Security-Policy: sandbox`, which allows only popups, so its footer links
|
|
620
|
+
* open).
|
|
621
|
+
*
|
|
622
|
+
* A video's share lasts as long as the video (7 days by default); to keep a demo past that, share an alias
|
|
623
|
+
* instead (`POST /v1/render/aliases/{alias}/share`). Sharing again returns the live share (200); a new one
|
|
624
|
+
* answers 201. Videos are never public until shared: a video recorded with a profile shows signed-in pages,
|
|
625
|
+
* so share it only if those pages may be public.
|
|
626
|
+
*
|
|
627
|
+
* Stopping the share (`DELETE`) or deleting the video takes the page, its files and its oEmbed answer down for
|
|
628
|
+
* every viewer: the next request answers 404, and a browser or shared cache keeps a copy for at most 60
|
|
629
|
+
* seconds. Bytes a player already downloaded, and copies other services made of public URLs (link previews,
|
|
630
|
+
* an image proxy for a README), are out of reach. Answers 503 `product_unavailable` when the node has no
|
|
631
|
+
* object storage to publish to (`[render.upload] kind = "none"`), and 403 `share_blocked` when B3 took the
|
|
632
|
+
* video's share down.
|
|
633
|
+
*
|
|
634
|
+
* A share's files come from B3OS's storage only, never from the node that recorded the video. A file that is
|
|
635
|
+
* still uploading (seconds after the video succeeded) answers 404 at its share URLs until it lands; a file
|
|
636
|
+
* that will never reach storage (larger than the node uploads: 100 MiB, or what its upload pace sends in 60
|
|
637
|
+
* seconds, 75 MB by default; or its upload was given up) is left out of the share. A video whose MP4 is such a
|
|
638
|
+
* file is refused with 409 `conflict`, whose `detail` says why.
|
|
396
639
|
*
|
|
397
640
|
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
398
641
|
*/
|
|
@@ -1 +1 @@
|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,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;OAQG;IACH,gBAAgB,CACd,OAAe,EACf,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, source, connection kind, sandbox and
|
|
17
|
+
* kind, filterable by product, operation, status, key, source, connection kind, sandbox, trace and pack (the
|
|
18
|
+
* records whose `action` ran one of that pack's actions: a sandbox's tool calls over MCP and its
|
|
19
|
+
* `POST /v1/actions/call` calls). Every source
|
|
18
20
|
* is listed unless `source` narrows it (the dashboard's Requests page leaves `dashboard` out until you show it).
|
|
19
21
|
* Requests the edge answered
|
|
20
22
|
* without forwarding them (edge-served operations, or requests refused before forwarding) are not listed; get
|
|
@@ -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, source, connection kind, sandbox and
|
|
26
|
+
* kind, filterable by product, operation, status, key, source, connection kind, sandbox, trace and pack (the
|
|
27
|
+
* records whose `action` ran one of that pack's actions: a sandbox's tool calls over MCP and its
|
|
28
|
+
* `POST /v1/actions/call` calls). Every source
|
|
27
29
|
* is listed unless `source` narrows it (the dashboard's Requests page leaves `dashboard` out until you show it).
|
|
28
30
|
* Requests the edge answered
|
|
29
31
|
* without forwarding them (edge-served operations, or requests refused before forwarding) are not listed; get
|
|
@@ -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,EAAE,UAAU,EAAE,YAAY,EAAW,CAAC;AAE/F,sEAAsE;AACtE,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAuC,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CAAC,SAAiB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAkB,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -65,7 +65,8 @@ export declare class RoutinesAPI extends Namespace {
|
|
|
65
65
|
* Events are not buffered: a step that starts waiting after the event does not see it, and an event no step
|
|
66
66
|
* waits for answers `delivered: 0`. Runs of other projects never see your events. Each step journals the
|
|
67
67
|
* event, so an event's JSON plus 256 bytes a step may add up to at most 4 MiB across the steps it resumes; past
|
|
68
|
-
* that it is refused whole with `event_fan_out_too_large` and no step continues.
|
|
68
|
+
* that it is refused whole with `event_fan_out_too_large` and no step continues. An event sent from inside a
|
|
69
|
+
* sandbox whose grant has an actions rule resumes only runs within that rule (ones such a sandbox started).
|
|
69
70
|
*
|
|
70
71
|
* `POST /v1/routines/events` · scope `routines:run` · served by the node
|
|
71
72
|
*/
|
|
@@ -141,7 +142,8 @@ export declare class RoutinesAPI extends Namespace {
|
|
|
141
142
|
* `run_not_waiting` when the run already finished or the buffer for this name is full. The payload counts
|
|
142
143
|
* against the organization's run data on the node (`max_org_run_bytes`): one that does not fit answers 429
|
|
143
144
|
* `concurrency_limited` (503 `capacity_unavailable` at the node's cap), except a payload of up to 1 KiB that
|
|
144
|
-
* ends a wait, so a run can always be let go.
|
|
145
|
+
* ends a wait, so a run can always be let go. From inside a sandbox whose grant has an actions rule, only a run
|
|
146
|
+
* within that rule (one such a sandbox started) takes the signal; any other answers `403 action_not_allowed`.
|
|
145
147
|
*
|
|
146
148
|
* `POST /v1/routines/runs/{run_id}/signal` · scope `routines:run` · served by the node
|
|
147
149
|
*/
|
|
@@ -226,6 +228,17 @@ export declare class RoutinesAPI extends Namespace {
|
|
|
226
228
|
* fails with `routine_invalid` and an `errors[]` item at that trigger. A webhook trigger that names a vault
|
|
227
229
|
* connection (`verify.secret`, `challenge.token_connection`) needs `vault:run` on top of `routines:write`
|
|
228
230
|
* (403 `forbidden`, `required_scope: vault:run`), as a connection in a pack trigger does.
|
|
231
|
+
* Listener triggers (`type: listener`) are listeners: publishing creates one (`lsn_`, read-only at
|
|
232
|
+
* `GET /v1/listeners/{listener_id}`) per listener trigger as the publishing key, which needs `routines:run`;
|
|
233
|
+
* a trigger whose `listener` and publishing key are unchanged keeps its listener, and the listeners of
|
|
234
|
+
* listener triggers the new version drops or changes are removed. When the listeners product refuses one,
|
|
235
|
+
* the publish fails with `routine_invalid` and `errors[]` items under that trigger's `listener`; when this
|
|
236
|
+
* node runs no listeners product it fails with 503 `product_unavailable`, and nothing is published.
|
|
237
|
+
* A listener trigger whose `listener` is a string (preview, flag `routines.named_listeners`) names a listener
|
|
238
|
+
* that already exists in the project by id or name: the publishing key needs `listeners:read` (and
|
|
239
|
+
* `listeners:write` when the listener's sink points anywhere else), the listener is checked before anything is
|
|
240
|
+
* committed, and once the version is active its sink becomes this routine and trigger (`sink.bound`). A
|
|
241
|
+
* version without the trigger, or a delete, unbinds it and pauses it.
|
|
229
242
|
*
|
|
230
243
|
* `PUT /v1/routines/{routine}` · scope `routines:write` · served by the node
|
|
231
244
|
*/
|
|
@@ -293,8 +306,9 @@ export declare class RoutinesAPI extends Namespace {
|
|
|
293
306
|
*
|
|
294
307
|
* Starts a run of the active version (or `version`) with `input`, validated against the routine's `inputs`
|
|
295
308
|
* schema. Use `?wait=` for tool-call style use (an `ephemeral` run that finishes within the wait never touches
|
|
296
|
-
* the journal), `Accept: text/event-stream` to follow steps live, or `webhook`.
|
|
297
|
-
*
|
|
309
|
+
* the journal), `Accept: text/event-stream` to follow steps live, or `webhook`. Only `core/http@1`, `wait` and
|
|
310
|
+
* `sleep_ms` steps bill `routines.effect_step`, one for each such step that ends (a skipped one bills nothing);
|
|
311
|
+
* a product step bills its product's unit, a pack step `actions.call`, and other steps bill nothing.
|
|
298
312
|
*
|
|
299
313
|
* Once an `ephemeral` run ends, only its summary is stored: status, timing, `input`, `result`, `error` and its
|
|
300
314
|
* IDs, without its step history. The `?wait=` answer, the event stream and the webhook carry its steps as it
|
|
@@ -312,6 +326,10 @@ export declare class RoutinesAPI extends Namespace {
|
|
|
312
326
|
* sandbox and then waits a long time pauses that sandbox until its next exec there (or until the run ends),
|
|
313
327
|
* unless another run on the node execs in it too.
|
|
314
328
|
*
|
|
329
|
+
* A run started from inside a sandbox whose grant has an actions rule (`api.actions.allow`) acts as the
|
|
330
|
+
* routine's publisher within that rule: a pack step outside it fails with `action_not_allowed`, and a
|
|
331
|
+
* sub-routine inherits the rule. The rule is kept with the run, across restarts.
|
|
332
|
+
*
|
|
315
333
|
* `POST /v1/routines/{routine}/runs` · scope `routines:run` · served by the node
|
|
316
334
|
*/
|
|
317
335
|
createRun(routine: string, body?: T.RunCreateRequest, options?: RequestOptions): JobPromise<T.RoutineRun, T.RunEvent>;
|
|
@@ -275,7 +275,8 @@ export class RoutinesAPI extends Namespace {
|
|
|
275
275
|
* Events are not buffered: a step that starts waiting after the event does not see it, and an event no step
|
|
276
276
|
* waits for answers `delivered: 0`. Runs of other projects never see your events. Each step journals the
|
|
277
277
|
* event, so an event's JSON plus 256 bytes a step may add up to at most 4 MiB across the steps it resumes; past
|
|
278
|
-
* that it is refused whole with `event_fan_out_too_large` and no step continues.
|
|
278
|
+
* that it is refused whole with `event_fan_out_too_large` and no step continues. An event sent from inside a
|
|
279
|
+
* sandbox whose grant has an actions rule resumes only runs within that rule (ones such a sandbox started).
|
|
279
280
|
*
|
|
280
281
|
* `POST /v1/routines/events` · scope `routines:run` · served by the node
|
|
281
282
|
*/
|
|
@@ -366,7 +367,8 @@ export class RoutinesAPI extends Namespace {
|
|
|
366
367
|
* `run_not_waiting` when the run already finished or the buffer for this name is full. The payload counts
|
|
367
368
|
* against the organization's run data on the node (`max_org_run_bytes`): one that does not fit answers 429
|
|
368
369
|
* `concurrency_limited` (503 `capacity_unavailable` at the node's cap), except a payload of up to 1 KiB that
|
|
369
|
-
* ends a wait, so a run can always be let go.
|
|
370
|
+
* ends a wait, so a run can always be let go. From inside a sandbox whose grant has an actions rule, only a run
|
|
371
|
+
* within that rule (one such a sandbox started) takes the signal; any other answers `403 action_not_allowed`.
|
|
370
372
|
*
|
|
371
373
|
* `POST /v1/routines/runs/{run_id}/signal` · scope `routines:run` · served by the node
|
|
372
374
|
*/
|
|
@@ -465,6 +467,17 @@ export class RoutinesAPI extends Namespace {
|
|
|
465
467
|
* fails with `routine_invalid` and an `errors[]` item at that trigger. A webhook trigger that names a vault
|
|
466
468
|
* connection (`verify.secret`, `challenge.token_connection`) needs `vault:run` on top of `routines:write`
|
|
467
469
|
* (403 `forbidden`, `required_scope: vault:run`), as a connection in a pack trigger does.
|
|
470
|
+
* Listener triggers (`type: listener`) are listeners: publishing creates one (`lsn_`, read-only at
|
|
471
|
+
* `GET /v1/listeners/{listener_id}`) per listener trigger as the publishing key, which needs `routines:run`;
|
|
472
|
+
* a trigger whose `listener` and publishing key are unchanged keeps its listener, and the listeners of
|
|
473
|
+
* listener triggers the new version drops or changes are removed. When the listeners product refuses one,
|
|
474
|
+
* the publish fails with `routine_invalid` and `errors[]` items under that trigger's `listener`; when this
|
|
475
|
+
* node runs no listeners product it fails with 503 `product_unavailable`, and nothing is published.
|
|
476
|
+
* A listener trigger whose `listener` is a string (preview, flag `routines.named_listeners`) names a listener
|
|
477
|
+
* that already exists in the project by id or name: the publishing key needs `listeners:read` (and
|
|
478
|
+
* `listeners:write` when the listener's sink points anywhere else), the listener is checked before anything is
|
|
479
|
+
* committed, and once the version is active its sink becomes this routine and trigger (`sink.bound`). A
|
|
480
|
+
* version without the trigger, or a delete, unbinds it and pauses it.
|
|
468
481
|
*
|
|
469
482
|
* `PUT /v1/routines/{routine}` · scope `routines:write` · served by the node
|
|
470
483
|
*/
|
|
@@ -544,8 +557,9 @@ export class RoutinesAPI extends Namespace {
|
|
|
544
557
|
*
|
|
545
558
|
* Starts a run of the active version (or `version`) with `input`, validated against the routine's `inputs`
|
|
546
559
|
* schema. Use `?wait=` for tool-call style use (an `ephemeral` run that finishes within the wait never touches
|
|
547
|
-
* the journal), `Accept: text/event-stream` to follow steps live, or `webhook`.
|
|
548
|
-
*
|
|
560
|
+
* the journal), `Accept: text/event-stream` to follow steps live, or `webhook`. Only `core/http@1`, `wait` and
|
|
561
|
+
* `sleep_ms` steps bill `routines.effect_step`, one for each such step that ends (a skipped one bills nothing);
|
|
562
|
+
* a product step bills its product's unit, a pack step `actions.call`, and other steps bill nothing.
|
|
549
563
|
*
|
|
550
564
|
* Once an `ephemeral` run ends, only its summary is stored: status, timing, `input`, `result`, `error` and its
|
|
551
565
|
* IDs, without its step history. The `?wait=` answer, the event stream and the webhook carry its steps as it
|
|
@@ -563,6 +577,10 @@ export class RoutinesAPI extends Namespace {
|
|
|
563
577
|
* sandbox and then waits a long time pauses that sandbox until its next exec there (or until the run ends),
|
|
564
578
|
* unless another run on the node execs in it too.
|
|
565
579
|
*
|
|
580
|
+
* A run started from inside a sandbox whose grant has an actions rule (`api.actions.allow`) acts as the
|
|
581
|
+
* routine's publisher within that rule: a pack step outside it fails with `action_not_allowed`, and a
|
|
582
|
+
* sub-routine inherits the rule. The rule is kept with the run, across restarts.
|
|
583
|
+
*
|
|
566
584
|
* `POST /v1/routines/{routine}/runs` · scope `routines:run` · served by the node
|
|
567
585
|
*/
|
|
568
586
|
createRun(routine, body, options) {
|