feat(recordings)!: read any recording by id
Why
Callers often hold a recording id without its type: webhook payloads, notifications, search hits, pasted URLs. Basecamp serves GET /recordings/{id}.json for exactly this (bc3 #10158), but the SDK had no operation for it. The CLI's basecamp show and the hosted MCP server reach it through raw client calls today, and the CLI's MCP tools make agents pass a recording type to move or copy.
What changed
GetRecordingon the Recordings service:getin every SDK,Recordings().Getin Go. It returns the genericRecording, whosetype,parentandbucketsay what the recording is, where it sits, and which project holds it.- A dock tool has no
parent. A trashed recording is still returned, withstatus: "trashed". A missing or deleted recording, or one whose project the caller can neither see nor join, raises the SDK's not-found error. One in a project the caller could ask to join raises the forbidden error (403). - The gap entry moves to
absorbed-in-sdkand its route-allowlist entry goes. MIGRATING drops the known gap that sent callers to list-and-filter, and the summary docs no longer say no untyped read exists.
Scope
- Only the flat route. The bucket-scoped alias is the same action.
- No composite. Callers follow up with the type-specific read themselves.
Blast Radius
Additive for SDK callers. Go code that implements the generated client interfaces itself must add GetRecording and GetRecordingWithResponse, so the PR carries the breaking label.
Verification
- Live, against a local bc3:
Getthrough the Go, Python and Rust SDKs on 29 recordings, one of every kind a project holds (10 dock tools, 19 recordings inside one), plus one id that does not exist. In each SDK, 29 of 29 decode with theirtypeandbucket, all 10 dock tools have noparent, and the missing id raises not-found (404). To rerun, point an SDK at a bc3, collect ids from a project'sdockand/projects/recordings.json?type=..., and callgeton each. - Unit tests in all seven SDKs.
conformance/tests/recordings_get.jsonruns a recording, a dock tool and a 404 in all seven runners. Swift runs in CI only. make checkpasses locally.
Summary by cubic
Adds GetRecording to the Recordings service in all seven SDKs, so a caller holding only a recording id can read any recording without knowing its type. The returned Recording carries type, parent, and bucket; a dock tool has no parent. A trashed recording is still returned with status: "trashed"; a missing, deleted, or hidden recording raises the not-found error, while one in a project the caller could ask to join raises the forbidden error.
Migration
- Callers that scanned
recordings.listtype by type to resolve an id can callrecordings.getinstead. - Go code implementing the generated
ClientInterface/ClientWithResponsesInterfacemust addGetRecordingandGetRecordingWithResponse; this is the only breaking change.