Repository navigation
✨ feat: cover the new public API endpoints - #83
Merged
Merged
Conversation
## Bug fixes - `File.productFlavors` is `string[]`, as the API sends it; the field is absent when the file has no flavors. Code that treated it as a string needs updating Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
## Features - Add `projects.create` and `files.listPublished` - Add `organizations`: usage, search across projects, credit summary, credit transactions (all or one page) and credit top-ups - Add `keys.getDetails`, `keys.editSource` and `keys.reviewTranslation` - Add `comments` (list, create, update, delete) on the comments of a key in one language - Add `glossary.createMany`, which merges duplicates of existing terms - Add `languages`: add, hide, enable, disable, delete, copy, replace, setFallback, listKeys / listKeysPage and listPlurals - Add `branches`: list, create, rename, delete, setMain, separate, analyzeMerge, merge and getOperation for the background operations - Add `links` (list / listPage, create, delete), `segmentation.getParent`, `tags.list`, `styleguides.list` and `cdn.list` - `Language` gains `tag`, `hidden`, `enabled`, `published` and `fallback`; `projects.list` takes `hidden_languages` ## Tests - Cover the URL, method, body and response of every new method, and that the new methods keep the `params` of the request config ## Documentation - Add every new method to the API client reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
## Bug fixes - `organizations.search` rejects an empty `projects` list, which the server reads as all projects - Language parameters of the `languages` requests suggest locale codes again while still accepting any code or a numeric id - `projects.create` takes a numeric `sourceLanguage`, such as `Project.sourceLanguage` - Key details leave out `vid`, which `JSON.parse` rounds; address a version with `translation.review.versionId` ## Tests - Cover the empty project list and the numeric source language Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
…rrors ## Bug fixes - `projects.create`, `languages.listKeys` and `segmentation.getParent` take locale codes only: the server parses their language without resolving numeric ids - Branch methods reject `.` and `..` as a branch name, which URL resolution would turn into a request to another endpoint - Key details `review.value` and organization search `value` can be `null`; `LanguageKey.file` and `PluralRule.forms` match what the server sends ## Documentation - The `409` of a merge or analysis covers the source branch too with the `target` and `time-bidi` strategies; `mergeDeprecations` with `keys` applies only to those keys - Add the `project_not_found` and `invalid_id` rejections of links and segmentation - Move `glossary.createMany` under Glossary in the reference ## Tests - Cover the rejected branch names Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
## Bug fixes - `UserRole` gains `viewer`, `member` and `custom`, which the API returns; `developer` is deprecated, as the API never returns it - `Project.customRole` names the custom role when `role` is `custom` - `Project.organization` and `Project.languages` are optional: the API sends them only when `projects.list` asks for them. Code that reads them needs a check for `undefined` - `File.library`, which the API sends when the file has one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
honzabubenik
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds new public api endpoints.
New methods
projectscreateorganizations(new)getUsage,search,getCreditSummary,listCreditTransactions/listCreditTransactionsPage,listCreditTopupsfileslistPublishedkeysgetDetails,editSource,reviewTranslationcomments(new)list,create,update,deleteglossarycreateManylanguages(new)add,hide,enable,disable,delete,copy,replace,setFallback,listKeys/listKeysPage,listPluralsbranches(new)list,create,rename,delete,setMain,separate,analyzeMerge,merge,getOperationlinks(new)list/listPage,create,deletesegmentation(new)getParenttags,styleguides,cdn(new)listEvery method has types, tests and an entry in
docs/api-client-reference.md.Changes to existing types
File.productFlavorsisstring[](wasstring), as the API sends it — separatefixcommit, since code that treated it as a string needs updating.Languagegainstag,hidden,enabled,publishedandfallback;projects.listtakeshidden_languages.Project.organizationandProject.languagesare optional, since the API sends them only when requested — code that reads them needs anundefinedcheck.UserRolegainsviewer,memberandcustom(withProject.customRole);developeris deprecated, as the API never returns it.Filegainslibrary.