@dork-labs/cloud-api 0.83.0 → 0.88.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 +210 -22
- package/dist/billing.d.ts +225 -12
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +159 -36
- package/dist/billing.js.map +1 -1
- package/dist/connections.d.ts +19 -0
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +16 -0
- package/dist/connections.js.map +1 -1
- package/dist/display.d.ts +172 -0
- package/dist/display.d.ts.map +1 -0
- package/dist/display.js +431 -0
- package/dist/display.js.map +1 -0
- package/dist/primitives.d.ts +63 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +78 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +22 -0
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +26 -2
- package/dist/problem.js.map +1 -1
- package/dist/remote.d.ts +151 -1
- package/dist/remote.d.ts.map +1 -1
- package/dist/remote.js +163 -8
- package/dist/remote.js.map +1 -1
- package/dist/routes.d.ts +16 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +16 -1
- package/dist/routes.js.map +1 -1
- package/dist/seats.d.ts +43 -2
- package/dist/seats.d.ts.map +1 -1
- package/dist/seats.js +29 -3
- package/dist/seats.js.map +1 -1
- package/fixtures/v1/billing/balance-denominated.json +20 -0
- package/fixtures/v1/billing/entitlements-denominated.json +38 -0
- package/fixtures/v1/billing/nudge-denominated.json +13 -0
- package/fixtures/v1/billing/offers-empty.json +3 -0
- package/fixtures/v1/billing/offers.json +48 -0
- package/fixtures/v1/billing/price-list-cache-rates.json +19 -0
- package/fixtures/v1/billing/statement-itemised.json +35 -0
- package/fixtures/v1/billing/usage-denominated.json +25 -0
- package/fixtures/v1/index.json +20 -0
- package/fixtures/v1/problem/malformed-identifier.json +7 -0
- package/fixtures/v1/problem/malformed-request.json +7 -0
- package/fixtures/v1/remote/credential-with-hosts.json +8 -0
- package/fixtures/v1/remote/designation-current.json +5 -0
- package/fixtures/v1/remote/designation-none.json +5 -0
- package/fixtures/v1/remote/events-batch-spans.json +15 -0
- package/fixtures/v1/remote/events-batch.json +5 -0
- package/fixtures/v1/remote/status-open-with-instance.json +10 -0
- package/fixtures/v1/remote/usage-fresh.json +17 -0
- package/fixtures/v1/remote/usage.json +39 -0
- package/fixtures/v1/seats/agent-approved-claim.json +8 -0
- package/fixtures/v1/seats/agent-pending-claim.json +9 -0
- package/package.json +5 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"orgId": "org_0001",
|
|
3
|
+
"period": "2026-09",
|
|
4
|
+
"ceilings": [
|
|
5
|
+
{
|
|
6
|
+
"ceiling": "example_hours",
|
|
7
|
+
"limit": 37,
|
|
8
|
+
"used": 0,
|
|
9
|
+
"unit": "hours",
|
|
10
|
+
"fraction": 0,
|
|
11
|
+
"alertFraction": 0.65,
|
|
12
|
+
"state": "clear",
|
|
13
|
+
"enforceable": true,
|
|
14
|
+
"provenance": { "source": "a placeholder source", "measuredAt": null }
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"orgId": "org_0001",
|
|
3
|
+
"period": "2026-09",
|
|
4
|
+
"ceilings": [
|
|
5
|
+
{
|
|
6
|
+
"ceiling": "example_hours",
|
|
7
|
+
"limit": 37,
|
|
8
|
+
"used": 12.5,
|
|
9
|
+
"unit": "hours",
|
|
10
|
+
"fraction": 0.3378,
|
|
11
|
+
"alertFraction": 0.65,
|
|
12
|
+
"state": "clear",
|
|
13
|
+
"enforceable": true,
|
|
14
|
+
"provenance": { "source": "a placeholder source", "measuredAt": "2026-09-01T00:00:00.000Z" }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"ceiling": "example_transfer",
|
|
18
|
+
"limit": 11,
|
|
19
|
+
"used": 8,
|
|
20
|
+
"unit": "GB",
|
|
21
|
+
"fraction": 0.7273,
|
|
22
|
+
"alertFraction": 0.65,
|
|
23
|
+
"state": "alert",
|
|
24
|
+
"enforceable": true,
|
|
25
|
+
"provenance": { "source": "a placeholder source", "measuredAt": null }
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"ceiling": "example_concurrent",
|
|
29
|
+
"limit": 3,
|
|
30
|
+
"used": 3,
|
|
31
|
+
"unit": "count",
|
|
32
|
+
"fraction": 1,
|
|
33
|
+
"alertFraction": 0.65,
|
|
34
|
+
"state": "reached",
|
|
35
|
+
"enforceable": false,
|
|
36
|
+
"provenance": { "source": "a placeholder source", "measuredAt": null }
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dork-labs/cloud-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "The public wire contract for DorkOS Cloud: Zod schemas for the /v1 surface, plus a thin fetch client.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/client.d.ts",
|
|
24
24
|
"default": "./dist/client.js"
|
|
25
25
|
},
|
|
26
|
+
"./display": {
|
|
27
|
+
"types": "./dist/display.d.ts",
|
|
28
|
+
"default": "./dist/display.js"
|
|
29
|
+
},
|
|
26
30
|
"./fixtures/v1/*.json": "./fixtures/v1/*.json",
|
|
27
31
|
"./package.json": "./package.json"
|
|
28
32
|
},
|