Skip to content

codegen: resync gen/ from EF 16aa1dd9 - #574

Merged
somanshreddy merged 4 commits into
mainfrom
sync/cli-codegen-16aa1dd9
Nov 16, 2026
Merged

somanshreddy merged 4 commits into
mainfrom
sync/cli-codegen-16aa1dd9

Conversation

@heygen-rui-bot

@heygen-rui-bot heygen-rui-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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}/parts
  • heygen asset parts delete -- DELETE /v3/assets/{asset_id}/parts
  • heygen asset parts get -- GET /v3/assets/{asset_id}/parts
  • heygen video voice-capabilities get -- GET /v3/videos/voice-capabilities

Hidden 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 -- was POST /v3/voices/clone
  • heygen voice create -- was POST /v3/voices
  • heygen voice delete -- was DELETE /v3/voices/{voice_id}
  • heygen voice get -- was GET /v3/voices/{voice_id}
  • heygen voice list -- was GET /v3/voices
  • heygen voice speech create -- was POST /v3/voices/speech

Changed commands

  • heygen asset complete create: added --multipart-upload-id
  • heygen asset direct-uploads create: added --multipart
  • heygen model audio tts create: added --apply-text-normalization, --next-request-ids, --previous-request-ids; --language accepts ar, 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, zh
  • heygen model audio voices list: added --age, --gender, --language, --query
  • heygen webhook endpoints create: --events accepts video_delivery.fail, video_delivery.success
  • heygen webhook endpoints update: --events accepts video_delivery.fail, video_delivery.success
  • heygen webhook events list: --event-type accepts video_delivery.fail, video_delivery.success

A changed command name is a public interface change: each rename or removal needs a deprecated alias in cmd/heygen/aliases.go before this merges.

Public command surface only; commands hidden from --help are not listed.
Compared against heygen-cli main at e3f32c3fee369fa1c482f10a31a9ddd7214a51ca.

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

@github-actions

Copy link
Copy Markdown
Contributor

Command surface: 13 existing command(s) changed

Changed — these already existed, so a change can break existing calls.

heygen asset complete create
+ 			Name: "multipart-upload-id",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "multipart_upload_id",
heygen asset direct-uploads create
+ 			Name: "multipart",
+ 			Type: "bool",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "multipart",
heygen model audio tts create
+ 			Name: "apply-text-normalization",
+ 			Type: "string",
+ 			Default: "auto",
+ 			Required: false,
+ 			Enum: []string{"auto", "on", "off"},
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "apply_text_normalization",
- 			Enum: nil,
---
+ 			Enum: []string{"ar", "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", "zh"},
+ 			Name: "next-request-ids",
+ 			Type: "string-slice",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "next_request_ids",
+ 			Name: "previous-request-ids",
+ 			Type: "string-slice",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "previous_request_ids",
heygen model audio voices list
+ 			Name: "language",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "query",
+ 			JSONName: "language",
+ 			Name: "gender",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: []string{"male", "female"},
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "query",
+ 			JSONName: "gender",
+ 			Name: "age",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: []string{"young", "middle_aged", "old"},
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "query",
+ 			JSONName: "age",
+ 			Name: "query",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "query",
+ 			JSONName: "query",
heygen voice clone create
+ 	Deprecated: true,
heygen voice create
+ 	Deprecated: true,
heygen voice delete
+ 	Deprecated: true,
heygen voice get
+ 	Deprecated: true,
heygen voice list
+ 	Deprecated: true,
heygen voice speech create
+ 	Deprecated: true,
+ 			Name: "brand-glossary-id",
+ 			Type: "string",
+ 			Default: "",
+ 			Required: false,
+ 			Enum: nil,
+ 			Min: nil,
+ 			Max: nil,
+ 			Source: "body",
+ 			JSONName: "brand_glossary_id",
heygen webhook endpoints create
- 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail"},
---
+ 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail", "video_delivery.success", "video_delivery.fail"},
heygen webhook endpoints update
- 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail"},
---
+ 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail", "video_delivery.success", "video_delivery.fail"},
heygen webhook events list
- 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail"},
---
+ 			Enum: []string{"avatar_video.success", "avatar_video.fail", "avatar_video_gif.success", "avatar_video_gif.fail", "video_translate.success", "video_translate.fail", "video_translate.preflight.validation_failed", "video_translate.preflight.download_failed", "personalized_video", "instant_avatar.success", "instant_avatar.fail", "photo_avatar_generation.success", "photo_avatar_generation.fail", "photo_avatar_train.success", "photo_avatar_train.fail", "photo_avatar_add_motion.success", "photo_avatar_add_motion.fail", "proofread_creation.success", "proofread_creation.fail", "live_avatar.success", "live_avatar.fail", "avatar_video_caption.success", "avatar_video_caption.fail", "video_agent.success", "video_agent.fail", "hyperframes_video.success", "hyperframes_video.fail", "ai_clipping.success", "ai_clipping.fail", "filler_word_removal.success", "filler_word_removal.fail", "podcast.success", "podcast.fail", "batch.finished", "video_generation.success", "video_generation.fail", "video_delivery.success", "video_delivery.fail"},

New commands — additive, nothing existing can break.

  • heygen asset parts create
  • heygen asset parts delete
  • heygen asset parts get
  • heygen video voice-capabilities get

Reference only, never blocking. See RELEASE.md "Checking for Regressions" for how to read this.

@jrusso1020 jrusso1020 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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|delete and video voice-capabilities get.
  • New flags:
    • asset complete create --multipart-upload-id and asset direct-uploads create --multipart
    • model audio tts create --apply-text-normalization (default auto, not sent unless set), --previous-request-ids and --next-request-ids
    • model audio voices list --age, --gender, --language and --query
    • voice speech create --brand-glossary-id
  • Enums: the webhook --events and --event-type lists gain video_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

@somanshreddy
somanshreddy merged commit 4ba2f18 into main Nov 16, 2026
12 checks passed
@somanshreddy
somanshreddy deleted the sync/cli-codegen-16aa1dd9 branch November 16, 2026 04:49
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.

3 participants