# Inspecting Generated Types
This SDK uses [progenitor](https://github.com/oxidecomputer/progenitor) to auto-generate types from `../deepstore-agent/openapi.json` at build time. Generated code lives in `$OUT_DIR/codegen.rs`.
## Finding the generated file
```bash
# Build to trigger codegen
cargo build -p deepstore-agent-client
# Locate codegen.rs (picks the most recently modified)
# Browse all types
# Find a specific type
rg "pub struct SearchRequest" "$CODEGEN" -n
```
## Regenerating the spec
```bash
# From deepstore root - generate openapi.json in crates/deepstore-agent
pnpm --filter deepstore-agent run -- --openapi-output crates/deepstore-agent/openapi.json
# Rebuild SDK to regenerate types (build.rs reads from ../deepstore-agent/openapi.json)
cargo build -p deepstore-agent-client
```
Don't run in sandbox!