@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.
Files changed (55) hide show
  1. package/README.md +210 -22
  2. package/dist/billing.d.ts +225 -12
  3. package/dist/billing.d.ts.map +1 -1
  4. package/dist/billing.js +159 -36
  5. package/dist/billing.js.map +1 -1
  6. package/dist/connections.d.ts +19 -0
  7. package/dist/connections.d.ts.map +1 -1
  8. package/dist/connections.js +16 -0
  9. package/dist/connections.js.map +1 -1
  10. package/dist/display.d.ts +172 -0
  11. package/dist/display.d.ts.map +1 -0
  12. package/dist/display.js +431 -0
  13. package/dist/display.js.map +1 -0
  14. package/dist/primitives.d.ts +63 -0
  15. package/dist/primitives.d.ts.map +1 -1
  16. package/dist/primitives.js +78 -1
  17. package/dist/primitives.js.map +1 -1
  18. package/dist/problem.d.ts +22 -0
  19. package/dist/problem.d.ts.map +1 -1
  20. package/dist/problem.js +26 -2
  21. package/dist/problem.js.map +1 -1
  22. package/dist/remote.d.ts +151 -1
  23. package/dist/remote.d.ts.map +1 -1
  24. package/dist/remote.js +163 -8
  25. package/dist/remote.js.map +1 -1
  26. package/dist/routes.d.ts +16 -1
  27. package/dist/routes.d.ts.map +1 -1
  28. package/dist/routes.js +16 -1
  29. package/dist/routes.js.map +1 -1
  30. package/dist/seats.d.ts +43 -2
  31. package/dist/seats.d.ts.map +1 -1
  32. package/dist/seats.js +29 -3
  33. package/dist/seats.js.map +1 -1
  34. package/fixtures/v1/billing/balance-denominated.json +20 -0
  35. package/fixtures/v1/billing/entitlements-denominated.json +38 -0
  36. package/fixtures/v1/billing/nudge-denominated.json +13 -0
  37. package/fixtures/v1/billing/offers-empty.json +3 -0
  38. package/fixtures/v1/billing/offers.json +48 -0
  39. package/fixtures/v1/billing/price-list-cache-rates.json +19 -0
  40. package/fixtures/v1/billing/statement-itemised.json +35 -0
  41. package/fixtures/v1/billing/usage-denominated.json +25 -0
  42. package/fixtures/v1/index.json +20 -0
  43. package/fixtures/v1/problem/malformed-identifier.json +7 -0
  44. package/fixtures/v1/problem/malformed-request.json +7 -0
  45. package/fixtures/v1/remote/credential-with-hosts.json +8 -0
  46. package/fixtures/v1/remote/designation-current.json +5 -0
  47. package/fixtures/v1/remote/designation-none.json +5 -0
  48. package/fixtures/v1/remote/events-batch-spans.json +15 -0
  49. package/fixtures/v1/remote/events-batch.json +5 -0
  50. package/fixtures/v1/remote/status-open-with-instance.json +10 -0
  51. package/fixtures/v1/remote/usage-fresh.json +17 -0
  52. package/fixtures/v1/remote/usage.json +39 -0
  53. package/fixtures/v1/seats/agent-approved-claim.json +8 -0
  54. package/fixtures/v1/seats/agent-pending-claim.json +9 -0
  55. 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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "agt_0003",
3
+ "orgId": "org_0001",
4
+ "ownerMemberId": "mem_0001",
5
+ "displayName": "Dependency updater",
6
+ "createdAt": "2026-09-15T12:00:00.000Z",
7
+ "claimStatus": "approved"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "agt_0002",
3
+ "orgId": "org_0001",
4
+ "ownerMemberId": null,
5
+ "displayName": "Release notes drafter",
6
+ "createdAt": "2026-09-15T12:00:00.000Z",
7
+ "claimStatus": "pending",
8
+ "pendingClaimId": "clm_0001"
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dork-labs/cloud-api",
3
- "version": "0.83.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
  },