feat(recordings)!: read any recording by id

Merged
RO
5d ago
+1609-116

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

  • GetRecording on the Recordings service: get in every SDK, Recordings().Get in Go. It returns the generic Recording, whose type, parent and bucket say what the recording is, where it sits, and which project holds it.
  • A dock tool has no parent. A trashed recording is still returned, with status: "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-sdk and 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: Get through 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 their type and bucket, all 10 dock tools have no parent, and the missing id raises not-found (404). To rerun, point an SDK at a bc3, collect ids from a project's dock and /projects/recordings.json?type=..., and call get on each.
  • Unit tests in all seven SDKs. conformance/tests/recordings_get.json runs a recording, a dock tool and a 404 in all seven runners. Swift runs in CI only.
  • make check passes 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.list type by type to resolve an id can call recordings.get instead.
  • Go code implementing the generated ClientInterface / ClientWithResponsesInterface must add GetRecording and GetRecordingWithResponse; this is the only breaking change.