From 50dfb28f582dd95a2191251c43e5803bd3b6f73c Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Thu, 17 Sep 2026 21:22:25 +0000 Subject: [PATCH] docs(api): make the client-sdk `packages.install` example parse as a manifest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `content/docs/api/client-sdk.mdx` showed await client.packages.install({ id: 'com.objectstack.plugin-auth', version: '1.0.0' }); Parsed against the contract that door declares — `PackageInstallRequestSchema`, whose `manifest` key is `ManifestSchema` — the literal is refused twice: `invalid_value` at `[manifest, type]` and `invalid_type` at `[manifest, name]`. Both keys are required on the root manifest and both were absent, so the example fails when copied verbatim. The repair adds the two required keys and nothing else, in the same key order the package's published README uses for the same door. Claude-Session: https://claude.ai/code/session_017ef78bLdybu3AffehKkhfk Co-authored-by: Claude --- content/docs/api/client-sdk.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/docs/api/client-sdk.mdx b/content/docs/api/client-sdk.mdx index 6886baf7126..9b9672cf811 100644 --- a/content/docs/api/client-sdk.mdx +++ b/content/docs/api/client-sdk.mdx @@ -334,7 +334,12 @@ console.log(explained.sql, explained.params); // { sql, params } ```typescript const packages = await client.packages.list(); -await client.packages.install({ id: 'com.objectstack.plugin-auth', version: '1.0.0' }); +await client.packages.install({ + id: 'com.objectstack.plugin-auth', + type: 'plugin', + name: 'Auth Plugin', + version: '1.0.0', +}); await client.packages.enable('com.objectstack.plugin-auth'); await client.packages.disable('com.objectstack.plugin-auth'); await client.packages.uninstall('com.objectstack.plugin-auth');