Skip to content

feat: add GET /templates/{templateID}/tags to JS and Python SDKs#1131

Closed
beran-t wants to merge 5 commits intomainfrom
sandbox-upload-overwrite
Closed

feat: add GET /templates/{templateID}/tags to JS and Python SDKs#1131
beran-t wants to merge 5 commits intomainfrom
sandbox-upload-overwrite

Conversation

@beran-t
Copy link
Copy Markdown
Contributor

@beran-t beran-t commented Feb 14, 2026

Summary

  • Adds GET /templates/{templateID}/tags endpoint to the OpenAPI spec with TemplateTag schema (tag, buildID, createdAt)
  • Adds Template.getTags(templateId) to the JS/TS SDK and Template.get_tags(template_id) / AsyncTemplate.get_tags(template_id) to the Python SDK
  • Regenerates API clients for both SDKs and adds unit tests

Add support for listing all tags for a template, matching the existing
infra API endpoint. Includes OpenAPI spec update, regenerated clients,
SDK methods, types, and unit tests for both SDKs.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 14, 2026

🦋 Changeset detected

Latest commit: d4a325a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
e2b Patch
@e2b/python-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Only keep the two new generated files needed for get_tags:
- get_templates_template_id_tags.py
- template_tag.py
- Add explicit type for `item` parameter in getTemplateTags .map() to
  fix TS7006 error in CLI build
- Rewrite generated Python files to match CI's openapi-python-client
  output style (Union/Optional syntax, f-strings, no __future__ import)
@beran-t
Copy link
Copy Markdown
Contributor Author

beran-t commented Feb 14, 2026

Replaced by a clean PR from a branch based on main

@beran-t beran-t closed this Feb 14, 2026
@ValentaTomas ValentaTomas deleted the sandbox-upload-overwrite branch March 20, 2026 17:12
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