feat(document-client): regenerate from prod spec — validateTemplate - #504
Merged
Merged
Conversation
…POST /v2/templates:validate) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HqKX86eMjbax2MWeJWNXBB
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.
Summary
Regenerates
@epilot/document-clientfrom the Document API spec as deployed to production (npm run openapi→typegen→build). One new operation and its types:validateTemplate—POST /v2/templates:validate. Checks a docx/xlsx/pptx template for tag and delimiter errors and, withfix: true, returns a corrected copy as a presigned download plus the issue list.TemplateValidationRequest(template_document,fix,fix_level: safe | aggressive),TemplateValidationResponse(valid,fixed,issues,unresolved_errors,fixed_document),TemplateIssue(id,file,locationsuch asTabelle1!N4,before/after,confidence,fixable).Backend: document-api
!310(merged, in prod). First consumer:epilot360-document-generation, which currently calls the path with a rawpost()and local types and will switch toclient.validateTemplate()once this is published.Also picked up from the prod spec: the
error_codedescription text and twoexamplevalues on the generate response changed. No operation was removed.Changeset:
@epilot/document-clientminor,@epilot/sdkminor (same shape as the last client regen).Test plan
npm testinclients/document-client— 3 passednpm run lint(biome) clean,npm run buildgreenpnpm version-packages+pnpm publish-packages(2FA) after merge;@epilot/sdkauto-releases on theopenapi.jsonchange🤖 Generated with Claude Code
https://claude.ai/code/session_01HqKX86eMjbax2MWeJWNXBB
Generated by Claude Code