Repository navigation
API v2: Supertext's platform API in all six SDKs - #22
Open
superblaettler wants to merge 7 commits into
Open
superblaettler wants to merge 7 commits into
superblaettler wants to merge 7 commits into
Conversation
A v2 namespace next to v1 (TypeScript supertext-sdk/v2, PHP Supertext\Sdk\V2, Python supertext.v2, .NET Supertext.Sdk.V2, Java and Kotlin com.supertext.sdk.v2) for https://api-platform.supertext.com/v1/ with Bearer workspace keys: translateTexts as direct text requests (10,000 characters, HTML with tag_handling, file fallback for long segments), text and file translation, quotes, language detection, human review, account, features, the key check on GET account, webhooks and the webhook signature check. spec/v2/ vectors (auth header, errors, batching, webhooks, key check, conformance, Supertext's openapi.json), stand-in/stand-in-v2.mjs, conformance.mjs --v2 and CI runs for every SDK. Java and Kotlin transports keep response bodies as bytes for binary downloads. Docs and changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
…rint through v1's (CodeQL) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
| async function check(name, run) { | ||
| try { | ||
| const note = await run() | ||
| console.log(`ok ${name}${note ? `: ${note}` : ''}`) |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
…n as the text endpoint) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
… Live API v2 workflow) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DyQoDKLydLVddfSfLyxQF4
This branch has not been deployed
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 Supertext's new platform API (
https://api-platform.supertext.com/v1/,Authorization: Bearer st_live_…) as av2namespace next tov1in TypeScript, PHP, Python, .NET, Java and Kotlin. v1 is unchanged.translateTextswith the same keyed segments as v1, now as directtranslate/ai/textrequests (≤ 10,000 characters; HTML segments withtag_handling: html; a longer segment through the file endpoint; blanks unchanged)translateText/quoteText, AI file translation of any supported format (translateFile, single steps, quotes, glossary, OCR), language detection, human review (fused text and file, quotes, idempotency key),getAccount,getFeatures,validateApiKey,checkApiKey(v1ApiKeyCheckonGET account), webhooks CRUD and the Standard Webhooks signature checkinsufficient_credit,invalid_request, …) anddetail,apiErrorCode,errorId,reasonspec/v2/vectors (plus Supertext'sopenapi.json),stand-in/stand-in-v2.mjs,conformance.mjs --v2, and a v2 conformance step for every SDK in CINot tested against the live v2 API beyond the 401 answer shape: that needs a v2 workspace key as a CI secret.
Generated by Claude Code