Repository navigation
codegen: resync gen/ from EF 16aa1dd9 - #574
Conversation
Command surface: 13 existing command(s) changedChanged — these already existed, so a change can break existing calls.
|
…d help test uses a visible group Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Reviewed at afd1053. Approving.
Does anything remove or rename a command or flag? No. I built the cobra tree on origin/main and on this head, walking every command with its local flags (type, shorthand, hidden, deprecated), and diffed the two. Main has 698 entries and this head has 725, and every difference is an addition apart from the voice group becoming hidden.
- New commands:
asset parts create|get|deleteandvideo voice-capabilities get. - New flags:
asset complete create --multipart-upload-idandasset direct-uploads create --multipartmodel audio tts create --apply-text-normalization(defaultauto, not sent unless set),--previous-request-idsand--next-request-idsmodel audio voices list --age,--gender,--languageand--queryvoice speech create --brand-glossary-id
- Enums: the webhook
--eventsand--event-typelists gainvideo_delivery.success|fail.
I also diffed the gen.Groups specs field by field (endpoint, method, encoding, args, flag JSON names, required, defaults, enums, pagination, polling, destructive), ignoring help text and schemas. Nothing changes except what's listed above and Deprecated on the six voice commands.
Voice deprecation. The commands are still registered and runnable. warnDeprecatedCommand writes through the formatter's Warn, so the notice goes to stderr and stdout stays clean for scripts. Every deprecatedCommandReplacements target exists at this head: model audio voices list|create|get|delete and model audio tts create.
The one tightening, and why it's fine. model audio tts create --language now has a client-side enum of 39 bare codes, so --language en-US is refused before any request is sent. The server already refuses it: at EF 16aa1dd9, speech_language takes only a bare language, and unsupported_stated_language rejects a regional tag with invalid_parameter. So the CLI just fails earlier, with no new breakage. One nit: when VideoTTS adds a language, the CLI will refuse it until the next resync. That's the usual codegen tradeoff, but it's worth knowing about, since this enum lives in json_schema_extra and the server doesn't enforce it itself.
Go 1.26.11: go test ./... passes in full. I didn't re-run codegen against the spec myself.
Review by Rames
Auto-generated PR: a production deploy shipped an updated OpenAPI spec. This PR contains the CLI command definitions regenerated from the now-live prod spec in
gen/.What changed
New commands
heygen asset parts create--POST /v3/assets/{asset_id}/partsheygen asset parts delete--DELETE /v3/assets/{asset_id}/partsheygen asset parts get--GET /v3/assets/{asset_id}/partsheygen video voice-capabilities get--GET /v3/videos/voice-capabilitiesHidden commands (deprecated, still work)
These are hidden from help and print a deprecation warning pointing to
heygen model audio voices .../heygen model audio tts create. They still run; nothing is removed.heygen voice clone create-- wasPOST /v3/voices/cloneheygen voice create-- wasPOST /v3/voicesheygen voice delete-- wasDELETE /v3/voices/{voice_id}heygen voice get-- wasGET /v3/voices/{voice_id}heygen voice list-- wasGET /v3/voicesheygen voice speech create-- wasPOST /v3/voices/speechChanged commands
heygen asset complete create: added--multipart-upload-idheygen asset direct-uploads create: added--multipartheygen model audio tts create: added--apply-text-normalization,--next-request-ids,--previous-request-ids;--languageacceptsar,be,bg,ca,cs,da,de,el,en,es,fa,fi,fr,he,hi,hr,hu,id,it,ja,ko,mk,ms,nl,pl,pt,ro,ru,sk,sl,sr,sv,ta,th,tl,tr,uk,vi,zhheygen model audio voices list: added--age,--gender,--language,--queryheygen webhook endpoints create:--eventsacceptsvideo_delivery.fail,video_delivery.successheygen webhook endpoints update:--eventsacceptsvideo_delivery.fail,video_delivery.successheygen webhook events list:--event-typeacceptsvideo_delivery.fail,video_delivery.successA changed command name is a public interface change: each rename or removal needs a deprecated alias in
cmd/heygen/aliases.gobefore this merges.Public command surface only; commands hidden from
--helpare not listed.Compared against heygen-cli
mainate3f32c3fee369fa1c482f10a31a9ddd7214a51ca.If CI fails (e.g. missing examples), fix the issue and push to this branch.
Source commit: 16aa1dd99f452768e319f25f94e384f22c124efb
Triggered by: https://github.com/heygen-com/experiment-framework/commit/16aa1dd99f452768e319f25f94e384f22c124efb