diff --git a/gen/avatar.go b/gen/avatar.go index 3f94236..427d6c9 100644 --- a/gen/avatar.go +++ b/gen/avatar.go @@ -9,7 +9,7 @@ var AvatarConsentCreate = &command.Spec{ Name: "consent create", Summary: "Create Avatar Consent", Description: "Initiates the consent flow for an avatar group and returns a URL for the user to complete approval in their browser. Required before a private avatar can be used for video generation.", - RequestSchema: "{\n \"description\": \"Request body for POST /v3/avatars/{group_id}/consent.\",\n \"properties\": {\n \"reroute_url\": {\n \"description\": \"Callback URL where the user is redirected after completing consent. Defaults to HeyGen's consent completion page.\",\n \"nullable\": true,\n \"type\": \"string\"\n }\n },\n \"required\": [],\n \"type\": \"object\"\n}", + RequestSchema: "{\n \"description\": \"Request body for POST /v3/avatars/{group_id}/consent.\",\n \"properties\": {\n \"consent_text\": {\n \"description\": \"Custom consent text rendered on the consent page in place of the default HeyGen text. Available as a premium option for select Enterprise customers — e.g. to display co-branded language like \\\"I, (Name), hereby allow HeyGen and {Company} to use footage of me...\\\". Plain text only; rendered as text (not HTML). The characters `\\u003c` and `\\u003e` are rejected to prevent stored-HTML injection. To request access, please contact our support team.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"reroute_url\": {\n \"description\": \"Callback URL where the user is redirected after completing consent. Defaults to HeyGen's consent completion page.\",\n \"nullable\": true,\n \"type\": \"string\"\n }\n },\n \"required\": [],\n \"type\": \"object\"\n}", ResponseSchema: "{\n \"properties\": {\n \"data\": {\n \"description\": \"Response body for POST /v3/avatars/{group_id}/consent.\",\n \"properties\": {\n \"avatar_group\": {\n \"description\": \"The avatar group associated with this consent.\",\n \"properties\": {\n \"consent_status\": {\n \"description\": \"The status of consent for the group. None means consent is not required.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"created_at\": {\n \"description\": \"Unix timestamp (seconds) when the avatar was created.\",\n \"type\": \"integer\"\n },\n \"default_voice_id\": {\n \"description\": \"Default voice ID for this avatar.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"error\": {\n \"description\": \"Error details. Only present when status is 'failed'.\",\n \"nullable\": true,\n \"properties\": {\n \"code\": {\n \"description\": \"Machine-readable error code.\",\n \"type\": \"string\"\n },\n \"message\": {\n \"description\": \"Human-readable error description.\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"code\",\n \"message\"\n ],\n \"type\": \"object\"\n },\n \"gender\": {\n \"description\": \"Gender of the avatar.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"id\": {\n \"description\": \"Unique avatar group identifier.\",\n \"type\": \"string\"\n },\n \"looks_count\": {\n \"description\": \"Number of looks (outfits/styles) available for this avatar.\",\n \"type\": \"integer\"\n },\n \"name\": {\n \"description\": \"Display name of the avatar.\",\n \"type\": \"string\"\n },\n \"preview_image_url\": {\n \"description\": \"URL to the avatar preview image.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"preview_video_url\": {\n \"description\": \"URL to the avatar preview video.\",\n \"nullable\": true,\n \"type\": \"string\"\n },\n \"status\": {\n \"description\": \"Training status of the avatar group. Only present for private avatars.\",\n \"enum\": [\n \"processing\",\n \"pending_consent\",\n \"failed\",\n \"completed\"\n ],\n \"nullable\": true,\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"id\",\n \"name\",\n \"created_at\",\n \"looks_count\"\n ],\n \"type\": \"object\"\n },\n \"url\": {\n \"description\": \"URL to the consent page.\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"avatar_group\",\n \"url\"\n ],\n \"type\": \"object\"\n }\n },\n \"required\": [],\n \"type\": \"object\"\n}", Endpoint: "/v3/avatars/{group_id}/consent", Method: "POST",