Skip to content

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

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

chmaltsp merged 3 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. Dependabot bumps here have been closed since July, so this also picks up every API change since 1.1047.0.

New in the SDK: seam.Media.Get, seam.LiveViewsCameras.{Create,Offer,Stop}, the Media / CameraLiveViewSession / CameraLiveViewAnswer models, and CanStreamLiveVideo on devices.

Codegen fix: inside namespace Seam.Api, the Media API class shadows the Seam.Model.Media model, so Media.Get would have returned (and tried to deserialize into) the API class. codegen/lib/build-model.ts now fully qualifies a return model whose name matches its API class. No other API is affected.

No .NET toolchain locally: csharpier formatting is left to the Generate workflow, and compilation/tests to Check.

🤖 Generated with Claude Code

Bump @seamapi/types to 1.1092.0 and @seamapi/blueprint to ^1.12.0 and
regenerate. The Media model shares its name with the Media API class,
so return types that would be shadowed inside Seam.Api are now fully
qualified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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:10:14.112546Z d135b9d PR opened
🔒 Security Review ✅ Completed 2026-10-01T18:11:33.829827Z d135b9d 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.

chmaltsp and others added 2 commits October 1, 2026 11:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@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: d135b9d53d

ℹ️ 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 package-lock.json Outdated
"resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.9.1.tgz",
"integrity": "sha512-A9H3dZE9f+ZEEnOAlMl5jSlL5F/RIKkjOF8NDFbnuahAiu/trDz/RzHOGhbQd6sd0RErIyx3eG1p4HCOJDKDCA==",
"version": "1.12.0",
"resolved": "https://npm.pkg.github.com/download/@seamapi/blueprint/1.12.0/e72f21582831d9be77804b63aafcc9cf48b7e2cc",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid unauthenticated GitHub Packages URLs in the lockfile

On fresh CI runners, both the lint/typecheck setup and the Generate workflow install dependencies without a GitHub Packages token (.github/actions/setup-node/action.yml runs npm ci, while generate.yml runs npm install), but these locked tarball URLs require authentication; only the devcontainer config supplies GH_TOKEN. Consequently dependency installation will fail before any checks or generation run. Regenerate the lockfile against the public npm registry or configure GitHub Packages authentication in every workflow that installs dependencies.

Useful? React with 👍 / 👎.

Comment thread src/Seam/Api/Media.cs Outdated
Comment on lines +48 to +49
[EnumMember(Value = "redirect")]
Redirect = 2,

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 the redirect response before exposing the format

When callers select FormatEnum.Redirect, the endpoint returns a 302/media body rather than the JSON GetResponse that Get and GetAsync always deserialize and unwrap. RestSharp either follows the redirect to non-JSON content or leaves a response with no GetResponse, so EnsureData fails instead of providing the advertised redirect result. This option needs a response path that returns the redirect/download response, or it should not be exposed by these model-returning methods.

Useful? React with 👍 / 👎.

@chmaltsp
chmaltsp merged commit db92c9f into main Oct 1, 2026
14 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.

2 participants