Skip to content

An open-source, faster Devin alternative

TypeScript

Mark usage APIs as preview in docs

Igor Zalutski8bab893d7647
diff --git a/docs/api-reference/sandboxes/get-tags.mdx b/docs/api-reference/sandboxes/get-tags.mdx
index 2b2a1b2d..f7c4949c 100644
--- a/docs/api-reference/sandboxes/get-tags.mdx
+++ b/docs/api-reference/sandboxes/get-tags.mdx
@@ -5,6 +5,12 @@ api: 'GET /api/sandboxes/{id}/tags'
Read the current tag set for a sandbox.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
<ParamField path="id" type="string" required>
Sandbox ID.
</ParamField>
diff --git a/docs/api-reference/sandboxes/set-tags.mdx b/docs/api-reference/sandboxes/set-tags.mdx
index b4e0509c..9a3dd481 100644
--- a/docs/api-reference/sandboxes/set-tags.mdx
+++ b/docs/api-reference/sandboxes/set-tags.mdx
@@ -6,6 +6,12 @@ api: 'PUT /api/sandboxes/{id}/tags'
Replace the full tag set for a sandbox. Partial updates are not
supported — GET, modify, PUT. `{}` clears all tags.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
<ParamField path="id" type="string" required>
Sandbox ID.
</ParamField>
diff --git a/docs/api-reference/usage/get-sandbox-usage.mdx b/docs/api-reference/usage/get-sandbox-usage.mdx
index 0618b01b..aa259f03 100644
--- a/docs/api-reference/usage/get-sandbox-usage.mdx
+++ b/docs/api-reference/usage/get-sandbox-usage.mdx
@@ -8,6 +8,12 @@ envelope totals. Allocated memory is the tier the sandbox was
provisioned at, integrated over time; used memory is the actual
resident memory consumed by the sandbox process, sampled every 60s.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
## Request
<ParamField path="id" type="string" required>
diff --git a/docs/api-reference/usage/get-usage.mdx b/docs/api-reference/usage/get-usage.mdx
index d3d0b93b..9a1f5edc 100644
--- a/docs/api-reference/usage/get-usage.mdx
+++ b/docs/api-reference/usage/get-usage.mdx
@@ -9,6 +9,12 @@ computed from. For per-sandbox time-series drilldown (memory
utilization over time, 1-minute resolution), see
[`GET /api/sandboxes/:id/usage`](/api-reference/usage/get-sandbox-usage).
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
<Note>
All `*GbSeconds` fields are **GiB-seconds** (binary, 2<sup>30</sup>
bytes/GiB), not decimal GB. For a sandbox provisioned at 1024 MiB
diff --git a/docs/api-reference/usage/list-tags.mdx b/docs/api-reference/usage/list-tags.mdx
index 747b045d..ede6fb64 100644
--- a/docs/api-reference/usage/list-tags.mdx
+++ b/docs/api-reference/usage/list-tags.mdx
@@ -7,6 +7,12 @@ List all tag keys set on any sandbox in the org, with per-key counts
of tagged sandboxes and distinct values. Useful for building
group-by pickers without querying the full tag set.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
<ResponseExample>
```json 200
{
diff --git a/docs/docs.json b/docs/docs.json
index 95750f67..86cbcfdc 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -46,7 +46,13 @@
"sandboxes/patches",
"sandboxes/preview-urls",
"sandboxes/elasticity",
- "sandboxes/usage"
+ {
+ "group": "Usage",
+ "tag": "Preview",
+ "pages": [
+ "sandboxes/usage"
+ ]
+ }
]
},
{
@@ -124,7 +130,13 @@
"reference/typescript-sdk/overview",
"reference/typescript-sdk/sandbox",
"reference/typescript-sdk/scaling",
- "reference/typescript-sdk/usage",
+ {
+ "group": "Usage & Tags",
+ "tag": "Preview",
+ "pages": [
+ "reference/typescript-sdk/usage"
+ ]
+ },
"reference/typescript-sdk/exec",
"reference/typescript-sdk/filesystem",
"reference/typescript-sdk/pty",
@@ -214,12 +226,19 @@
"api-reference/sandboxes/set-timeout",
"api-reference/sandboxes/hibernate",
"api-reference/sandboxes/wake",
- "api-reference/sandboxes/get-tags",
- "api-reference/sandboxes/set-tags"
+ {
+ "group": "Tags",
+ "tag": "Preview",
+ "pages": [
+ "api-reference/sandboxes/get-tags",
+ "api-reference/sandboxes/set-tags"
+ ]
+ }
]
},
{
"group": "Usage",
+ "tag": "Preview",
"pages": [
"api-reference/usage/get-usage",
"api-reference/usage/get-sandbox-usage",
diff --git a/docs/reference/typescript-sdk.mdx b/docs/reference/typescript-sdk.mdx
index b2ae66f6..e2516f3a 100644
--- a/docs/reference/typescript-sdk.mdx
+++ b/docs/reference/typescript-sdk.mdx
@@ -252,6 +252,12 @@ Query billing-aligned usage, inspect per-sandbox memory points, and
manage sandbox tags used for grouping. Full reference:
[Usage & Tags](/reference/typescript-sdk/usage).
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
```typescript
const usage = new Usage("https://app.opencomputer.dev", process.env.OPENCOMPUTER_API_KEY!);
const tags = new Tags("https://app.opencomputer.dev", process.env.OPENCOMPUTER_API_KEY!);
diff --git a/docs/reference/typescript-sdk/usage.mdx b/docs/reference/typescript-sdk/usage.mdx
index 309bab75..f3234bab 100644
--- a/docs/reference/typescript-sdk/usage.mdx
+++ b/docs/reference/typescript-sdk/usage.mdx
@@ -7,6 +7,12 @@ Use `Usage` for billing-aligned usage queries and per-sandbox
time-series drilldowns. Use `Tags` to set and read sandbox tags used
by the usage aggregator.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
```typescript
import { Usage, Tags } from "@opencomputer/sdk";
diff --git a/docs/sandboxes/usage.mdx b/docs/sandboxes/usage.mdx
index fdb443c9..3de08476 100644
--- a/docs/sandboxes/usage.mdx
+++ b/docs/sandboxes/usage.mdx
@@ -11,6 +11,12 @@ this sandbox" or "when did memory spike?" For cross-sandbox
leaderboards (rank by usage, group by tag) see the aggregator at
[`GET /api/usage`](/api-reference/usage/get-usage) instead.
+<Note>
+ **Preview:** Usage and tag APIs are new. Endpoints, response fields,
+ and SDK method names may change before GA; temporary inaccuracies or
+ rough edges are possible while the surface settles.
+</Note>
+
## Example
Allocated tier as a step line (it changes only on resize), measured