@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../../../src/generated/ns/infer.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;
|
|
1
|
+
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../../../src/generated/ns/infer.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAI5G,0DAAoD;AAMpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,iBAAiB;IACrB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,YAAY;CACpB,CAAC;AACF,MAAM,sBAAsB,GAAO;IACjC,EAAE,EAAE,2BAA2B;IAC/B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB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|
+
readonly revokeCurrentKey: Op;
|
|
10
11
|
readonly getCurrentKey: Op;
|
|
11
12
|
readonly revokeKey: Op;
|
|
12
13
|
readonly getKey: Op;
|
|
@@ -33,11 +34,23 @@ export declare class KeysAPI extends Namespace {
|
|
|
33
34
|
* `POST /v1/keys` · scope `platform:write` · served by beta-api.b3os.org
|
|
34
35
|
*/
|
|
35
36
|
createKey(body: T.ApiKeyCreateRequest, options?: RequestOptions): APIPromise<T.ApiKeyWithSecret>;
|
|
37
|
+
/**
|
|
38
|
+
* Revoke the calling credential
|
|
39
|
+
*
|
|
40
|
+
* Revokes the API key or CLI token that sends this request. Any key or token may revoke itself, whatever its
|
|
41
|
+
* scopes, so a key without `platform:write` can still be retired; `b3os logout` calls this. It takes effect
|
|
42
|
+
* like `DELETE /v1/keys/{key_id}` and returns the revoked key. A dashboard session is not a key: it gets
|
|
43
|
+
* `409 conflict`, so sign out instead.
|
|
44
|
+
*
|
|
45
|
+
* `DELETE /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
46
|
+
*/
|
|
47
|
+
revokeCurrentKey(options?: RequestOptions): APIPromise<T.ApiKey>;
|
|
36
48
|
/**
|
|
37
49
|
* Describe the calling credential
|
|
38
50
|
*
|
|
39
51
|
* Returns who is calling: the key or CLI token (or dashboard session, or sandbox), its organization and
|
|
40
|
-
* project, scopes, spend cap and expiry. Any valid credential may call
|
|
52
|
+
* project, scopes, spend cap, what it has spent this billing period and expiry. Any valid credential may call
|
|
53
|
+
* it, whatever its scopes, so a key without `platform:read` can still see how much of its cap is used.
|
|
41
54
|
*
|
|
42
55
|
* `GET /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
43
56
|
*/
|
|
@@ -21,6 +21,14 @@ const createKeyOp = {
|
|
|
21
21
|
timeoutMs: 10000,
|
|
22
22
|
scope: "platform:write",
|
|
23
23
|
};
|
|
24
|
+
const revokeCurrentKeyOp = {
|
|
25
|
+
id: "platformRevokeCurrentKey",
|
|
26
|
+
method: "DELETE",
|
|
27
|
+
path: "/v1/keys/current",
|
|
28
|
+
edge: true,
|
|
29
|
+
timeoutMs: 10000,
|
|
30
|
+
scope: "authenticated",
|
|
31
|
+
};
|
|
24
32
|
const getCurrentKeyOp = {
|
|
25
33
|
id: "platformGetCurrentKey",
|
|
26
34
|
method: "GET",
|
|
@@ -61,6 +69,7 @@ const updateKeyOp = {
|
|
|
61
69
|
exports.keysOps = {
|
|
62
70
|
listKeys: listKeysOp,
|
|
63
71
|
createKey: createKeyOp,
|
|
72
|
+
revokeCurrentKey: revokeCurrentKeyOp,
|
|
64
73
|
getCurrentKey: getCurrentKeyOp,
|
|
65
74
|
revokeKey: revokeKeyOp,
|
|
66
75
|
getKey: getKeyOp,
|
|
@@ -91,11 +100,25 @@ class KeysAPI extends namespace_ts_1.Namespace {
|
|
|
91
100
|
createKey(body, options) {
|
|
92
101
|
return this._client._call(createKeyOp, { body }, options);
|
|
93
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Revoke the calling credential
|
|
105
|
+
*
|
|
106
|
+
* Revokes the API key or CLI token that sends this request. Any key or token may revoke itself, whatever its
|
|
107
|
+
* scopes, so a key without `platform:write` can still be retired; `b3os logout` calls this. It takes effect
|
|
108
|
+
* like `DELETE /v1/keys/{key_id}` and returns the revoked key. A dashboard session is not a key: it gets
|
|
109
|
+
* `409 conflict`, so sign out instead.
|
|
110
|
+
*
|
|
111
|
+
* `DELETE /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
112
|
+
*/
|
|
113
|
+
revokeCurrentKey(options) {
|
|
114
|
+
return this._client._call(revokeCurrentKeyOp, {}, options);
|
|
115
|
+
}
|
|
94
116
|
/**
|
|
95
117
|
* Describe the calling credential
|
|
96
118
|
*
|
|
97
119
|
* Returns who is calling: the key or CLI token (or dashboard session, or sandbox), its organization and
|
|
98
|
-
* project, scopes, spend cap and expiry. Any valid credential may call
|
|
120
|
+
* project, scopes, spend cap, what it has spent this billing period and expiry. Any valid credential may call
|
|
121
|
+
* it, whatever its scopes, so a key without `platform:read` can still see how much of its cap is used.
|
|
99
122
|
*
|
|
100
123
|
* `GET /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
101
124
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/generated/ns/keys.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;AAKpD,MAAM,UAAU,GAAO;IACrB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,QAAQ,GAAO;IACnB,EAAE,EAAE,gBAAgB;IACpB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB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AE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,KAAa,EAAE,IAA2B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AA5FD,0BA4FC"}
|
|
@@ -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
|
}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.RenderAPI = exports.renderOps = void 0;
|
|
5
5
|
const jobs_ts_1 = require("../../core/jobs.js");
|
|
6
6
|
const namespace_ts_1 = require("../../core/namespace.js");
|
|
7
|
+
const render_ts_1 = require("../../helpers/render.js");
|
|
7
8
|
const getArtifactOp = {
|
|
8
9
|
id: "renderGetArtifact",
|
|
9
10
|
method: "GET",
|
|
@@ -12,12 +13,26 @@ const getArtifactOp = {
|
|
|
12
13
|
timeoutMs: 10000,
|
|
13
14
|
scope: "render:read",
|
|
14
15
|
};
|
|
16
|
+
const listBackgroundsOp = {
|
|
17
|
+
id: "renderListBackgrounds",
|
|
18
|
+
method: "GET",
|
|
19
|
+
path: "/v1/render/backgrounds",
|
|
20
|
+
timeoutMs: 10000,
|
|
21
|
+
scope: "public",
|
|
22
|
+
};
|
|
23
|
+
const listBackgroundPacksOp = {
|
|
24
|
+
id: "renderListBackgroundPacks",
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/v1/render/backgrounds/packs",
|
|
27
|
+
timeoutMs: 10000,
|
|
28
|
+
scope: "public",
|
|
29
|
+
};
|
|
15
30
|
const listPresetsOp = {
|
|
16
31
|
id: "renderListPresets",
|
|
17
32
|
method: "GET",
|
|
18
33
|
path: "/v1/render/presets",
|
|
19
34
|
timeoutMs: 10000,
|
|
20
|
-
scope: "
|
|
35
|
+
scope: "public",
|
|
21
36
|
};
|
|
22
37
|
const listScreenshotsOp = {
|
|
23
38
|
id: "renderListScreenshots",
|
|
@@ -91,6 +106,23 @@ const videoEventsOp = {
|
|
|
91
106
|
timeoutMs: 3600000,
|
|
92
107
|
scope: "render:read",
|
|
93
108
|
};
|
|
109
|
+
const unshareVideoOp = {
|
|
110
|
+
id: "renderUnshareVideo",
|
|
111
|
+
method: "DELETE",
|
|
112
|
+
path: "/v1/render/videos/{video_id}/share",
|
|
113
|
+
params: ["video_id"],
|
|
114
|
+
timeoutMs: 10000,
|
|
115
|
+
scope: "render:write",
|
|
116
|
+
};
|
|
117
|
+
const shareVideoOp = {
|
|
118
|
+
id: "renderShareVideo",
|
|
119
|
+
method: "POST",
|
|
120
|
+
path: "/v1/render/videos/{video_id}/share",
|
|
121
|
+
params: ["video_id"],
|
|
122
|
+
body: "json",
|
|
123
|
+
timeoutMs: 10000,
|
|
124
|
+
scope: "render:write",
|
|
125
|
+
};
|
|
94
126
|
const getVideoTimelineOp = {
|
|
95
127
|
id: "renderGetVideoTimeline",
|
|
96
128
|
method: "GET",
|
|
@@ -125,6 +157,8 @@ const restyleVideoOp = {
|
|
|
125
157
|
/** Descriptors of every render operation, keyed by method name (for tooling and custom clients). */
|
|
126
158
|
exports.renderOps = {
|
|
127
159
|
getArtifact: getArtifactOp,
|
|
160
|
+
listBackgrounds: listBackgroundsOp,
|
|
161
|
+
listBackgroundPacks: listBackgroundPacksOp,
|
|
128
162
|
listPresets: listPresetsOp,
|
|
129
163
|
listScreenshots: listScreenshotsOp,
|
|
130
164
|
createScreenshot: createScreenshotOp,
|
|
@@ -137,6 +171,8 @@ exports.renderOps = {
|
|
|
137
171
|
cancelVideo: cancelVideoOp,
|
|
138
172
|
videoEvents: videoEventsOp,
|
|
139
173
|
restyleVideo: restyleVideoOp,
|
|
174
|
+
unshareVideo: unshareVideoOp,
|
|
175
|
+
shareVideo: shareVideoOp,
|
|
140
176
|
getVideoTimeline: getVideoTimelineOp,
|
|
141
177
|
};
|
|
142
178
|
/** Styled screenshots and product videos (`/v1/render`). */
|
|
@@ -153,12 +189,52 @@ class RenderAPI extends namespace_ts_1.Namespace {
|
|
|
153
189
|
getArtifact(artifactId, options) {
|
|
154
190
|
return this._client._call(getArtifactOp, { path: [artifactId] }, options);
|
|
155
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* List library backgrounds
|
|
194
|
+
*
|
|
195
|
+
* Lists the background library: backgrounds a style names with `overrides.background_ref`, with their license,
|
|
196
|
+
* source and a 360x200 thumbnail served by B3OS. Three kinds:
|
|
197
|
+
*
|
|
198
|
+
* - `css`: drawn by the compositor from CSS gradient layers (no image file), recolorable through `tokens`.
|
|
199
|
+
* - `procedural`: the `studio` pack, our own soft meshes computed by the compositor (no image file, no
|
|
200
|
+
* tokens); the ones tagged `auto` are the set a screenshot's `auto` background (and anything's `studio`)
|
|
201
|
+
* picks from.
|
|
202
|
+
* - `image`: a lossless WebP from ScreenFramed's curated library (decisions T9 and T10: Sean's grants as owner
|
|
203
|
+
* of the library), up to 3840 px on the long edge, with its measured tone in `image` (theme, luminance, hue,
|
|
204
|
+
* detail; how `"auto"` matches a page). `image.coverage` is `full-bleed` for backgrounds; the `gradients`
|
|
205
|
+
* group holds transparent shapes (`cutout`) drawn over a matte. The images tagged `video` are the set a video's
|
|
206
|
+
* `auto` background picks from.
|
|
207
|
+
*
|
|
208
|
+
* Rows are in `ref` order, paged by `limit` and `cursor`. A ref whose bytes equal an earlier one's still
|
|
209
|
+
* resolves but is not listed. Public: no API key, rate limited per client address, and answered from the
|
|
210
|
+
* edge's cache for up to 5 minutes.
|
|
211
|
+
*
|
|
212
|
+
* `GET /v1/render/backgrounds` · scope `public` · served by the node
|
|
213
|
+
*/
|
|
214
|
+
listBackgrounds(params, options) {
|
|
215
|
+
return this._client._list(listBackgroundsOp, { query: params }, options);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* List library background packs
|
|
219
|
+
*
|
|
220
|
+
* Lists the packs of the background library with their license, notice, source, entry count and a cover
|
|
221
|
+
* thumbnail: the CSS packs first, then the image packs by look (`quiet`, `bold`, `soft-photo`, `texture`,
|
|
222
|
+
* `scenic`, `loud`, `cutout`) and size. `auto` says whether `background_ref: "auto"` may pick from the pack.
|
|
223
|
+
* Public and edge-cached like `GET /v1/render/backgrounds`.
|
|
224
|
+
*
|
|
225
|
+
* `GET /v1/render/backgrounds/packs` · scope `public` · served by the node
|
|
226
|
+
*/
|
|
227
|
+
listBackgroundPacks(options) {
|
|
228
|
+
return this._client._call(listBackgroundPacksOp, {}, options);
|
|
229
|
+
}
|
|
156
230
|
/**
|
|
157
231
|
* List style presets
|
|
158
232
|
*
|
|
159
|
-
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
233
|
+
* Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects),
|
|
234
|
+
* with a preview image for each. Public: no API key, rate limited per client address, and answered from the
|
|
235
|
+
* edge's cache for up to 5 minutes.
|
|
160
236
|
*
|
|
161
|
-
* `GET /v1/render/presets` · scope `
|
|
237
|
+
* `GET /v1/render/presets` · scope `public` · served by the node
|
|
162
238
|
*/
|
|
163
239
|
listPresets(params, options) {
|
|
164
240
|
return this._client._call(listPresetsOp, { query: params }, options);
|
|
@@ -214,11 +290,22 @@ class RenderAPI extends namespace_ts_1.Namespace {
|
|
|
214
290
|
* Record a video
|
|
215
291
|
*
|
|
216
292
|
* Starts a job that records a scripted demo of `source.url`. Narration (`say`) is synthesized first with
|
|
217
|
-
* `/v1/infer/audio/speech
|
|
293
|
+
* `/v1/infer/audio/speech`, as the caller: it needs `infer:run` in the key's scopes too. Without it, or when
|
|
294
|
+
* speech is unavailable, the video is made silent with estimated word times and `result.narration.spoken` is
|
|
295
|
+
* 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
|
|
218
296
|
* camera, records segments in parallel on a virtual clock, composes at the output frame rate and encodes MP4
|
|
219
297
|
* (H.264, BT.709), GIF, poster and captions. Artifacts appear as they finish (`video.artifact` events, poster
|
|
220
298
|
* first). Bills `render.video_s` per second of output.
|
|
221
299
|
*
|
|
300
|
+
* `source.profile` names a vision profile (ID or name) of the key's project, found when the video is made
|
|
301
|
+
* (403 without `vision:profiles:use`, 404 `profile_not_found`). When the job runs, its state loads into the
|
|
302
|
+
* probe's browser context and every capture segment's, so the whole video is recorded signed in; the video,
|
|
303
|
+
* its timeline and its events name the profile by its `prof_` ID only, but the video shows whatever the
|
|
304
|
+
* signed-in pages show: treat it and its links as private. A page that opens still signed out (a sign-in form,
|
|
305
|
+
* a 401 or 403, or a move to a sign-in page) ends the job with `profile_expired` before any step runs, and
|
|
306
|
+
* nothing is billed. A recording made with a
|
|
307
|
+
* profile is reused (`recording.reuse`) only by videos with the same revision of the same profile.
|
|
308
|
+
*
|
|
222
309
|
* `POST /v1/render/videos` · scope `render:run` · served by the node
|
|
223
310
|
*/
|
|
224
311
|
createVideo(body, options) {
|
|
@@ -227,7 +314,7 @@ class RenderAPI extends namespace_ts_1.Namespace {
|
|
|
227
314
|
/**
|
|
228
315
|
* Delete a video
|
|
229
316
|
*
|
|
230
|
-
* Cancels the job if it is still running, then deletes the video, its artifacts and its archived capture.
|
|
317
|
+
* Cancels the job if it is still running, then deletes the video, its artifacts, its share page and its archived capture.
|
|
231
318
|
*
|
|
232
319
|
* `DELETE /v1/render/videos/{video_id}` · scope `render:write` · served by the node
|
|
233
320
|
*/
|
|
@@ -247,7 +334,8 @@ class RenderAPI extends namespace_ts_1.Namespace {
|
|
|
247
334
|
/**
|
|
248
335
|
* Cancel a video
|
|
249
336
|
*
|
|
250
|
-
* Stops the job
|
|
337
|
+
* Stops the job and marks the video canceled. A canceled video bills nothing: `render.video_s` is billed only
|
|
338
|
+
* when a video succeeds. A video that already finished answers 409.
|
|
251
339
|
*
|
|
252
340
|
* `POST /v1/render/videos/{video_id}/cancel` · scope `render:run` · served by the node
|
|
253
341
|
*/
|
|
@@ -282,18 +370,58 @@ class RenderAPI extends namespace_ts_1.Namespace {
|
|
|
282
370
|
restyleVideo(videoId, body, options) {
|
|
283
371
|
return this._client._job(restyleVideoOp, { path: [videoId], body }, options);
|
|
284
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Stop sharing a video
|
|
375
|
+
*
|
|
376
|
+
* Deletes the video's share page; its link stops working within 60 seconds. The video stays, and so do the
|
|
377
|
+
* signed file links the page used (until the video expires); delete the video to end them. Works whether or not
|
|
378
|
+
* the `render.share_pages` flag is on.
|
|
379
|
+
*
|
|
380
|
+
* `DELETE /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
381
|
+
*/
|
|
382
|
+
unshareVideo(videoId, options) {
|
|
383
|
+
return this._client._call(unshareVideoOp, { path: [videoId] }, options);
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Share a video
|
|
387
|
+
*
|
|
388
|
+
* Makes a share page for a finished video: one HTML page on `usercontent.b3os.org` that plays the MP4 with its
|
|
389
|
+
* poster, captions and chapters, carries Open Graph tags for link previews, and works as an iframe embed on any
|
|
390
|
+
* site. No script runs on it (`Content-Security-Policy: sandbox`). The link is signed like every artifact URL and
|
|
391
|
+
* lasts as long as the video's MP4 (7 days by default). Sharing again returns the same page while it lasts
|
|
392
|
+
* (200); a new one answers 201.
|
|
393
|
+
*
|
|
394
|
+
* Off by default: creating a share page needs the `render.share_pages` feature flag on for your organization,
|
|
395
|
+
* and answers 404 `feature_not_enabled` without it. The page plays the video from the video's own signed file
|
|
396
|
+
* links, which stay valid until the video expires: stopping the share (or deleting the video) takes the page
|
|
397
|
+
* down within 60 seconds, but only deleting the video ends the file links a viewer or a link preview already
|
|
398
|
+
* has. There is no password option.
|
|
399
|
+
*
|
|
400
|
+
* `POST /v1/render/videos/{video_id}/share` · scope `render:write` · served by the node
|
|
401
|
+
*/
|
|
402
|
+
shareVideo(videoId, body, options) {
|
|
403
|
+
return this._client._call(shareVideoOp, { path: [videoId], body }, options);
|
|
404
|
+
}
|
|
285
405
|
/**
|
|
286
406
|
* Get a video's timeline
|
|
287
407
|
*
|
|
288
408
|
* Returns the compiled timeline of a video that has finished planning: beats, narration with word timings,
|
|
289
409
|
* the timed action list the recorder replayed, cursor path, camera keyframes, captions and style
|
|
290
|
-
* (`timeline.schema.json`). `frames=
|
|
410
|
+
* (`timeline.schema.json`). `frames=true` adds the per-frame compositor state (large; for debugging).
|
|
291
411
|
*
|
|
292
412
|
* `GET /v1/render/videos/{video_id}/timeline` · scope `render:read` · served by the node
|
|
293
413
|
*/
|
|
294
414
|
getVideoTimeline(videoId, params, options) {
|
|
295
415
|
return this._client._call(getVideoTimelineOp, { path: [videoId], query: params }, options);
|
|
296
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* An artifact's bytes (from a screenshot or video, or its URL). A client that reaches the node (its Unix socket,
|
|
419
|
+
* or a node URL inside a sandbox) reads them from the node's signed content route, so they never leave the
|
|
420
|
+
* machine; any other client fetches the usercontent URL as given.
|
|
421
|
+
*/
|
|
422
|
+
fetchArtifact(artifact, options) {
|
|
423
|
+
return (0, render_ts_1.fetchArtifact)(this._client, artifact, options);
|
|
424
|
+
}
|
|
297
425
|
}
|
|
298
426
|
exports.RenderAPI = RenderAPI;
|
|
299
427
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/generated/ns/render.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,gDAAwD;AACxD,0DAAoD;
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/generated/ns/render.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,gDAAwD;AACxD,0DAAoD;AAIpD,uDAA4E;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,KAAK;IAChB,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,kBAAkB,GAAO;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,CAAC;IACxD,CAAC;CACF;AAxUD,8BAwUC"}
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,9 @@ class RequestsAPI extends namespace_ts_1.Namespace {
|
|
|
26
26
|
* List requests
|
|
27
27
|
*
|
|
28
28
|
* Lists the requests the node served for your project in the last 7 days, newest first, over every connection
|
|
29
|
-
* kind, filterable by product, operation, status, key, connection kind and
|
|
29
|
+
* kind, filterable by product, operation, status, key, source, connection kind, sandbox and trace. Every source
|
|
30
|
+
* is listed unless `source` narrows it (the dashboard's Requests page leaves `dashboard` out until you show it).
|
|
31
|
+
* Requests the edge answered
|
|
30
32
|
* without forwarding them (edge-served operations, or requests refused before forwarding) are not listed; get
|
|
31
33
|
* those by ID. The edge forwards this operation and merges its `edge_*` phases into each record.
|
|
32
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../../src/generated/ns/requests.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;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,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