Skip to content

feat: Add media.get, cameras.live_views and can_stream_live_video - #656

Merged
chmaltsp merged 2 commits into
mainfrom
phil/bump-seamapi-types-1.1092.0
Oct 1, 2026
Merged

chmaltsp merged 2 commits into
mainfrom
phil/bump-seamapi-types-1.1092.0

Conversation

@chmaltsp

@chmaltsp chmaltsp commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Bumps @seamapi/types 1.1047.0 -> 1.1092.0 and @seamapi/blueprint to ^1.12.0, then regenerates.

New in the SDK: seam.media.get, seam.cameras.live_views.{create,offer,stop}, the Media / CameraLiveViewSession / CameraLiveViewAnswer resources, and can_stream_live_video on devices. Also picks up the docs URL move to www.seam.co/docs and other API changes since 1.1047.0.

Codegen fix: the Media route class has the same name as the Media resource, so the generated seam/routes/media.py redefined Media and failed pylint/mypy. codegen/lib/layouts/route.ts now imports a resource that collides with its route class as <Name>Resource. No other route is affected.

Locally: pylint 10/10, mypy clean, black clean, pytest 278 passed.

Supersedes #650.

🤖 Generated with Claude Code

Bump @seamapi/types to 1.1092.0 and @seamapi/blueprint to ^1.12.0 and
regenerate. The media route class shares its name with the media
resource, so the route module now imports the resource under an alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chmaltsp
chmaltsp requested a review from a team as a code owner October 1, 2026 18:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T18:05:28.830232Z 4676e04 PR opened
🔒 Security Review ✅ Completed 2026-10-01T18:06:36.787043Z 4676e04 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4676e049c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread seam/routes/media.py

res = self.client.get("/media/get", params=params)

return MediaResource.from_dict(unwrap(res, "media", "/media/get"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle redirect responses before decoding Media

When a caller passes format="redirect", the endpoint returns a 302 instead of a { "media": ... } payload. With the default HTTP client this is handled as a non-2xx error; if redirect following is enabled, the client returns the downloaded non-JSON body instead. The unconditional unwrap therefore makes the advertised redirect mode fail for both sync and async callers, so this path must bypass normal MediaResource decoding.

Useful? React with 👍 / 👎.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chmaltsp
chmaltsp merged commit f93ba60 into main Oct 1, 2026
23 checks passed
@chmaltsp
chmaltsp deleted the phil/bump-seamapi-types-1.1092.0 branch October 1, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant