Skip to content

fix(api): type the sync collection add and remove contracts - #1058

Merged
StefanFriptu merged 1 commit into
masterfrom
fix/sync-collection-contract
Nov 3, 2026
Merged

StefanFriptu merged 1 commit into
masterfrom
fix/sync-collection-contract

Conversation

@StefanFriptu

@StefanFriptu StefanFriptu commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

POST /sync/collection and POST /sync/collection/remove reused the list item body and the list add/remove responses, so the SDK had no collected_at or metadata fields on the request and typed a list object, shows/seasons counts and no updated on the response.

Add now takes collected_at (UTC datetime, released, unknown or now), media_type, resolution, hdr, audio, audio_channels and 3d on every item level, and returns added, updated and existing as { movies, episodes } plus not_found. Remove keeps the plain item body and returns deleted as { movies, episodes } plus not_found. New exported types: CollectionAddRequest, CollectionAddResponse, CollectionRemoveResponse.

Clients can call the routes today with the old types; the new fields need the next publish.

Checked with bun run check, bun run test, bun run publish:check, bun run openapi:validate, and a .strict() parse probe of every add/remove response case.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T16:29:38.484267Z 9154bfa Manual request
ℹ️ 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.

@StefanFriptu
StefanFriptu force-pushed the fix/sync-collection-contract branch from 660333c to 9154bfa Compare November 3, 2026 16:11
@StefanFriptu
StefanFriptu merged commit ae20b2f into master Nov 3, 2026
9 checks passed
@StefanFriptu
StefanFriptu deleted the fix/sync-collection-contract branch November 3, 2026 16:28
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 9154bfaf74

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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