Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions api/tinyhumans.backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"url": "https://api.tinyhumans.ai/swagger.json",
"title": "TinyHumans API",
"version": "1.0.0",
"pathCount": 242,
"totalOperationCount": 268,
"operationCount": 211,
"pathCount": 243,
"totalOperationCount": 269,
"operationCount": 212,
"supplementalOperationCount": 13,
"excludedAdminOperationCount": 49,
"excludedWebhookOperationCount": 12,
Expand Down Expand Up @@ -333,6 +333,18 @@
"PUT /opencompany/instances/{slug}/custom-domain"
]
},
{
"name": "orchestration",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Document the added orchestration namespace

When this compatibility route is published, docs/api-surface.md still omits the orchestration namespace and gives no indication that this deprecated endpoint is available only through the raw transport. Consumers following the public API guide therefore cannot discover the newly exposed contract; update the namespace table and explanatory text alongside the generated registry.

AGENTS.md reference: AGENTS.md:L162-L168

Useful? React with 👍 / 👎.

"basePath": "/orchestration",
"auth": "bearer",
"operationCount": 1,
"tags": [
"Orchestration"
],
"routes": [
"GET /orchestration/v1/sessions"
]
},
{
"name": "payments",
"basePath": "/payments",
Expand Down
1 change: 1 addition & 0 deletions src/generated_public_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub const PUBLIC_ROUTES: &[(&str, &str)] = &[
("POST", "/opencompany/instances/{slug}/suspend"),
("POST", "/opencompany/instances/{slug}/update"),
("GET", "/opencompany/instances/usage"),
("GET", "/orchestration/v1/sessions"),
("POST", "/payments/coinbase/charge"),
("GET", "/payments/coinbase/charge/{gatewayTransactionId}"),
("GET", "/payments/credits/auto-recharge"),
Expand Down
10 changes: 6 additions & 4 deletions tests/openapi_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ fn generated_rust_routes_match_the_public_manifest() {
//
// 237 -> 202: the `/medulla/v1/*` and `/orchestration/v1/*` families are
// gone with the orchestration model. The backend's part in Medulla is now
// the plan entitlement on `/auth/me`; nothing under those prefixes is
// served any more.
// the plan entitlement on `/auth/me`, apart from the authenticated empty
// session list kept for older OpenHuman clients.
// 202 -> 203: `GET /payments/credits/lots`, the caller's live credit lots
// and their expiries (subscription credit no longer rolls over; top-ups
// last a year).
Expand All @@ -166,7 +166,8 @@ fn generated_rust_routes_match_the_public_manifest() {
// them).
// 208 -> 211: the Gemini integration — `POST .../gemini/models/{model}/generate-content`,
// `POST .../gemini/live/sessions` and `GET .../gemini/live/sessions/{sessionId}`.
assert_eq!(manifest["source"]["operationCount"], 211);
// 211 -> 212: the retired orchestration session-list compatibility route.
assert_eq!(manifest["source"]["operationCount"], 212);
// 14 -> 13: `GET /orchestration/v1/steering` left with that family.
assert_eq!(manifest["source"]["supplementalOperationCount"], 13);
// 37 -> 39: the two service-token operations on
Expand Down Expand Up @@ -206,7 +207,8 @@ fn generated_rust_routes_match_the_public_manifest() {
// 206 -> 208: the two new public opencompany routes above
// (`GET /opencompany/companies` and `POST /opencompany/instances/{slug}/update`).
// 208 -> 211: the three Gemini routes.
assert_eq!(rust_routes.len(), 211);
// 211 -> 212: the retired orchestration session-list compatibility route.
assert_eq!(rust_routes.len(), 212);
assert_eq!(rust_routes, manifest_routes);
assert!(rust_routes
.iter()
Expand Down
Loading