feat(clients): integrate plan 18: API catalog for 83 Google services, key table, detail error envelope, docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 16:01:51 +01:00
co-authored by Claude Sonnet 5.5
parent 78426d1ba5
commit 997b06bc60
10 changed files with 416 additions and 30 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ TEST(api_catalog, services_unique_and_well_formed) {
ASSERT_FALSE(api.title.empty());
ASSERT_FALSE(api.used_by.empty());
}
ASSERT_TRUE(apis::all().size() >= 12u);
ASSERT_TRUE(apis::all().size() >= 80u);
}
TEST(api_catalog, enable_url_matches_google_activation_page) {
+2
View File
@@ -84,6 +84,8 @@ TEST(llm, error_envelopes) {
{"{\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"nope\"}}", 404, "not_found_error", "nope"},
{"{\"error\":{\"code\":\"rate_limit_exceeded\",\"message\":\"slow\"}}", 429, "rate_limit_exceeded", "slow"},
{"{\"error\":\"plain text error\"}", 400, "UNKNOWN", "plain text error"},
{"{\"detail\":\"Invalid API Key\"}", 401, "UNKNOWN", "Invalid API Key"},
{"{\"detail\":[{\"msg\":\"field required\"}]}", 422, "UNKNOWN", "field required"},
{"{\"message\":\"top level\",\"code\":\"E42\"}", 400, "E42", "top level"},
{"<html>bad gateway</html>", 400, "UNKNOWN", "HTTP 400"},
};