fix(apollo): replace z.record(z.any()) with z.unknown() at tool argument boundaries
loading diff…
Replace z.record(z.any()) with z.record(z.string(), z.unknown()) at three tool argument/output schema sites in Apollo:
apps/apollo/src/pages/api/v3/tools/execute/[tool_slug]/index.ts lines 86 and 126: arguments request field and data response fieldapps/apollo/src/pages/api/v3/tools/types.ts lines 36 and 66: input_parameters and output_parameters in ToolCommonSchemaapps/apollo/src/pages/api/v3/toolkits/[slug].ts line 264: rawProxyInfoByAuthSchemes array element typeThis is a pure TypeScript compile-time tightening: values previously typed any are now unknown, forcing callers to narrow before use. There is no runtime or Zod behavior change.
The existing cast toolArguments as Record<string, unknown> at line 373 of the execute route (pre-existing) and the generated ExecuteToolResponse.data: { [key: string]: unknown } are already consistent with this stricter type.
arguments is passed directly to executeTool (no property access on values in the same file), data is assigned from ExecuteToolResponse.data which is already Record<string, unknown>, input_parameters/output_parameters are schema-only (no in-file property access on values), and rawProxyInfoByAuthSchemes is schema-onlyz.record(z.string(), z.unknown()) is the correct Zod v3 two-argument form🤖 Generated with Claude Code