The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(oauth): add README documentation for OAuth module
Steven Enamakel22efb13892cc
diff --git a/crates/openhuman-tinyhumans/src/hosted/oauth/README.md b/crates/openhuman-tinyhumans/src/hosted/oauth/README.mdindex c6a334b78e..efaa5fa6bc 100644--- a/crates/openhuman-tinyhumans/src/hosted/oauth/README.md+++ b/crates/openhuman-tinyhumans/src/hosted/oauth/README.md@@ -10,12 +10,13 @@ the provider tokens.| `auth_oauth_list_integrations` | none | `GET /auth/integrations` || `auth_oauth_fetch_integration_tokens` | `integrationId`, `key` | `POST /auth/integrations/{id}/tokens` (AES-GCM handoff, decrypted with the core's `api::decrypt_handoff_blob`) || `auth_oauth_revoke_integration` | `integrationId` | `DELETE /auth/integrations/{id}` |+| `auth_oauth_fetch_client_key` | `integrationId` (24-char hex) | `POST /auth/integrations/{id}/client-key` (session only; raw SDK request, no typed method) |These share the `auth` namespace with the core's credential controllers(`auth.set_credential`, `auth.get_state`, provider credentials, …), which stay-in the core. `auth_oauth_fetch_client_key` also stays in the core: its route-(`POST /auth/integrations/{id}/client-key`) has no SDK method and is missing-from the SDK's public-route registry.+in the core. `auth_oauth_fetch_client_key`'s route has no typed SDK method and+is absent from the backend's published contract, so it is sent through the+SDK's raw primitive, which still applies the SDK's route policy.The core's `oauth_connect_url` / `oauth_list` agent tools reach these throughthe controller registry, so they report `BACKEND_UNAVAILABLE:` on a corediff --git a/crates/openhuman-tinyhumans/src/hosted/oauth/mod.rs b/crates/openhuman-tinyhumans/src/hosted/oauth/mod.rsindex f2870658e3..ceafcee9ea 100644--- a/crates/openhuman-tinyhumans/src/hosted/oauth/mod.rs+++ b/crates/openhuman-tinyhumans/src/hosted/oauth/mod.rs@@ -2,14 +2,15 @@//! `/auth/integrations*`) on the SDK's typed `auth()` client.//!//! RPC names (`openhuman.auth_oauth_connect`, `auth_oauth_list_integrations`,-//! `auth_oauth_fetch_integration_tokens`, `auth_oauth_revoke_integration`) are-//! unchanged wire contracts. They share the `auth` namespace with the core's-//! credential controllers, which stay in the core.+//! `auth_oauth_fetch_integration_tokens`, `auth_oauth_revoke_integration`,+//! `auth_oauth_fetch_client_key`) are unchanged wire contracts. They share the+//! `auth` namespace with the core's credential controllers, which stay in the+//! core.//!-//! `auth_oauth_fetch_client_key` is **not** here: its route-//! (`POST /auth/integrations/{id}/client-key`) has no SDK method and is absent-//! from the SDK's public-route registry, so it stays on the core's pre-SDK path-//! until the route is added upstream.+//! `auth_oauth_fetch_client_key`'s route+//! (`POST /auth/integrations/{id}/client-key`) has no typed SDK method and is+//! absent from the backend's published contract, so it rides the SDK's raw+//! request primitive.mod handoff;mod ops;diff --git a/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rsindex e3f3dfbfca..ad44f04f1b 100644--- a/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs@@ -32,7 +32,7 @@ struct AuthOauthRevokeParams {integration_id: String,}-#[derive(Deserialize)]+#[derive(Debug, Deserialize)]#[serde(rename_all = "camelCase")]struct AuthOauthClientKeyParams {integration_id: String,