Skip to content

Add ttl to create_moq_access - #96

Merged
Karolk99 merged 2 commits into
mainfrom
fce-3832/moq-token-ttl
Sep 11, 2026
Merged

Add ttl to create_moq_access#96
Karolk99 merged 2 commits into
mainfrom
fce-3832/moq-token-ttl

Conversation

@Karolk99

Copy link
Copy Markdown
Collaborator

Regenerated MoqAccessConfig from fishjam openapi.yaml (fce-3832/moq-token-ttl).

Regenerated MoqAccessConfig from fishjam openapi.yaml (fce-3832/moq-token-ttl).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013EKXgj4SvESh4S99791s1N
@Karolk99
Karolk99 requested review from czerwiukk and a lite review from Copilot September 10, 2026 14:42
@linear

linear Bot commented Sep 10, 2026

Copy link
Copy Markdown

FCE-3832

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are small, consistent with existing patterns (UNSET handling), and are backed by targeted tests for the new TTL behavior.

Pull request overview

This PR updates the Python SDK to support a ttl (time-to-live) parameter when generating MoQ access tokens, reflecting regenerated OpenAPI client models and adding coverage to ensure the TTL affects the returned JWT claims.

Changes:

  • Added ttl parameter to FishjamClient.create_moq_access() and wired it into the request body.
  • Regenerated/updated MoqAccessConfig model to include ttl serialization/deserialization.
  • Added tests validating that ttl influences JWT expiry and that invalid TTL values are rejected.
File summaries
File Description
tests/test_room_api.py Adds tests to validate JWT iat/exp behavior when ttl is provided and server-side validation for invalid TTL.
fishjam/api/_fishjam_client.py Extends create_moq_access() with a ttl argument and passes it through to MoqAccessConfig.
fishjam/_fishjam_openapi_client/models/moq_access_config.py Adds ttl field and includes it in to_dict() / from_dict() to match updated OpenAPI schema.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GZ2sxpkxEiCEjoHpXgQNEF
@Karolk99
Karolk99 merged commit 2abcf23 into main Sep 11, 2026
32 of 44 checks passed
@Karolk99
Karolk99 deleted the fce-3832/moq-token-ttl branch September 11, 2026 10:02
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.

3 participants